@appwrite.io/console 15.4.0 → 15.6.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.4.0",
5
+ "version": "15.6.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
  }
@@ -5,6 +5,8 @@ export declare enum OrganizationKeyScopes {
5
5
  DevKeysWrite = "devKeys.write",
6
6
  OrganizationKeysRead = "organization.keys.read",
7
7
  OrganizationKeysWrite = "organization.keys.write",
8
+ OrganizationInstallationsRead = "organization.installations.read",
9
+ OrganizationInstallationsWrite = "organization.installations.write",
8
10
  OrganizationMembershipsRead = "organization.memberships.read",
9
11
  OrganizationMembershipsWrite = "organization.memberships.write",
10
12
  OrganizationRead = "organization.read",
@@ -91,5 +91,6 @@ export declare enum QuerySuggestionResource {
91
91
  DedicatedDatabaseRuntimes = "dedicateddatabaseruntimes",
92
92
  DedicatedDatabaseOperations = "dedicateddatabaseoperations",
93
93
  DedicatedDatabaseBackups = "dedicateddatabasebackups",
94
- DedicatedDatabaseRestorations = "dedicateddatabaserestorations"
94
+ DedicatedDatabaseRestorations = "dedicateddatabaserestorations",
95
+ DedicatedDatabaseBranches = "dedicateddatabasebranches"
95
96
  }
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
  */
@@ -5145,6 +5191,10 @@ export declare namespace Models {
5145
5191
  * OAuth2 server refresh token duration in seconds for public clients (SPAs, mobile, native)
5146
5192
  */
5147
5193
  oAuth2ServerPublicRefreshTokenDuration?: number;
5194
+ /**
5195
+ * OAuth2 server access token duration in seconds for app installation access tokens
5196
+ */
5197
+ oAuth2ServerInstallationAccessTokenDuration?: number;
5148
5198
  /**
5149
5199
  * When enabled, PKCE is required for confidential clients (server-side flows using client_secret). PKCE is always required for public clients regardless of this setting.
5150
5200
  */
@@ -8717,6 +8767,10 @@ export declare namespace Models {
8717
8767
  * Backup expiration time in ISO 8601 format.
8718
8768
  */
8719
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;
8720
8774
  /**
8721
8775
  * Error message if backup failed.
8722
8776
  */
@@ -10390,6 +10444,68 @@ export declare namespace Models {
10390
10444
  */
10391
10445
  lagSeconds: number;
10392
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
+ };
10393
10509
  /**
10394
10510
  * Replicas
10395
10511
  */
@@ -11923,6 +12039,14 @@ export declare namespace Models {
11923
12039
  * ID of user who owns the application, if owned by user. Otherwise, team ID will be used.
11924
12040
  */
11925
12041
  userId: string;
12042
+ /**
12043
+ * Scopes the application requests when installed on a team. Organization-level and project-level scopes only.
12044
+ */
12045
+ installationScopes: string[];
12046
+ /**
12047
+ * URL users are redirected to after creating or updating an installation of this application. Empty for no redirect.
12048
+ */
12049
+ installationRedirectUrl: string;
11926
12050
  /**
11927
12051
  * List of application secrets.
11928
12052
  */
@@ -12035,6 +12159,92 @@ export declare namespace Models {
12035
12159
  */
12036
12160
  deprecated: boolean;
12037
12161
  };
12162
+ /**
12163
+ * AppInstallation
12164
+ */
12165
+ export type AppInstallation = {
12166
+ /**
12167
+ * Installation ID.
12168
+ */
12169
+ $id: string;
12170
+ /**
12171
+ * Installation creation time in ISO 8601 format.
12172
+ */
12173
+ $createdAt: string;
12174
+ /**
12175
+ * Installation update time in ISO 8601 format.
12176
+ */
12177
+ $updatedAt: string;
12178
+ /**
12179
+ * ID of the installed application.
12180
+ */
12181
+ appId: string;
12182
+ /**
12183
+ * ID of the team the application is installed on.
12184
+ */
12185
+ teamId: string;
12186
+ /**
12187
+ * Scopes granted to the application. Snapshot of the application's installation scopes taken when the installation was created or last updated.
12188
+ */
12189
+ scopes: string[];
12190
+ /**
12191
+ * Authorization details granted to the application. Rich authorization request (RFC 9396) style entries; the Appwrite Console stores authorized project IDs here.
12192
+ */
12193
+ authorizationDetails: object;
12194
+ /**
12195
+ * ID of the user who created the installation.
12196
+ */
12197
+ createdById: string;
12198
+ /**
12199
+ * Name of the user who created the installation.
12200
+ */
12201
+ createdByName: string;
12202
+ /**
12203
+ * Time an access token was last issued for the installation in ISO 8601 format. Null if never used.
12204
+ */
12205
+ lastAccessedAt?: string;
12206
+ };
12207
+ /**
12208
+ * AppKey
12209
+ */
12210
+ export type AppKey = {
12211
+ /**
12212
+ * App key ID.
12213
+ */
12214
+ $id: string;
12215
+ /**
12216
+ * App key creation time in ISO 8601 format.
12217
+ */
12218
+ $createdAt: string;
12219
+ /**
12220
+ * App key update time in ISO 8601 format.
12221
+ */
12222
+ $updatedAt: string;
12223
+ /**
12224
+ * Application ID this app key belongs to.
12225
+ */
12226
+ appId: string;
12227
+ /**
12228
+ * App key secret.
12229
+ */
12230
+ secret: string;
12231
+ /**
12232
+ * Last few characters of the app key secret, used to help identify it.
12233
+ */
12234
+ hint: string;
12235
+ /**
12236
+ * ID of the user who created the app key.
12237
+ */
12238
+ createdById: string;
12239
+ /**
12240
+ * Name of the user who created the app key.
12241
+ */
12242
+ createdByName: string;
12243
+ /**
12244
+ * Time the app key was last used for authentication in ISO 8601 format. Null if never used.
12245
+ */
12246
+ lastAccessedAt?: string;
12247
+ };
12038
12248
  /**
12039
12249
  * OAuth2 Authorize
12040
12250
  */
@@ -12986,5 +13196,31 @@ export declare namespace Models {
12986
13196
  */
12987
13197
  scopes: AppScope[];
12988
13198
  };
13199
+ /**
13200
+ * App installations list
13201
+ */
13202
+ export type AppInstallationList = {
13203
+ /**
13204
+ * Total number of installations that matched your query.
13205
+ */
13206
+ total: number;
13207
+ /**
13208
+ * List of installations.
13209
+ */
13210
+ installations: AppInstallation[];
13211
+ };
13212
+ /**
13213
+ * App keys list
13214
+ */
13215
+ export type AppKeyList = {
13216
+ /**
13217
+ * Total number of keys that matched your query.
13218
+ */
13219
+ total: number;
13220
+ /**
13221
+ * List of keys.
13222
+ */
13223
+ keys: AppKey[];
13224
+ };
12989
13225
  export {};
12990
13226
  }
@@ -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
  *
@@ -98,6 +98,13 @@ export declare class Apps {
98
98
  * @deprecated Use the object parameter style method for a better developer experience.
99
99
  */
100
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>;
101
+ /**
102
+ * List scopes an application can request when installed on a team.
103
+ *
104
+ * @throws {AppwriteException}
105
+ * @returns {Promise<Models.AppScopeList>}
106
+ */
107
+ listInstallationScopes(): Promise<Models.AppScopeList>;
101
108
  /**
102
109
  * List scopes an application can request during the OAuth2 flow.
103
110
  *
@@ -145,6 +152,8 @@ export declare class Apps {
145
152
  * @param {string[]} params.postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout. Each must be an https URL, an http loopback URL, or a private-use scheme URI, and must not contain a fragment. After ending the user session, the logout endpoint only redirects to URIs in this list.
146
153
  * @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`.
147
154
  * @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.
155
+ * @param {string[]} params.installationScopes - Scopes the application requests when installed on a team. Organization-level and project-level scopes only; use the list scopes endpoint with `type=installation` to discover available values. Maximum of 100 scopes are allowed.
156
+ * @param {string} params.installationRedirectUrl - URL users are redirected to after creating or updating an installation of this application. Must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI, and must not contain a fragment. Leave empty for no redirect.
148
157
  * @throws {AppwriteException}
149
158
  * @returns {Promise<Models.App>}
150
159
  */
@@ -167,6 +176,8 @@ export declare class Apps {
167
176
  postLogoutRedirectUris?: string[];
168
177
  type?: string;
169
178
  deviceFlow?: boolean;
179
+ installationScopes?: string[];
180
+ installationRedirectUrl?: string;
170
181
  }): Promise<Models.App>;
171
182
  /**
172
183
  * Update an application by its unique ID.
@@ -189,11 +200,13 @@ export declare class Apps {
189
200
  * @param {string[]} postLogoutRedirectUris - Post-logout redirect URIs for OpenID Connect RP-Initiated Logout. Each must be an https URL, an http loopback URL, or a private-use scheme URI, and must not contain a fragment. After ending the user session, the logout endpoint only redirects to URIs in this list.
190
201
  * @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`.
191
202
  * @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.
203
+ * @param {string[]} installationScopes - Scopes the application requests when installed on a team. Organization-level and project-level scopes only; use the list scopes endpoint with `type=installation` to discover available values. Maximum of 100 scopes are allowed.
204
+ * @param {string} installationRedirectUrl - URL users are redirected to after creating or updating an installation of this application. Must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI, and must not contain a fragment. Leave empty for no redirect.
192
205
  * @throws {AppwriteException}
193
206
  * @returns {Promise<Models.App>}
194
207
  * @deprecated Use the object parameter style method for a better developer experience.
195
208
  */
196
- 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>;
209
+ 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, installationScopes?: string[], installationRedirectUrl?: string): Promise<Models.App>;
197
210
  /**
198
211
  * Delete an application by its unique ID.
199
212
  *
@@ -213,6 +226,185 @@ export declare class Apps {
213
226
  * @deprecated Use the object parameter style method for a better developer experience.
214
227
  */
215
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>;
320
+ /**
321
+ * List app keys for an application.
322
+ *
323
+ * @param {string} params.appId - Application unique ID.
324
+ * @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.
325
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
326
+ * @throws {AppwriteException}
327
+ * @returns {Promise<Models.AppKeyList>}
328
+ */
329
+ listKeys(params: {
330
+ appId: string;
331
+ queries?: string[];
332
+ total?: boolean;
333
+ }): Promise<Models.AppKeyList>;
334
+ /**
335
+ * List app keys for an application.
336
+ *
337
+ * @param {string} appId - Application unique ID.
338
+ * @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.
339
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
340
+ * @throws {AppwriteException}
341
+ * @returns {Promise<Models.AppKeyList>}
342
+ * @deprecated Use the object parameter style method for a better developer experience.
343
+ */
344
+ listKeys(appId: string, queries?: string[], total?: boolean): Promise<Models.AppKeyList>;
345
+ /**
346
+ * Create a new app key for an application. App keys carry no scopes; send one in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header to list the application's installations and create installation access tokens.
347
+ *
348
+ * @param {string} params.appId - Application unique ID.
349
+ * @throws {AppwriteException}
350
+ * @returns {Promise<Models.AppKey>}
351
+ */
352
+ createKey(params: {
353
+ appId: string;
354
+ }): Promise<Models.AppKey>;
355
+ /**
356
+ * Create a new app key for an application. App keys carry no scopes; send one in the `X-Appwrite-Key` header alongside the `X-Appwrite-App` header to list the application's installations and create installation access tokens.
357
+ *
358
+ * @param {string} appId - Application unique ID.
359
+ * @throws {AppwriteException}
360
+ * @returns {Promise<Models.AppKey>}
361
+ * @deprecated Use the object parameter style method for a better developer experience.
362
+ */
363
+ createKey(appId: string): Promise<Models.AppKey>;
364
+ /**
365
+ * Get an app key by its unique ID.
366
+ *
367
+ * @param {string} params.appId - Application unique ID.
368
+ * @param {string} params.keyId - App key unique ID.
369
+ * @throws {AppwriteException}
370
+ * @returns {Promise<Models.AppKey>}
371
+ */
372
+ getKey(params: {
373
+ appId: string;
374
+ keyId: string;
375
+ }): Promise<Models.AppKey>;
376
+ /**
377
+ * Get an app key by its unique ID.
378
+ *
379
+ * @param {string} appId - Application unique ID.
380
+ * @param {string} keyId - App key unique ID.
381
+ * @throws {AppwriteException}
382
+ * @returns {Promise<Models.AppKey>}
383
+ * @deprecated Use the object parameter style method for a better developer experience.
384
+ */
385
+ getKey(appId: string, keyId: string): Promise<Models.AppKey>;
386
+ /**
387
+ * Delete an app key by its unique ID.
388
+ *
389
+ * @param {string} params.appId - Application unique ID.
390
+ * @param {string} params.keyId - App key unique ID.
391
+ * @throws {AppwriteException}
392
+ * @returns {Promise<{}>}
393
+ */
394
+ deleteKey(params: {
395
+ appId: string;
396
+ keyId: string;
397
+ }): Promise<{}>;
398
+ /**
399
+ * Delete an app key by its unique ID.
400
+ *
401
+ * @param {string} appId - Application unique ID.
402
+ * @param {string} keyId - App key unique ID.
403
+ * @throws {AppwriteException}
404
+ * @returns {Promise<{}>}
405
+ * @deprecated Use the object parameter style method for a better developer experience.
406
+ */
407
+ deleteKey(appId: string, keyId: string): Promise<{}>;
216
408
  /**
217
409
  * Update the labels of an application. Labels are read-only for clients; only a server SDK using a project API key can set them. Replaces the previous labels.
218
410
  *
@@ -902,6 +902,34 @@ export declare class DocumentsDB {
902
902
  * @deprecated Use the object parameter style method for a better developer experience.
903
903
  */
904
904
  createFailover(databaseId: string, targetReplicaId?: string): Promise<Models.DedicatedDatabase>;
905
+ /**
906
+ * 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.
907
+ *
908
+ * @param {string} params.databaseId - Database ID.
909
+ * @param {string} params.status - Filter by operation status.
910
+ * @param {number} params.limit - Maximum number of operations to return.
911
+ * @param {number} params.offset - Number of operations to skip.
912
+ * @throws {AppwriteException}
913
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
914
+ */
915
+ listOperations(params: {
916
+ databaseId: string;
917
+ status?: string;
918
+ limit?: number;
919
+ offset?: number;
920
+ }): Promise<Models.DedicatedDatabaseOperationList>;
921
+ /**
922
+ * 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.
923
+ *
924
+ * @param {string} databaseId - Database ID.
925
+ * @param {string} status - Filter by operation status.
926
+ * @param {number} limit - Maximum number of operations to return.
927
+ * @param {number} offset - Number of operations to skip.
928
+ * @throws {AppwriteException}
929
+ * @returns {Promise<Models.DedicatedDatabaseOperationList>}
930
+ * @deprecated Use the object parameter style method for a better developer experience.
931
+ */
932
+ listOperations(databaseId: string, status?: string, limit?: number, offset?: number): Promise<Models.DedicatedDatabaseOperationList>;
905
933
  /**
906
934
  * Get high availability status for a dedicated database. Returns replica statuses, replication lag, and sync mode.
907
935
  *
@@ -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
  *