@appwrite.io/console 13.2.0 → 15.0.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.
@@ -31,9 +31,21 @@ export declare class Apps {
31
31
  * @param {string} params.appId - Application 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.
32
32
  * @param {string} params.name - Application name.
33
33
  * @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
34
+ * @param {string} params.description - Application description shown to users during OAuth2 consent.
35
+ * @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent.
36
+ * @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent.
37
+ * @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
38
+ * @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent.
39
+ * @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
40
+ * @param {string} params.tagline - Application tagline shown to users during OAuth2 consent.
41
+ * @param {string[]} params.tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long.
42
+ * @param {string[]} params.images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed.
43
+ * @param {string} params.supportUrl - Application support URL shown to users during OAuth2 consent.
44
+ * @param {string} params.dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent.
45
+ * @param {string[]} params.postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout (array of valid URLs). After ending the user session, the logout endpoint only redirects to URIs in this list.
34
46
  * @param {boolean} params.enabled - Is application enabled?
35
- * @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
36
47
  * @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
48
+ * @param {boolean} params.deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
37
49
  * @param {string} params.teamId - Team unique ID.
38
50
  * @throws {AppwriteException}
39
51
  * @returns {Promise<Models.App>}
@@ -42,9 +54,21 @@ export declare class Apps {
42
54
  appId: string;
43
55
  name: string;
44
56
  redirectUris: string[];
57
+ description?: string;
58
+ clientUri?: string;
59
+ logoUri?: string;
60
+ privacyPolicyUrl?: string;
61
+ termsUrl?: string;
62
+ contacts?: string[];
63
+ tagline?: string;
64
+ tags?: string[];
65
+ images?: string[];
66
+ supportUrl?: string;
67
+ dataDeletionUrl?: string;
68
+ postLogoutRedirectUris?: string[];
45
69
  enabled?: boolean;
46
- internal?: boolean;
47
70
  type?: string;
71
+ deviceFlow?: boolean;
48
72
  teamId?: string;
49
73
  }): Promise<Models.App>;
50
74
  /**
@@ -53,15 +77,27 @@ export declare class Apps {
53
77
  * @param {string} appId - Application 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.
54
78
  * @param {string} name - Application name.
55
79
  * @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
80
+ * @param {string} description - Application description shown to users during OAuth2 consent.
81
+ * @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent.
82
+ * @param {string} logoUri - Application logo URL shown to users during OAuth2 consent.
83
+ * @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
84
+ * @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent.
85
+ * @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
86
+ * @param {string} tagline - Application tagline shown to users during OAuth2 consent.
87
+ * @param {string[]} tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long.
88
+ * @param {string[]} images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed.
89
+ * @param {string} supportUrl - Application support URL shown to users during OAuth2 consent.
90
+ * @param {string} dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent.
91
+ * @param {string[]} postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout (array of valid URLs). After ending the user session, the logout endpoint only redirects to URIs in this list.
56
92
  * @param {boolean} enabled - Is application enabled?
57
- * @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
58
93
  * @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
94
+ * @param {boolean} deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
59
95
  * @param {string} teamId - Team unique ID.
60
96
  * @throws {AppwriteException}
61
97
  * @returns {Promise<Models.App>}
62
98
  * @deprecated Use the object parameter style method for a better developer experience.
63
99
  */
64
- create(appId: string, name: string, redirectUris: string[], enabled?: boolean, internal?: boolean, type?: string, teamId?: string): Promise<Models.App>;
100
+ create(appId: string, name: string, redirectUris: string[], description?: string, clientUri?: string, logoUri?: string, privacyPolicyUrl?: string, termsUrl?: string, contacts?: string[], tagline?: string, tags?: string[], images?: string[], supportUrl?: string, dataDeletionUrl?: string, postLogoutRedirectUris?: string[], enabled?: boolean, type?: string, deviceFlow?: boolean, teamId?: string): Promise<Models.App>;
65
101
  /**
66
102
  * Get an application by its unique ID.
67
103
  *
@@ -86,35 +122,71 @@ export declare class Apps {
86
122
  *
87
123
  * @param {string} params.appId - Application unique ID.
88
124
  * @param {string} params.name - Application name.
125
+ * @param {string} params.description - Application description shown to users during OAuth2 consent.
126
+ * @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent.
127
+ * @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent.
128
+ * @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
129
+ * @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent.
130
+ * @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
131
+ * @param {string} params.tagline - Application tagline shown to users during OAuth2 consent.
132
+ * @param {string[]} params.tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long.
133
+ * @param {string[]} params.images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed.
134
+ * @param {string} params.supportUrl - Application support URL shown to users during OAuth2 consent.
135
+ * @param {string} params.dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent.
89
136
  * @param {boolean} params.enabled - Is application enabled?
90
- * @param {boolean} params.internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
91
137
  * @param {string[]} params.redirectUris - Redirect URIs (array of valid URLs).
138
+ * @param {string[]} params.postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout (array of valid URLs). After ending the user session, the logout endpoint only redirects to URIs in this list.
92
139
  * @param {string} params.type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
140
+ * @param {boolean} params.deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
93
141
  * @throws {AppwriteException}
94
142
  * @returns {Promise<Models.App>}
95
143
  */
96
144
  update(params: {
97
145
  appId: string;
98
146
  name: string;
147
+ description?: string;
148
+ clientUri?: string;
149
+ logoUri?: string;
150
+ privacyPolicyUrl?: string;
151
+ termsUrl?: string;
152
+ contacts?: string[];
153
+ tagline?: string;
154
+ tags?: string[];
155
+ images?: string[];
156
+ supportUrl?: string;
157
+ dataDeletionUrl?: string;
99
158
  enabled?: boolean;
100
- internal?: boolean;
101
159
  redirectUris?: string[];
160
+ postLogoutRedirectUris?: string[];
102
161
  type?: string;
162
+ deviceFlow?: boolean;
103
163
  }): Promise<Models.App>;
104
164
  /**
105
165
  * Update an application by its unique ID.
106
166
  *
107
167
  * @param {string} appId - Application unique ID.
108
168
  * @param {string} name - Application name.
169
+ * @param {string} description - Application description shown to users during OAuth2 consent.
170
+ * @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent.
171
+ * @param {string} logoUri - Application logo URL shown to users during OAuth2 consent.
172
+ * @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent.
173
+ * @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent.
174
+ * @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed.
175
+ * @param {string} tagline - Application tagline shown to users during OAuth2 consent.
176
+ * @param {string[]} tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long.
177
+ * @param {string[]} images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed.
178
+ * @param {string} supportUrl - Application support URL shown to users during OAuth2 consent.
179
+ * @param {string} dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent.
109
180
  * @param {boolean} enabled - Is application enabled?
110
- * @param {boolean} internal - When true, the application is restricted to the owner user or members of the configured team. Defaults to false (any user in the project can authorize).
111
181
  * @param {string[]} redirectUris - Redirect URIs (array of valid URLs).
182
+ * @param {string[]} postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout (array of valid URLs). After ending the user session, the logout endpoint only redirects to URIs in this list.
112
183
  * @param {string} type - OAuth2 client type. Use `public` for SPAs, mobile, and native apps that cannot keep a `client_secret` — PKCE is then required at the token endpoint. Use `confidential` for server-side clients that present a `client_secret`. Defaults to `confidential`.
184
+ * @param {boolean} deviceFlow - Allow this client to use the OAuth2 Device Authorization Grant (RFC 8628) for input-constrained devices such as TVs and CLIs. Defaults to false.
113
185
  * @throws {AppwriteException}
114
186
  * @returns {Promise<Models.App>}
115
187
  * @deprecated Use the object parameter style method for a better developer experience.
116
188
  */
117
- update(appId: string, name: string, enabled?: boolean, internal?: boolean, redirectUris?: string[], type?: string): Promise<Models.App>;
189
+ update(appId: string, name: string, description?: string, clientUri?: string, logoUri?: string, privacyPolicyUrl?: string, termsUrl?: string, contacts?: string[], tagline?: string, tags?: string[], images?: string[], supportUrl?: string, dataDeletionUrl?: string, enabled?: boolean, redirectUris?: string[], postLogoutRedirectUris?: string[], type?: string, deviceFlow?: boolean): Promise<Models.App>;
118
190
  /**
119
191
  * Delete an application by its unique ID.
120
192
  *
@@ -30,17 +30,14 @@ export declare class Compute {
30
30
  * @param {string} params.database - Physical database/catalog name. Defaults to databaseId.
31
31
  * @param {string} params.engine - Database engine: postgres, mysql, mariadb, or mongodb.
32
32
  * @param {string} params.version - Database engine version. Defaults to latest for selected engine.
33
- * @param {string} params.region - Region identifier. Use one of the enabled region codes (e.g., fra, nyc, syd).
34
- * @param {string} params.type - Database type: shared (serverless) or dedicated (always-on).
35
33
  * @param {string} params.specification - Specification identifier.
36
34
  * @param {string} params.backend - Database backend provider: prisma, or edge.
37
35
  * @param {number} params.cpu - CPU in millicores (125-16000).
38
36
  * @param {number} params.memory - Memory in MB to allocate (128-65536).
39
37
  * @param {number} params.storage - Storage in GB to allocate (1-16384).
40
- * @param {string} params.storageClass - Storage class: ssd, nvme, or hdd.
38
+ * @param {string} params.storageClass - Storage class. Allowed values: ssd. DigitalOcean exposes a single block-storage class, so only 'ssd' is offered today.
41
39
  * @param {number} params.storageMaxGb - Maximum storage limit in GB. 0 uses system default.
42
- * @param {boolean} params.highAvailability - Enable high availability.
43
- * @param {number} params.highAvailabilityReplicaCount - Number of high availability replicas (0-5).
40
+ * @param {number} params.replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
44
41
  * @param {string} params.highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
45
42
  * @param {number} params.networkMaxConnections - Maximum concurrent connections.
46
43
  * @param {number} params.networkIdleTimeoutSeconds - Connection idle timeout in seconds.
@@ -54,8 +51,9 @@ export declare class Compute {
54
51
  * @param {boolean} params.storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
55
52
  * @param {number} params.storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
56
53
  * @param {number} params.storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
57
- * @param {boolean} params.metricsEnabled - Enable metrics collection.
54
+ * @param {boolean} params.metricsEnabled - Enable metrics collection. Enabled by default; pass false to opt out.
58
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.
59
57
  * @throws {AppwriteException}
60
58
  * @returns {Promise<Models.DedicatedDatabase>}
61
59
  */
@@ -65,8 +63,6 @@ export declare class Compute {
65
63
  database?: string;
66
64
  engine?: string;
67
65
  version?: string;
68
- region?: string;
69
- type?: string;
70
66
  specification?: string;
71
67
  backend?: string;
72
68
  cpu?: number;
@@ -74,8 +70,7 @@ export declare class Compute {
74
70
  storage?: number;
75
71
  storageClass?: string;
76
72
  storageMaxGb?: number;
77
- highAvailability?: boolean;
78
- highAvailabilityReplicaCount?: number;
73
+ replicas?: number;
79
74
  highAvailabilitySyncMode?: string;
80
75
  networkMaxConnections?: number;
81
76
  networkIdleTimeoutSeconds?: number;
@@ -91,6 +86,7 @@ export declare class Compute {
91
86
  storageAutoscalingMaxGb?: number;
92
87
  metricsEnabled?: boolean;
93
88
  poolerEnabled?: boolean;
89
+ api?: string;
94
90
  }): Promise<Models.DedicatedDatabase>;
95
91
  /**
96
92
  * Create a new dedicated database with the chosen engine and configuration. Status will be 'provisioning' until the database is ready.
@@ -100,17 +96,14 @@ export declare class Compute {
100
96
  * @param {string} database - Physical database/catalog name. Defaults to databaseId.
101
97
  * @param {string} engine - Database engine: postgres, mysql, mariadb, or mongodb.
102
98
  * @param {string} version - Database engine version. Defaults to latest for selected engine.
103
- * @param {string} region - Region identifier. Use one of the enabled region codes (e.g., fra, nyc, syd).
104
- * @param {string} type - Database type: shared (serverless) or dedicated (always-on).
105
99
  * @param {string} specification - Specification identifier.
106
100
  * @param {string} backend - Database backend provider: prisma, or edge.
107
101
  * @param {number} cpu - CPU in millicores (125-16000).
108
102
  * @param {number} memory - Memory in MB to allocate (128-65536).
109
103
  * @param {number} storage - Storage in GB to allocate (1-16384).
110
- * @param {string} storageClass - Storage class: ssd, nvme, or hdd.
104
+ * @param {string} storageClass - Storage class. Allowed values: ssd. DigitalOcean exposes a single block-storage class, so only 'ssd' is offered today.
111
105
  * @param {number} storageMaxGb - Maximum storage limit in GB. 0 uses system default.
112
- * @param {boolean} highAvailability - Enable high availability.
113
- * @param {number} highAvailabilityReplicaCount - Number of high availability replicas (0-5).
106
+ * @param {number} replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
114
107
  * @param {string} highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
115
108
  * @param {number} networkMaxConnections - Maximum concurrent connections.
116
109
  * @param {number} networkIdleTimeoutSeconds - Connection idle timeout in seconds.
@@ -124,13 +117,14 @@ export declare class Compute {
124
117
  * @param {boolean} storageAutoscaling - Enable automatic storage expansion when usage exceeds threshold.
125
118
  * @param {number} storageAutoscalingThresholdPercent - Storage usage percentage (50-95) that triggers automatic expansion.
126
119
  * @param {number} storageAutoscalingMaxGb - Maximum storage size in GB for autoscaling. 0 means no limit.
127
- * @param {boolean} metricsEnabled - Enable metrics collection.
120
+ * @param {boolean} metricsEnabled - Enable metrics collection. Enabled by default; pass false to opt out.
128
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.
129
123
  * @throws {AppwriteException}
130
124
  * @returns {Promise<Models.DedicatedDatabase>}
131
125
  * @deprecated Use the object parameter style method for a better developer experience.
132
126
  */
133
- createDatabase(databaseId: string, name: string, database?: string, engine?: string, version?: string, region?: string, type?: string, specification?: string, backend?: string, cpu?: number, memory?: number, storage?: number, storageClass?: string, storageMaxGb?: number, highAvailability?: boolean, highAvailabilityReplicaCount?: 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): Promise<Models.DedicatedDatabase>;
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>;
134
128
  /**
135
129
  * 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.
136
130
  *
@@ -162,14 +156,13 @@ export declare class Compute {
162
156
  *
163
157
  * @param {string} params.databaseId - Database ID.
164
158
  * @param {string} params.name - Database display name.
165
- * @param {string} params.status - Database status. Allowed values: ready, paused, inactive. Set to "paused" to pause, "ready" to resume, or "inactive" to spin down a shared database.
166
- * @param {string} params.specification - Specification. Changes cpu, memory, and type based on specification config.
159
+ * @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.
167
161
  * @param {number} params.cpu - CPU cores to allocate (125-16000).
168
162
  * @param {number} params.memory - Memory in MB to allocate (128-65536).
169
163
  * @param {number} params.storage - Storage in GB to allocate (1-16384).
170
- * @param {string} params.storageClass - Storage class. Allowed values: ssd, nvme, hdd.
171
- * @param {boolean} params.highAvailability - Enable high availability.
172
- * @param {number} params.highAvailabilityReplicaCount - Number of high availability replicas (0-5).
164
+ * @param {string} params.storageClass - Storage class. Allowed values: ssd.
165
+ * @param {number} params.replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
173
166
  * @param {string} params.highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
174
167
  * @param {number} params.networkMaxConnections - Maximum concurrent connections.
175
168
  * @param {number} params.networkIdleTimeoutSeconds - Connection idle timeout in seconds (60-86400).
@@ -188,7 +181,7 @@ export declare class Compute {
188
181
  * @param {number} params.metricsTraceSampleRate - Fraction of queries to trace (0.0–1.0). Forwarded to the sidecar.
189
182
  * @param {number} params.metricsSlowQueryLogThresholdMs - Threshold in ms above which queries are logged as slow. Forwarded to the sidecar.
190
183
  * @param {boolean} params.sqlApiEnabled - Enable the SQL API sidecar for this database.
191
- * @param {string[]} params.sqlApiAllowedStatements - Statement types the SQL API accepts. Allowed values: SELECT, INSERT, UPDATE, DELETE.
184
+ * @param {string[]} params.sqlApiAllowedStatements - Statement types the SQL API accepts. Allowed values: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TRUNCATE, GRANT, REVOKE.
192
185
  * @param {number} params.sqlApiMaxRows - Maximum rows returned per SQL API execution (1-1000000).
193
186
  * @param {number} params.sqlApiMaxBytes - Maximum serialised SQL API result payload in bytes (1024-104857600).
194
187
  * @param {number} params.sqlApiTimeoutSeconds - Per-call SQL API execution timeout in seconds (1-300).
@@ -204,8 +197,7 @@ export declare class Compute {
204
197
  memory?: number;
205
198
  storage?: number;
206
199
  storageClass?: string;
207
- highAvailability?: boolean;
208
- highAvailabilityReplicaCount?: number;
200
+ replicas?: number;
209
201
  highAvailabilitySyncMode?: string;
210
202
  networkMaxConnections?: number;
211
203
  networkIdleTimeoutSeconds?: number;
@@ -234,14 +226,13 @@ export declare class Compute {
234
226
  *
235
227
  * @param {string} databaseId - Database ID.
236
228
  * @param {string} name - Database display name.
237
- * @param {string} status - Database status. Allowed values: ready, paused, inactive. Set to "paused" to pause, "ready" to resume, or "inactive" to spin down a shared database.
238
- * @param {string} specification - Specification. Changes cpu, memory, and type based on specification config.
229
+ * @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.
239
231
  * @param {number} cpu - CPU cores to allocate (125-16000).
240
232
  * @param {number} memory - Memory in MB to allocate (128-65536).
241
233
  * @param {number} storage - Storage in GB to allocate (1-16384).
242
- * @param {string} storageClass - Storage class. Allowed values: ssd, nvme, hdd.
243
- * @param {boolean} highAvailability - Enable high availability.
244
- * @param {number} highAvailabilityReplicaCount - Number of high availability replicas (0-5).
234
+ * @param {string} storageClass - Storage class. Allowed values: ssd.
235
+ * @param {number} replicas - Number of high availability replicas (0-5). High availability is enabled when greater than 0.
245
236
  * @param {string} highAvailabilitySyncMode - Replication sync mode preference. Allowed values: async, sync, quorum.
246
237
  * @param {number} networkMaxConnections - Maximum concurrent connections.
247
238
  * @param {number} networkIdleTimeoutSeconds - Connection idle timeout in seconds (60-86400).
@@ -260,7 +251,7 @@ export declare class Compute {
260
251
  * @param {number} metricsTraceSampleRate - Fraction of queries to trace (0.0–1.0). Forwarded to the sidecar.
261
252
  * @param {number} metricsSlowQueryLogThresholdMs - Threshold in ms above which queries are logged as slow. Forwarded to the sidecar.
262
253
  * @param {boolean} sqlApiEnabled - Enable the SQL API sidecar for this database.
263
- * @param {string[]} sqlApiAllowedStatements - Statement types the SQL API accepts. Allowed values: SELECT, INSERT, UPDATE, DELETE.
254
+ * @param {string[]} sqlApiAllowedStatements - Statement types the SQL API accepts. Allowed values: SELECT, INSERT, UPDATE, DELETE, CREATE, ALTER, DROP, TRUNCATE, GRANT, REVOKE.
264
255
  * @param {number} sqlApiMaxRows - Maximum rows returned per SQL API execution (1-1000000).
265
256
  * @param {number} sqlApiMaxBytes - Maximum serialised SQL API result payload in bytes (1024-104857600).
266
257
  * @param {number} sqlApiTimeoutSeconds - Per-call SQL API execution timeout in seconds (1-300).
@@ -268,9 +259,9 @@ export declare class Compute {
268
259
  * @returns {Promise<Models.DedicatedDatabase>}
269
260
  * @deprecated Use the object parameter style method for a better developer experience.
270
261
  */
271
- updateDatabase(databaseId: string, name?: string, status?: string, specification?: string, cpu?: number, memory?: number, storage?: number, storageClass?: string, highAvailability?: boolean, highAvailabilityReplicaCount?: 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>;
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>;
272
263
  /**
273
- * Delete a dedicated database. This action is irreversible. The database status will be set to 'deleting' and all resources will be cleaned up.
264
+ * 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.
274
265
  *
275
266
  * @param {string} params.databaseId - Database ID.
276
267
  * @throws {AppwriteException}
@@ -280,7 +271,7 @@ export declare class Compute {
280
271
  databaseId: string;
281
272
  }): Promise<{}>;
282
273
  /**
283
- * Delete a dedicated database. This action is irreversible. The database status will be set to 'deleting' and all resources will be cleaned up.
274
+ * 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.
284
275
  *
285
276
  * @param {string} databaseId - Database ID.
286
277
  * @throws {AppwriteException}
@@ -333,7 +324,7 @@ export declare class Compute {
333
324
  */
334
325
  createDatabaseBackup(databaseId: string, type?: string): Promise<Models.DedicatedDatabaseBackup>;
335
326
  /**
336
- * List scheduled backup policies for a dedicated database.
327
+ * List scheduled backup policies for a dedicated database.
337
328
  *
338
329
  * @param {string} params.databaseId - Database ID.
339
330
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK.
@@ -345,7 +336,7 @@ export declare class Compute {
345
336
  queries?: string[];
346
337
  }): Promise<Models.BackupPolicyList>;
347
338
  /**
348
- * List scheduled backup policies for a dedicated database.
339
+ * List scheduled backup policies for a dedicated database.
349
340
  *
350
341
  * @param {string} databaseId - Database ID.
351
342
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK.
@@ -355,7 +346,7 @@ export declare class Compute {
355
346
  */
356
347
  listDatabaseBackupPolicies(databaseId: string, queries?: string[]): Promise<Models.BackupPolicyList>;
357
348
  /**
358
- * Create a scheduled backup policy for a dedicated database.
349
+ * Create a scheduled backup policy for a dedicated database.
359
350
  *
360
351
  * @param {string} params.databaseId - Database ID.
361
352
  * @param {string} params.policyId - Policy 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.
@@ -377,7 +368,7 @@ export declare class Compute {
377
368
  enabled?: boolean;
378
369
  }): Promise<Models.BackupPolicy>;
379
370
  /**
380
- * Create a scheduled backup policy for a dedicated database.
371
+ * Create a scheduled backup policy for a dedicated database.
381
372
  *
382
373
  * @param {string} databaseId - Database ID.
383
374
  * @param {string} policyId - Policy 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.
@@ -802,31 +793,6 @@ export declare class Compute {
802
793
  * @deprecated Use the object parameter style method for a better developer experience.
803
794
  */
804
795
  createDatabaseFailover(databaseId: string, targetReplicaId?: string): Promise<Models.DedicatedDatabase>;
805
- /**
806
- * Get query-level performance insights for a dedicated database. Returns top queries by execution time, wait events, and aggregate query statistics.
807
- *
808
- * @param {string} params.databaseId - Database ID.
809
- * @param {string} params.period - Analysis period for performance insights. Allowed values: 1h (last hour), 24h (last 24 hours), 7d (last 7 days).
810
- * @param {number} params.limit - Maximum number of queries to return.
811
- * @throws {AppwriteException}
812
- * @returns {Promise<Models.DedicatedDatabasePerformanceInsights>}
813
- */
814
- getDatabaseInsights(params: {
815
- databaseId: string;
816
- period?: string;
817
- limit?: number;
818
- }): Promise<Models.DedicatedDatabasePerformanceInsights>;
819
- /**
820
- * Get query-level performance insights for a dedicated database. Returns top queries by execution time, wait events, and aggregate query statistics.
821
- *
822
- * @param {string} databaseId - Database ID.
823
- * @param {string} period - Analysis period for performance insights. Allowed values: 1h (last hour), 24h (last 24 hours), 7d (last 7 days).
824
- * @param {number} limit - Maximum number of queries to return.
825
- * @throws {AppwriteException}
826
- * @returns {Promise<Models.DedicatedDatabasePerformanceInsights>}
827
- * @deprecated Use the object parameter style method for a better developer experience.
828
- */
829
- getDatabaseInsights(databaseId: string, period?: string, limit?: number): Promise<Models.DedicatedDatabasePerformanceInsights>;
830
796
  /**
831
797
  * Update the maintenance window for a dedicated database. Maintenance operations like minor version upgrades will be performed during this window.
832
798
  *
@@ -852,28 +818,6 @@ export declare class Compute {
852
818
  * @deprecated Use the object parameter style method for a better developer experience.
853
819
  */
854
820
  updateDatabaseMaintenanceWindow(databaseId: string, day: string, hourUtc: number): Promise<Models.DedicatedDatabase>;
855
- /**
856
- * Get detailed performance metrics for a dedicated database. Returns CPU, memory, storage, IOPS, QPS, and connection metrics.
857
- *
858
- * @param {string} params.databaseId - Database ID.
859
- * @param {string} params.period - Metrics aggregation period. Allowed values: 1h (last hour), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days).
860
- * @throws {AppwriteException}
861
- * @returns {Promise<Models.DedicatedDatabaseMetrics>}
862
- */
863
- getDatabaseMetrics(params: {
864
- databaseId: string;
865
- period?: string;
866
- }): Promise<Models.DedicatedDatabaseMetrics>;
867
- /**
868
- * Get detailed performance metrics for a dedicated database. Returns CPU, memory, storage, IOPS, QPS, and connection metrics.
869
- *
870
- * @param {string} databaseId - Database ID.
871
- * @param {string} period - Metrics aggregation period. Allowed values: 1h (last hour), 24h (last 24 hours), 7d (last 7 days), 30d (last 30 days).
872
- * @throws {AppwriteException}
873
- * @returns {Promise<Models.DedicatedDatabaseMetrics>}
874
- * @deprecated Use the object parameter style method for a better developer experience.
875
- */
876
- getDatabaseMetrics(databaseId: string, period?: string): Promise<Models.DedicatedDatabaseMetrics>;
877
821
  /**
878
822
  * 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.
879
823
  *
@@ -1061,47 +1005,6 @@ export declare class Compute {
1061
1005
  * @deprecated Use the object parameter style method for a better developer experience.
1062
1006
  */
1063
1007
  getDatabaseRestoration(databaseId: string, restorationId: string): Promise<Models.DedicatedDatabaseRestoration>;
1064
- /**
1065
- * Get the current schema for a dedicated database. Returns collections, fields, data types, constraints, and indexes.
1066
- *
1067
- * @param {string} params.databaseId - Database ID.
1068
- * @throws {AppwriteException}
1069
- * @returns {Promise<Models.DedicatedDatabaseSchema>}
1070
- */
1071
- getDatabaseSchema(params: {
1072
- databaseId: string;
1073
- }): Promise<Models.DedicatedDatabaseSchema>;
1074
- /**
1075
- * Get the current schema for a dedicated database. Returns collections, fields, data types, constraints, and indexes.
1076
- *
1077
- * @param {string} databaseId - Database ID.
1078
- * @throws {AppwriteException}
1079
- * @returns {Promise<Models.DedicatedDatabaseSchema>}
1080
- * @deprecated Use the object parameter style method for a better developer experience.
1081
- */
1082
- getDatabaseSchema(databaseId: string): Promise<Models.DedicatedDatabaseSchema>;
1083
- /**
1084
- * Preview a schema change against a dedicated database. Returns the expected impact including affected collections, records, and a dry-run diff of the schema before and after the change.
1085
- *
1086
- * @param {string} params.databaseId - Database ID.
1087
- * @param {string} params.sql - Schema statement to preview.
1088
- * @throws {AppwriteException}
1089
- * @returns {Promise<Models.DedicatedDatabaseSchemaPreview>}
1090
- */
1091
- createDatabaseSchemaPreview(params: {
1092
- databaseId: string;
1093
- sql: string;
1094
- }): Promise<Models.DedicatedDatabaseSchemaPreview>;
1095
- /**
1096
- * Preview a schema change against a dedicated database. Returns the expected impact including affected collections, records, and a dry-run diff of the schema before and after the change.
1097
- *
1098
- * @param {string} databaseId - Database ID.
1099
- * @param {string} sql - Schema statement to preview.
1100
- * @throws {AppwriteException}
1101
- * @returns {Promise<Models.DedicatedDatabaseSchemaPreview>}
1102
- * @deprecated Use the object parameter style method for a better developer experience.
1103
- */
1104
- createDatabaseSchemaPreview(databaseId: string, sql: string): Promise<Models.DedicatedDatabaseSchemaPreview>;
1105
1008
  /**
1106
1009
  * List slow queries for a dedicated database. Returns queries that exceeded the specified threshold.
1107
1010
  *