diff --git a/CHANGELOG.md b/CHANGELOG.md
index 842e0fb3..86e993ed 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,27 @@
# Change Log
+## 13.2.0
+
+* Added: `Apps` service for managing OAuth2 apps, secrets, and tokens
+* Added: `Compute` service for dedicated database management (backups, branches, connections, replicas, restorations)
+* Added: `Advisor` service with `listInsights`, `getInsight`, `listReports`, `getReport`, and `deleteReport`
+* Added: `getAuditsDB` method on `Health` service
+* Added: `createSesProvider` and `updateSesProvider` methods on `Messaging` service
+* Added: `updateOAuth2Server` method on `Project` service
+* Added: `updatePasswordStrengthPolicy` method on `Project` service
+* Added: Models for dedicated databases, apps, advisor insights/reports, and new password policies
+* Updated: `getPolicy` now also returns password-strength and email-deny policy types
+* Updated: Renamed enums to match server naming (`FunctionRuntime` to `Runtime`, `SiteFramework` to `Framework`, `SiteBuildRuntime` to `BuildRuntime`, `SiteAdapter` to `Adapter`, `MigrationOnDuplicate` to `OnDuplicate`, `RedirectStatusCode` to `StatusCode`, `OrganizationAddon` to `Addon`, `ProjectStatus` to `Status`)
+* Updated: `X-Appwrite-Project` is now sent per request instead of set globally on `setProject`
+
+## 13.1.0
+
+* Added: `Organization` service with organization-scoped key methods (`listKeys`, `createKey`, `getKey`, `updateKey`, `deleteKey`)
+* Added: `Presences` service with `list`, `get`, and `getUsage` methods
+* Added: `Usage` service with `listEvents` and `listGauges` methods
+* Added: `listOrganizationScopes` and `getEmailTemplate` methods on `Console` service
+* Updated: Renamed enums for clearer namespacing (e.g. `Scopes` to `AccountKeyScopes`, `Theme` to `BrowserTheme`, `Runtime` to `FunctionRuntime`)
+
## 13.0.0
* Breaking: Renamed `updateCanonicalEmails` to `updateDenyCanonicalEmailPolicy` on `Project` service
diff --git a/README.md b/README.md
index 8cf6f116..a58f3c0a 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/account/update-password.md b/docs/examples/account/update-password.md
index 5699dab4..c3f841ec 100644
--- a/docs/examples/account/update-password.md
+++ b/docs/examples/account/update-password.md
@@ -9,7 +9,7 @@ const account = new Account(client);
const result = await account.updatePassword({
password: '',
- oldPassword: 'password' // optional
+ oldPassword: '' // optional
});
console.log(result);
diff --git a/docs/examples/advisor/delete-report.md b/docs/examples/advisor/delete-report.md
new file mode 100644
index 00000000..d549dddb
--- /dev/null
+++ b/docs/examples/advisor/delete-report.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Advisor } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const advisor = new Advisor(client);
+
+const result = await advisor.deleteReport({
+ reportId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/advisor/get-insight.md b/docs/examples/advisor/get-insight.md
new file mode 100644
index 00000000..bf59a7ed
--- /dev/null
+++ b/docs/examples/advisor/get-insight.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Advisor } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const advisor = new Advisor(client);
+
+const result = await advisor.getInsight({
+ reportId: '',
+ insightId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/advisor/get-report.md b/docs/examples/advisor/get-report.md
new file mode 100644
index 00000000..cdb46636
--- /dev/null
+++ b/docs/examples/advisor/get-report.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Advisor } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const advisor = new Advisor(client);
+
+const result = await advisor.getReport({
+ reportId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/advisor/list-insights.md b/docs/examples/advisor/list-insights.md
new file mode 100644
index 00000000..e3d97867
--- /dev/null
+++ b/docs/examples/advisor/list-insights.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Advisor } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const advisor = new Advisor(client);
+
+const result = await advisor.listInsights({
+ reportId: '',
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/advisor/list-reports.md b/docs/examples/advisor/list-reports.md
new file mode 100644
index 00000000..5cf736e5
--- /dev/null
+++ b/docs/examples/advisor/list-reports.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Advisor } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const advisor = new Advisor(client);
+
+const result = await advisor.listReports({
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/create-secret.md b/docs/examples/apps/create-secret.md
new file mode 100644
index 00000000..651f45ac
--- /dev/null
+++ b/docs/examples/apps/create-secret.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.createSecret({
+ appId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/create.md b/docs/examples/apps/create.md
new file mode 100644
index 00000000..75cf2997
--- /dev/null
+++ b/docs/examples/apps/create.md
@@ -0,0 +1,21 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.create({
+ appId: '',
+ name: '',
+ redirectUris: [],
+ enabled: false, // optional
+ internal: false, // optional
+ type: 'public', // optional
+ teamId: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/delete-secret.md b/docs/examples/apps/delete-secret.md
new file mode 100644
index 00000000..563d686f
--- /dev/null
+++ b/docs/examples/apps/delete-secret.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.deleteSecret({
+ appId: '',
+ secretId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/delete-tokens.md b/docs/examples/apps/delete-tokens.md
new file mode 100644
index 00000000..ed8b5ead
--- /dev/null
+++ b/docs/examples/apps/delete-tokens.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.deleteTokens({
+ appId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/delete.md b/docs/examples/apps/delete.md
new file mode 100644
index 00000000..4ca4b2c7
--- /dev/null
+++ b/docs/examples/apps/delete.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.delete({
+ appId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/get-secret.md b/docs/examples/apps/get-secret.md
new file mode 100644
index 00000000..84c82082
--- /dev/null
+++ b/docs/examples/apps/get-secret.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.getSecret({
+ appId: '',
+ secretId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/get.md b/docs/examples/apps/get.md
new file mode 100644
index 00000000..5a278482
--- /dev/null
+++ b/docs/examples/apps/get.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.get({
+ appId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/list-secrets.md b/docs/examples/apps/list-secrets.md
new file mode 100644
index 00000000..58124086
--- /dev/null
+++ b/docs/examples/apps/list-secrets.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.listSecrets({
+ appId: '',
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/list.md b/docs/examples/apps/list.md
new file mode 100644
index 00000000..7fadc60d
--- /dev/null
+++ b/docs/examples/apps/list.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.list({
+ queries: [], // optional
+ total: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/update-team.md b/docs/examples/apps/update-team.md
new file mode 100644
index 00000000..fc93365c
--- /dev/null
+++ b/docs/examples/apps/update-team.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.updateTeam({
+ appId: '',
+ teamId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/apps/update.md b/docs/examples/apps/update.md
new file mode 100644
index 00000000..292ad93e
--- /dev/null
+++ b/docs/examples/apps/update.md
@@ -0,0 +1,20 @@
+```javascript
+import { Client, Apps } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const apps = new Apps(client);
+
+const result = await apps.update({
+ appId: '',
+ name: '',
+ enabled: false, // optional
+ internal: false, // optional
+ redirectUris: [], // optional
+ type: 'public' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-backup-policy.md b/docs/examples/compute/create-database-backup-policy.md
new file mode 100644
index 00000000..5e6ac7f3
--- /dev/null
+++ b/docs/examples/compute/create-database-backup-policy.md
@@ -0,0 +1,21 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseBackupPolicy({
+ databaseId: '',
+ policyId: '',
+ name: '',
+ schedule: '',
+ retention: 1,
+ type: 'full', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-backup.md b/docs/examples/compute/create-database-backup.md
new file mode 100644
index 00000000..56aa3645
--- /dev/null
+++ b/docs/examples/compute/create-database-backup.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseBackup({
+ databaseId: '',
+ type: 'full' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-branch.md b/docs/examples/compute/create-database-branch.md
new file mode 100644
index 00000000..67a02c62
--- /dev/null
+++ b/docs/examples/compute/create-database-branch.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseBranch({
+ databaseId: '',
+ branchId: '', // optional
+ ttl: 300 // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-connection.md b/docs/examples/compute/create-database-connection.md
new file mode 100644
index 00000000..63376f04
--- /dev/null
+++ b/docs/examples/compute/create-database-connection.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseConnection({
+ databaseId: '',
+ username: '',
+ role: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-execution.md b/docs/examples/compute/create-database-execution.md
new file mode 100644
index 00000000..4308bd39
--- /dev/null
+++ b/docs/examples/compute/create-database-execution.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseExecution({
+ databaseId: '',
+ sql: '',
+ bindings: {}, // optional
+ timeoutSeconds: 1 // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-extension.md b/docs/examples/compute/create-database-extension.md
new file mode 100644
index 00000000..ef35473d
--- /dev/null
+++ b/docs/examples/compute/create-database-extension.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseExtension({
+ databaseId: '',
+ name: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-failover.md b/docs/examples/compute/create-database-failover.md
new file mode 100644
index 00000000..d66e8191
--- /dev/null
+++ b/docs/examples/compute/create-database-failover.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseFailover({
+ databaseId: '',
+ targetReplicaId: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-migration.md b/docs/examples/compute/create-database-migration.md
new file mode 100644
index 00000000..9e08e3ce
--- /dev/null
+++ b/docs/examples/compute/create-database-migration.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseMigration({
+ databaseId: '',
+ targetType: 'shared',
+ specification: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-query-explanation.md b/docs/examples/compute/create-database-query-explanation.md
new file mode 100644
index 00000000..b041fb63
--- /dev/null
+++ b/docs/examples/compute/create-database-query-explanation.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseQueryExplanation({
+ databaseId: '',
+ query: '',
+ analyze: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-restoration.md b/docs/examples/compute/create-database-restoration.md
new file mode 100644
index 00000000..2ca09f21
--- /dev/null
+++ b/docs/examples/compute/create-database-restoration.md
@@ -0,0 +1,18 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseRestoration({
+ databaseId: '',
+ type: 'backup', // optional
+ backupId: '', // optional
+ targetTime: null // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-schema-preview.md b/docs/examples/compute/create-database-schema-preview.md
new file mode 100644
index 00000000..f0fecfa6
--- /dev/null
+++ b/docs/examples/compute/create-database-schema-preview.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseSchemaPreview({
+ databaseId: '',
+ sql: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database-upgrade.md b/docs/examples/compute/create-database-upgrade.md
new file mode 100644
index 00000000..94ea1c71
--- /dev/null
+++ b/docs/examples/compute/create-database-upgrade.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabaseUpgrade({
+ databaseId: '',
+ targetVersion: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/create-database.md b/docs/examples/compute/create-database.md
new file mode 100644
index 00000000..d3738db2
--- /dev/null
+++ b/docs/examples/compute/create-database.md
@@ -0,0 +1,45 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.createDatabase({
+ databaseId: '',
+ name: '',
+ database: '', // optional
+ engine: 'postgres', // optional
+ version: '17', // optional
+ region: 'fra', // optional
+ type: 'shared', // optional
+ specification: '', // optional
+ backend: 'prisma', // optional
+ cpu: 125, // optional
+ memory: 128, // optional
+ storage: 1, // optional
+ storageClass: 'ssd', // optional
+ storageMaxGb: 0, // optional
+ highAvailability: false, // optional
+ highAvailabilityReplicaCount: 0, // optional
+ highAvailabilitySyncMode: 'async', // optional
+ networkMaxConnections: 10, // optional
+ networkIdleTimeoutSeconds: 60, // optional
+ networkIPAllowlist: [], // optional
+ idleTimeoutMinutes: 5, // optional
+ backupEnabled: false, // optional
+ backupPitr: false, // optional
+ backupCron: '', // optional
+ backupRetentionDays: 1, // optional
+ pitrRetentionDays: 1, // optional
+ storageAutoscaling: false, // optional
+ storageAutoscalingThresholdPercent: 50, // optional
+ storageAutoscalingMaxGb: 0, // optional
+ metricsEnabled: false, // optional
+ poolerEnabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/delete-database-backup.md b/docs/examples/compute/delete-database-backup.md
new file mode 100644
index 00000000..650a377a
--- /dev/null
+++ b/docs/examples/compute/delete-database-backup.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.deleteDatabaseBackup({
+ databaseId: '',
+ backupId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/delete-database-branch.md b/docs/examples/compute/delete-database-branch.md
new file mode 100644
index 00000000..d75cdbbb
--- /dev/null
+++ b/docs/examples/compute/delete-database-branch.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.deleteDatabaseBranch({
+ databaseId: '',
+ branchId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/delete-database-connection.md b/docs/examples/compute/delete-database-connection.md
new file mode 100644
index 00000000..a1114da5
--- /dev/null
+++ b/docs/examples/compute/delete-database-connection.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.deleteDatabaseConnection({
+ databaseId: '',
+ connectionId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/delete-database-extension.md b/docs/examples/compute/delete-database-extension.md
new file mode 100644
index 00000000..1ca0fc97
--- /dev/null
+++ b/docs/examples/compute/delete-database-extension.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.deleteDatabaseExtension({
+ databaseId: '',
+ extensionName: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/delete-database.md b/docs/examples/compute/delete-database.md
new file mode 100644
index 00000000..f9af218f
--- /dev/null
+++ b/docs/examples/compute/delete-database.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.deleteDatabase({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-backup.md b/docs/examples/compute/get-database-backup.md
new file mode 100644
index 00000000..ae9460dd
--- /dev/null
+++ b/docs/examples/compute/get-database-backup.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseBackup({
+ databaseId: '',
+ backupId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-credentials.md b/docs/examples/compute/get-database-credentials.md
new file mode 100644
index 00000000..990ca006
--- /dev/null
+++ b/docs/examples/compute/get-database-credentials.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseCredentials({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-ha-status.md b/docs/examples/compute/get-database-ha-status.md
new file mode 100644
index 00000000..b54d506d
--- /dev/null
+++ b/docs/examples/compute/get-database-ha-status.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseHAStatus({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-insights.md b/docs/examples/compute/get-database-insights.md
new file mode 100644
index 00000000..42598c39
--- /dev/null
+++ b/docs/examples/compute/get-database-insights.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseInsights({
+ databaseId: '',
+ period: '1h', // optional
+ limit: null // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-metrics.md b/docs/examples/compute/get-database-metrics.md
new file mode 100644
index 00000000..2feccab2
--- /dev/null
+++ b/docs/examples/compute/get-database-metrics.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseMetrics({
+ databaseId: '',
+ period: '1h' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-pitr-windows.md b/docs/examples/compute/get-database-pitr-windows.md
new file mode 100644
index 00000000..9112375e
--- /dev/null
+++ b/docs/examples/compute/get-database-pitr-windows.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabasePITRWindows({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-pooler.md b/docs/examples/compute/get-database-pooler.md
new file mode 100644
index 00000000..494f7866
--- /dev/null
+++ b/docs/examples/compute/get-database-pooler.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabasePooler({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-restoration.md b/docs/examples/compute/get-database-restoration.md
new file mode 100644
index 00000000..da1637dc
--- /dev/null
+++ b/docs/examples/compute/get-database-restoration.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseRestoration({
+ databaseId: '',
+ restorationId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-schema.md b/docs/examples/compute/get-database-schema.md
new file mode 100644
index 00000000..fcff3bab
--- /dev/null
+++ b/docs/examples/compute/get-database-schema.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseSchema({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database-status.md b/docs/examples/compute/get-database-status.md
new file mode 100644
index 00000000..7d57a227
--- /dev/null
+++ b/docs/examples/compute/get-database-status.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabaseStatus({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/get-database.md b/docs/examples/compute/get-database.md
new file mode 100644
index 00000000..6522195d
--- /dev/null
+++ b/docs/examples/compute/get-database.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.getDatabase({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-backup-policies.md b/docs/examples/compute/list-database-backup-policies.md
new file mode 100644
index 00000000..f636f120
--- /dev/null
+++ b/docs/examples/compute/list-database-backup-policies.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseBackupPolicies({
+ databaseId: '',
+ queries: [] // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-backups.md b/docs/examples/compute/list-database-backups.md
new file mode 100644
index 00000000..cabb1578
--- /dev/null
+++ b/docs/examples/compute/list-database-backups.md
@@ -0,0 +1,16 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseBackups({
+ databaseId: '',
+ queries: [] // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-branches.md b/docs/examples/compute/list-database-branches.md
new file mode 100644
index 00000000..067ae247
--- /dev/null
+++ b/docs/examples/compute/list-database-branches.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseBranches({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-connections.md b/docs/examples/compute/list-database-connections.md
new file mode 100644
index 00000000..beec11f0
--- /dev/null
+++ b/docs/examples/compute/list-database-connections.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseConnections({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-extensions.md b/docs/examples/compute/list-database-extensions.md
new file mode 100644
index 00000000..5e71d2c2
--- /dev/null
+++ b/docs/examples/compute/list-database-extensions.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseExtensions({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-queries.md b/docs/examples/compute/list-database-queries.md
new file mode 100644
index 00000000..34348704
--- /dev/null
+++ b/docs/examples/compute/list-database-queries.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseQueries({
+ databaseId: '',
+ limit: 1, // optional
+ thresholdMs: 0 // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-restorations.md b/docs/examples/compute/list-database-restorations.md
new file mode 100644
index 00000000..15f3fe20
--- /dev/null
+++ b/docs/examples/compute/list-database-restorations.md
@@ -0,0 +1,19 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseRestorations({
+ databaseId: '',
+ status: 'pending', // optional
+ type: 'backup', // optional
+ limit: 1, // optional
+ offset: 0 // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-database-specifications.md b/docs/examples/compute/list-database-specifications.md
new file mode 100644
index 00000000..3a7ef6fc
--- /dev/null
+++ b/docs/examples/compute/list-database-specifications.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabaseSpecifications();
+
+console.log(result);
+```
diff --git a/docs/examples/compute/list-databases.md b/docs/examples/compute/list-databases.md
new file mode 100644
index 00000000..d091bc2c
--- /dev/null
+++ b/docs/examples/compute/list-databases.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.listDatabases({
+ queries: [] // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/update-database-backup-storage.md b/docs/examples/compute/update-database-backup-storage.md
new file mode 100644
index 00000000..deaa05bf
--- /dev/null
+++ b/docs/examples/compute/update-database-backup-storage.md
@@ -0,0 +1,22 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.updateDatabaseBackupStorage({
+ databaseId: '',
+ provider: 's3',
+ bucket: '',
+ accessKey: '',
+ secretKey: '',
+ region: '', // optional
+ prefix: '', // optional
+ endpoint: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/update-database-credentials.md b/docs/examples/compute/update-database-credentials.md
new file mode 100644
index 00000000..2aaf75bb
--- /dev/null
+++ b/docs/examples/compute/update-database-credentials.md
@@ -0,0 +1,15 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.updateDatabaseCredentials({
+ databaseId: ''
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/update-database-maintenance-window.md b/docs/examples/compute/update-database-maintenance-window.md
new file mode 100644
index 00000000..9f96a7d4
--- /dev/null
+++ b/docs/examples/compute/update-database-maintenance-window.md
@@ -0,0 +1,17 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.updateDatabaseMaintenanceWindow({
+ databaseId: '',
+ day: 'sun',
+ hourUtc: 0
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/update-database-pooler.md b/docs/examples/compute/update-database-pooler.md
new file mode 100644
index 00000000..26139d58
--- /dev/null
+++ b/docs/examples/compute/update-database-pooler.md
@@ -0,0 +1,23 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.updateDatabasePooler({
+ databaseId: '',
+ mode: 'transaction', // optional
+ maxConnections: 10, // optional
+ defaultPoolSize: 1, // optional
+ readWriteSplitting: false, // optional
+ poolerCpuRequest: '', // optional
+ poolerCpuLimit: '', // optional
+ poolerMemoryRequest: '', // optional
+ poolerMemoryLimit: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/compute/update-database.md b/docs/examples/compute/update-database.md
new file mode 100644
index 00000000..e99feeb8
--- /dev/null
+++ b/docs/examples/compute/update-database.md
@@ -0,0 +1,46 @@
+```javascript
+import { Client, Compute } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const compute = new Compute(client);
+
+const result = await compute.updateDatabase({
+ databaseId: '',
+ name: '', // optional
+ status: 'ready', // optional
+ specification: '', // optional
+ cpu: 125, // optional
+ memory: 128, // optional
+ storage: 1, // optional
+ storageClass: 'ssd', // optional
+ highAvailability: false, // optional
+ highAvailabilityReplicaCount: 0, // optional
+ highAvailabilitySyncMode: 'async', // optional
+ networkMaxConnections: 10, // optional
+ networkIdleTimeoutSeconds: 60, // optional
+ networkIPAllowlist: [], // optional
+ idleTimeoutMinutes: 5, // optional
+ backupEnabled: false, // optional
+ backupPitr: false, // optional
+ backupCron: '', // optional
+ backupRetentionDays: 1, // optional
+ pitrRetentionDays: 1, // optional
+ storageAutoscaling: false, // optional
+ storageAutoscalingThresholdPercent: 50, // optional
+ storageAutoscalingMaxGb: 0, // optional
+ poolerEnabled: false, // optional
+ metricsEnabled: false, // optional
+ metricsTraceSampleRate: null, // optional
+ metricsSlowQueryLogThresholdMs: 0, // optional
+ sqlApiEnabled: false, // optional
+ sqlApiAllowedStatements: [], // optional
+ sqlApiMaxRows: 1, // optional
+ sqlApiMaxBytes: 1024, // optional
+ sqlApiTimeoutSeconds: 1 // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/functions/create.md b/docs/examples/functions/create.md
index c7b20209..cd1c7983 100644
--- a/docs/examples/functions/create.md
+++ b/docs/examples/functions/create.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Functions, FunctionRuntime, ProjectKeyScopes } from "@appwrite.io/console";
+import { Client, Functions, Runtime, ProjectKeyScopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -10,7 +10,7 @@ const functions = new Functions(client);
const result = await functions.create({
functionId: '',
name: '',
- runtime: FunctionRuntime.Node145,
+ runtime: Runtime.Node145,
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional
diff --git a/docs/examples/functions/list-templates.md b/docs/examples/functions/list-templates.md
index e28df0b4..0218028a 100644
--- a/docs/examples/functions/list-templates.md
+++ b/docs/examples/functions/list-templates.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Functions, FunctionRuntime, FunctionTemplateUseCase } from "@appwrite.io/console";
+import { Client, Functions, Runtime, FunctionTemplateUseCase } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -8,7 +8,7 @@ const client = new Client()
const functions = new Functions(client);
const result = await functions.listTemplates({
- runtimes: [FunctionRuntime.Node145], // optional
+ runtimes: [Runtime.Node145], // optional
useCases: [FunctionTemplateUseCase.Starter], // optional
limit: 1, // optional
offset: 0, // optional
diff --git a/docs/examples/functions/update.md b/docs/examples/functions/update.md
index c84018bb..98a161de 100644
--- a/docs/examples/functions/update.md
+++ b/docs/examples/functions/update.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Functions, FunctionRuntime, ProjectKeyScopes } from "@appwrite.io/console";
+import { Client, Functions, Runtime, ProjectKeyScopes } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -10,7 +10,7 @@ const functions = new Functions(client);
const result = await functions.update({
functionId: '',
name: '',
- runtime: FunctionRuntime.Node145, // optional
+ runtime: Runtime.Node145, // optional
execute: ["any"], // optional
events: [], // optional
schedule: '', // optional
diff --git a/docs/examples/health/get-audits-db.md b/docs/examples/health/get-audits-db.md
new file mode 100644
index 00000000..0dbf5a89
--- /dev/null
+++ b/docs/examples/health/get-audits-db.md
@@ -0,0 +1,13 @@
+```javascript
+import { Client, Health } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const health = new Health(client);
+
+const result = await health.getAuditsDB();
+
+console.log(result);
+```
diff --git a/docs/examples/messaging/create-ses-provider.md b/docs/examples/messaging/create-ses-provider.md
new file mode 100644
index 00000000..2021d442
--- /dev/null
+++ b/docs/examples/messaging/create-ses-provider.md
@@ -0,0 +1,24 @@
+```javascript
+import { Client, Messaging } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const messaging = new Messaging(client);
+
+const result = await messaging.createSesProvider({
+ providerId: '',
+ name: '',
+ accessKey: '', // optional
+ secretKey: '', // optional
+ region: '', // optional
+ fromName: '', // optional
+ fromEmail: 'email@example.com', // optional
+ replyToName: '', // optional
+ replyToEmail: 'email@example.com', // optional
+ enabled: false // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/messaging/update-ses-provider.md b/docs/examples/messaging/update-ses-provider.md
new file mode 100644
index 00000000..63d572f3
--- /dev/null
+++ b/docs/examples/messaging/update-ses-provider.md
@@ -0,0 +1,24 @@
+```javascript
+import { Client, Messaging } from "@appwrite.io/console";
+
+const client = new Client()
+ .setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
+ .setProject(''); // Your project ID
+
+const messaging = new Messaging(client);
+
+const result = await messaging.updateSesProvider({
+ providerId: '',
+ name: '', // optional
+ enabled: false, // optional
+ accessKey: '', // optional
+ secretKey: '', // optional
+ region: '', // optional
+ fromName: '', // optional
+ fromEmail: 'email@example.com', // optional
+ replyToName: '', // optional
+ replyToEmail: '' // optional
+});
+
+console.log(result);
+```
diff --git a/docs/examples/migrations/create-appwrite-migration.md b/docs/examples/migrations/create-appwrite-migration.md
index 39d13eed..9729806f 100644
--- a/docs/examples/migrations/create-appwrite-migration.md
+++ b/docs/examples/migrations/create-appwrite-migration.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Migrations, AppwriteMigrationResource, MigrationOnDuplicate } from "@appwrite.io/console";
+import { Client, Migrations, AppwriteMigrationResource, OnDuplicate } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -12,7 +12,7 @@ const result = await migrations.createAppwriteMigration({
endpoint: 'https://example.com',
projectId: '',
apiKey: '',
- onDuplicate: MigrationOnDuplicate.Fail // optional
+ onDuplicate: OnDuplicate.Fail // optional
});
console.log(result);
diff --git a/docs/examples/migrations/create-csv-import.md b/docs/examples/migrations/create-csv-import.md
index 1a2a97d8..d24792b6 100644
--- a/docs/examples/migrations/create-csv-import.md
+++ b/docs/examples/migrations/create-csv-import.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Migrations, MigrationOnDuplicate } from "@appwrite.io/console";
+import { Client, Migrations, OnDuplicate } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -12,7 +12,7 @@ const result = await migrations.createCSVImport({
fileId: '',
resourceId: '',
internalFile: false, // optional
- onDuplicate: MigrationOnDuplicate.Fail // optional
+ onDuplicate: OnDuplicate.Fail // optional
});
console.log(result);
diff --git a/docs/examples/migrations/create-json-import.md b/docs/examples/migrations/create-json-import.md
index 7af6d23e..f55fc8ff 100644
--- a/docs/examples/migrations/create-json-import.md
+++ b/docs/examples/migrations/create-json-import.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Migrations, MigrationOnDuplicate } from "@appwrite.io/console";
+import { Client, Migrations, OnDuplicate } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -12,7 +12,7 @@ const result = await migrations.createJSONImport({
fileId: '',
resourceId: '',
internalFile: false, // optional
- onDuplicate: MigrationOnDuplicate.Fail // optional
+ onDuplicate: OnDuplicate.Fail // optional
});
console.log(result);
diff --git a/docs/examples/organizations/get-addon-price.md b/docs/examples/organizations/get-addon-price.md
index 90043327..1f96ba39 100644
--- a/docs/examples/organizations/get-addon-price.md
+++ b/docs/examples/organizations/get-addon-price.md
@@ -1,5 +1,5 @@
```javascript
-import { Client, Organizations, OrganizationAddon } from "@appwrite.io/console";
+import { Client, Organizations, Addon } from "@appwrite.io/console";
const client = new Client()
.setEndpoint('https://.cloud.appwrite.io/v1') // Your API Endpoint
@@ -9,7 +9,7 @@ const organizations = new Organizations(client);
const result = await organizations.getAddonPrice({
organizationId: '