diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index e6ea266..47ba248 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v6
- name: Use Node.js
- uses: actions/setup-node@v4
+ uses: actions/setup-node@v6
with:
node-version: '24.14.1'
registry-url: 'https://registry.npmjs.org'
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 01e735a..842e0fb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,14 @@
# Change Log
+## 13.0.0
+
+* Breaking: Renamed `updateCanonicalEmails` to `updateDenyCanonicalEmailPolicy` on `Project` service
+* Breaking: Renamed `updateDisposableEmails` to `updateDenyDisposableEmailPolicy` on `Project` service
+* Breaking: Renamed `updateFreeEmails` to `updateDenyFreeEmailPolicy` on `Project` service
+* Added: `prompt` parameter on `updateOAuth2Google` for Google OAuth2 prompt configuration
+* Added: `Prompt` and `OAuth2GooglePrompt` enums
+* Added: `prompt` field on `OAuth2Google` model
+
## 12.2.0
* Added: Introduced `bigint` create/update APIs for legacy Databases attributes
diff --git a/README.md b/README.md
index 4341de8..daed614 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ import { Client, Account } from "@appwrite.io/console";
To install with a CDN (content delivery network) add the following scripts to the bottom of your
tag, but before you use any Appwrite services:
```html
-
+
```
diff --git a/docs/examples/project/update-disposable-emails.md b/docs/examples/project/update-deny-canonical-email-policy.md
similarity index 83%
rename from docs/examples/project/update-disposable-emails.md
rename to docs/examples/project/update-deny-canonical-email-policy.md
index 8d8d9ed..5b22397 100644
--- a/docs/examples/project/update-disposable-emails.md
+++ b/docs/examples/project/update-deny-canonical-email-policy.md
@@ -7,7 +7,7 @@ const client = new Client()
const project = new Project(client);
-const result = await project.updateDisposableEmails({
+const result = await project.updateDenyCanonicalEmailPolicy({
enabled: false
});
diff --git a/docs/examples/project/update-free-emails.md b/docs/examples/project/update-deny-disposable-email-policy.md
similarity index 83%
rename from docs/examples/project/update-free-emails.md
rename to docs/examples/project/update-deny-disposable-email-policy.md
index 5059ad5..498ad33 100644
--- a/docs/examples/project/update-free-emails.md
+++ b/docs/examples/project/update-deny-disposable-email-policy.md
@@ -7,7 +7,7 @@ const client = new Client()
const project = new Project(client);
-const result = await project.updateFreeEmails({
+const result = await project.updateDenyDisposableEmailPolicy({
enabled: false
});
diff --git a/docs/examples/project/update-canonical-emails.md b/docs/examples/project/update-deny-free-email-policy.md
similarity index 85%
rename from docs/examples/project/update-canonical-emails.md
rename to docs/examples/project/update-deny-free-email-policy.md
index 62f040f..0356a79 100644
--- a/docs/examples/project/update-canonical-emails.md
+++ b/docs/examples/project/update-deny-free-email-policy.md
@@ -7,7 +7,7 @@ const client = new Client()
const project = new Project(client);
-const result = await project.updateCanonicalEmails({
+const result = await project.updateDenyFreeEmailPolicy({
enabled: false
});
diff --git a/docs/examples/project/update-o-auth-2-google.md b/docs/examples/project/update-o-auth-2-google.md
index a6d2cbf..b4ecf45 100644
--- a/docs/examples/project/update-o-auth-2-google.md
+++ b/docs/examples/project/update-o-auth-2-google.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Project } from "@appwrite.io/console";
+import { Client, Project, Prompt } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -10,6 +10,7 @@ const project = new Project(client);
const result = await project.updateOAuth2Google({
clientId: '', // optional
clientSecret: '', // optional
+ prompt: [Prompt.None], // optional
enabled: false // optional
});
diff --git a/package-lock.json b/package-lock.json
index d260ac4..685364d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "@appwrite.io/console",
- "version": "12.2.0",
+ "version": "13.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "@appwrite.io/console",
- "version": "12.2.0",
+ "version": "13.0.0",
"license": "BSD-3-Clause",
"dependencies": {
"json-bigint": "1.0.0"
diff --git a/package.json b/package.json
index 6ff1b31..9331376 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "@appwrite.io/console",
"homepage": "https://appwrite.io/support",
"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",
- "version": "12.2.0",
+ "version": "13.0.0",
"license": "BSD-3-Clause",
"main": "dist/cjs/sdk.js",
"exports": {
diff --git a/src/client.ts b/src/client.ts
index 77a14b7..8db723f 100644
--- a/src/client.ts
+++ b/src/client.ts
@@ -390,7 +390,7 @@ class Client {
'x-sdk-name': 'Console',
'x-sdk-platform': 'console',
'x-sdk-language': 'web',
- 'x-sdk-version': '12.2.0',
+ 'x-sdk-version': '13.0.0',
'X-Appwrite-Response-Format': '1.9.4',
};
diff --git a/src/enums/o-auth-2-google-prompt.ts b/src/enums/o-auth-2-google-prompt.ts
new file mode 100644
index 0000000..f8e98e1
--- /dev/null
+++ b/src/enums/o-auth-2-google-prompt.ts
@@ -0,0 +1,5 @@
+export enum OAuth2GooglePrompt {
+ None = 'none',
+ Consent = 'consent',
+ SelectAccount = 'select_account',
+}
\ No newline at end of file
diff --git a/src/enums/prompt.ts b/src/enums/prompt.ts
new file mode 100644
index 0000000..9bb101f
--- /dev/null
+++ b/src/enums/prompt.ts
@@ -0,0 +1,5 @@
+export enum Prompt {
+ None = 'none',
+ Consent = 'consent',
+ SelectAccount = 'select_account',
+}
\ No newline at end of file
diff --git a/src/index.ts b/src/index.ts
index 3bf3bc1..3acb7d9 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -85,6 +85,7 @@ export { NHostMigrationResource } from './enums/n-host-migration-resource';
export { SupabaseMigrationResource } from './enums/supabase-migration-resource';
export { Addon } from './enums/addon';
export { AuthMethod } from './enums/auth-method';
+export { Prompt } from './enums/prompt';
export { ProjectPolicy } from './enums/project-policy';
export { ProtocolId } from './enums/protocol-id';
export { ServiceId } from './enums/service-id';
@@ -117,6 +118,7 @@ export { DetectionRuntimeType } from './enums/detection-runtime-type';
export { DeploymentStatus } from './enums/deployment-status';
export { ExecutionTrigger } from './enums/execution-trigger';
export { ExecutionStatus } from './enums/execution-status';
+export { OAuth2GooglePrompt } from './enums/o-auth-2-google-prompt';
export { PlatformType } from './enums/platform-type';
export { HealthAntivirusStatus } from './enums/health-antivirus-status';
export { HealthCheckStatus } from './enums/health-check-status';
diff --git a/src/models.ts b/src/models.ts
index 8164b78..cef64a9 100644
--- a/src/models.ts
+++ b/src/models.ts
@@ -7,6 +7,7 @@ import { DetectionRuntimeType } from "./enums/detection-runtime-type"
import { DeploymentStatus } from "./enums/deployment-status"
import { ExecutionTrigger } from "./enums/execution-trigger"
import { ExecutionStatus } from "./enums/execution-status"
+import { OAuth2GooglePrompt } from "./enums/o-auth-2-google-prompt"
import { PlatformType } from "./enums/platform-type"
import { HealthAntivirusStatus } from "./enums/health-antivirus-status"
import { HealthCheckStatus } from "./enums/health-check-status"
@@ -5785,6 +5786,10 @@ export namespace Models {
* Google OAuth2 client secret.
*/
clientSecret: string;
+ /**
+ * Google OAuth2 prompt values.
+ */
+ prompt: OAuth2GooglePrompt[];
}
/**
diff --git a/src/services/project.ts b/src/services/project.ts
index 5ef653a..727f6dd 100644
--- a/src/services/project.ts
+++ b/src/services/project.ts
@@ -4,6 +4,7 @@ import type { Models } from '../models';
import { AuthMethod } from '../enums/auth-method';
import { Scopes } from '../enums/scopes';
+import { Prompt } from '../enums/prompt';
import { OAuthProvider } from '../enums/o-auth-provider';
import { ProjectPolicy } from '../enums/project-policy';
import { ProtocolId } from '../enums/protocol-id';
@@ -107,171 +108,6 @@ export class Project {
);
}
- /**
- * Configure if canonical emails (alias subaddresses and emails with suffixes) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} params.enabled - Set whether or not to require canonical email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- */
- updateCanonicalEmails(params: { enabled: boolean }): Promise;
- /**
- * Configure if canonical emails (alias subaddresses and emails with suffixes) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} enabled - Set whether or not to require canonical email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- * @deprecated Use the object parameter style method for a better developer experience.
- */
- updateCanonicalEmails(enabled: boolean): Promise;
- updateCanonicalEmails(
- paramsOrFirst: { enabled: boolean } | boolean
- ): Promise {
- let params: { enabled: boolean };
-
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
- params = (paramsOrFirst || {}) as { enabled: boolean };
- } else {
- params = {
- enabled: paramsOrFirst as boolean
- };
- }
-
- const enabled = params.enabled;
-
- if (typeof enabled === 'undefined') {
- throw new AppwriteException('Missing required parameter: "enabled"');
- }
-
- const apiPath = '/project/auth/canonical-emails';
- const payload: Payload = {};
- if (typeof enabled !== 'undefined') {
- payload['enabled'] = enabled;
- }
- const uri = new URL(this.client.config.endpoint + apiPath);
-
- const apiHeaders: { [header: string]: string } = {
- 'content-type': 'application/json',
- }
-
- return this.client.call(
- 'patch',
- uri,
- apiHeaders,
- payload
- );
- }
-
- /**
- * Configure if disposable emails (emails of known temporary domains) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} params.enabled - Set whether or not to block disposable email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- */
- updateDisposableEmails(params: { enabled: boolean }): Promise;
- /**
- * Configure if disposable emails (emails of known temporary domains) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} enabled - Set whether or not to block disposable email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- * @deprecated Use the object parameter style method for a better developer experience.
- */
- updateDisposableEmails(enabled: boolean): Promise;
- updateDisposableEmails(
- paramsOrFirst: { enabled: boolean } | boolean
- ): Promise {
- let params: { enabled: boolean };
-
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
- params = (paramsOrFirst || {}) as { enabled: boolean };
- } else {
- params = {
- enabled: paramsOrFirst as boolean
- };
- }
-
- const enabled = params.enabled;
-
- if (typeof enabled === 'undefined') {
- throw new AppwriteException('Missing required parameter: "enabled"');
- }
-
- const apiPath = '/project/auth/disposable-emails';
- const payload: Payload = {};
- if (typeof enabled !== 'undefined') {
- payload['enabled'] = enabled;
- }
- const uri = new URL(this.client.config.endpoint + apiPath);
-
- const apiHeaders: { [header: string]: string } = {
- 'content-type': 'application/json',
- }
-
- return this.client.call(
- 'patch',
- uri,
- apiHeaders,
- payload
- );
- }
-
- /**
- * Configure if free emails (non-commercial and not a custom domain) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} params.enabled - Set whether or not to block free email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- */
- updateFreeEmails(params: { enabled: boolean }): Promise;
- /**
- * Configure if free emails (non-commercial and not a custom domain) are allowed during new users sign-ups in this project.
- *
- * @param {boolean} enabled - Set whether or not to block free email addresses during signup and email updates.
- * @throws {AppwriteException}
- * @returns {Promise}
- * @deprecated Use the object parameter style method for a better developer experience.
- */
- updateFreeEmails(enabled: boolean): Promise;
- updateFreeEmails(
- paramsOrFirst: { enabled: boolean } | boolean
- ): Promise {
- let params: { enabled: boolean };
-
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
- params = (paramsOrFirst || {}) as { enabled: boolean };
- } else {
- params = {
- enabled: paramsOrFirst as boolean
- };
- }
-
- const enabled = params.enabled;
-
- if (typeof enabled === 'undefined') {
- throw new AppwriteException('Missing required parameter: "enabled"');
- }
-
- const apiPath = '/project/auth/free-emails';
- const payload: Payload = {};
- if (typeof enabled !== 'undefined') {
- payload['enabled'] = enabled;
- }
- const uri = new URL(this.client.config.endpoint + apiPath);
-
- const apiHeaders: { [header: string]: string } = {
- 'content-type': 'application/json',
- }
-
- return this.client.call(
- 'patch',
- uri,
- apiHeaders,
- payload
- );
- }
-
/**
* Get a list of all API keys from the current project.
*
@@ -1080,7 +916,7 @@ export class Project {
* Update the project OAuth2 Amazon configuration.
*
* @param {string} params.clientId - 'Client ID' of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2
- * @param {string} params.clientSecret - 'Client Secret' of Amazon OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1090,7 +926,7 @@ export class Project {
* Update the project OAuth2 Amazon configuration.
*
* @param {string} clientId - 'Client ID' of Amazon OAuth2 app. For example: amzn1.application-oa2-client.87400c00000000000000000000063d5b2
- * @param {string} clientSecret - 'Client Secret' of Amazon OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Amazon OAuth2 app. For example: 79ffe4000000000000000000000000000000000000000000000000000002de55
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1228,7 +1064,7 @@ export class Project {
* Update the project OAuth2 Auth0 configuration.
*
* @param {string} params.clientId - 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
- * @param {string} params.clientSecret - 'Client Secret' of Auth0 OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF
* @param {string} params.endpoint - Domain of Auth0 instance. For example: example.us.auth0.com
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -1239,7 +1075,7 @@ export class Project {
* Update the project OAuth2 Auth0 configuration.
*
* @param {string} clientId - 'Client ID' of Auth0 OAuth2 app. For example: OaOkIA000000000000000000005KLSYq
- * @param {string} clientSecret - 'Client Secret' of Auth0 OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Auth0 OAuth2 app. For example: zXz0000-00000000000000000000000000000-00000000000000000000PJafnF
* @param {string} endpoint - Domain of Auth0 instance. For example: example.us.auth0.com
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -1302,7 +1138,7 @@ export class Project {
* Update the project OAuth2 Authentik configuration.
*
* @param {string} params.clientId - 'Client ID' of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv
- * @param {string} params.clientSecret - 'Client Secret' of Authentik OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK
* @param {string} params.endpoint - Domain of Authentik instance. For example: example.authentik.com
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -1313,7 +1149,7 @@ export class Project {
* Update the project OAuth2 Authentik configuration.
*
* @param {string} clientId - 'Client ID' of Authentik OAuth2 app. For example: dTKOPa0000000000000000000000000000e7G8hv
- * @param {string} clientSecret - 'Client Secret' of Authentik OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Authentik OAuth2 app. For example: ntQadq000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000Hp5WK
* @param {string} endpoint - Domain of Authentik instance. For example: example.authentik.com
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -1376,7 +1212,7 @@ export class Project {
* Update the project OAuth2 Autodesk configuration.
*
* @param {string} params.clientId - 'Client ID' of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7
- * @param {string} params.clientSecret - 'Client Secret' of Autodesk OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Autodesk OAuth2 app. For example: 7I000000000000MW
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1386,7 +1222,7 @@ export class Project {
* Update the project OAuth2 Autodesk configuration.
*
* @param {string} clientId - 'Client ID' of Autodesk OAuth2 app. For example: 5zw90v00000000000000000000kVYXN7
- * @param {string} clientSecret - 'Client Secret' of Autodesk OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Autodesk OAuth2 app. For example: 7I000000000000MW
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1443,7 +1279,7 @@ export class Project {
* Update the project OAuth2 Bitbucket configuration.
*
* @param {string} params.key - 'Key' of Bitbucket OAuth2 app. For example: Knt70000000000ByRc
- * @param {string} params.secret - 'Secret' of Bitbucket OAuth2 app. For example:
+ * @param {string} params.secret - 'Secret' of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1453,7 +1289,7 @@ export class Project {
* Update the project OAuth2 Bitbucket configuration.
*
* @param {string} key - 'Key' of Bitbucket OAuth2 app. For example: Knt70000000000ByRc
- * @param {string} secret - 'Secret' of Bitbucket OAuth2 app. For example:
+ * @param {string} secret - 'Secret' of Bitbucket OAuth2 app. For example: NMfLZJ00000000000000000000TLQdDx
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1510,7 +1346,7 @@ export class Project {
* Update the project OAuth2 Bitly configuration.
*
* @param {string} params.clientId - 'Client ID' of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b
- * @param {string} params.clientSecret - 'Client Secret' of Bitly OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1520,7 +1356,7 @@ export class Project {
* Update the project OAuth2 Bitly configuration.
*
* @param {string} clientId - 'Client ID' of Bitly OAuth2 app. For example: d95151000000000000000000000000000067af9b
- * @param {string} clientSecret - 'Client Secret' of Bitly OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Bitly OAuth2 app. For example: a13e250000000000000000000000000000d73095
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1577,7 +1413,7 @@ export class Project {
* Update the project OAuth2 Box configuration.
*
* @param {string} params.clientId - 'Client ID' of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y
- * @param {string} params.clientSecret - 'Client Secret' of Box OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1587,7 +1423,7 @@ export class Project {
* Update the project OAuth2 Box configuration.
*
* @param {string} clientId - 'Client ID' of Box OAuth2 app. For example: deglcs00000000000000000000x2og6y
- * @param {string} clientSecret - 'Client Secret' of Box OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Box OAuth2 app. For example: OKM1f100000000000000000000eshEif
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1644,7 +1480,7 @@ export class Project {
* Update the project OAuth2 Dailymotion configuration.
*
* @param {string} params.apiKey - 'API Key' of Dailymotion OAuth2 app. For example: 07a9000000000000067f
- * @param {string} params.apiSecret - 'API Secret' of Dailymotion OAuth2 app. For example:
+ * @param {string} params.apiSecret - 'API Secret' of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1654,7 +1490,7 @@ export class Project {
* Update the project OAuth2 Dailymotion configuration.
*
* @param {string} apiKey - 'API Key' of Dailymotion OAuth2 app. For example: 07a9000000000000067f
- * @param {string} apiSecret - 'API Secret' of Dailymotion OAuth2 app. For example:
+ * @param {string} apiSecret - 'API Secret' of Dailymotion OAuth2 app. For example: a399a90000000000000000000000000000d90639
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1711,7 +1547,7 @@ export class Project {
* Update the project OAuth2 Discord configuration.
*
* @param {string} params.clientId - 'Client ID' of Discord OAuth2 app. For example: 950722000000343754
- * @param {string} params.clientSecret - 'Client Secret' of Discord OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1721,7 +1557,7 @@ export class Project {
* Update the project OAuth2 Discord configuration.
*
* @param {string} clientId - 'Client ID' of Discord OAuth2 app. For example: 950722000000343754
- * @param {string} clientSecret - 'Client Secret' of Discord OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Discord OAuth2 app. For example: YmPXnM000000000000000000002zFg5D
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1778,7 +1614,7 @@ export class Project {
* Update the project OAuth2 Disqus configuration.
*
* @param {string} params.publicKey - 'Public Key, also known as API Key' of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX
- * @param {string} params.secretKey - 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example:
+ * @param {string} params.secretKey - 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1788,7 +1624,7 @@ export class Project {
* Update the project OAuth2 Disqus configuration.
*
* @param {string} publicKey - 'Public Key, also known as API Key' of Disqus OAuth2 app. For example: cgegH70000000000000000000000000000000000000000000000000000Hr1nYX
- * @param {string} secretKey - 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example:
+ * @param {string} secretKey - 'Secret Key, also known as API Secret' of Disqus OAuth2 app. For example: W7Bykj00000000000000000000000000000000000000000000000000003o43w9
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1845,7 +1681,7 @@ export class Project {
* Update the project OAuth2 Dropbox configuration.
*
* @param {string} params.appKey - 'App Key' of Dropbox OAuth2 app. For example: jl000000000009t
- * @param {string} params.appSecret - 'App Secret' of Dropbox OAuth2 app. For example:
+ * @param {string} params.appSecret - 'App Secret' of Dropbox OAuth2 app. For example: g200000000000vw
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1855,7 +1691,7 @@ export class Project {
* Update the project OAuth2 Dropbox configuration.
*
* @param {string} appKey - 'App Key' of Dropbox OAuth2 app. For example: jl000000000009t
- * @param {string} appSecret - 'App Secret' of Dropbox OAuth2 app. For example:
+ * @param {string} appSecret - 'App Secret' of Dropbox OAuth2 app. For example: g200000000000vw
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1912,7 +1748,7 @@ export class Project {
* Update the project OAuth2 Etsy configuration.
*
* @param {string} params.keyString - 'Keystring' of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2
- * @param {string} params.sharedSecret - 'Shared Secret' of Etsy OAuth2 app. For example:
+ * @param {string} params.sharedSecret - 'Shared Secret' of Etsy OAuth2 app. For example: tp000000ru
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1922,7 +1758,7 @@ export class Project {
* Update the project OAuth2 Etsy configuration.
*
* @param {string} keyString - 'Keystring' of Etsy OAuth2 app. For example: nsgzxh0000000000008j85a2
- * @param {string} sharedSecret - 'Shared Secret' of Etsy OAuth2 app. For example:
+ * @param {string} sharedSecret - 'Shared Secret' of Etsy OAuth2 app. For example: tp000000ru
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1979,7 +1815,7 @@ export class Project {
* Update the project OAuth2 Facebook configuration.
*
* @param {string} params.appId - 'App ID' of Facebook OAuth2 app. For example: 260600000007694
- * @param {string} params.appSecret - 'App Secret' of Facebook OAuth2 app. For example:
+ * @param {string} params.appSecret - 'App Secret' of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -1989,7 +1825,7 @@ export class Project {
* Update the project OAuth2 Facebook configuration.
*
* @param {string} appId - 'App ID' of Facebook OAuth2 app. For example: 260600000007694
- * @param {string} appSecret - 'App Secret' of Facebook OAuth2 app. For example:
+ * @param {string} appSecret - 'App Secret' of Facebook OAuth2 app. For example: 2d0b2800000000000000000000d38af4
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2046,7 +1882,7 @@ export class Project {
* Update the project OAuth2 Figma configuration.
*
* @param {string} params.clientId - 'Client ID' of Figma OAuth2 app. For example: byay5H0000000000VtiI40
- * @param {string} params.clientSecret - 'Client Secret' of Figma OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2056,7 +1892,7 @@ export class Project {
* Update the project OAuth2 Figma configuration.
*
* @param {string} clientId - 'Client ID' of Figma OAuth2 app. For example: byay5H0000000000VtiI40
- * @param {string} clientSecret - 'Client Secret' of Figma OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Figma OAuth2 app. For example: yEpOYn0000000000000000004iIsU5
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2113,7 +1949,7 @@ export class Project {
* Update the project OAuth2 FusionAuth configuration.
*
* @param {string} params.clientId - 'Client ID' of FusionAuth OAuth2 app. For example: b2222c00-0000-0000-0000-000000862097
- * @param {string} params.clientSecret - 'Client Secret' of FusionAuth OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of FusionAuth OAuth2 app. For example: Jx4s0C0000000000000000000000000000000wGqLsc
* @param {string} params.endpoint - Domain of FusionAuth instance. For example: example.fusionauth.io
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2124,7 +1960,7 @@ export class Project {
* Update the project OAuth2 FusionAuth configuration.
*
* @param {string} clientId - 'Client ID' of FusionAuth OAuth2 app. For example: b2222c00-0000-0000-0000-000000862097
- * @param {string} clientSecret - 'Client Secret' of FusionAuth OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of FusionAuth OAuth2 app. For example: Jx4s0C0000000000000000000000000000000wGqLsc
* @param {string} endpoint - Domain of FusionAuth instance. For example: example.fusionauth.io
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2187,7 +2023,7 @@ export class Project {
* Update the project OAuth2 GitHub configuration.
*
* @param {string} params.clientId - 'OAuth2 app Client ID, or App ID' of GitHub OAuth2 app. For example: e4d87900000000540733. Example of wrong value: 370006
- * @param {string} params.clientSecret - 'Client Secret' of GitHub OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of GitHub OAuth2 app. For example: 5e07c00000000000000000000000000000198bcc
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2197,7 +2033,7 @@ export class Project {
* Update the project OAuth2 GitHub configuration.
*
* @param {string} clientId - 'OAuth2 app Client ID, or App ID' of GitHub OAuth2 app. For example: e4d87900000000540733. Example of wrong value: 370006
- * @param {string} clientSecret - 'Client Secret' of GitHub OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of GitHub OAuth2 app. For example: 5e07c00000000000000000000000000000198bcc
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2254,7 +2090,7 @@ export class Project {
* Update the project OAuth2 Gitlab configuration.
*
* @param {string} params.applicationId - 'Application ID' of Gitlab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252
- * @param {string} params.secret - 'Secret' of Gitlab OAuth2 app. For example:
+ * @param {string} params.secret - 'Secret' of Gitlab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38
* @param {string} params.endpoint - Endpoint URL of self-hosted GitLab instance. For example: https://gitlab.com
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2265,7 +2101,7 @@ export class Project {
* Update the project OAuth2 Gitlab configuration.
*
* @param {string} applicationId - 'Application ID' of Gitlab OAuth2 app. For example: d41ffe0000000000000000000000000000000000000000000000000000d5e252
- * @param {string} secret - 'Secret' of Gitlab OAuth2 app. For example:
+ * @param {string} secret - 'Secret' of Gitlab OAuth2 app. For example: gloas-838cfa0000000000000000000000000000000000000000000000000000ecbb38
* @param {string} endpoint - Endpoint URL of self-hosted GitLab instance. For example: https://gitlab.com
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2328,41 +2164,45 @@ export class Project {
* Update the project OAuth2 Google configuration.
*
* @param {string} params.clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
- * @param {string} params.clientSecret - 'Client Secret' of Google OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
+ * @param {Prompt[]} params.prompt - Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
*/
- updateOAuth2Google(params?: { clientId?: string, clientSecret?: string, enabled?: boolean }): Promise;
+ updateOAuth2Google(params?: { clientId?: string, clientSecret?: string, prompt?: Prompt[], enabled?: boolean }): Promise;
/**
* Update the project OAuth2 Google configuration.
*
* @param {string} clientId - 'Client ID' of Google OAuth2 app. For example: 120000000095-92ifjb00000000000000000000g7ijfb.apps.googleusercontent.com
- * @param {string} clientSecret - 'Client Secret' of Google OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Google OAuth2 app. For example: GOCSPX-2k8gsR0000000000000000VNahJj
+ * @param {Prompt[]} prompt - Array of Google OAuth2 prompt values. If "none" is included, it must be the only element. "none" means: don't display any authentication or consent screens. Must not be specified with other values. "consent" means: prompt the user for consent. "select_account" means: prompt the user to select an account.
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
* @deprecated Use the object parameter style method for a better developer experience.
*/
- updateOAuth2Google(clientId?: string, clientSecret?: string, enabled?: boolean): Promise;
+ updateOAuth2Google(clientId?: string, clientSecret?: string, prompt?: Prompt[], enabled?: boolean): Promise;
updateOAuth2Google(
- paramsOrFirst?: { clientId?: string, clientSecret?: string, enabled?: boolean } | string,
- ...rest: [(string)?, (boolean)?]
+ paramsOrFirst?: { clientId?: string, clientSecret?: string, prompt?: Prompt[], enabled?: boolean } | string,
+ ...rest: [(string)?, (Prompt[])?, (boolean)?]
): Promise {
- let params: { clientId?: string, clientSecret?: string, enabled?: boolean };
+ let params: { clientId?: string, clientSecret?: string, prompt?: Prompt[], enabled?: boolean };
if (!paramsOrFirst || (paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
- params = (paramsOrFirst || {}) as { clientId?: string, clientSecret?: string, enabled?: boolean };
+ params = (paramsOrFirst || {}) as { clientId?: string, clientSecret?: string, prompt?: Prompt[], enabled?: boolean };
} else {
params = {
clientId: paramsOrFirst as string,
clientSecret: rest[0] as string,
- enabled: rest[1] as boolean
+ prompt: rest[1] as Prompt[],
+ enabled: rest[2] as boolean
};
}
const clientId = params.clientId;
const clientSecret = params.clientSecret;
+ const prompt = params.prompt;
const enabled = params.enabled;
@@ -2374,6 +2214,9 @@ export class Project {
if (typeof clientSecret !== 'undefined') {
payload['clientSecret'] = clientSecret;
}
+ if (typeof prompt !== 'undefined') {
+ payload['prompt'] = prompt;
+ }
if (typeof enabled !== 'undefined') {
payload['enabled'] = enabled;
}
@@ -2395,7 +2238,7 @@ export class Project {
* Update the project OAuth2 Keycloak configuration.
*
* @param {string} params.clientId - 'Client ID' of Keycloak OAuth2 app. For example: appwrite-o0000000st-app
- * @param {string} params.clientSecret - 'Client Secret' of Keycloak OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Keycloak OAuth2 app. For example: jdjrJd00000000000000000000HUsaZO
* @param {string} params.endpoint - Domain of Keycloak instance. For example: keycloak.example.com
* @param {string} params.realmName - Keycloak realm name. For example: appwrite-realm
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
@@ -2407,7 +2250,7 @@ export class Project {
* Update the project OAuth2 Keycloak configuration.
*
* @param {string} clientId - 'Client ID' of Keycloak OAuth2 app. For example: appwrite-o0000000st-app
- * @param {string} clientSecret - 'Client Secret' of Keycloak OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Keycloak OAuth2 app. For example: jdjrJd00000000000000000000HUsaZO
* @param {string} endpoint - Domain of Keycloak instance. For example: keycloak.example.com
* @param {string} realmName - Keycloak realm name. For example: appwrite-realm
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
@@ -2476,7 +2319,7 @@ export class Project {
* Update the project OAuth2 Kick configuration.
*
* @param {string} params.clientId - 'Client ID' of Kick OAuth2 app. For example: 01KQ7C00000000000001MFHS32
- * @param {string} params.clientSecret - 'Client Secret' of Kick OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Kick OAuth2 app. For example: 34ac5600000000000000000000000000000000000000000000000000e830c8b
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2486,7 +2329,7 @@ export class Project {
* Update the project OAuth2 Kick configuration.
*
* @param {string} clientId - 'Client ID' of Kick OAuth2 app. For example: 01KQ7C00000000000001MFHS32
- * @param {string} clientSecret - 'Client Secret' of Kick OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Kick OAuth2 app. For example: 34ac5600000000000000000000000000000000000000000000000000e830c8b
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2543,7 +2386,7 @@ export class Project {
* Update the project OAuth2 Linkedin configuration.
*
* @param {string} params.clientId - 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv
- * @param {string} params.primaryClientSecret - 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example:
+ * @param {string} params.primaryClientSecret - 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw==
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2553,7 +2396,7 @@ export class Project {
* Update the project OAuth2 Linkedin configuration.
*
* @param {string} clientId - 'Client ID' of Linkedin OAuth2 app. For example: 770000000000dv
- * @param {string} primaryClientSecret - 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example:
+ * @param {string} primaryClientSecret - 'Primary Client Secret or Secondary Client Secret' of Linkedin OAuth2 app. For example: WPL_AP1.2Bf0000000000000./HtlYw==
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2610,7 +2453,7 @@ export class Project {
* Update the project OAuth2 Microsoft configuration.
*
* @param {string} params.applicationId - 'Entra ID Application ID, also known as Client ID' of Microsoft OAuth2 app. For example: 00001111-aaaa-2222-bbbb-3333cccc4444
- * @param {string} params.applicationSecret - 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example:
+ * @param {string} params.applicationSecret - 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example: A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u
* @param {string} params.tenant - Microsoft Entra ID tenant identifier. Use 'common', 'organizations', 'consumers' or a specific tenant ID. For example: common
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2621,7 +2464,7 @@ export class Project {
* Update the project OAuth2 Microsoft configuration.
*
* @param {string} applicationId - 'Entra ID Application ID, also known as Client ID' of Microsoft OAuth2 app. For example: 00001111-aaaa-2222-bbbb-3333cccc4444
- * @param {string} applicationSecret - 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example:
+ * @param {string} applicationSecret - 'Entra ID Application Secret, also known as Client Secret' of Microsoft OAuth2 app. For example: A1bC2dE3fH4iJ5kL6mN7oP8qR9sT0u
* @param {string} tenant - Microsoft Entra ID tenant identifier. Use 'common', 'organizations', 'consumers' or a specific tenant ID. For example: common
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
@@ -2684,7 +2527,7 @@ export class Project {
* Update the project OAuth2 Notion configuration.
*
* @param {string} params.oauthClientId - 'OAuth Client ID' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
- * @param {string} params.oauthClientSecret - 'OAuth Client Secret' of Notion OAuth2 app. For example:
+ * @param {string} params.oauthClientSecret - 'OAuth Client Secret' of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2694,7 +2537,7 @@ export class Project {
* Update the project OAuth2 Notion configuration.
*
* @param {string} oauthClientId - 'OAuth Client ID' of Notion OAuth2 app. For example: 341d8700-0000-0000-0000-000000446ee3
- * @param {string} oauthClientSecret - 'OAuth Client Secret' of Notion OAuth2 app. For example:
+ * @param {string} oauthClientSecret - 'OAuth Client Secret' of Notion OAuth2 app. For example: secret_dLUr4b000000000000000000000000000000lFHAa9
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2751,7 +2594,7 @@ export class Project {
* Update the project OAuth2 Oidc configuration.
*
* @param {string} params.clientId - 'Client ID' of Oidc OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG
- * @param {string} params.clientSecret - 'Client Secret' of Oidc OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Oidc OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV
* @param {string} params.wellKnownURL - OpenID Connect well-known configuration URL. When provided, authorization, token, and user info endpoints can be discovered automatically. For example: https://myoauth.com/.well-known/openid-configuration
* @param {string} params.authorizationURL - OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
* @param {string} params.tokenURL - OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
@@ -2765,7 +2608,7 @@ export class Project {
* Update the project OAuth2 Oidc configuration.
*
* @param {string} clientId - 'Client ID' of Oidc OAuth2 app. For example: qibI2x0000000000000000000000000006L2YFoG
- * @param {string} clientSecret - 'Client Secret' of Oidc OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Oidc OAuth2 app. For example: Ah68ed000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003qpcHV
* @param {string} wellKnownURL - OpenID Connect well-known configuration URL. When provided, authorization, token, and user info endpoints can be discovered automatically. For example: https://myoauth.com/.well-known/openid-configuration
* @param {string} authorizationURL - OpenID Connect authorization endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/authorize
* @param {string} tokenURL - OpenID Connect token endpoint URL. Required when wellKnownURL is not provided. For example: https://myoauth.com/oauth2/token
@@ -2846,7 +2689,7 @@ export class Project {
* Update the project OAuth2 Okta configuration.
*
* @param {string} params.clientId - 'Client ID' of Okta OAuth2 app. For example: 0oa00000000000000698
- * @param {string} params.clientSecret - 'Client Secret' of Okta OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Okta OAuth2 app. For example: Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV
* @param {string} params.domain - Okta company domain. Required when enabling the provider. For example: trial-6400025.okta.com. Example of wrong value: trial-6400025-admin.okta.com, or https://trial-6400025.okta.com/
* @param {string} params.authorizationServerId - Custom Authorization Servers. Optional, can be left empty or unconfigured. For example: aus000000000000000h7z
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
@@ -2858,7 +2701,7 @@ export class Project {
* Update the project OAuth2 Okta configuration.
*
* @param {string} clientId - 'Client ID' of Okta OAuth2 app. For example: 0oa00000000000000698
- * @param {string} clientSecret - 'Client Secret' of Okta OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Okta OAuth2 app. For example: Kiq0000000000000000000000000000000000000-00000000000H2L5-3SJ-vRV
* @param {string} domain - Okta company domain. Required when enabling the provider. For example: trial-6400025.okta.com. Example of wrong value: trial-6400025-admin.okta.com, or https://trial-6400025.okta.com/
* @param {string} authorizationServerId - Custom Authorization Servers. Optional, can be left empty or unconfigured. For example: aus000000000000000h7z
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
@@ -2927,7 +2770,7 @@ export class Project {
* Update the project OAuth2 Paypal configuration.
*
* @param {string} params.clientId - 'Client ID' of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
- * @param {string} params.secretKey - 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example:
+ * @param {string} params.secretKey - 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2937,7 +2780,7 @@ export class Project {
* Update the project OAuth2 Paypal configuration.
*
* @param {string} clientId - 'Client ID' of Paypal OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
- * @param {string} secretKey - 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example:
+ * @param {string} secretKey - 'Secret Key 1 or Secret Key 2' of Paypal OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -2994,7 +2837,7 @@ export class Project {
* Update the project OAuth2 PaypalSandbox configuration.
*
* @param {string} params.clientId - 'Client ID' of PaypalSandbox OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
- * @param {string} params.secretKey - 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example:
+ * @param {string} params.secretKey - 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3004,7 +2847,7 @@ export class Project {
* Update the project OAuth2 PaypalSandbox configuration.
*
* @param {string} clientId - 'Client ID' of PaypalSandbox OAuth2 app. For example: AdhIEG7-000000000000-0000000000000000000000000000000-0000000000000000000000-2pyB
- * @param {string} secretKey - 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example:
+ * @param {string} secretKey - 'Secret Key 1 or Secret Key 2' of PaypalSandbox OAuth2 app. For example: EH8KCXtew--000000000000000000000000000000000000000_C-1_5UP_000000000000000CB7KDp
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3061,7 +2904,7 @@ export class Project {
* Update the project OAuth2 Podio configuration.
*
* @param {string} params.clientId - 'Client ID' of Podio OAuth2 app. For example: appwrite-o0000000st-app
- * @param {string} params.clientSecret - 'Client Secret' of Podio OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3071,7 +2914,7 @@ export class Project {
* Update the project OAuth2 Podio configuration.
*
* @param {string} clientId - 'Client ID' of Podio OAuth2 app. For example: appwrite-o0000000st-app
- * @param {string} clientSecret - 'Client Secret' of Podio OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Podio OAuth2 app. For example: Rn247T0000000000000000000000000000000000000000000000000000W2zWTN
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3128,7 +2971,7 @@ export class Project {
* Update the project OAuth2 Salesforce configuration.
*
* @param {string} params.customerKey - 'Consumer Key' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
- * @param {string} params.customerSecret - 'Consumer Secret' of Salesforce OAuth2 app. For example:
+ * @param {string} params.customerSecret - 'Consumer Secret' of Salesforce OAuth2 app. For example: 3w000000000000e2
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3138,7 +2981,7 @@ export class Project {
* Update the project OAuth2 Salesforce configuration.
*
* @param {string} customerKey - 'Consumer Key' of Salesforce OAuth2 app. For example: 3MVG9I0000000000000000000000000000000000000000000000000000000000000000000000000C5Aejq
- * @param {string} customerSecret - 'Consumer Secret' of Salesforce OAuth2 app. For example:
+ * @param {string} customerSecret - 'Consumer Secret' of Salesforce OAuth2 app. For example: 3w000000000000e2
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3195,7 +3038,7 @@ export class Project {
* Update the project OAuth2 Slack configuration.
*
* @param {string} params.clientId - 'Client ID' of Slack OAuth2 app. For example: 23000000089.15000000000023
- * @param {string} params.clientSecret - 'Client Secret' of Slack OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3205,7 +3048,7 @@ export class Project {
* Update the project OAuth2 Slack configuration.
*
* @param {string} clientId - 'Client ID' of Slack OAuth2 app. For example: 23000000089.15000000000023
- * @param {string} clientSecret - 'Client Secret' of Slack OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Slack OAuth2 app. For example: 81656000000000000000000000f3d2fd
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3262,7 +3105,7 @@ export class Project {
* Update the project OAuth2 Spotify configuration.
*
* @param {string} params.clientId - 'Client ID' of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace
- * @param {string} params.clientSecret - 'Client Secret' of Spotify OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3272,7 +3115,7 @@ export class Project {
* Update the project OAuth2 Spotify configuration.
*
* @param {string} clientId - 'Client ID' of Spotify OAuth2 app. For example: 6ec271000000000000000000009beace
- * @param {string} clientSecret - 'Client Secret' of Spotify OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Spotify OAuth2 app. For example: db068a000000000000000000008b5b9f
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3329,7 +3172,7 @@ export class Project {
* Update the project OAuth2 Stripe configuration.
*
* @param {string} params.clientId - 'Client ID' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
- * @param {string} params.apiSecretKey - 'API Secret Key' of Stripe OAuth2 app. For example:
+ * @param {string} params.apiSecretKey - 'API Secret Key' of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3339,7 +3182,7 @@ export class Project {
* Update the project OAuth2 Stripe configuration.
*
* @param {string} clientId - 'Client ID' of Stripe OAuth2 app. For example: ca_UKibXX0000000000000000000006byvR
- * @param {string} apiSecretKey - 'API Secret Key' of Stripe OAuth2 app. For example:
+ * @param {string} apiSecretKey - 'API Secret Key' of Stripe OAuth2 app. For example: sk_51SfOd000000000000000000000000000000000000000000000000000000000000000000000000000000000000000QGWYfp
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3396,7 +3239,7 @@ export class Project {
* Update the project OAuth2 Tradeshift configuration.
*
* @param {string} params.oauth2ClientId - 'OAuth2 Client ID' of Tradeshift OAuth2 app. For example: appwrite-tes00000.0000000000est-app
- * @param {string} params.oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example:
+ * @param {string} params.oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3406,7 +3249,7 @@ export class Project {
* Update the project OAuth2 Tradeshift configuration.
*
* @param {string} oauth2ClientId - 'OAuth2 Client ID' of Tradeshift OAuth2 app. For example: appwrite-tes00000.0000000000est-app
- * @param {string} oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example:
+ * @param {string} oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3463,7 +3306,7 @@ export class Project {
* Update the project OAuth2 Tradeshift Sandbox configuration.
*
* @param {string} params.oauth2ClientId - 'OAuth2 Client ID' of Tradeshift Sandbox OAuth2 app. For example: appwrite-tes00000.0000000000est-app
- * @param {string} params.oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example:
+ * @param {string} params.oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3473,7 +3316,7 @@ export class Project {
* Update the project OAuth2 Tradeshift Sandbox configuration.
*
* @param {string} oauth2ClientId - 'OAuth2 Client ID' of Tradeshift Sandbox OAuth2 app. For example: appwrite-tes00000.0000000000est-app
- * @param {string} oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example:
+ * @param {string} oauth2ClientSecret - 'OAuth2 Client Secret' of Tradeshift Sandbox OAuth2 app. For example: 7cb52700-0000-0000-0000-000000ca5b83
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3530,7 +3373,7 @@ export class Project {
* Update the project OAuth2 Twitch configuration.
*
* @param {string} params.clientId - 'Client ID' of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p
- * @param {string} params.clientSecret - 'Client Secret' of Twitch OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3540,7 +3383,7 @@ export class Project {
* Update the project OAuth2 Twitch configuration.
*
* @param {string} clientId - 'Client ID' of Twitch OAuth2 app. For example: vvi0in000000000000000000ikmt9p
- * @param {string} clientSecret - 'Client Secret' of Twitch OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Twitch OAuth2 app. For example: pmapue000000000000000000zylw3v
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3597,7 +3440,7 @@ export class Project {
* Update the project OAuth2 WordPress configuration.
*
* @param {string} params.clientId - 'Client ID' of WordPress OAuth2 app. For example: 130005
- * @param {string} params.clientSecret - 'Client Secret' of WordPress OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3607,7 +3450,7 @@ export class Project {
* Update the project OAuth2 WordPress configuration.
*
* @param {string} clientId - 'Client ID' of WordPress OAuth2 app. For example: 130005
- * @param {string} clientSecret - 'Client Secret' of WordPress OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of WordPress OAuth2 app. For example: PlBfJS0000000000000000000000000000000000000000000000000000EdUZJk
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3664,7 +3507,7 @@ export class Project {
* Update the project OAuth2 X configuration.
*
* @param {string} params.customerKey - 'Customer Key' of X OAuth2 app. For example: slzZV0000000000000NFLaWT
- * @param {string} params.secretKey - 'Secret Key' of X OAuth2 app. For example:
+ * @param {string} params.secretKey - 'Secret Key' of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3674,7 +3517,7 @@ export class Project {
* Update the project OAuth2 X configuration.
*
* @param {string} customerKey - 'Customer Key' of X OAuth2 app. For example: slzZV0000000000000NFLaWT
- * @param {string} secretKey - 'Secret Key' of X OAuth2 app. For example:
+ * @param {string} secretKey - 'Secret Key' of X OAuth2 app. For example: tkEPkp00000000000000000000000000000000000000FTxbI9
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3731,7 +3574,7 @@ export class Project {
* Update the project OAuth2 Yahoo configuration.
*
* @param {string} params.clientId - 'Client ID, also known as Customer Key' of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm
- * @param {string} params.clientSecret - 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3741,7 +3584,7 @@ export class Project {
* Update the project OAuth2 Yahoo configuration.
*
* @param {string} clientId - 'Client ID, also known as Customer Key' of Yahoo OAuth2 app. For example: dj0yJm000000000000000000000000000000000000000000000000000000000000000000000000000000000000Z4PWRm
- * @param {string} clientSecret - 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret, also known as Customer Secret' of Yahoo OAuth2 app. For example: cf978f0000000000000000000000000000c5e2e9
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3798,7 +3641,7 @@ export class Project {
* Update the project OAuth2 Yandex configuration.
*
* @param {string} params.clientId - 'Client ID' of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c
- * @param {string} params.clientSecret - 'Client Secret' of Yandex OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3808,7 +3651,7 @@ export class Project {
* Update the project OAuth2 Yandex configuration.
*
* @param {string} clientId - 'Client ID' of Yandex OAuth2 app. For example: 6a8a6a0000000000000000000091483c
- * @param {string} clientSecret - 'Client Secret' of Yandex OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Yandex OAuth2 app. For example: bbf98500000000000000000000c75a63
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3865,7 +3708,7 @@ export class Project {
* Update the project OAuth2 Zoho configuration.
*
* @param {string} params.clientId - 'Client ID' of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B
- * @param {string} params.clientSecret - 'Client Secret' of Zoho OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3875,7 +3718,7 @@ export class Project {
* Update the project OAuth2 Zoho configuration.
*
* @param {string} clientId - 'Client ID' of Zoho OAuth2 app. For example: 1000.83C178000000000000000000RPNX0B
- * @param {string} clientSecret - 'Client Secret' of Zoho OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Zoho OAuth2 app. For example: fb5cac000000000000000000000000000000a68f6e
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3932,7 +3775,7 @@ export class Project {
* Update the project OAuth2 Zoom configuration.
*
* @param {string} params.clientId - 'Client ID' of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ
- * @param {string} params.clientSecret - 'Client Secret' of Zoom OAuth2 app. For example:
+ * @param {string} params.clientSecret - 'Client Secret' of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON
* @param {boolean} params.enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -3942,7 +3785,7 @@ export class Project {
* Update the project OAuth2 Zoom configuration.
*
* @param {string} clientId - 'Client ID' of Zoom OAuth2 app. For example: QMAC00000000000000w0AQ
- * @param {string} clientSecret - 'Client Secret' of Zoom OAuth2 app. For example:
+ * @param {string} clientSecret - 'Client Secret' of Zoom OAuth2 app. For example: GAWsG4000000000000000000007U01ON
* @param {boolean} enabled - OAuth2 sign-in method status. Set to true to enable new session creation. Setting to true will trigger end-to-end credentials validation, and will throw if the credentials are invalid.
* @throws {AppwriteException}
* @returns {Promise}
@@ -5012,6 +4855,171 @@ export class Project {
);
}
+ /**
+ * Configures if email aliases such as subaddresses and emails with suffixes are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} params.enabled - Set whether or not to block email aliases during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ updateDenyCanonicalEmailPolicy(params: { enabled: boolean }): Promise;
+ /**
+ * Configures if email aliases such as subaddresses and emails with suffixes are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} enabled - Set whether or not to block email aliases during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ * @deprecated Use the object parameter style method for a better developer experience.
+ */
+ updateDenyCanonicalEmailPolicy(enabled: boolean): Promise;
+ updateDenyCanonicalEmailPolicy(
+ paramsOrFirst: { enabled: boolean } | boolean
+ ): Promise {
+ let params: { enabled: boolean };
+
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
+ params = (paramsOrFirst || {}) as { enabled: boolean };
+ } else {
+ params = {
+ enabled: paramsOrFirst as boolean
+ };
+ }
+
+ const enabled = params.enabled;
+
+ if (typeof enabled === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "enabled"');
+ }
+
+ const apiPath = '/project/policies/deny-canonical-email';
+ const payload: Payload = {};
+ if (typeof enabled !== 'undefined') {
+ payload['enabled'] = enabled;
+ }
+ const uri = new URL(this.client.config.endpoint + apiPath);
+
+ const apiHeaders: { [header: string]: string } = {
+ 'content-type': 'application/json',
+ }
+
+ return this.client.call(
+ 'patch',
+ uri,
+ apiHeaders,
+ payload
+ );
+ }
+
+ /**
+ * Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} params.enabled - Set whether or not to block disposable email addresses during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ updateDenyDisposableEmailPolicy(params: { enabled: boolean }): Promise;
+ /**
+ * Configures if disposable emails from known temporary domains are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} enabled - Set whether or not to block disposable email addresses during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ * @deprecated Use the object parameter style method for a better developer experience.
+ */
+ updateDenyDisposableEmailPolicy(enabled: boolean): Promise;
+ updateDenyDisposableEmailPolicy(
+ paramsOrFirst: { enabled: boolean } | boolean
+ ): Promise {
+ let params: { enabled: boolean };
+
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
+ params = (paramsOrFirst || {}) as { enabled: boolean };
+ } else {
+ params = {
+ enabled: paramsOrFirst as boolean
+ };
+ }
+
+ const enabled = params.enabled;
+
+ if (typeof enabled === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "enabled"');
+ }
+
+ const apiPath = '/project/policies/deny-disposable-email';
+ const payload: Payload = {};
+ if (typeof enabled !== 'undefined') {
+ payload['enabled'] = enabled;
+ }
+ const uri = new URL(this.client.config.endpoint + apiPath);
+
+ const apiHeaders: { [header: string]: string } = {
+ 'content-type': 'application/json',
+ }
+
+ return this.client.call(
+ 'patch',
+ uri,
+ apiHeaders,
+ payload
+ );
+ }
+
+ /**
+ * Configures if emails from free providers such as Gmail or Yahoo are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} params.enabled - Set whether or not to block free email addresses during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ */
+ updateDenyFreeEmailPolicy(params: { enabled: boolean }): Promise;
+ /**
+ * Configures if emails from free providers such as Gmail or Yahoo are denied during new users sign-ups and email updates.
+ *
+ * @param {boolean} enabled - Set whether or not to block free email addresses during signup and email updates.
+ * @throws {AppwriteException}
+ * @returns {Promise}
+ * @deprecated Use the object parameter style method for a better developer experience.
+ */
+ updateDenyFreeEmailPolicy(enabled: boolean): Promise;
+ updateDenyFreeEmailPolicy(
+ paramsOrFirst: { enabled: boolean } | boolean
+ ): Promise {
+ let params: { enabled: boolean };
+
+ if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
+ params = (paramsOrFirst || {}) as { enabled: boolean };
+ } else {
+ params = {
+ enabled: paramsOrFirst as boolean
+ };
+ }
+
+ const enabled = params.enabled;
+
+ if (typeof enabled === 'undefined') {
+ throw new AppwriteException('Missing required parameter: "enabled"');
+ }
+
+ const apiPath = '/project/policies/deny-free-email';
+ const payload: Payload = {};
+ if (typeof enabled !== 'undefined') {
+ payload['enabled'] = enabled;
+ }
+ const uri = new URL(this.client.config.endpoint + apiPath);
+
+ const apiHeaders: { [header: string]: string } = {
+ 'content-type': 'application/json',
+ }
+
+ return this.client.call(
+ 'patch',
+ uri,
+ apiHeaders,
+ payload
+ );
+ }
+
/**
* Updating this policy allows you to control if team members can see other members information. When enabled, all team members can see ID, name, email, phone number, and MFA status of other members..
*