import { Client } from '../client.js'; import { Models } from '../models.js'; import 'undici'; import '../query.js'; import '../enums/database-type.js'; import '../enums/attribute-status.js'; import '../enums/column-status.js'; import '../enums/index-status.js'; import '../enums/deployment-status.js'; import '../enums/execution-resource-type.js'; import '../enums/execution-trigger.js'; import '../enums/execution-status.js'; import '../enums/project-auth-method-id.js'; import '../enums/project-service-id.js'; import '../enums/project-protocol-id.js'; import '../enums/o-auth-2-google-prompt.js'; import '../enums/o-auth-2-oidc-prompt.js'; import '../enums/platform-type.js'; import '../enums/proxy-rule-deployment-resource-type.js'; import '../enums/proxy-rule-status.js'; import '../enums/message-status.js'; import '../enums/billing-plan-group.js'; declare class Apps { client: Client; constructor(client: Client); /** * List applications. * * @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. * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ list(params?: { queries?: string[]; total?: boolean; }): Promise; /** * List applications. * * @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. * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ list(queries?: string[], total?: boolean): Promise; /** * Create a new application. * * @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. * @param {string} params.name - Application name. * @param {string[]} params.redirectUris - Redirect URIs. Each must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI (e.g. com.example.app:/oauth), and must not contain a fragment. * @param {string} params.description - Application description shown to users during OAuth2 consent. * @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent. * @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent. * @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent. * @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent. * @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed. * @param {string} params.tagline - Application tagline shown to users during OAuth2 consent. * @param {string[]} params.tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long. * @param {string[]} params.images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed. * @param {string} params.supportUrl - Application support URL shown to users during OAuth2 consent. * @param {string} params.dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent. * @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. * @param {boolean} params.enabled - Is application enabled? * @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`. * @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. * @param {string} params.teamId - Team unique ID. * @throws {AppwriteException} * @returns {Promise} */ create(params: { 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; /** * Create a new application. * * @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. * @param {string} name - Application name. * @param {string[]} redirectUris - Redirect URIs. Each must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI (e.g. com.example.app:/oauth), and must not contain a fragment. * @param {string} description - Application description shown to users during OAuth2 consent. * @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent. * @param {string} logoUri - Application logo URL shown to users during OAuth2 consent. * @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent. * @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent. * @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed. * @param {string} tagline - Application tagline shown to users during OAuth2 consent. * @param {string[]} tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long. * @param {string[]} images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed. * @param {string} supportUrl - Application support URL shown to users during OAuth2 consent. * @param {string} dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent. * @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. * @param {boolean} enabled - Is application enabled? * @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`. * @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. * @param {string} teamId - Team unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ 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; /** * List scopes an application can request when installed on a team. * * @throws {AppwriteException} * @returns {Promise} */ listInstallationScopes(): Promise; /** * List scopes an application can request during the OAuth2 flow. * * @throws {AppwriteException} * @returns {Promise} */ listOAuth2Scopes(): Promise; /** * Get an application by its unique ID. * * @param {string} params.appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} */ get(params: { appId: string; }): Promise; /** * Get an application by its unique ID. * * @param {string} appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ get(appId: string): Promise; /** * Update an application by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.name - Application name. * @param {string} params.description - Application description shown to users during OAuth2 consent. * @param {string} params.clientUri - Application homepage URL shown to users during OAuth2 consent. * @param {string} params.logoUri - Application logo URL shown to users during OAuth2 consent. * @param {string} params.privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent. * @param {string} params.termsUrl - Application terms of service URL shown to users during OAuth2 consent. * @param {string[]} params.contacts - Application support or security contact emails. Maximum of 100 contacts are allowed. * @param {string} params.tagline - Application tagline shown to users during OAuth2 consent. * @param {string[]} params.tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long. * @param {string[]} params.images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed. * @param {string} params.supportUrl - Application support URL shown to users during OAuth2 consent. * @param {string} params.dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent. * @param {boolean} params.enabled - Is application enabled? * @param {string[]} params.redirectUris - Redirect URIs. Each must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI (e.g. com.example.app:/oauth), and must not contain a fragment. * @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. * @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`. * @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. * @param {string[]} params.installationScopes - Scopes the application requests when installed on a team. Only scopes allowed by the project's OAuth2 server installation scopes configuration are accepted; use the list installation scopes endpoint to discover available values. Maximum of 100 scopes are allowed. * @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. * @throws {AppwriteException} * @returns {Promise} */ update(params: { 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; /** * Update an application by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} name - Application name. * @param {string} description - Application description shown to users during OAuth2 consent. * @param {string} clientUri - Application homepage URL shown to users during OAuth2 consent. * @param {string} logoUri - Application logo URL shown to users during OAuth2 consent. * @param {string} privacyPolicyUrl - Application privacy policy URL shown to users during OAuth2 consent. * @param {string} termsUrl - Application terms of service URL shown to users during OAuth2 consent. * @param {string[]} contacts - Application support or security contact emails. Maximum of 100 contacts are allowed. * @param {string} tagline - Application tagline shown to users during OAuth2 consent. * @param {string[]} tags - Application tags shown to users during OAuth2 consent. Maximum of 100 tags are allowed, each up to 64 characters long. * @param {string[]} images - Application image URLs shown to users during OAuth2 consent. Maximum of 100 images are allowed. * @param {string} supportUrl - Application support URL shown to users during OAuth2 consent. * @param {string} dataDeletionUrl - Application data deletion URL shown to users during OAuth2 consent. * @param {boolean} enabled - Is application enabled? * @param {string[]} redirectUris - Redirect URIs. Each must be an https URL, an http loopback URL (localhost, 127.0.0.1, [::1]), or a private-use scheme URI (e.g. com.example.app:/oauth), and must not contain a fragment. * @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. * @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`. * @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. * @param {string[]} installationScopes - Scopes the application requests when installed on a team. Only scopes allowed by the project's OAuth2 server installation scopes configuration are accepted; use the list installation scopes endpoint to discover available values. Maximum of 100 scopes are allowed. * @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. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ 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; /** * Delete an application by its unique ID. * * @param {string} params.appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ delete(params: { appId: string; }): Promise<{}>; /** * Delete an application by its unique ID. * * @param {string} appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ delete(appId: string): Promise<{}>; /** * 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. * * @param {string} params.appId - Application unique ID. * @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. * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ listInstallations(params: { appId: string; queries?: string[]; total?: boolean; }): Promise; /** * 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. * * @param {string} appId - Application unique ID. * @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. * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ listInstallations(appId: string, queries?: string[], total?: boolean): Promise; /** * 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. * * @param {string} params.appId - Application unique ID. * @param {string} params.installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise} */ getInstallation(params: { appId: string; installationId: string; }): Promise; /** * 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. * * @param {string} appId - Application unique ID. * @param {string} installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ getInstallation(appId: string, installationId: string): Promise; /** * 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. * * @param {string} params.appId - Application unique ID. * @param {string} params.installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteInstallation(params: { appId: string; installationId: string; }): Promise<{}>; /** * 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. * * @param {string} appId - Application unique ID. * @param {string} installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ deleteInstallation(appId: string, installationId: string): Promise<{}>; /** * 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. * * @param {string} params.appId - Application unique ID. * @param {string} params.installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise} */ createInstallationToken(params: { appId: string; installationId: string; }): Promise; /** * 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. * * @param {string} appId - Application unique ID. * @param {string} installationId - Installation unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ createInstallationToken(appId: string, installationId: string): Promise; /** * List app keys for an application. * * @param {string} params.appId - Application unique ID. * @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. * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ listKeys(params: { appId: string; queries?: string[]; total?: boolean; }): Promise; /** * List app keys for an application. * * @param {string} appId - Application unique ID. * @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. * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ listKeys(appId: string, queries?: string[], total?: boolean): Promise; /** * 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. * * @param {string} params.appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} */ createKey(params: { appId: string; }): Promise; /** * 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. * * @param {string} appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ createKey(appId: string): Promise; /** * Get an app key by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.keyId - App key unique ID. * @throws {AppwriteException} * @returns {Promise} */ getKey(params: { appId: string; keyId: string; }): Promise; /** * Get an app key by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} keyId - App key unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ getKey(appId: string, keyId: string): Promise; /** * Delete an app key by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.keyId - App key unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteKey(params: { appId: string; keyId: string; }): Promise<{}>; /** * Delete an app key by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} keyId - App key unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ deleteKey(appId: string, keyId: string): Promise<{}>; /** * 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. * * @param {string} params.appId - Application unique ID. * @param {string[]} params.labels - Array of application labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long. * @throws {AppwriteException} * @returns {Promise} */ updateLabels(params: { appId: string; labels: string[]; }): Promise; /** * 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. * * @param {string} appId - Application unique ID. * @param {string[]} labels - Array of application labels. Replaces the previous labels. Maximum of 1000 labels are allowed, each up to 36 alphanumeric characters long. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ updateLabels(appId: string, labels: string[]): Promise; /** * List client secrets for an application. * * @param {string} params.appId - Application unique ID. * @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. * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} */ listSecrets(params: { appId: string; queries?: string[]; total?: boolean; }): Promise; /** * List client secrets for an application. * * @param {string} appId - Application unique ID. * @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. * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ listSecrets(appId: string, queries?: string[], total?: boolean): Promise; /** * Create a new client secret for an application. * * @param {string} params.appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} */ createSecret(params: { appId: string; }): Promise; /** * Create a new client secret for an application. * * @param {string} appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ createSecret(appId: string): Promise; /** * Get an application client secret by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.secretId - Secret unique ID. * @throws {AppwriteException} * @returns {Promise} */ getSecret(params: { appId: string; secretId: string; }): Promise; /** * Get an application client secret by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} secretId - Secret unique ID. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ getSecret(appId: string, secretId: string): Promise; /** * Delete an application client secret by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.secretId - Secret unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteSecret(params: { appId: string; secretId: string; }): Promise<{}>; /** * Delete an application client secret by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} secretId - Secret unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ deleteSecret(appId: string, secretId: string): Promise<{}>; /** * Transfer an application to another team by its unique ID. * * @param {string} params.appId - Application unique ID. * @param {string} params.teamId - Team ID of the team to transfer application to. * @throws {AppwriteException} * @returns {Promise} */ updateTeam(params: { appId: string; teamId: string; }): Promise; /** * Transfer an application to another team by its unique ID. * * @param {string} appId - Application unique ID. * @param {string} teamId - Team ID of the team to transfer application to. * @throws {AppwriteException} * @returns {Promise} * @deprecated Use the object parameter style method for a better developer experience. */ updateTeam(appId: string, teamId: string): Promise; /** * Revoke all tokens for an application by its unique ID. * * @param {string} params.appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} */ deleteTokens(params: { appId: string; }): Promise<{}>; /** * Revoke all tokens for an application by its unique ID. * * @param {string} appId - Application unique ID. * @throws {AppwriteException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ deleteTokens(appId: string): Promise<{}>; } export { Apps };