@appwrite.io/console 15.5.0 → 15.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appwrite.io/console",
3
3
  "homepage": "https://appwrite.io/support",
4
4
  "description": "Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API",
5
- "version": "15.5.0",
5
+ "version": "15.7.0",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/cjs/sdk.js",
8
8
  "exports": {
@@ -45,6 +45,9 @@
45
45
  "tslib": "2.8.1",
46
46
  "typescript": "5.9.3"
47
47
  },
48
+ "overrides": {
49
+ "brace-expansion": "5.0.8"
50
+ },
48
51
  "jsdelivr": "dist/iife/sdk.js",
49
52
  "unpkg": "dist/iife/sdk.js"
50
53
  }
package/types/models.d.ts CHANGED
@@ -358,6 +358,44 @@ export declare namespace Models {
358
358
  */
359
359
  type: string;
360
360
  };
361
+ /**
362
+ * VcsNamespace
363
+ */
364
+ export type VcsNamespace = {
365
+ /**
366
+ * VCS (Version Control System) namespace ID.
367
+ */
368
+ $id: string;
369
+ /**
370
+ * VCS (Version Control System) namespace display name.
371
+ */
372
+ name: string;
373
+ /**
374
+ * VCS (Version Control System) namespace path, used to filter repositories by namespace.
375
+ */
376
+ path: string;
377
+ /**
378
+ * Namespace type. Either the user's personal namespace or a group/organization.
379
+ */
380
+ type: string;
381
+ /**
382
+ * Namespace avatar URL.
383
+ */
384
+ avatarUrl: string;
385
+ };
386
+ /**
387
+ * VCS Namespaces List
388
+ */
389
+ export type VcsNamespaceList = {
390
+ /**
391
+ * Total number of namespaces that matched your query.
392
+ */
393
+ total: number;
394
+ /**
395
+ * List of namespaces.
396
+ */
397
+ namespaces: VcsNamespace[];
398
+ };
361
399
  /**
362
400
  * Branches List
363
401
  */
@@ -3727,6 +3765,14 @@ export declare namespace Models {
3727
3765
  * File name.
3728
3766
  */
3729
3767
  name: string;
3768
+ /**
3769
+ * Virtual folder containing the file, with a trailing slash. Empty for the bucket root.
3770
+ */
3771
+ folder: string;
3772
+ /**
3773
+ * Full virtual path of the file: the folder followed by the file name.
3774
+ */
3775
+ key: string;
3730
3776
  /**
3731
3777
  * File MD5 signature.
3732
3778
  */
@@ -8721,6 +8767,10 @@ export declare namespace Models {
8721
8767
  * Backup expiration time in ISO 8601 format.
8722
8768
  */
8723
8769
  expiresAt?: string;
8770
+ /**
8771
+ * Transaction-log position the backup anchors at, in the engine's own notation: PostgreSQL `{walSegment}|{lsn}`, MySQL and MariaDB `{binlogFile}|{offset}`, MongoDB `{seconds}|{increment}`. Empty when the backup recorded no position, which is the case for backup types that carry none.
8772
+ */
8773
+ logPosition?: string;
8724
8774
  /**
8725
8775
  * Error message if backup failed.
8726
8776
  */
@@ -10394,6 +10444,68 @@ export declare namespace Models {
10394
10444
  */
10395
10445
  lagSeconds: number;
10396
10446
  };
10447
+ /**
10448
+ * Operation
10449
+ */
10450
+ export type DedicatedDatabaseOperation = {
10451
+ /**
10452
+ * Operation ID.
10453
+ */
10454
+ $id: string;
10455
+ /**
10456
+ * Operation creation time in ISO 8601 format.
10457
+ */
10458
+ $createdAt: string;
10459
+ /**
10460
+ * Database ID the operation ran against.
10461
+ */
10462
+ databaseId: string;
10463
+ /**
10464
+ * Operation type, such as provision, update, restore, pausing, resuming, failover, backup-create or cross-region-enable.
10465
+ */
10466
+ type: string;
10467
+ /**
10468
+ * Operation status. Possible values: running (in progress), completed (finished successfully), failed (ended in an error).
10469
+ */
10470
+ status: string;
10471
+ /**
10472
+ * Number of times this operation has been attempted.
10473
+ */
10474
+ attempts: number;
10475
+ /**
10476
+ * Time the operation was requested, in ISO 8601 format.
10477
+ */
10478
+ requestedAt?: string;
10479
+ /**
10480
+ * Time the operation started, in ISO 8601 format.
10481
+ */
10482
+ startedAt?: string;
10483
+ /**
10484
+ * Time the operation reached a terminal state, in ISO 8601 format.
10485
+ */
10486
+ completedAt?: string;
10487
+ /**
10488
+ * Machine-readable failure code. `LockLost` marks an attempt that was fenced and abandoned because another worker took over the database.
10489
+ */
10490
+ errorCode: string;
10491
+ /**
10492
+ * Failure message if the operation failed.
10493
+ */
10494
+ errorMessage: string;
10495
+ };
10496
+ /**
10497
+ * OperationList
10498
+ */
10499
+ export type DedicatedDatabaseOperationList = {
10500
+ /**
10501
+ * Total number of operations.
10502
+ */
10503
+ total: number;
10504
+ /**
10505
+ * List of operations.
10506
+ */
10507
+ operations: DedicatedDatabaseOperation[];
10508
+ };
10397
10509
  /**
10398
10510
  * Replicas
10399
10511
  */
@@ -12569,6 +12681,71 @@ export declare namespace Models {
12569
12681
  */
12570
12682
  config: object;
12571
12683
  };
12684
+ /**
12685
+ * WafRuleChallenge
12686
+ */
12687
+ export type WafRuleChallenge = {
12688
+ /**
12689
+ * Rule ID.
12690
+ */
12691
+ $id: string;
12692
+ /**
12693
+ * WAF rule creation time in ISO 8601 format.
12694
+ */
12695
+ $createdAt: string;
12696
+ /**
12697
+ * WAF rule last update time in ISO 8601 format.
12698
+ */
12699
+ $updatedAt: string;
12700
+ /**
12701
+ * Human friendly rule name.
12702
+ */
12703
+ name: string;
12704
+ /**
12705
+ * Optional description for the rule.
12706
+ */
12707
+ description: string;
12708
+ /**
12709
+ * Team ID.
12710
+ */
12711
+ teamId: string;
12712
+ /**
12713
+ * Project ID.
12714
+ */
12715
+ projectId: string;
12716
+ /**
12717
+ * Resource type the rule is scoped to.
12718
+ */
12719
+ resourceType: string;
12720
+ /**
12721
+ * Resource identifier. Empty for API-wide rules.
12722
+ */
12723
+ resourceId: string;
12724
+ /**
12725
+ * Action performed when the rule matches.
12726
+ */
12727
+ action: WafRuleAction;
12728
+ /**
12729
+ * Evaluation priority. Lower values execute earlier.
12730
+ */
12731
+ priority: number;
12732
+ /**
12733
+ * Whether the rule is active.
12734
+ */
12735
+ enabled: boolean;
12736
+ /**
12737
+ * List of conditions evaluated for this rule.
12738
+ */
12739
+ conditions: object;
12740
+ /**
12741
+ * Action specific configuration.
12742
+ */
12743
+ config: object;
12744
+ /**
12745
+ * Challenge type enforced when the rule matches.
12746
+ */
12747
+ challengeType: string;
12748
+ };
12572
12749
  /**
12573
12750
  * WafRuleRateLimit
12574
12751
  */
@@ -6,22 +6,22 @@ export declare class Activities {
6
6
  /**
7
7
  * List all events for selected filters.
8
8
  *
9
- * @param {string} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
9
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
10
10
  * @throws {AppwriteException}
11
11
  * @returns {Promise<Models.ActivityEventList>}
12
12
  */
13
13
  listEvents(params?: {
14
- queries?: string;
14
+ queries?: string[];
15
15
  }): Promise<Models.ActivityEventList>;
16
16
  /**
17
17
  * List all events for selected filters.
18
18
  *
19
- * @param {string} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
19
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on attributes such as userId, teamId, etc.
20
20
  * @throws {AppwriteException}
21
21
  * @returns {Promise<Models.ActivityEventList>}
22
22
  * @deprecated Use the object parameter style method for a better developer experience.
23
23
  */
24
- listEvents(queries?: string): Promise<Models.ActivityEventList>;
24
+ listEvents(queries?: string[]): Promise<Models.ActivityEventList>;
25
25
  /**
26
26
  * Get event by ID.
27
27
  *
@@ -226,6 +226,97 @@ export declare class Apps {
226
226
  * @deprecated Use the object parameter style method for a better developer experience.
227
227
  */
228
228
  delete(appId: string): Promise<{}>;
229
+ /**
230
+ * List installations of an application. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app.
231
+ *
232
+ * @param {string} params.appId - Application unique ID.
233
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
234
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
235
+ * @throws {AppwriteException}
236
+ * @returns {Promise<Models.AppInstallationList>}
237
+ */
238
+ listInstallations(params: {
239
+ appId: string;
240
+ queries?: string[];
241
+ total?: boolean;
242
+ }): Promise<Models.AppInstallationList>;
243
+ /**
244
+ * List installations of an application. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app.
245
+ *
246
+ * @param {string} appId - Application unique ID.
247
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long.
248
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
249
+ * @throws {AppwriteException}
250
+ * @returns {Promise<Models.AppInstallationList>}
251
+ * @deprecated Use the object parameter style method for a better developer experience.
252
+ */
253
+ listInstallations(appId: string, queries?: string[], total?: boolean): Promise<Models.AppInstallationList>;
254
+ /**
255
+ * Get an installation of an application by its unique ID. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app.
256
+ *
257
+ * @param {string} params.appId - Application unique ID.
258
+ * @param {string} params.installationId - Installation unique ID.
259
+ * @throws {AppwriteException}
260
+ * @returns {Promise<Models.AppInstallation>}
261
+ */
262
+ getInstallation(params: {
263
+ appId: string;
264
+ installationId: string;
265
+ }): Promise<Models.AppInstallation>;
266
+ /**
267
+ * Get an installation of an application by its unique ID. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app.
268
+ *
269
+ * @param {string} appId - Application unique ID.
270
+ * @param {string} installationId - Installation unique ID.
271
+ * @throws {AppwriteException}
272
+ * @returns {Promise<Models.AppInstallation>}
273
+ * @deprecated Use the object parameter style method for a better developer experience.
274
+ */
275
+ getInstallation(appId: string, installationId: string): Promise<Models.AppInstallation>;
276
+ /**
277
+ * Delete an installation of an application by its unique ID. Requires a caller with update access to the app. Previously issued installation access tokens are revoked.
278
+ *
279
+ * @param {string} params.appId - Application unique ID.
280
+ * @param {string} params.installationId - Installation unique ID.
281
+ * @throws {AppwriteException}
282
+ * @returns {Promise<{}>}
283
+ */
284
+ deleteInstallation(params: {
285
+ appId: string;
286
+ installationId: string;
287
+ }): Promise<{}>;
288
+ /**
289
+ * Delete an installation of an application by its unique ID. Requires a caller with update access to the app. Previously issued installation access tokens are revoked.
290
+ *
291
+ * @param {string} appId - Application unique ID.
292
+ * @param {string} installationId - Installation unique ID.
293
+ * @throws {AppwriteException}
294
+ * @returns {Promise<{}>}
295
+ * @deprecated Use the object parameter style method for a better developer experience.
296
+ */
297
+ deleteInstallation(appId: string, installationId: string): Promise<{}>;
298
+ /**
299
+ * Create a token for an installation of an application. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app. The returned token carries the scopes and authorization details granted to the installation, and can be used as an `Authorization: Bearer` header everywhere OAuth2 access tokens are accepted. Multiple tokens can be active for the same installation at once; each token stays valid until it expires or the installation is updated or deleted.
300
+ *
301
+ * @param {string} params.appId - Application unique ID.
302
+ * @param {string} params.installationId - Installation unique ID.
303
+ * @throws {AppwriteException}
304
+ * @returns {Promise<Models.Oauth2Token>}
305
+ */
306
+ createInstallationToken(params: {
307
+ appId: string;
308
+ installationId: string;
309
+ }): Promise<Models.Oauth2Token>;
310
+ /**
311
+ * Create a token for an installation of an application. Requires an app key sent in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header, or a caller with update access to the app. The returned token carries the scopes and authorization details granted to the installation, and can be used as an `Authorization: Bearer` header everywhere OAuth2 access tokens are accepted. Multiple tokens can be active for the same installation at once; each token stays valid until it expires or the installation is updated or deleted.
312
+ *
313
+ * @param {string} appId - Application unique ID.
314
+ * @param {string} installationId - Installation unique ID.
315
+ * @throws {AppwriteException}
316
+ * @returns {Promise<Models.Oauth2Token>}
317
+ * @deprecated Use the object parameter style method for a better developer experience.
318
+ */
319
+ createInstallationToken(appId: string, installationId: string): Promise<Models.Oauth2Token>;
229
320
  /**
230
321
  * List app keys for an application.
231
322
  *
@@ -211,18 +211,18 @@ export declare class Backups {
211
211
  /**
212
212
  * Create and trigger a new restoration for a backup on a project.
213
213
  *
214
- * For a backup of one database, the restoration resolves its destination before it is queued. Pass `newResourceId` to restore into that database ID, including the archived database ID to overwrite it. When `newResourceId` is omitted, a new database ID is generated and returned in `options`.
214
+ * For a backup of one database, the restoration resolves its destination before it is queued. When `newResourceId` is omitted, the archived database is restored in place and its own ID is returned in `options`. Pass a different `newResourceId` to restore alongside it as a new database instead.
215
215
  *
216
216
  * The restoration migration records the archived database in `resourceId` and `resourceType`, and the resolved database in `destinationResourceId` and `destinationResourceType`. Database types are stored canonically as `database`, `documentsdb`, or `vectorsdb`. Project-wide restorations leave these fields empty because they do not have a single source or destination database.
217
217
  *
218
218
  * To list every migration related to one database, use its canonical type in a nested `OR(AND(...), AND(...), AND(...))` across the root, parent, and destination relation pairs: `(resourceType, resourceId)`, `(parentResourceType, parentResourceId)`, and `(destinationResourceType, destinationResourceId)`. Legacy and TablesDB databases use `database`; the operational `resourceType` of a table migration is not rewritten to `tablesdb`.
219
219
  *
220
- * When restoring a DocumentsDB or VectorsDB database to a new resource from a dedicated source, the restore provisions a fresh dedicated backing database at the source database's own specification.
220
+ * When restoring a DocumentsDB or VectorsDB database from a dedicated source, the restore provisions a fresh dedicated backing database at the source database's own specification and lands the data there. An in-place restore swaps the database onto that backing only once the restore has succeeded, and retires the backing it displaced only once that swap is confirmed, so the source keeps serving its own data until the restored data is in place and any failure leaves it untouched. A serverless source has no dedicated backing to clone and restores onto the archived database instead.
221
221
  *
222
222
  *
223
223
  * @param {string} params.archiveId - Backup archive ID to restore
224
224
  * @param {BackupServices[]} params.services - Array of services to restore
225
- * @param {string} params.newResourceId - Destination resource ID. Omit to generate a new ID, or pass the archived resource ID to overwrite it. 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.
225
+ * @param {string} params.newResourceId - Destination resource ID. Omit to restore the archived resource in place, or pass a different ID to restore alongside it as a new resource. 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.
226
226
  * @param {string} params.newResourceName - Database name. Max length: 128 chars.
227
227
  * @throws {AppwriteException}
228
228
  * @returns {Promise<Models.BackupRestoration>}
@@ -236,18 +236,18 @@ export declare class Backups {
236
236
  /**
237
237
  * Create and trigger a new restoration for a backup on a project.
238
238
  *
239
- * For a backup of one database, the restoration resolves its destination before it is queued. Pass `newResourceId` to restore into that database ID, including the archived database ID to overwrite it. When `newResourceId` is omitted, a new database ID is generated and returned in `options`.
239
+ * For a backup of one database, the restoration resolves its destination before it is queued. When `newResourceId` is omitted, the archived database is restored in place and its own ID is returned in `options`. Pass a different `newResourceId` to restore alongside it as a new database instead.
240
240
  *
241
241
  * The restoration migration records the archived database in `resourceId` and `resourceType`, and the resolved database in `destinationResourceId` and `destinationResourceType`. Database types are stored canonically as `database`, `documentsdb`, or `vectorsdb`. Project-wide restorations leave these fields empty because they do not have a single source or destination database.
242
242
  *
243
243
  * To list every migration related to one database, use its canonical type in a nested `OR(AND(...), AND(...), AND(...))` across the root, parent, and destination relation pairs: `(resourceType, resourceId)`, `(parentResourceType, parentResourceId)`, and `(destinationResourceType, destinationResourceId)`. Legacy and TablesDB databases use `database`; the operational `resourceType` of a table migration is not rewritten to `tablesdb`.
244
244
  *
245
- * When restoring a DocumentsDB or VectorsDB database to a new resource from a dedicated source, the restore provisions a fresh dedicated backing database at the source database's own specification.
245
+ * When restoring a DocumentsDB or VectorsDB database from a dedicated source, the restore provisions a fresh dedicated backing database at the source database's own specification and lands the data there. An in-place restore swaps the database onto that backing only once the restore has succeeded, and retires the backing it displaced only once that swap is confirmed, so the source keeps serving its own data until the restored data is in place and any failure leaves it untouched. A serverless source has no dedicated backing to clone and restores onto the archived database instead.
246
246
  *
247
247
  *
248
248
  * @param {string} archiveId - Backup archive ID to restore
249
249
  * @param {BackupServices[]} services - Array of services to restore
250
- * @param {string} newResourceId - Destination resource ID. Omit to generate a new ID, or pass the archived resource ID to overwrite it. 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.
250
+ * @param {string} newResourceId - Destination resource ID. Omit to restore the archived resource in place, or pass a different ID to restore alongside it as a new resource. 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.
251
251
  * @param {string} newResourceName - Database name. Max length: 128 chars.
252
252
  * @throws {AppwriteException}
253
253
  * @returns {Promise<Models.BackupRestoration>}
@@ -193,6 +193,7 @@ export declare class DocumentsDB {
193
193
  * @param {string} params.databaseId - Database ID.
194
194
  * @param {string} params.name - Database name. Max length: 128 chars.
195
195
  * @param {boolean} params.enabled - Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
196
+ * @param {string} params.specification - Database specification. Resizing between dedicated specifications changes cpu, memory, storage and the connection ceiling via a rolling cutover with zero downtime. Moving a `serverless` database onto a dedicated specification is a data migration, not a resize.
196
197
  * @param {number} params.replicas - Number of high availability replicas (0-5) for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification. High availability is enabled when greater than 0.
197
198
  * @throws {AppwriteException}
198
199
  * @returns {Promise<Models.Database>}
@@ -201,6 +202,7 @@ export declare class DocumentsDB {
201
202
  databaseId: string;
202
203
  name: string;
203
204
  enabled?: boolean;
205
+ specification?: string;
204
206
  replicas?: number;
205
207
  }): Promise<Models.Database>;
206
208
  /**
@@ -209,12 +211,13 @@ export declare class DocumentsDB {
209
211
  * @param {string} databaseId - Database ID.
210
212
  * @param {string} name - Database name. Max length: 128 chars.
211
213
  * @param {boolean} enabled - Is database enabled? When set to 'disabled', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.
214
+ * @param {string} specification - Database specification. Resizing between dedicated specifications changes cpu, memory, storage and the connection ceiling via a rolling cutover with zero downtime. Moving a `serverless` database onto a dedicated specification is a data migration, not a resize.
212
215
  * @param {number} replicas - Number of high availability replicas (0-5) for the dedicated database backing this database. Only valid when the database is backed by a dedicated specification. High availability is enabled when greater than 0.
213
216
  * @throws {AppwriteException}
214
217
  * @returns {Promise<Models.Database>}
215
218
  * @deprecated Use the object parameter style method for a better developer experience.
216
219
  */
217
- update(databaseId: string, name: string, enabled?: boolean, replicas?: number): Promise<Models.Database>;
220
+ update(databaseId: string, name: string, enabled?: boolean, specification?: string, replicas?: number): Promise<Models.Database>;
218
221
  /**
219
222
  * Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
220
223
  *
@@ -881,7 +884,7 @@ export declare class DocumentsDB {
881
884
  */
882
885
  deleteIndex(databaseId: string, collectionId: string, key: string): Promise<{}>;
883
886
  /**
884
- * 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.
887
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
885
888
  *
886
889
  * @param {string} params.databaseId - Database ID.
887
890
  * @param {string} params.targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -893,7 +896,7 @@ export declare class DocumentsDB {
893
896
  targetReplicaId?: string;
894
897
  }): Promise<Models.DedicatedDatabase>;
895
898
  /**
896
- * 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.
899
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
897
900
  *
898
901
  * @param {string} databaseId - Database ID.
899
902
  * @param {string} targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -902,6 +905,34 @@ export declare class DocumentsDB {
902
905
  * @deprecated Use the object parameter style method for a better developer experience.
903
906
  */
904
907
  createFailover(databaseId: string, targetReplicaId?: string): Promise<Models.DedicatedDatabase>;
908
+ /**
909
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
910
+ *
911
+ * @param {string} params.databaseId - Database ID.
912
+ * @param {string} params.status - Filter by operation status.
913
+ * @param {number} params.limit - Maximum number of operations to return.
914
+ * @param {number} params.offset - Number of operations to skip.
915
+ * @throws {AppwriteException}
916
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
917
+ */
918
+ listOperations(params: {
919
+ databaseId: string;
920
+ status?: string;
921
+ limit?: number;
922
+ offset?: number;
923
+ }): Promise<Models.DedicatedDatabaseOperationList>;
924
+ /**
925
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
926
+ *
927
+ * @param {string} databaseId - Database ID.
928
+ * @param {string} status - Filter by operation status.
929
+ * @param {number} limit - Maximum number of operations to return.
930
+ * @param {number} offset - Number of operations to skip.
931
+ * @throws {AppwriteException}
932
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
933
+ * @deprecated Use the object parameter style method for a better developer experience.
934
+ */
935
+ listOperations(databaseId: string, status?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseOperationList>;
905
936
  /**
906
937
  * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
907
938
  *
@@ -567,7 +567,7 @@ export declare class Mongo {
567
567
  */
568
568
  updateCredentials(databaseId: string): Promise<Models.DedicatedDatabase>;
569
569
  /**
570
- * 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.
570
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
571
571
  *
572
572
  * @param {string} params.databaseId - Database ID.
573
573
  * @param {string} params.targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -579,7 +579,7 @@ export declare class Mongo {
579
579
  targetReplicaId?: string;
580
580
  }): Promise<Models.DedicatedDatabase>;
581
581
  /**
582
- * 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.
582
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
583
583
  *
584
584
  * @param {string} databaseId - Database ID.
585
585
  * @param {string} targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -638,6 +638,34 @@ export declare class Mongo {
638
638
  * @deprecated Use the object parameter style method for a better developer experience.
639
639
  */
640
640
  createMigration(databaseId: string, targetType: string, specification?: string): Promise<Models.DedicatedDatabase>;
641
+ /**
642
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
643
+ *
644
+ * @param {string} params.databaseId - Database ID.
645
+ * @param {string} params.status - Filter by operation status.
646
+ * @param {number} params.limit - Maximum number of operations to return.
647
+ * @param {number} params.offset - Number of operations to skip.
648
+ * @throws {AppwriteException}
649
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
650
+ */
651
+ listOperations(params: {
652
+ databaseId: string;
653
+ status?: string;
654
+ limit?: number;
655
+ offset?: number;
656
+ }): Promise<Models.DedicatedDatabaseOperationList>;
657
+ /**
658
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
659
+ *
660
+ * @param {string} databaseId - Database ID.
661
+ * @param {string} status - Filter by operation status.
662
+ * @param {number} limit - Maximum number of operations to return.
663
+ * @param {number} offset - Number of operations to skip.
664
+ * @throws {AppwriteException}
665
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
666
+ * @deprecated Use the object parameter style method for a better developer experience.
667
+ */
668
+ listOperations(databaseId: string, status?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseOperationList>;
641
669
  /**
642
670
  * Get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.
643
671
  *
@@ -595,7 +595,7 @@ export declare class Mysql {
595
595
  */
596
596
  createExecution(databaseId: string, sql: string, bindings?: object, timeoutSeconds?: number): Promise<Models.DedicatedDatabaseExecution>;
597
597
  /**
598
- * 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.
598
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
599
599
  *
600
600
  * @param {string} params.databaseId - Database ID.
601
601
  * @param {string} params.targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -607,7 +607,7 @@ export declare class Mysql {
607
607
  targetReplicaId?: string;
608
608
  }): Promise<Models.DedicatedDatabase>;
609
609
  /**
610
- * 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.
610
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
611
611
  *
612
612
  * @param {string} databaseId - Database ID.
613
613
  * @param {string} targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -666,6 +666,34 @@ export declare class Mysql {
666
666
  * @deprecated Use the object parameter style method for a better developer experience.
667
667
  */
668
668
  createMigration(databaseId: string, targetType: string, specification?: string): Promise<Models.DedicatedDatabase>;
669
+ /**
670
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
671
+ *
672
+ * @param {string} params.databaseId - Database ID.
673
+ * @param {string} params.status - Filter by operation status.
674
+ * @param {number} params.limit - Maximum number of operations to return.
675
+ * @param {number} params.offset - Number of operations to skip.
676
+ * @throws {AppwriteException}
677
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
678
+ */
679
+ listOperations(params: {
680
+ databaseId: string;
681
+ status?: string;
682
+ limit?: number;
683
+ offset?: number;
684
+ }): Promise<Models.DedicatedDatabaseOperationList>;
685
+ /**
686
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
687
+ *
688
+ * @param {string} databaseId - Database ID.
689
+ * @param {string} status - Filter by operation status.
690
+ * @param {number} limit - Maximum number of operations to return.
691
+ * @param {number} offset - Number of operations to skip.
692
+ * @throws {AppwriteException}
693
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
694
+ * @deprecated Use the object parameter style method for a better developer experience.
695
+ */
696
+ listOperations(databaseId: string, status?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseOperationList>;
669
697
  /**
670
698
  * Get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.
671
699
  *
@@ -658,7 +658,7 @@ export declare class Postgresql {
658
658
  */
659
659
  deleteExtension(databaseId: string, extensionName: string): Promise<Models.DedicatedDatabase>;
660
660
  /**
661
- * 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.
661
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
662
662
  *
663
663
  * @param {string} params.databaseId - Database ID.
664
664
  * @param {string} params.targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -670,7 +670,7 @@ export declare class Postgresql {
670
670
  targetReplicaId?: string;
671
671
  }): Promise<Models.DedicatedDatabase>;
672
672
  /**
673
- * 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.
673
+ * 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. A database left mid-operation by a failover that did not finish also accepts this call as a repair, provided `targetReplicaId` names the member to promote.
674
674
  *
675
675
  * @param {string} databaseId - Database ID.
676
676
  * @param {string} targetReplicaId - Target replica ID to promote. If not specified, the healthiest replica is selected.
@@ -729,6 +729,34 @@ export declare class Postgresql {
729
729
  * @deprecated Use the object parameter style method for a better developer experience.
730
730
  */
731
731
  createMigration(databaseId: string, targetType: string, specification?: string): Promise<Models.DedicatedDatabase>;
732
+ /**
733
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
734
+ *
735
+ * @param {string} params.databaseId - Database ID.
736
+ * @param {string} params.status - Filter by operation status.
737
+ * @param {number} params.limit - Maximum number of operations to return.
738
+ * @param {number} params.offset - Number of operations to skip.
739
+ * @throws {AppwriteException}
740
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
741
+ */
742
+ listOperations(params: {
743
+ databaseId: string;
744
+ status?: string;
745
+ limit?: number;
746
+ offset?: number;
747
+ }): Promise<Models.DedicatedDatabaseOperationList>;
748
+ /**
749
+ * List the lifecycle operations recorded for a dedicated database, newest first. Every provision, update, restore, backup and replication action is recorded here with its outcome, including an attempt that was abandoned because another worker took over the database.
750
+ *
751
+ * @param {string} databaseId - Database ID.
752
+ * @param {string} status - Filter by operation status.
753
+ * @param {number} limit - Maximum number of operations to return.
754
+ * @param {number} offset - Number of operations to skip.
755
+ * @throws {AppwriteException}
756
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
757
+ * @deprecated Use the object parameter style method for a better developer experience.
758
+ */
759
+ listOperations(databaseId: string, status?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseOperationList>;
732
760
  /**
733
761
  * Get available point-in-time recovery windows for a dedicated database. Returns the earliest and latest recovery points.
734
762
  *