@appwrite.io/console 15.2.0 → 15.3.0-rc.1

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 (44) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +12030 -9315
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +12027 -9315
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +12030 -9315
  7. package/package.json +1 -1
  8. package/types/client.d.ts +11 -0
  9. package/types/enums/addon.d.ts +2 -0
  10. package/types/enums/block-mode.d.ts +4 -0
  11. package/types/enums/database-status.d.ts +5 -0
  12. package/types/enums/health-queue-name.d.ts +2 -1
  13. package/types/enums/o-auth-2-oidc-prompt.d.ts +6 -0
  14. package/types/enums/organization-key-scopes.d.ts +4 -0
  15. package/types/enums/project-key-scopes.d.ts +4 -0
  16. package/types/enums/project-o-auth-2-oidc-prompt.d.ts +6 -0
  17. package/types/enums/query-suggestion-resource.d.ts +3 -0
  18. package/types/index.d.ts +8 -1
  19. package/types/models.d.ts +526 -392
  20. package/types/query.d.ts +24 -0
  21. package/types/services/account.d.ts +4 -4
  22. package/types/services/backups.d.ts +10 -1
  23. package/types/services/console.d.ts +35 -0
  24. package/types/services/databases.d.ts +0 -78
  25. package/types/services/documents-db.d.ts +4 -71
  26. package/types/services/domains.d.ts +26 -2
  27. package/types/services/functions.d.ts +4 -4
  28. package/types/services/health.d.ts +33 -16
  29. package/types/services/locale.d.ts +2 -2
  30. package/types/services/manager.d.ts +5 -1
  31. package/types/services/messaging.d.ts +0 -100
  32. package/types/services/mongo.d.ts +792 -0
  33. package/types/services/mysql.d.ts +882 -0
  34. package/types/services/notifications.d.ts +51 -0
  35. package/types/services/oauth-2.d.ts +117 -9
  36. package/types/services/organization.d.ts +158 -6
  37. package/types/services/organizations.d.ts +21 -0
  38. package/types/services/{compute.d.ts → postgresql.d.ts} +193 -322
  39. package/types/services/project.d.ts +14 -7
  40. package/types/services/projects.d.ts +186 -0
  41. package/types/services/tables-db.d.ts +89 -57
  42. package/types/services/usage.d.ts +16 -22
  43. package/types/services/users.d.ts +2 -2
  44. package/types/services/vectors-db.d.ts +8 -73
@@ -1,6 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- export declare class Compute {
3
+ export declare class Postgresql {
4
4
  client: Client;
5
5
  constructor(client: Client);
6
6
  /**
@@ -10,7 +10,7 @@ export declare class Compute {
10
10
  * @throws {AppwriteException}
11
11
  * @returns {Promise<Models.DedicatedDatabaseList>}
12
12
  */
13
- listDatabases(params?: {
13
+ list(params?: {
14
14
  queries?: string[];
15
15
  }): Promise<Models.DedicatedDatabaseList>;
16
16
  /**
@@ -21,71 +21,43 @@ export declare class Compute {
21
21
  * @returns {Promise<Models.DedicatedDatabaseList>}
22
22
  * @deprecated Use the object parameter style method for a better developer experience.
23
23
  */
24
- listDatabases(queries?: string[]): Promise<Models.DedicatedDatabaseList>;
24
+ list(queries?: string[]): Promise<Models.DedicatedDatabaseList>;
25
25
  /**
26
26
  * Create a new dedicated database with the chosen engine and configuration. Status will be 'provisioning' until the database is ready.
27
27
  *
28
28
  * @param {string} params.databaseId - Database ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
29
29
  * @param {string} params.name - Database display name. Max length: 128 chars.
30
- * @param {string} params.database - Physical database/catalog name. Defaults to databaseId.
31
- * @param {string} params.engine - Database engine: postgres, mysql, mariadb, or mongodb.
32
30
  * @param {string} params.version - Database engine version. Defaults to latest for selected engine.
33
- * @param {string} params.specification - Specification identifier.
34
- * @param {string} params.backend - Database backend provider: prisma, or edge.
35
- * @param {number} params.cpu - CPU in millicores (125-16000).
36
- * @param {number} params.memory - Memory in MB to allocate (128-65536).
37
- * @param {number} params.storage - Storage in GB to allocate (1-16384).
38
- * @param {string} params.storageClass - Storage class. Allowed values: ssd. DigitalOcean exposes a single block-storage class, so only 'ssd' is offered today.
39
- * @param {number} params.storageMaxGb - Maximum storage limit in GB. 0 uses system default.
31
+ * @param {string} params.specification - Specification identifier. Drives the allocated CPU, memory, storage, storage class, and connection ceiling.
40
32
  * @param {number} params.replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
41
- * @param {string} params.highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
42
- * @param {number} params.networkMaxConnections - Maximum concurrent connections.
33
+ * @param {string} params.syncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
43
34
  * @param {number} params.networkIdleTimeoutSeconds - Connection idle timeout in seconds.
44
35
  * @param {string[]} params.networkIPAllowlist - IP addresses/CIDR ranges allowed to connect.
45
36
  * @param {number} params.idleTimeoutMinutes - Minutes of inactivity before container scales to zero.
46
- * @param {boolean} params.backupEnabled - Enable automatic backups.
47
- * @param {boolean} params.backupPitr - Enable point-in-time recovery.
48
- * @param {string} params.backupCron - Backup schedule in cron format.
49
- * @param {number} params.backupRetentionDays - Number of days to retain backups.
37
+ * @param {boolean} params.pitr - Enable point-in-time recovery (PITR). Continuously archives changes so the database can be restored to any moment within the retention window.
50
38
  * @param {number} params.pitrRetentionDays - Number of days to retain PITR data.
51
39
  * @param {boolean} params.storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
52
40
  * @param {number} params.storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
53
41
  * @param {number} params.storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
54
- * @param {boolean} params.metricsEnabled - Enable metrics collection. Enabled by default; pass false to opt out.
55
- * @param {boolean} params.poolerEnabled - Enable connection pooler on provision.
56
- * @param {string} params.api - Product API that owns this database: compute (raw, direct-access), tablesdb, documentsdb, or vectorsdb. tablesdb/documentsdb/vectorsdb computes are reached only through their product APIs.
42
+ * @param {string} params.api - Product API that owns this database: nativedb (raw, direct-access), tablesdb, documentsdb, or vectorsdb. tablesdb/documentsdb/vectorsdb databases are reached only through their product APIs.
57
43
  * @throws {AppwriteException}
58
44
  * @returns {Promise<Models.DedicatedDatabase>}
59
45
  */
60
- createDatabase(params: {
46
+ create(params: {
61
47
  databaseId: string;
62
48
  name: string;
63
- database?: string;
64
- engine?: string;
65
49
  version?: string;
66
50
  specification?: string;
67
- backend?: string;
68
- cpu?: number;
69
- memory?: number;
70
- storage?: number;
71
- storageClass?: string;
72
- storageMaxGb?: number;
73
51
  replicas?: number;
74
- highAvailabilitySyncMode?: string;
75
- networkMaxConnections?: number;
52
+ syncMode?: string;
76
53
  networkIdleTimeoutSeconds?: number;
77
54
  networkIPAllowlist?: string[];
78
55
  idleTimeoutMinutes?: number;
79
- backupEnabled?: boolean;
80
- backupPitr?: boolean;
81
- backupCron?: string;
82
- backupRetentionDays?: number;
56
+ pitr?: boolean;
83
57
  pitrRetentionDays?: number;
84
58
  storageAutoscaling?: boolean;
85
59
  storageAutoscalingThresholdPercent?: number;
86
60
  storageAutoscalingMaxGb?: number;
87
- metricsEnabled?: boolean;
88
- poolerEnabled?: boolean;
89
61
  api?: string;
90
62
  }): Promise<Models.DedicatedDatabase>;
91
63
  /**
@@ -93,45 +65,31 @@ export declare class Compute {
93
65
  *
94
66
  * @param {string} databaseId - Database ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
95
67
  * @param {string} name - Database display name. Max length: 128 chars.
96
- * @param {string} database - Physical database/catalog name. Defaults to databaseId.
97
- * @param {string} engine - Database engine: postgres, mysql, mariadb, or mongodb.
98
68
  * @param {string} version - Database engine version. Defaults to latest for selected engine.
99
- * @param {string} specification - Specification identifier.
100
- * @param {string} backend - Database backend provider: prisma, or edge.
101
- * @param {number} cpu - CPU in millicores (125-16000).
102
- * @param {number} memory - Memory in MB to allocate (128-65536).
103
- * @param {number} storage - Storage in GB to allocate (1-16384).
104
- * @param {string} storageClass - Storage class. Allowed values: ssd. DigitalOcean exposes a single block-storage class, so only 'ssd' is offered today.
105
- * @param {number} storageMaxGb - Maximum storage limit in GB. 0 uses system default.
69
+ * @param {string} specification - Specification identifier. Drives the allocated CPU, memory, storage, storage class, and connection ceiling.
106
70
  * @param {number} replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
107
- * @param {string} highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
108
- * @param {number} networkMaxConnections - Maximum concurrent connections.
71
+ * @param {string} syncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
109
72
  * @param {number} networkIdleTimeoutSeconds - Connection idle timeout in seconds.
110
73
  * @param {string[]} networkIPAllowlist - IP addresses/CIDR ranges allowed to connect.
111
74
  * @param {number} idleTimeoutMinutes - Minutes of inactivity before container scales to zero.
112
- * @param {boolean} backupEnabled - Enable automatic backups.
113
- * @param {boolean} backupPitr - Enable point-in-time recovery.
114
- * @param {string} backupCron - Backup schedule in cron format.
115
- * @param {number} backupRetentionDays - Number of days to retain backups.
75
+ * @param {boolean} pitr - Enable point-in-time recovery (PITR). Continuously archives changes so the database can be restored to any moment within the retention window.
116
76
  * @param {number} pitrRetentionDays - Number of days to retain PITR data.
117
77
  * @param {boolean} storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
118
78
  * @param {number} storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
119
79
  * @param {number} storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
120
- * @param {boolean} metricsEnabled - Enable metrics collection. Enabled by default; pass false to opt out.
121
- * @param {boolean} poolerEnabled - Enable connection pooler on provision.
122
- * @param {string} api - Product API that owns this database: compute (raw, direct-access), tablesdb, documentsdb, or vectorsdb. tablesdb/documentsdb/vectorsdb computes are reached only through their product APIs.
80
+ * @param {string} api - Product API that owns this database: nativedb (raw, direct-access), tablesdb, documentsdb, or vectorsdb. tablesdb/documentsdb/vectorsdb databases are reached only through their product APIs.
123
81
  * @throws {AppwriteException}
124
82
  * @returns {Promise<Models.DedicatedDatabase>}
125
83
  * @deprecated Use the object parameter style method for a better developer experience.
126
84
  */
127
- createDatabase(databaseId: string, name: string, database?: string, engine?: string, version?: string, specification?: string, backend?: string, cpu?: number, memory?: number, storage?: number, storageClass?: string, storageMaxGb?: number, replicas?: number, highAvailabilitySyncMode?: string, networkMaxConnections?: number, networkIdleTimeoutSeconds?: number, networkIPAllowlist?: string[], idleTimeoutMinutes?: number, backupEnabled?: boolean, backupPitr?: boolean, backupCron?: string, backupRetentionDays?: number, pitrRetentionDays?: number, storageAutoscaling?: boolean, storageAutoscalingThresholdPercent?: number, storageAutoscalingMaxGb?: number, metricsEnabled?: boolean, poolerEnabled?: boolean, api?: string): Promise<Models.DedicatedDatabase>;
85
+ create(databaseId: string, name: string, version?: string, specification?: string, replicas?: number, syncMode?: string, networkIdleTimeoutSeconds?: number, networkIPAllowlist?: string[], idleTimeoutMinutes?: number, pitr?: boolean, pitrRetentionDays?: number, storageAutoscaling?: boolean, storageAutoscalingThresholdPercent?: number, storageAutoscalingMaxGb?: number, api?: string): Promise<Models.DedicatedDatabase>;
128
86
  /**
129
87
  * List the dedicated database specifications available on the current plan. Each specification reports its resource limits, pricing, and whether it is enabled for the organization.
130
88
  *
131
89
  * @throws {AppwriteException}
132
90
  * @returns {Promise<Models.DedicatedDatabaseSpecificationList>}
133
91
  */
134
- listDatabaseSpecifications(): Promise<Models.DedicatedDatabaseSpecificationList>;
92
+ listSpecifications(): Promise<Models.DedicatedDatabaseSpecificationList>;
135
93
  /**
136
94
  * Get a dedicated database by its unique ID. Returns the database configuration and current status.
137
95
  *
@@ -139,7 +97,7 @@ export declare class Compute {
139
97
  * @throws {AppwriteException}
140
98
  * @returns {Promise<Models.DedicatedDatabase>}
141
99
  */
142
- getDatabase(params: {
100
+ get(params: {
143
101
  databaseId: string;
144
102
  }): Promise<Models.DedicatedDatabase>;
145
103
  /**
@@ -150,34 +108,24 @@ export declare class Compute {
150
108
  * @returns {Promise<Models.DedicatedDatabase>}
151
109
  * @deprecated Use the object parameter style method for a better developer experience.
152
110
  */
153
- getDatabase(databaseId: string): Promise<Models.DedicatedDatabase>;
111
+ get(databaseId: string): Promise<Models.DedicatedDatabase>;
154
112
  /**
155
- * Update a dedicated database configuration. All changes are applied with zero downtime. Resource changes (cpu, memory) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.
113
+ * Update a dedicated database configuration. All changes are applied with zero downtime. Specification changes (cpu, memory, storage) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.
156
114
  *
157
115
  * @param {string} params.databaseId - Database ID.
158
116
  * @param {string} params.name - Database display name.
159
117
  * @param {string} params.status - Database status. Allowed values: ready, paused, inactive. Set to "paused" to pause, "ready" to resume (also recovers a failed database whose infrastructure is healthy), or "inactive" to spin down a shared-pool database.
160
- * @param {string} params.specification - Specification. Changes cpu, memory, and node pool based on specification config.
161
- * @param {number} params.cpu - CPU cores to allocate (125-16000).
162
- * @param {number} params.memory - Memory in MB to allocate (128-65536).
163
- * @param {number} params.storage - Storage in GB to allocate (1-16384).
164
- * @param {string} params.storageClass - Storage class. Allowed values: ssd.
118
+ * @param {string} params.specification - Specification. Changes cpu, memory, storage, connection ceiling, and node pool based on specification config. Resource changes are applied via rolling cutover with zero downtime.
165
119
  * @param {number} params.replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
166
- * @param {string} params.highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
167
- * @param {number} params.networkMaxConnections - Maximum concurrent connections.
120
+ * @param {string} params.syncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
168
121
  * @param {number} params.networkIdleTimeoutSeconds - Connection idle timeout in seconds (60-86400).
169
122
  * @param {string[]} params.networkIPAllowlist - IP addresses/CIDR ranges allowed to connect.
170
123
  * @param {number} params.idleTimeoutMinutes - Minutes before container scales to zero.
171
- * @param {boolean} params.backupEnabled - Enable automatic backups.
172
- * @param {boolean} params.backupPitr - Enable point-in-time recovery.
173
- * @param {string} params.backupCron - Backup schedule in cron format.
174
- * @param {number} params.backupRetentionDays - Days to retain backups.
124
+ * @param {boolean} params.pitr - Enable or disable point-in-time recovery (PITR).
175
125
  * @param {number} params.pitrRetentionDays - Days to retain PITR data.
176
126
  * @param {boolean} params.storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
177
127
  * @param {number} params.storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
178
128
  * @param {number} params.storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
179
- * @param {boolean} params.poolerEnabled - Attach or detach the connection pooler sidecar. Set to true to add the sidecar (no-op if already attached) or false to remove it.
180
- * @param {boolean} params.metricsEnabled - Enable or disable the metrics-agent sidecar.
181
129
  * @param {number} params.metricsTraceSampleRate - Fraction of queries to trace (0.0–1.0). Forwarded to the sidecar.
182
130
  * @param {number} params.metricsSlowQueryLogThresholdMs - Threshold in ms above which queries are logged as slow. Forwarded to the sidecar.
183
131
  * @param {boolean} params.sqlApiEnabled - Enable the SQL API sidecar for this database.
@@ -188,31 +136,21 @@ export declare class Compute {
188
136
  * @throws {AppwriteException}
189
137
  * @returns {Promise<Models.DedicatedDatabase>}
190
138
  */
191
- updateDatabase(params: {
139
+ update(params: {
192
140
  databaseId: string;
193
141
  name?: string;
194
142
  status?: string;
195
143
  specification?: string;
196
- cpu?: number;
197
- memory?: number;
198
- storage?: number;
199
- storageClass?: string;
200
144
  replicas?: number;
201
- highAvailabilitySyncMode?: string;
202
- networkMaxConnections?: number;
145
+ syncMode?: string;
203
146
  networkIdleTimeoutSeconds?: number;
204
147
  networkIPAllowlist?: string[];
205
148
  idleTimeoutMinutes?: number;
206
- backupEnabled?: boolean;
207
- backupPitr?: boolean;
208
- backupCron?: string;
209
- backupRetentionDays?: number;
149
+ pitr?: boolean;
210
150
  pitrRetentionDays?: number;
211
151
  storageAutoscaling?: boolean;
212
152
  storageAutoscalingThresholdPercent?: number;
213
153
  storageAutoscalingMaxGb?: number;
214
- poolerEnabled?: boolean;
215
- metricsEnabled?: boolean;
216
154
  metricsTraceSampleRate?: number;
217
155
  metricsSlowQueryLogThresholdMs?: number;
218
156
  sqlApiEnabled?: boolean;
@@ -222,32 +160,22 @@ export declare class Compute {
222
160
  sqlApiTimeoutSeconds?: number;
223
161
  }): Promise<Models.DedicatedDatabase>;
224
162
  /**
225
- * Update a dedicated database configuration. All changes are applied with zero downtime. Resource changes (cpu, memory) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.
163
+ * Update a dedicated database configuration. All changes are applied with zero downtime. Specification changes (cpu, memory, storage) are handled via rolling cutover. Storage expansion is done online. All other settings are applied in-place.
226
164
  *
227
165
  * @param {string} databaseId - Database ID.
228
166
  * @param {string} name - Database display name.
229
167
  * @param {string} status - Database status. Allowed values: ready, paused, inactive. Set to "paused" to pause, "ready" to resume (also recovers a failed database whose infrastructure is healthy), or "inactive" to spin down a shared-pool database.
230
- * @param {string} specification - Specification. Changes cpu, memory, and node pool based on specification config.
231
- * @param {number} cpu - CPU cores to allocate (125-16000).
232
- * @param {number} memory - Memory in MB to allocate (128-65536).
233
- * @param {number} storage - Storage in GB to allocate (1-16384).
234
- * @param {string} storageClass - Storage class. Allowed values: ssd.
168
+ * @param {string} specification - Specification. Changes cpu, memory, storage, connection ceiling, and node pool based on specification config. Resource changes are applied via rolling cutover with zero downtime.
235
169
  * @param {number} replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
236
- * @param {string} highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
237
- * @param {number} networkMaxConnections - Maximum concurrent connections.
170
+ * @param {string} syncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
238
171
  * @param {number} networkIdleTimeoutSeconds - Connection idle timeout in seconds (60-86400).
239
172
  * @param {string[]} networkIPAllowlist - IP addresses/CIDR ranges allowed to connect.
240
173
  * @param {number} idleTimeoutMinutes - Minutes before container scales to zero.
241
- * @param {boolean} backupEnabled - Enable automatic backups.
242
- * @param {boolean} backupPitr - Enable point-in-time recovery.
243
- * @param {string} backupCron - Backup schedule in cron format.
244
- * @param {number} backupRetentionDays - Days to retain backups.
174
+ * @param {boolean} pitr - Enable or disable point-in-time recovery (PITR).
245
175
  * @param {number} pitrRetentionDays - Days to retain PITR data.
246
176
  * @param {boolean} storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
247
177
  * @param {number} storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
248
178
  * @param {number} storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
249
- * @param {boolean} poolerEnabled - Attach or detach the connection pooler sidecar. Set to true to add the sidecar (no-op if already attached) or false to remove it.
250
- * @param {boolean} metricsEnabled - Enable or disable the metrics-agent sidecar.
251
179
  * @param {number} metricsTraceSampleRate - Fraction of queries to trace (0.0–1.0). Forwarded to the sidecar.
252
180
  * @param {number} metricsSlowQueryLogThresholdMs - Threshold in ms above which queries are logged as slow. Forwarded to the sidecar.
253
181
  * @param {boolean} sqlApiEnabled - Enable the SQL API sidecar for this database.
@@ -259,7 +187,7 @@ export declare class Compute {
259
187
  * @returns {Promise<Models.DedicatedDatabase>}
260
188
  * @deprecated Use the object parameter style method for a better developer experience.
261
189
  */
262
- updateDatabase(databaseId: string, name?: string, status?: string, specification?: string, cpu?: number, memory?: number, storage?: number, storageClass?: string, replicas?: number, highAvailabilitySyncMode?: string, networkMaxConnections?: number, networkIdleTimeoutSeconds?: number, networkIPAllowlist?: string[], idleTimeoutMinutes?: number, backupEnabled?: boolean, backupPitr?: boolean, backupCron?: string, backupRetentionDays?: number, pitrRetentionDays?: number, storageAutoscaling?: boolean, storageAutoscalingThresholdPercent?: number, storageAutoscalingMaxGb?: number, poolerEnabled?: boolean, metricsEnabled?: boolean, metricsTraceSampleRate?: number, metricsSlowQueryLogThresholdMs?: number, sqlApiEnabled?: boolean, sqlApiAllowedStatements?: string[], sqlApiMaxRows?: number, sqlApiMaxBytes?: number, sqlApiTimeoutSeconds?: number): Promise<Models.DedicatedDatabase>;
190
+ update(databaseId: string, name?: string, status?: string, specification?: string, replicas?: number, syncMode?: string, networkIdleTimeoutSeconds?: number, networkIPAllowlist?: string[], idleTimeoutMinutes?: number, pitr?: boolean, pitrRetentionDays?: number, storageAutoscaling?: boolean, storageAutoscalingThresholdPercent?: number, storageAutoscalingMaxGb?: number, metricsTraceSampleRate?: number, metricsSlowQueryLogThresholdMs?: number, sqlApiEnabled?: boolean, sqlApiAllowedStatements?: string[], sqlApiMaxRows?: number, sqlApiMaxBytes?: number, sqlApiTimeoutSeconds?: number): Promise<Models.DedicatedDatabase>;
263
191
  /**
264
192
  * Delete a dedicated database. This action is irreversible. The database status will be set to 'deleting' and all resources will be cleaned up. Deletion is allowed from any state, and repeating the call re-dispatches the cleanup.
265
193
  *
@@ -267,7 +195,7 @@ export declare class Compute {
267
195
  * @throws {AppwriteException}
268
196
  * @returns {Promise<{}>}
269
197
  */
270
- deleteDatabase(params: {
198
+ delete(params: {
271
199
  databaseId: string;
272
200
  }): Promise<{}>;
273
201
  /**
@@ -278,7 +206,7 @@ export declare class Compute {
278
206
  * @returns {Promise<{}>}
279
207
  * @deprecated Use the object parameter style method for a better developer experience.
280
208
  */
281
- deleteDatabase(databaseId: string): Promise<{}>;
209
+ delete(databaseId: string): Promise<{}>;
282
210
  /**
283
211
  * List all backups for a dedicated database. Results can be filtered by status and type.
284
212
  *
@@ -287,7 +215,7 @@ export declare class Compute {
287
215
  * @throws {AppwriteException}
288
216
  * @returns {Promise<Models.DedicatedDatabaseBackupList>}
289
217
  */
290
- listDatabaseBackups(params: {
218
+ listBackups(params: {
291
219
  databaseId: string;
292
220
  queries?: string[];
293
221
  }): Promise<Models.DedicatedDatabaseBackupList>;
@@ -300,7 +228,7 @@ export declare class Compute {
300
228
  * @returns {Promise<Models.DedicatedDatabaseBackupList>}
301
229
  * @deprecated Use the object parameter style method for a better developer experience.
302
230
  */
303
- listDatabaseBackups(databaseId: string, queries?: string[]): Promise<Models.DedicatedDatabaseBackupList>;
231
+ listBackups(databaseId: string, queries?: string[]): Promise<Models.DedicatedDatabaseBackupList>;
304
232
  /**
305
233
  * Create a manual backup of a dedicated database. The backup will be created asynchronously and its status can be checked via the get backup endpoint.
306
234
  *
@@ -309,7 +237,7 @@ export declare class Compute {
309
237
  * @throws {AppwriteException}
310
238
  * @returns {Promise<Models.DedicatedDatabaseBackup>}
311
239
  */
312
- createDatabaseBackup(params: {
240
+ createBackup(params: {
313
241
  databaseId: string;
314
242
  type?: string;
315
243
  }): Promise<Models.DedicatedDatabaseBackup>;
@@ -322,7 +250,7 @@ export declare class Compute {
322
250
  * @returns {Promise<Models.DedicatedDatabaseBackup>}
323
251
  * @deprecated Use the object parameter style method for a better developer experience.
324
252
  */
325
- createDatabaseBackup(databaseId: string, type?: string): Promise<Models.DedicatedDatabaseBackup>;
253
+ createBackup(databaseId: string, type?: string): Promise<Models.DedicatedDatabaseBackup>;
326
254
  /**
327
255
  * List scheduled backup policies for a dedicated database.
328
256
  *
@@ -331,7 +259,7 @@ export declare class Compute {
331
259
  * @throws {AppwriteException}
332
260
  * @returns {Promise<Models.BackupPolicyList>}
333
261
  */
334
- listDatabaseBackupPolicies(params: {
262
+ listBackupPolicies(params: {
335
263
  databaseId: string;
336
264
  queries?: string[];
337
265
  }): Promise<Models.BackupPolicyList>;
@@ -344,7 +272,7 @@ export declare class Compute {
344
272
  * @returns {Promise<Models.BackupPolicyList>}
345
273
  * @deprecated Use the object parameter style method for a better developer experience.
346
274
  */
347
- listDatabaseBackupPolicies(databaseId: string, queries?: string[]): Promise<Models.BackupPolicyList>;
275
+ listBackupPolicies(databaseId: string, queries?: string[]): Promise<Models.BackupPolicyList>;
348
276
  /**
349
277
  * Create a scheduled backup policy for a dedicated database.
350
278
  *
@@ -358,7 +286,7 @@ export declare class Compute {
358
286
  * @throws {AppwriteException}
359
287
  * @returns {Promise<Models.BackupPolicy>}
360
288
  */
361
- createDatabaseBackupPolicy(params: {
289
+ createBackupPolicy(params: {
362
290
  databaseId: string;
363
291
  policyId: string;
364
292
  name: string;
@@ -381,7 +309,85 @@ export declare class Compute {
381
309
  * @returns {Promise<Models.BackupPolicy>}
382
310
  * @deprecated Use the object parameter style method for a better developer experience.
383
311
  */
384
- createDatabaseBackupPolicy(databaseId: string, policyId: string, name: string, schedule: string, retention: number, type?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
312
+ createBackupPolicy(databaseId: string, policyId: string, name: string, schedule: string, retention: number, type?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
313
+ /**
314
+ * Get a scheduled backup policy for a dedicated database.
315
+ *
316
+ * @param {string} params.databaseId - Database ID.
317
+ * @param {string} params.policyId - Policy ID.
318
+ * @throws {AppwriteException}
319
+ * @returns {Promise<Models.BackupPolicy>}
320
+ */
321
+ getBackupPolicy(params: {
322
+ databaseId: string;
323
+ policyId: string;
324
+ }): Promise<Models.BackupPolicy>;
325
+ /**
326
+ * Get a scheduled backup policy for a dedicated database.
327
+ *
328
+ * @param {string} databaseId - Database ID.
329
+ * @param {string} policyId - Policy ID.
330
+ * @throws {AppwriteException}
331
+ * @returns {Promise<Models.BackupPolicy>}
332
+ * @deprecated Use the object parameter style method for a better developer experience.
333
+ */
334
+ getBackupPolicy(databaseId: string, policyId: string): Promise<Models.BackupPolicy>;
335
+ /**
336
+ * Update a scheduled backup policy for a dedicated database.
337
+ *
338
+ * @param {string} params.databaseId - Database ID.
339
+ * @param {string} params.policyId - Policy ID.
340
+ * @param {string} params.name - Policy name. Max length: 128 chars.
341
+ * @param {string} params.schedule - Schedule CRON syntax.
342
+ * @param {number} params.retention - Days to keep backups before deletion.
343
+ * @param {boolean} params.enabled - Is policy enabled? When disabled, no backups will be taken.
344
+ * @throws {AppwriteException}
345
+ * @returns {Promise<Models.BackupPolicy>}
346
+ */
347
+ updateBackupPolicy(params: {
348
+ databaseId: string;
349
+ policyId: string;
350
+ name?: string;
351
+ schedule?: string;
352
+ retention?: number;
353
+ enabled?: boolean;
354
+ }): Promise<Models.BackupPolicy>;
355
+ /**
356
+ * Update a scheduled backup policy for a dedicated database.
357
+ *
358
+ * @param {string} databaseId - Database ID.
359
+ * @param {string} policyId - Policy ID.
360
+ * @param {string} name - Policy name. Max length: 128 chars.
361
+ * @param {string} schedule - Schedule CRON syntax.
362
+ * @param {number} retention - Days to keep backups before deletion.
363
+ * @param {boolean} enabled - Is policy enabled? When disabled, no backups will be taken.
364
+ * @throws {AppwriteException}
365
+ * @returns {Promise<Models.BackupPolicy>}
366
+ * @deprecated Use the object parameter style method for a better developer experience.
367
+ */
368
+ updateBackupPolicy(databaseId: string, policyId: string, name?: string, schedule?: string, retention?: number, enabled?: boolean): Promise<Models.BackupPolicy>;
369
+ /**
370
+ * Delete a scheduled backup policy for a dedicated database. Backups already taken by the policy are kept until their retention expires.
371
+ *
372
+ * @param {string} params.databaseId - Database ID.
373
+ * @param {string} params.policyId - Policy ID.
374
+ * @throws {AppwriteException}
375
+ * @returns {Promise<{}>}
376
+ */
377
+ deleteBackupPolicy(params: {
378
+ databaseId: string;
379
+ policyId: string;
380
+ }): Promise<{}>;
381
+ /**
382
+ * Delete a scheduled backup policy for a dedicated database. Backups already taken by the policy are kept until their retention expires.
383
+ *
384
+ * @param {string} databaseId - Database ID.
385
+ * @param {string} policyId - Policy ID.
386
+ * @throws {AppwriteException}
387
+ * @returns {Promise<{}>}
388
+ * @deprecated Use the object parameter style method for a better developer experience.
389
+ */
390
+ deleteBackupPolicy(databaseId: string, policyId: string): Promise<{}>;
385
391
  /**
386
392
  * Configure off-cluster backup storage for a dedicated database. Supports S3, GCS, and Azure Blob Storage destinations. Backups will be stored to the configured destination in addition to on-cluster storage.
387
393
  *
@@ -396,7 +402,7 @@ export declare class Compute {
396
402
  * @throws {AppwriteException}
397
403
  * @returns {Promise<Models.DedicatedDatabaseBackupStorage>}
398
404
  */
399
- updateDatabaseBackupStorage(params: {
405
+ updateBackupStorage(params: {
400
406
  databaseId: string;
401
407
  provider: string;
402
408
  bucket: string;
@@ -421,7 +427,7 @@ export declare class Compute {
421
427
  * @returns {Promise<Models.DedicatedDatabaseBackupStorage>}
422
428
  * @deprecated Use the object parameter style method for a better developer experience.
423
429
  */
424
- updateDatabaseBackupStorage(databaseId: string, provider: string, bucket: string, accessKey: string, secretKey: string, region?: string, prefix?: string, endpoint?: string): Promise<Models.DedicatedDatabaseBackupStorage>;
430
+ updateBackupStorage(databaseId: string, provider: string, bucket: string, accessKey: string, secretKey: string, region?: string, prefix?: string, endpoint?: string): Promise<Models.DedicatedDatabaseBackupStorage>;
425
431
  /**
426
432
  * Get details of a specific database backup including its status, size, and timestamps.
427
433
  *
@@ -430,7 +436,7 @@ export declare class Compute {
430
436
  * @throws {AppwriteException}
431
437
  * @returns {Promise<Models.DedicatedDatabaseBackup>}
432
438
  */
433
- getDatabaseBackup(params: {
439
+ getBackup(params: {
434
440
  databaseId: string;
435
441
  backupId: string;
436
442
  }): Promise<Models.DedicatedDatabaseBackup>;
@@ -443,7 +449,7 @@ export declare class Compute {
443
449
  * @returns {Promise<Models.DedicatedDatabaseBackup>}
444
450
  * @deprecated Use the object parameter style method for a better developer experience.
445
451
  */
446
- getDatabaseBackup(databaseId: string, backupId: string): Promise<Models.DedicatedDatabaseBackup>;
452
+ getBackup(databaseId: string, backupId: string): Promise<Models.DedicatedDatabaseBackup>;
447
453
  /**
448
454
  * Delete a database backup. This will permanently remove the backup from storage and cannot be undone.
449
455
  *
@@ -452,7 +458,7 @@ export declare class Compute {
452
458
  * @throws {AppwriteException}
453
459
  * @returns {Promise<{}>}
454
460
  */
455
- deleteDatabaseBackup(params: {
461
+ deleteBackup(params: {
456
462
  databaseId: string;
457
463
  backupId: string;
458
464
  }): Promise<{}>;
@@ -465,7 +471,7 @@ export declare class Compute {
465
471
  * @returns {Promise<{}>}
466
472
  * @deprecated Use the object parameter style method for a better developer experience.
467
473
  */
468
- deleteDatabaseBackup(databaseId: string, backupId: string): Promise<{}>;
474
+ deleteBackup(databaseId: string, backupId: string): Promise<{}>;
469
475
  /**
470
476
  * List all ephemeral branches for a dedicated database. Returns branch metadata including ID, name, namespace, and expiration time.
471
477
  *
@@ -473,7 +479,7 @@ export declare class Compute {
473
479
  * @throws {AppwriteException}
474
480
  * @returns {Promise<Models.DedicatedDatabaseBranchList>}
475
481
  */
476
- listDatabaseBranches(params: {
482
+ listBranches(params: {
477
483
  databaseId: string;
478
484
  }): Promise<Models.DedicatedDatabaseBranchList>;
479
485
  /**
@@ -484,7 +490,7 @@ export declare class Compute {
484
490
  * @returns {Promise<Models.DedicatedDatabaseBranchList>}
485
491
  * @deprecated Use the object parameter style method for a better developer experience.
486
492
  */
487
- listDatabaseBranches(databaseId: string): Promise<Models.DedicatedDatabaseBranchList>;
493
+ listBranches(databaseId: string): Promise<Models.DedicatedDatabaseBranchList>;
488
494
  /**
489
495
  * Create an ephemeral database branch from the primary via PVC snapshot. The branch is a full copy of the database at the current point in time, useful for testing schema migrations or running experiments without affecting production data. Branches expire after the configured TTL (default 24 hours). The branch is created asynchronously.
490
496
  *
@@ -494,7 +500,7 @@ export declare class Compute {
494
500
  * @throws {AppwriteException}
495
501
  * @returns {Promise<Models.DedicatedDatabase>}
496
502
  */
497
- createDatabaseBranch(params: {
503
+ createBranch(params: {
498
504
  databaseId: string;
499
505
  branchId?: string;
500
506
  ttl?: number;
@@ -509,7 +515,7 @@ export declare class Compute {
509
515
  * @returns {Promise<Models.DedicatedDatabase>}
510
516
  * @deprecated Use the object parameter style method for a better developer experience.
511
517
  */
512
- createDatabaseBranch(databaseId: string, branchId?: string, ttl?: number): Promise<Models.DedicatedDatabase>;
518
+ createBranch(databaseId: string, branchId?: string, ttl?: number): Promise<Models.DedicatedDatabase>;
513
519
  /**
514
520
  * Delete an ephemeral database branch. This removes the branch namespace, its PVC, and the associated VolumeSnapshot. The deletion runs asynchronously and is irreversible.
515
521
  *
@@ -518,7 +524,7 @@ export declare class Compute {
518
524
  * @throws {AppwriteException}
519
525
  * @returns {Promise<Models.DedicatedDatabase>}
520
526
  */
521
- deleteDatabaseBranch(params: {
527
+ deleteBranch(params: {
522
528
  databaseId: string;
523
529
  branchId: string;
524
530
  }): Promise<Models.DedicatedDatabase>;
@@ -531,111 +537,26 @@ export declare class Compute {
531
537
  * @returns {Promise<Models.DedicatedDatabase>}
532
538
  * @deprecated Use the object parameter style method for a better developer experience.
533
539
  */
534
- deleteDatabaseBranch(databaseId: string, branchId: string): Promise<Models.DedicatedDatabase>;
540
+ deleteBranch(databaseId: string, branchId: string): Promise<Models.DedicatedDatabase>;
535
541
  /**
536
- * List all database connection users/roles for a dedicated database.
542
+ * Rotate the primary connection credentials for a dedicated database. Generates a new password and updates the database atomically. Previous credentials stop working immediately. Returns the database with a refreshed connection string carrying the new password.
537
543
  *
538
544
  * @param {string} params.databaseId - Database ID.
539
545
  * @throws {AppwriteException}
540
- * @returns {Promise<Models.DedicatedDatabaseConnectionList>}
541
- */
542
- listDatabaseConnections(params: {
543
- databaseId: string;
544
- }): Promise<Models.DedicatedDatabaseConnectionList>;
545
- /**
546
- * List all database connection users/roles for a dedicated database.
547
- *
548
- * @param {string} databaseId - Database ID.
549
- * @throws {AppwriteException}
550
- * @returns {Promise<Models.DedicatedDatabaseConnectionList>}
551
- * @deprecated Use the object parameter style method for a better developer experience.
552
- */
553
- listDatabaseConnections(databaseId: string): Promise<Models.DedicatedDatabaseConnectionList>;
554
- /**
555
- * Create a new database connection user/role. Returns the connection details including the generated credentials.
556
- *
557
- * @param {string} params.databaseId - Database ID.
558
- * @param {string} params.username - Connection username.
559
- * @param {string} params.role - Connection role for the new user. Common values: readonly (read-only access), readwrite (full read and write access).
560
- * @throws {AppwriteException}
561
- * @returns {Promise<Models.DedicatedDatabaseConnection>}
562
- */
563
- createDatabaseConnection(params: {
564
- databaseId: string;
565
- username: string;
566
- role?: string;
567
- }): Promise<Models.DedicatedDatabaseConnection>;
568
- /**
569
- * Create a new database connection user/role. Returns the connection details including the generated credentials.
570
- *
571
- * @param {string} databaseId - Database ID.
572
- * @param {string} username - Connection username.
573
- * @param {string} role - Connection role for the new user. Common values: readonly (read-only access), readwrite (full read and write access).
574
- * @throws {AppwriteException}
575
- * @returns {Promise<Models.DedicatedDatabaseConnection>}
576
- * @deprecated Use the object parameter style method for a better developer experience.
577
- */
578
- createDatabaseConnection(databaseId: string, username: string, role?: string): Promise<Models.DedicatedDatabaseConnection>;
579
- /**
580
- * Delete a database connection user/role. The connection will be terminated immediately.
581
- *
582
- * @param {string} params.databaseId - Database ID.
583
- * @param {string} params.connectionId - Connection ID.
584
- * @throws {AppwriteException}
585
- * @returns {Promise<{}>}
586
- */
587
- deleteDatabaseConnection(params: {
588
- databaseId: string;
589
- connectionId: string;
590
- }): Promise<{}>;
591
- /**
592
- * Delete a database connection user/role. The connection will be terminated immediately.
593
- *
594
- * @param {string} databaseId - Database ID.
595
- * @param {string} connectionId - Connection ID.
596
- * @throws {AppwriteException}
597
- * @returns {Promise<{}>}
598
- * @deprecated Use the object parameter style method for a better developer experience.
599
- */
600
- deleteDatabaseConnection(databaseId: string, connectionId: string): Promise<{}>;
601
- /**
602
- * Get connection credentials for a dedicated database. Returns the hostname, port, username, password, database name, and full connection string.
603
- *
604
- * @param {string} params.databaseId - Database ID.
605
- * @throws {AppwriteException}
606
- * @returns {Promise<Models.DedicatedDatabaseCredentials>}
607
- */
608
- getDatabaseCredentials(params: {
609
- databaseId: string;
610
- }): Promise<Models.DedicatedDatabaseCredentials>;
611
- /**
612
- * Get connection credentials for a dedicated database. Returns the hostname, port, username, password, database name, and full connection string.
613
- *
614
- * @param {string} databaseId - Database ID.
615
- * @throws {AppwriteException}
616
- * @returns {Promise<Models.DedicatedDatabaseCredentials>}
617
- * @deprecated Use the object parameter style method for a better developer experience.
618
- */
619
- getDatabaseCredentials(databaseId: string): Promise<Models.DedicatedDatabaseCredentials>;
620
- /**
621
- * Rotate the primary credentials for a dedicated database. Generates a new password and updates the database. Previous credentials will stop working immediately.
622
- *
623
- * @param {string} params.databaseId - Database ID.
624
- * @throws {AppwriteException}
625
- * @returns {Promise<Models.DedicatedDatabaseCredentials>}
546
+ * @returns {Promise<Models.DedicatedDatabase>}
626
547
  */
627
- updateDatabaseCredentials(params: {
548
+ updateCredentials(params: {
628
549
  databaseId: string;
629
- }): Promise<Models.DedicatedDatabaseCredentials>;
550
+ }): Promise<Models.DedicatedDatabase>;
630
551
  /**
631
- * Rotate the primary credentials for a dedicated database. Generates a new password and updates the database. Previous credentials will stop working immediately.
552
+ * Rotate the primary connection credentials for a dedicated database. Generates a new password and updates the database atomically. Previous credentials stop working immediately. Returns the database with a refreshed connection string carrying the new password.
632
553
  *
633
554
  * @param {string} databaseId - Database ID.
634
555
  * @throws {AppwriteException}
635
- * @returns {Promise<Models.DedicatedDatabaseCredentials>}
556
+ * @returns {Promise<Models.DedicatedDatabase>}
636
557
  * @deprecated Use the object parameter style method for a better developer experience.
637
558
  */
638
- updateDatabaseCredentials(databaseId: string): Promise<Models.DedicatedDatabaseCredentials>;
559
+ updateCredentials(databaseId: string): Promise<Models.DedicatedDatabase>;
639
560
  /**
640
561
  * Execute SQL through the console-facing Cloud endpoint. Cloud proxies through the edge platform to the per-database SQL API sidecar. Application traffic should bypass cloud entirely and POST directly to the per-database hostname: `https://db-{project}-{db}.{region}.appwrite.center/v1/sql/executions` with an `X-Appwrite-Key` header — that path scales to the whole DB fleet without a per-query cloud round-trip. The statement type must be on the database's configured allow-list. Use bound parameters for any user-supplied values — the API does not interpolate raw strings.
641
562
  *
@@ -646,7 +567,7 @@ export declare class Compute {
646
567
  * @throws {AppwriteException}
647
568
  * @returns {Promise<Models.DedicatedDatabaseExecution>}
648
569
  */
649
- createDatabaseExecution(params: {
570
+ createExecution(params: {
650
571
  databaseId: string;
651
572
  sql: string;
652
573
  bindings?: object;
@@ -663,32 +584,7 @@ export declare class Compute {
663
584
  * @returns {Promise<Models.DedicatedDatabaseExecution>}
664
585
  * @deprecated Use the object parameter style method for a better developer experience.
665
586
  */
666
- createDatabaseExecution(databaseId: string, sql: string, bindings?: object, timeoutSeconds?: number): Promise<Models.DedicatedDatabaseExecution>;
667
- /**
668
- * Run EXPLAIN on a query against a dedicated database. Available for SQL-compatible engines. Returns the query execution plan including scan types, estimated cost, and resource usage. Optionally run EXPLAIN ANALYZE to get actual execution statistics.
669
- *
670
- * @param {string} params.databaseId - Database ID.
671
- * @param {string} params.query - Query to explain. Must be a valid query for the database engine.
672
- * @param {boolean} params.analyze - Run EXPLAIN ANALYZE to get actual execution statistics. This executes the query.
673
- * @throws {AppwriteException}
674
- * @returns {Promise<Models.DedicatedDatabaseQueryExplanation>}
675
- */
676
- createDatabaseQueryExplanation(params: {
677
- databaseId: string;
678
- query: string;
679
- analyze?: boolean;
680
- }): Promise<Models.DedicatedDatabaseQueryExplanation>;
681
- /**
682
- * Run EXPLAIN on a query against a dedicated database. Available for SQL-compatible engines. Returns the query execution plan including scan types, estimated cost, and resource usage. Optionally run EXPLAIN ANALYZE to get actual execution statistics.
683
- *
684
- * @param {string} databaseId - Database ID.
685
- * @param {string} query - Query to explain. Must be a valid query for the database engine.
686
- * @param {boolean} analyze - Run EXPLAIN ANALYZE to get actual execution statistics. This executes the query.
687
- * @throws {AppwriteException}
688
- * @returns {Promise<Models.DedicatedDatabaseQueryExplanation>}
689
- * @deprecated Use the object parameter style method for a better developer experience.
690
- */
691
- createDatabaseQueryExplanation(databaseId: string, query: string, analyze?: boolean): Promise<Models.DedicatedDatabaseQueryExplanation>;
587
+ createExecution(databaseId: string, sql: string, bindings?: object, timeoutSeconds?: number): Promise<Models.DedicatedDatabaseExecution>;
692
588
  /**
693
589
  * List installed and available extensions for a PostgreSQL database.
694
590
  *
@@ -696,7 +592,7 @@ export declare class Compute {
696
592
  * @throws {AppwriteException}
697
593
  * @returns {Promise<Models.DedicatedDatabaseExtensions>}
698
594
  */
699
- listDatabaseExtensions(params: {
595
+ listExtensions(params: {
700
596
  databaseId: string;
701
597
  }): Promise<Models.DedicatedDatabaseExtensions>;
702
598
  /**
@@ -707,7 +603,7 @@ export declare class Compute {
707
603
  * @returns {Promise<Models.DedicatedDatabaseExtensions>}
708
604
  * @deprecated Use the object parameter style method for a better developer experience.
709
605
  */
710
- listDatabaseExtensions(databaseId: string): Promise<Models.DedicatedDatabaseExtensions>;
606
+ listExtensions(databaseId: string): Promise<Models.DedicatedDatabaseExtensions>;
711
607
  /**
712
608
  * Install a database extension. Only available for PostgreSQL databases. The install runs asynchronously; poll the extensions list endpoint for status.
713
609
  *
@@ -716,7 +612,7 @@ export declare class Compute {
716
612
  * @throws {AppwriteException}
717
613
  * @returns {Promise<Models.DedicatedDatabase>}
718
614
  */
719
- createDatabaseExtension(params: {
615
+ createExtension(params: {
720
616
  databaseId: string;
721
617
  name: string;
722
618
  }): Promise<Models.DedicatedDatabase>;
@@ -729,7 +625,7 @@ export declare class Compute {
729
625
  * @returns {Promise<Models.DedicatedDatabase>}
730
626
  * @deprecated Use the object parameter style method for a better developer experience.
731
627
  */
732
- createDatabaseExtension(databaseId: string, name: string): Promise<Models.DedicatedDatabase>;
628
+ createExtension(databaseId: string, name: string): Promise<Models.DedicatedDatabase>;
733
629
  /**
734
630
  * Uninstall a database extension from a PostgreSQL database. The uninstall runs asynchronously; poll the extensions list endpoint for status.
735
631
  *
@@ -738,7 +634,7 @@ export declare class Compute {
738
634
  * @throws {AppwriteException}
739
635
  * @returns {Promise<Models.DedicatedDatabase>}
740
636
  */
741
- deleteDatabaseExtension(params: {
637
+ deleteExtension(params: {
742
638
  databaseId: string;
743
639
  extensionName: string;
744
640
  }): Promise<Models.DedicatedDatabase>;
@@ -751,26 +647,7 @@ export declare class Compute {
751
647
  * @returns {Promise<Models.DedicatedDatabase>}
752
648
  * @deprecated Use the object parameter style method for a better developer experience.
753
649
  */
754
- deleteDatabaseExtension(databaseId: string, extensionName: string): Promise<Models.DedicatedDatabase>;
755
- /**
756
- * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
757
- *
758
- * @param {string} params.databaseId - Database ID.
759
- * @throws {AppwriteException}
760
- * @returns {Promise<Models.DedicatedDatabaseHAStatus>}
761
- */
762
- getDatabaseHAStatus(params: {
763
- databaseId: string;
764
- }): Promise<Models.DedicatedDatabaseHAStatus>;
765
- /**
766
- * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
767
- *
768
- * @param {string} databaseId - Database ID.
769
- * @throws {AppwriteException}
770
- * @returns {Promise<Models.DedicatedDatabaseHAStatus>}
771
- * @deprecated Use the object parameter style method for a better developer experience.
772
- */
773
- getDatabaseHAStatus(databaseId: string): Promise<Models.DedicatedDatabaseHAStatus>;
650
+ deleteExtension(databaseId: string, extensionName: string): Promise<Models.DedicatedDatabase>;
774
651
  /**
775
652
  * Trigger a manual failover for a dedicated database with high availability enabled. Promotes a replica to primary. The failover runs asynchronously; poll the database document for status updates.
776
653
  *
@@ -779,7 +656,7 @@ export declare class Compute {
779
656
  * @throws {AppwriteException}
780
657
  * @returns {Promise<Models.DedicatedDatabase>}
781
658
  */
782
- createDatabaseFailover(params: {
659
+ createFailover(params: {
783
660
  databaseId: string;
784
661
  targetReplicaId?: string;
785
662
  }): Promise<Models.DedicatedDatabase>;
@@ -792,7 +669,7 @@ export declare class Compute {
792
669
  * @returns {Promise<Models.DedicatedDatabase>}
793
670
  * @deprecated Use the object parameter style method for a better developer experience.
794
671
  */
795
- createDatabaseFailover(databaseId: string, targetReplicaId?: string): Promise<Models.DedicatedDatabase>;
672
+ createFailover(databaseId: string, targetReplicaId?: string): Promise<Models.DedicatedDatabase>;
796
673
  /**
797
674
  * Update the maintenance window for a dedicated database. Maintenance operations like minor version upgrades will be performed during this window.
798
675
  *
@@ -802,7 +679,7 @@ export declare class Compute {
802
679
  * @throws {AppwriteException}
803
680
  * @returns {Promise<Models.DedicatedDatabase>}
804
681
  */
805
- updateDatabaseMaintenanceWindow(params: {
682
+ updateMaintenance(params: {
806
683
  databaseId: string;
807
684
  day: string;
808
685
  hourUtc: number;
@@ -817,17 +694,17 @@ export declare class Compute {
817
694
  * @returns {Promise<Models.DedicatedDatabase>}
818
695
  * @deprecated Use the object parameter style method for a better developer experience.
819
696
  */
820
- updateDatabaseMaintenanceWindow(databaseId: string, day: string, hourUtc: number): Promise<Models.DedicatedDatabase>;
697
+ updateMaintenance(databaseId: string, day: string, hourUtc: number): Promise<Models.DedicatedDatabase>;
821
698
  /**
822
699
  * Migrate a database between shared and dedicated types. Shared to dedicated provisions an always-on dedicated instance; dedicated to shared converts to a serverless instance that scales to zero when idle. Data is copied to the target with a brief read-only window during cutover.
823
700
  *
824
701
  * @param {string} params.databaseId - Database ID.
825
702
  * @param {string} params.targetType - Target database type to migrate to. Allowed values: shared (serverless, scales to zero when idle), dedicated (always-on with persistent resources).
826
- * @param {string} params.specification - Target compute specification to provision when migrating to dedicated. Ignored for shared. Defaults to the database's current specification.
703
+ * @param {string} params.specification - Target specification to provision when migrating to dedicated. Ignored for shared. Defaults to the database's current specification.
827
704
  * @throws {AppwriteException}
828
705
  * @returns {Promise<Models.DedicatedDatabase>}
829
706
  */
830
- createDatabaseMigration(params: {
707
+ createMigration(params: {
831
708
  databaseId: string;
832
709
  targetType: string;
833
710
  specification?: string;
@@ -837,12 +714,12 @@ export declare class Compute {
837
714
  *
838
715
  * @param {string} databaseId - Database ID.
839
716
  * @param {string} targetType - Target database type to migrate to. Allowed values: shared (serverless, scales to zero when idle), dedicated (always-on with persistent resources).
840
- * @param {string} specification - Target compute specification to provision when migrating to dedicated. Ignored for shared. Defaults to the database's current specification.
717
+ * @param {string} specification - Target specification to provision when migrating to dedicated. Ignored for shared. Defaults to the database's current specification.
841
718
  * @throws {AppwriteException}
842
719
  * @returns {Promise<Models.DedicatedDatabase>}
843
720
  * @deprecated Use the object parameter style method for a better developer experience.
844
721
  */
845
- createDatabaseMigration(databaseId: string, targetType: string, specification?: string): Promise<Models.DedicatedDatabase>;
722
+ createMigration(databaseId: string, targetType: string, specification?: string): Promise<Models.DedicatedDatabase>;
846
723
  /**
847
724
  * Get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.
848
725
  *
@@ -850,7 +727,7 @@ export declare class Compute {
850
727
  * @throws {AppwriteException}
851
728
  * @returns {Promise<Models.DedicatedDatabasePITRWindows>}
852
729
  */
853
- getDatabasePITRWindows(params: {
730
+ getPitr(params: {
854
731
  databaseId: string;
855
732
  }): Promise<Models.DedicatedDatabasePITRWindows>;
856
733
  /**
@@ -861,7 +738,7 @@ export declare class Compute {
861
738
  * @returns {Promise<Models.DedicatedDatabasePITRWindows>}
862
739
  * @deprecated Use the object parameter style method for a better developer experience.
863
740
  */
864
- getDatabasePITRWindows(databaseId: string): Promise<Models.DedicatedDatabasePITRWindows>;
741
+ getPitr(databaseId: string): Promise<Models.DedicatedDatabasePITRWindows>;
865
742
  /**
866
743
  * Get the connection pooler configuration for a dedicated database. Returns pooler mode, max connections, and pool size settings.
867
744
  *
@@ -869,7 +746,7 @@ export declare class Compute {
869
746
  * @throws {AppwriteException}
870
747
  * @returns {Promise<Models.DedicatedDatabasePooler>}
871
748
  */
872
- getDatabasePooler(params: {
749
+ getPooler(params: {
873
750
  databaseId: string;
874
751
  }): Promise<Models.DedicatedDatabasePooler>;
875
752
  /**
@@ -880,7 +757,7 @@ export declare class Compute {
880
757
  * @returns {Promise<Models.DedicatedDatabasePooler>}
881
758
  * @deprecated Use the object parameter style method for a better developer experience.
882
759
  */
883
- getDatabasePooler(databaseId: string): Promise<Models.DedicatedDatabasePooler>;
760
+ getPooler(databaseId: string): Promise<Models.DedicatedDatabasePooler>;
884
761
  /**
885
762
  * Update the connection pooler configuration for a dedicated database. Configure pool mode, max connections, and pool sizes.
886
763
  *
@@ -896,7 +773,7 @@ export declare class Compute {
896
773
  * @throws {AppwriteException}
897
774
  * @returns {Promise<Models.DedicatedDatabasePooler>}
898
775
  */
899
- updateDatabasePooler(params: {
776
+ updatePooler(params: {
900
777
  databaseId: string;
901
778
  mode?: string;
902
779
  maxConnections?: number;
@@ -923,7 +800,26 @@ export declare class Compute {
923
800
  * @returns {Promise<Models.DedicatedDatabasePooler>}
924
801
  * @deprecated Use the object parameter style method for a better developer experience.
925
802
  */
926
- updateDatabasePooler(databaseId: string, mode?: string, maxConnections?: number, defaultPoolSize?: number, readWriteSplitting?: boolean, poolerCpuRequest?: string, poolerCpuLimit?: string, poolerMemoryRequest?: string, poolerMemoryLimit?: string): Promise<Models.DedicatedDatabasePooler>;
803
+ updatePooler(databaseId: string, mode?: string, maxConnections?: number, defaultPoolSize?: number, readWriteSplitting?: boolean, poolerCpuRequest?: string, poolerCpuLimit?: string, poolerMemoryRequest?: string, poolerMemoryLimit?: string): Promise<Models.DedicatedDatabasePooler>;
804
+ /**
805
+ * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
806
+ *
807
+ * @param {string} params.databaseId - Database ID.
808
+ * @throws {AppwriteException}
809
+ * @returns {Promise<Models.DedicatedDatabaseReplicas>}
810
+ */
811
+ getReplicas(params: {
812
+ databaseId: string;
813
+ }): Promise<Models.DedicatedDatabaseReplicas>;
814
+ /**
815
+ * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
816
+ *
817
+ * @param {string} databaseId - Database ID.
818
+ * @throws {AppwriteException}
819
+ * @returns {Promise<Models.DedicatedDatabaseReplicas>}
820
+ * @deprecated Use the object parameter style method for a better developer experience.
821
+ */
822
+ getReplicas(databaseId: string): Promise<Models.DedicatedDatabaseReplicas>;
927
823
  /**
928
824
  * List all restorations for a dedicated database. Results can be filtered by status and type.
929
825
  *
@@ -935,7 +831,7 @@ export declare class Compute {
935
831
  * @throws {AppwriteException}
936
832
  * @returns {Promise<Models.DedicatedDatabaseRestorationList>}
937
833
  */
938
- listDatabaseRestorations(params: {
834
+ listRestorations(params: {
939
835
  databaseId: string;
940
836
  status?: string;
941
837
  type?: string;
@@ -954,35 +850,35 @@ export declare class Compute {
954
850
  * @returns {Promise<Models.DedicatedDatabaseRestorationList>}
955
851
  * @deprecated Use the object parameter style method for a better developer experience.
956
852
  */
957
- listDatabaseRestorations(databaseId: string, status?: string, type?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseRestorationList>;
853
+ listRestorations(databaseId: string, status?: string, type?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseRestorationList>;
958
854
  /**
959
- * Restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime. PITR requires the database to have PITR enabled and is only available for enterprise databases.
855
+ * Restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime as an ISO 8601 datetime. PITR requires the database to have PITR enabled and is only available for enterprise databases.
960
856
  *
961
857
  * @param {string} params.databaseId - Database ID.
962
858
  * @param {string} params.type - Restoration type. Allowed values: backup, pitr. Use "backup" to restore from a specific backup, or "pitr" for point-in-time recovery.
963
859
  * @param {string} params.backupId - Backup ID to restore from (required for backup type).
964
- * @param {number} params.targetTime - Target time for PITR as Unix timestamp (required for pitr type).
860
+ * @param {string} params.targetTime - Target time for PITR (required for pitr type) as an [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) datetime.
965
861
  * @throws {AppwriteException}
966
862
  * @returns {Promise<Models.DedicatedDatabaseRestoration>}
967
863
  */
968
- createDatabaseRestoration(params: {
864
+ createRestoration(params: {
969
865
  databaseId: string;
970
866
  type?: string;
971
867
  backupId?: string;
972
- targetTime?: number;
868
+ targetTime?: string;
973
869
  }): Promise<Models.DedicatedDatabaseRestoration>;
974
870
  /**
975
- * Restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime. PITR requires the database to have PITR enabled and is only available for enterprise databases.
871
+ * Restore a database from a backup or to a specific point in time (PITR). For backup restoration, provide a backupId. For PITR, provide a targetTime as an ISO 8601 datetime. PITR requires the database to have PITR enabled and is only available for enterprise databases.
976
872
  *
977
873
  * @param {string} databaseId - Database ID.
978
874
  * @param {string} type - Restoration type. Allowed values: backup, pitr. Use "backup" to restore from a specific backup, or "pitr" for point-in-time recovery.
979
875
  * @param {string} backupId - Backup ID to restore from (required for backup type).
980
- * @param {number} targetTime - Target time for PITR as Unix timestamp (required for pitr type).
876
+ * @param {string} targetTime - Target time for PITR (required for pitr type) as an [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) datetime.
981
877
  * @throws {AppwriteException}
982
878
  * @returns {Promise<Models.DedicatedDatabaseRestoration>}
983
879
  * @deprecated Use the object parameter style method for a better developer experience.
984
880
  */
985
- createDatabaseRestoration(databaseId: string, type?: string, backupId?: string, targetTime?: number): Promise<Models.DedicatedDatabaseRestoration>;
881
+ createRestoration(databaseId: string, type?: string, backupId?: string, targetTime?: string): Promise<Models.DedicatedDatabaseRestoration>;
986
882
  /**
987
883
  * Get details of a specific database restoration including its status, type, and timestamps.
988
884
  *
@@ -991,7 +887,7 @@ export declare class Compute {
991
887
  * @throws {AppwriteException}
992
888
  * @returns {Promise<Models.DedicatedDatabaseRestoration>}
993
889
  */
994
- getDatabaseRestoration(params: {
890
+ getRestoration(params: {
995
891
  databaseId: string;
996
892
  restorationId: string;
997
893
  }): Promise<Models.DedicatedDatabaseRestoration>;
@@ -1004,32 +900,7 @@ export declare class Compute {
1004
900
  * @returns {Promise<Models.DedicatedDatabaseRestoration>}
1005
901
  * @deprecated Use the object parameter style method for a better developer experience.
1006
902
  */
1007
- getDatabaseRestoration(databaseId: string, restorationId: string): Promise<Models.DedicatedDatabaseRestoration>;
1008
- /**
1009
- * List slow queries for a dedicated database. Returns queries that exceeded the specified threshold.
1010
- *
1011
- * @param {string} params.databaseId - Database ID.
1012
- * @param {number} params.limit - Maximum number of queries to return.
1013
- * @param {number} params.thresholdMs - Minimum query duration in milliseconds.
1014
- * @throws {AppwriteException}
1015
- * @returns {Promise<Models.DedicatedDatabaseSlowQueryList>}
1016
- */
1017
- listDatabaseQueries(params: {
1018
- databaseId: string;
1019
- limit?: number;
1020
- thresholdMs?: number;
1021
- }): Promise<Models.DedicatedDatabaseSlowQueryList>;
1022
- /**
1023
- * List slow queries for a dedicated database. Returns queries that exceeded the specified threshold.
1024
- *
1025
- * @param {string} databaseId - Database ID.
1026
- * @param {number} limit - Maximum number of queries to return.
1027
- * @param {number} thresholdMs - Minimum query duration in milliseconds.
1028
- * @throws {AppwriteException}
1029
- * @returns {Promise<Models.DedicatedDatabaseSlowQueryList>}
1030
- * @deprecated Use the object parameter style method for a better developer experience.
1031
- */
1032
- listDatabaseQueries(databaseId: string, limit?: number, thresholdMs?: number): Promise<Models.DedicatedDatabaseSlowQueryList>;
903
+ getRestoration(databaseId: string, restorationId: string): Promise<Models.DedicatedDatabaseRestoration>;
1033
904
  /**
1034
905
  * Get real-time health and status information for a dedicated database. Returns health status, readiness, uptime, connection info, replica status, and volume information.
1035
906
  *
@@ -1037,7 +908,7 @@ export declare class Compute {
1037
908
  * @throws {AppwriteException}
1038
909
  * @returns {Promise<Models.DatabaseStatus>}
1039
910
  */
1040
- getDatabaseStatus(params: {
911
+ getStatus(params: {
1041
912
  databaseId: string;
1042
913
  }): Promise<Models.DatabaseStatus>;
1043
914
  /**
@@ -1048,7 +919,7 @@ export declare class Compute {
1048
919
  * @returns {Promise<Models.DatabaseStatus>}
1049
920
  * @deprecated Use the object parameter style method for a better developer experience.
1050
921
  */
1051
- getDatabaseStatus(databaseId: string): Promise<Models.DatabaseStatus>;
922
+ getStatus(databaseId: string): Promise<Models.DatabaseStatus>;
1052
923
  /**
1053
924
  * Upgrade a dedicated database to a new engine version. Uses blue-green deployment for zero-downtime cutover.
1054
925
  *
@@ -1057,7 +928,7 @@ export declare class Compute {
1057
928
  * @throws {AppwriteException}
1058
929
  * @returns {Promise<Models.DedicatedDatabase>}
1059
930
  */
1060
- createDatabaseUpgrade(params: {
931
+ createUpgrade(params: {
1061
932
  databaseId: string;
1062
933
  targetVersion: string;
1063
934
  }): Promise<Models.DedicatedDatabase>;
@@ -1070,5 +941,5 @@ export declare class Compute {
1070
941
  * @returns {Promise<Models.DedicatedDatabase>}
1071
942
  * @deprecated Use the object parameter style method for a better developer experience.
1072
943
  */
1073
- createDatabaseUpgrade(databaseId: string, targetVersion: string): Promise<Models.DedicatedDatabase>;
944
+ createUpgrade(databaseId: string, targetVersion: string): Promise<Models.DedicatedDatabase>;
1074
945
  }