diff --git a/CHANGELOG.md b/CHANGELOG.md
index 362c9aa..07e9d96 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Change Log
+## 13.0.0
+
+* Rename `VCSDeploymentType` enum to `VCSReferenceType`
+* Change `createTemplateDeployment` method signature: replace `version` parameter with `type` (TemplateReferenceType) and `reference` parameters
+* Add `getScreenshot` method to `Avatars` service
+* Add `Theme`, `Timezone` and `Output` enums
+
## 12.3.0
* Add `total` parameter to list queries allowing skipping counting rows in a table for improved performance
diff --git a/README.md b/README.md
index f86832c..da881e0 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:
```groovy
-implementation("io.appwrite:sdk-for-kotlin:12.3.0")
+implementation("io.appwrite:sdk-for-kotlin:13.0.0")
```
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
io.appwrite
sdk-for-kotlin
- 12.3.0
+ 13.0.0
```
diff --git a/docs/examples/java/account/create-o-auth-2-token.md b/docs/examples/java/account/create-o-auth-2-token.md
index 5b325f5..376d943 100644
--- a/docs/examples/java/account/create-o-auth-2-token.md
+++ b/docs/examples/java/account/create-o-auth-2-token.md
@@ -13,7 +13,7 @@ account.createOAuth2Token(
OAuthProvider.AMAZON, // provider
"https://example.com", // success (optional)
"https://example.com", // failure (optional)
- listOf(), // scopes (optional)
+ List.of(), // scopes (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/account/list-identities.md b/docs/examples/java/account/list-identities.md
index 8d204d5..97cdf99 100644
--- a/docs/examples/java/account/list-identities.md
+++ b/docs/examples/java/account/list-identities.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.listIdentities(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/account/list-logs.md b/docs/examples/java/account/list-logs.md
index 4b301a1..6c41c7f 100644
--- a/docs/examples/java/account/list-logs.md
+++ b/docs/examples/java/account/list-logs.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.listLogs(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/account/update-prefs.md b/docs/examples/java/account/update-prefs.md
index 0b68939..4fc1cb5 100644
--- a/docs/examples/java/account/update-prefs.md
+++ b/docs/examples/java/account/update-prefs.md
@@ -10,10 +10,10 @@ Client client = new Client()
Account account = new Account(client);
account.updatePrefs(
- mapOf(
- "language" to "en",
- "timezone" to "UTC",
- "darkTheme" to true
+ Map.of(
+ "language", "en",
+ "timezone", "UTC",
+ "darkTheme", true
), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/avatars/get-screenshot.md b/docs/examples/java/avatars/get-screenshot.md
new file mode 100644
index 0000000..5eea096
--- /dev/null
+++ b/docs/examples/java/avatars/get-screenshot.md
@@ -0,0 +1,48 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Avatars;
+import io.appwrite.enums.Theme;
+import io.appwrite.enums.Timezone;
+import io.appwrite.enums.Output;
+
+Client client = new Client()
+ .setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("") // Your project ID
+ .setSession(""); // The user session to authenticate with
+
+Avatars avatars = new Avatars(client);
+
+avatars.getScreenshot(
+ "https://example.com", // url
+ Map.of(
+ "Authorization", "Bearer token123",
+ "X-Custom-Header", "value"
+ ), // headers (optional)
+ 1920, // viewportWidth (optional)
+ 1080, // viewportHeight (optional)
+ 2, // scale (optional)
+ Theme.LIGHT, // theme (optional)
+ "Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15", // userAgent (optional)
+ true, // fullpage (optional)
+ "en-US", // locale (optional)
+ Timezone.AFRICA_ABIDJAN, // timezone (optional)
+ 37.7749, // latitude (optional)
+ -122.4194, // longitude (optional)
+ 100, // accuracy (optional)
+ true, // touch (optional)
+ List.of("geolocation", "notifications"), // permissions (optional)
+ 3, // sleep (optional)
+ 800, // width (optional)
+ 600, // height (optional)
+ 85, // quality (optional)
+ Output.JPG, // output (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/databases/create-collection.md b/docs/examples/java/databases/create-collection.md
index 10eed04..eea5555 100644
--- a/docs/examples/java/databases/create-collection.md
+++ b/docs/examples/java/databases/create-collection.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Databases;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +15,7 @@ databases.createCollection(
"", // databaseId
"", // collectionId
"", // name
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
false, // documentSecurity (optional)
false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/databases/create-document.md b/docs/examples/java/databases/create-document.md
index aa6c9ea..7ff195f 100644
--- a/docs/examples/java/databases/create-document.md
+++ b/docs/examples/java/databases/create-document.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Databases;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,14 +15,14 @@ databases.createDocument(
"", // databaseId
"", // collectionId
"", // documentId
- mapOf(
- "username" to "walter.obrien",
- "email" to "walter.obrien@example.com",
- "fullName" to "Walter O'Brien",
- "age" to 30,
- "isAdmin" to false
+ Map.of(
+ "username", "walter.obrien",
+ "email", "walter.obrien@example.com",
+ "fullName", "Walter O'Brien",
+ "age", 30,
+ "isAdmin", false
), // data
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/create-documents.md b/docs/examples/java/databases/create-documents.md
index 3a45409..be695fe 100644
--- a/docs/examples/java/databases/create-documents.md
+++ b/docs/examples/java/databases/create-documents.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.createDocuments(
"", // databaseId
"", // collectionId
- listOf(), // documents
+ List.of(), // documents
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/create-enum-attribute.md b/docs/examples/java/databases/create-enum-attribute.md
index 4420208..b866666 100644
--- a/docs/examples/java/databases/create-enum-attribute.md
+++ b/docs/examples/java/databases/create-enum-attribute.md
@@ -13,7 +13,7 @@ databases.createEnumAttribute(
"", // databaseId
"", // collectionId
"", // key
- listOf(), // elements
+ List.of(), // elements
false, // required
"", // default (optional)
false, // array (optional)
diff --git a/docs/examples/java/databases/create-index.md b/docs/examples/java/databases/create-index.md
index fe2d9bf..1fb1efb 100644
--- a/docs/examples/java/databases/create-index.md
+++ b/docs/examples/java/databases/create-index.md
@@ -15,9 +15,9 @@ databases.createIndex(
"", // collectionId
"", // key
IndexType.KEY, // type
- listOf(), // attributes
- listOf(), // orders (optional)
- listOf(), // lengths (optional)
+ List.of(), // attributes
+ List.of(), // orders (optional)
+ List.of(), // lengths (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/create-line-attribute.md b/docs/examples/java/databases/create-line-attribute.md
index ad988b8..c0daeac 100644
--- a/docs/examples/java/databases/create-line-attribute.md
+++ b/docs/examples/java/databases/create-line-attribute.md
@@ -14,7 +14,7 @@ databases.createLineAttribute(
"", // collectionId
"", // key
false, // required
- listOf([1, 2], [3, 4], [5, 6]), // default (optional)
+ List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6)), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/create-operations.md b/docs/examples/java/databases/create-operations.md
index 2dad8a1..c935f82 100644
--- a/docs/examples/java/databases/create-operations.md
+++ b/docs/examples/java/databases/create-operations.md
@@ -11,17 +11,15 @@ Databases databases = new Databases(client);
databases.createOperations(
"", // transactionId
- listOf(
- {
- "action": "create",
- "databaseId": "",
- "collectionId": "",
- "documentId": "",
- "data": {
- "name": "Walter O'Brien"
- }
- }
- ), // operations (optional)
+ List.of(Map.of(
+ "action", "create",
+ "databaseId", "",
+ "collectionId", "",
+ "documentId", "",
+ "data", Map.of(
+ "name", "Walter O'Brien"
+ )
+ )), // operations (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/create-point-attribute.md b/docs/examples/java/databases/create-point-attribute.md
index 89d7cc7..c3b5d50 100644
--- a/docs/examples/java/databases/create-point-attribute.md
+++ b/docs/examples/java/databases/create-point-attribute.md
@@ -14,7 +14,7 @@ databases.createPointAttribute(
"", // collectionId
"", // key
false, // required
- listOf(1, 2), // default (optional)
+ List.of(1, 2), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/create-polygon-attribute.md b/docs/examples/java/databases/create-polygon-attribute.md
index 556fb38..4f8fe03 100644
--- a/docs/examples/java/databases/create-polygon-attribute.md
+++ b/docs/examples/java/databases/create-polygon-attribute.md
@@ -14,7 +14,7 @@ databases.createPolygonAttribute(
"", // collectionId
"", // key
false, // required
- listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional)
+ List.of(List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6), List.of(1, 2))), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/create-relationship-attribute.md b/docs/examples/java/databases/create-relationship-attribute.md
index a67f452..580be89 100644
--- a/docs/examples/java/databases/create-relationship-attribute.md
+++ b/docs/examples/java/databases/create-relationship-attribute.md
@@ -2,6 +2,7 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Databases;
import io.appwrite.enums.RelationshipType;
+import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/databases/delete-documents.md b/docs/examples/java/databases/delete-documents.md
index 958c40c..f535ae7 100644
--- a/docs/examples/java/databases/delete-documents.md
+++ b/docs/examples/java/databases/delete-documents.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.deleteDocuments(
"", // databaseId
"", // collectionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/get-document.md b/docs/examples/java/databases/get-document.md
index 489447f..d3e8b8b 100644
--- a/docs/examples/java/databases/get-document.md
+++ b/docs/examples/java/databases/get-document.md
@@ -13,7 +13,7 @@ databases.getDocument(
"", // databaseId
"", // collectionId
"", // documentId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/list-attributes.md b/docs/examples/java/databases/list-attributes.md
index b1b3bd1..dd883e2 100644
--- a/docs/examples/java/databases/list-attributes.md
+++ b/docs/examples/java/databases/list-attributes.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.listAttributes(
"", // databaseId
"", // collectionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/list-collections.md b/docs/examples/java/databases/list-collections.md
index efb0e7f..ddb47c9 100644
--- a/docs/examples/java/databases/list-collections.md
+++ b/docs/examples/java/databases/list-collections.md
@@ -11,7 +11,7 @@ Databases databases = new Databases(client);
databases.listCollections(
"", // databaseId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/databases/list-documents.md b/docs/examples/java/databases/list-documents.md
index 472d15b..b8ef071 100644
--- a/docs/examples/java/databases/list-documents.md
+++ b/docs/examples/java/databases/list-documents.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.listDocuments(
"", // databaseId
"", // collectionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/databases/list-indexes.md b/docs/examples/java/databases/list-indexes.md
index 5715af7..c701904 100644
--- a/docs/examples/java/databases/list-indexes.md
+++ b/docs/examples/java/databases/list-indexes.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.listIndexes(
"", // databaseId
"", // collectionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/list-transactions.md b/docs/examples/java/databases/list-transactions.md
index 281fc12..8a6f605 100644
--- a/docs/examples/java/databases/list-transactions.md
+++ b/docs/examples/java/databases/list-transactions.md
@@ -10,7 +10,7 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.listTransactions(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/databases/list.md b/docs/examples/java/databases/list.md
index a3f2d51..32ef454 100644
--- a/docs/examples/java/databases/list.md
+++ b/docs/examples/java/databases/list.md
@@ -10,7 +10,7 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.list(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/databases/update-collection.md b/docs/examples/java/databases/update-collection.md
index 24d312d..898f1aa 100644
--- a/docs/examples/java/databases/update-collection.md
+++ b/docs/examples/java/databases/update-collection.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Databases;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +15,7 @@ databases.updateCollection(
"", // databaseId
"", // collectionId
"", // name
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
false, // documentSecurity (optional)
false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/databases/update-document.md b/docs/examples/java/databases/update-document.md
index 749de99..0638225 100644
--- a/docs/examples/java/databases/update-document.md
+++ b/docs/examples/java/databases/update-document.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Databases;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,8 +15,8 @@ databases.updateDocument(
"", // databaseId
"", // collectionId
"", // documentId
- mapOf( "a" to "b" ), // data (optional)
- listOf(Permission.read(Role.any())), // permissions (optional)
+ Map.of("a", "b"), // data (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-documents.md b/docs/examples/java/databases/update-documents.md
index a685ac8..57a82f5 100644
--- a/docs/examples/java/databases/update-documents.md
+++ b/docs/examples/java/databases/update-documents.md
@@ -12,8 +12,8 @@ Databases databases = new Databases(client);
databases.updateDocuments(
"", // databaseId
"", // collectionId
- mapOf( "a" to "b" ), // data (optional)
- listOf(), // queries (optional)
+ Map.of("a", "b"), // data (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-enum-attribute.md b/docs/examples/java/databases/update-enum-attribute.md
index 8960680..8870e37 100644
--- a/docs/examples/java/databases/update-enum-attribute.md
+++ b/docs/examples/java/databases/update-enum-attribute.md
@@ -13,7 +13,7 @@ databases.updateEnumAttribute(
"", // databaseId
"", // collectionId
"", // key
- listOf(), // elements
+ List.of(), // elements
false, // required
"", // default
"", // newKey (optional)
diff --git a/docs/examples/java/databases/update-line-attribute.md b/docs/examples/java/databases/update-line-attribute.md
index 6a4265b..14d83ee 100644
--- a/docs/examples/java/databases/update-line-attribute.md
+++ b/docs/examples/java/databases/update-line-attribute.md
@@ -14,7 +14,7 @@ databases.updateLineAttribute(
"", // collectionId
"", // key
false, // required
- listOf([1, 2], [3, 4], [5, 6]), // default (optional)
+ List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6)), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-point-attribute.md b/docs/examples/java/databases/update-point-attribute.md
index 38d48c2..5d44d7a 100644
--- a/docs/examples/java/databases/update-point-attribute.md
+++ b/docs/examples/java/databases/update-point-attribute.md
@@ -14,7 +14,7 @@ databases.updatePointAttribute(
"", // collectionId
"", // key
false, // required
- listOf(1, 2), // default (optional)
+ List.of(1, 2), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-polygon-attribute.md b/docs/examples/java/databases/update-polygon-attribute.md
index 6e6fd08..2c530b9 100644
--- a/docs/examples/java/databases/update-polygon-attribute.md
+++ b/docs/examples/java/databases/update-polygon-attribute.md
@@ -14,7 +14,7 @@ databases.updatePolygonAttribute(
"", // collectionId
"", // key
false, // required
- listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional)
+ List.of(List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6), List.of(1, 2))), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-relationship-attribute.md b/docs/examples/java/databases/update-relationship-attribute.md
index 8af20e9..998f0be 100644
--- a/docs/examples/java/databases/update-relationship-attribute.md
+++ b/docs/examples/java/databases/update-relationship-attribute.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Databases;
+import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/databases/upsert-document.md b/docs/examples/java/databases/upsert-document.md
index 4f156bb..ec99390 100644
--- a/docs/examples/java/databases/upsert-document.md
+++ b/docs/examples/java/databases/upsert-document.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Databases;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Databases;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,8 +15,8 @@ databases.upsertDocument(
"", // databaseId
"", // collectionId
"", // documentId
- mapOf( "a" to "b" ), // data
- listOf(Permission.read(Role.any())), // permissions (optional)
+ Map.of("a", "b"), // data
+ List.of(Permission.read(Role.any())), // permissions (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/upsert-documents.md b/docs/examples/java/databases/upsert-documents.md
index b8fcd87..ee4450f 100644
--- a/docs/examples/java/databases/upsert-documents.md
+++ b/docs/examples/java/databases/upsert-documents.md
@@ -12,7 +12,7 @@ Databases databases = new Databases(client);
databases.upsertDocuments(
"", // databaseId
"", // collectionId
- listOf(), // documents
+ List.of(), // documents
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/functions/create-execution.md b/docs/examples/java/functions/create-execution.md
index 93efa0a..98a4d1b 100644
--- a/docs/examples/java/functions/create-execution.md
+++ b/docs/examples/java/functions/create-execution.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
+import io.appwrite.enums.ExecutionMethod;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +16,7 @@ functions.createExecution(
false, // async (optional)
"", // path (optional)
ExecutionMethod.GET, // method (optional)
- mapOf( "a" to "b" ), // headers (optional)
+ Map.of("a", "b"), // headers (optional)
"", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/functions/create-template-deployment.md b/docs/examples/java/functions/create-template-deployment.md
index 53b5a9a..59c105d 100644
--- a/docs/examples/java/functions/create-template-deployment.md
+++ b/docs/examples/java/functions/create-template-deployment.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
+import io.appwrite.enums.TemplateReferenceType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -14,7 +15,8 @@ functions.createTemplateDeployment(
"", // repository
"", // owner
"", // rootDirectory
- "", // version
+ TemplateReferenceType.COMMIT, // type
+ "", // reference
false, // activate (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/functions/create-vcs-deployment.md b/docs/examples/java/functions/create-vcs-deployment.md
index 9274cd8..25f2f28 100644
--- a/docs/examples/java/functions/create-vcs-deployment.md
+++ b/docs/examples/java/functions/create-vcs-deployment.md
@@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
-import io.appwrite.enums.VCSDeploymentType;
+import io.appwrite.enums.VCSReferenceType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -12,7 +12,7 @@ Functions functions = new Functions(client);
functions.createVcsDeployment(
"", // functionId
- VCSDeploymentType.BRANCH, // type
+ VCSReferenceType.BRANCH, // type
"", // reference
false, // activate (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/functions/create.md b/docs/examples/java/functions/create.md
index 7187128..17e2911 100644
--- a/docs/examples/java/functions/create.md
+++ b/docs/examples/java/functions/create.md
@@ -13,16 +13,16 @@ Functions functions = new Functions(client);
functions.create(
"", // functionId
"", // name
- .NODE_14_5, // runtime
- listOf("any"), // execute (optional)
- listOf(), // events (optional)
+ Runtime.NODE_14_5, // runtime
+ List.of("any"), // execute (optional)
+ List.of(), // events (optional)
"", // schedule (optional)
1, // timeout (optional)
false, // enabled (optional)
false, // logging (optional)
"", // entrypoint (optional)
"", // commands (optional)
- listOf(), // scopes (optional)
+ List.of(), // scopes (optional)
"", // installationId (optional)
"", // providerRepositoryId (optional)
"", // providerBranch (optional)
diff --git a/docs/examples/java/functions/get-deployment-download.md b/docs/examples/java/functions/get-deployment-download.md
index d522b12..2b6d38a 100644
--- a/docs/examples/java/functions/get-deployment-download.md
+++ b/docs/examples/java/functions/get-deployment-download.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
+import io.appwrite.enums.DeploymentDownloadType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/functions/list-deployments.md b/docs/examples/java/functions/list-deployments.md
index a0ea8b6..a92cf07 100644
--- a/docs/examples/java/functions/list-deployments.md
+++ b/docs/examples/java/functions/list-deployments.md
@@ -11,7 +11,7 @@ Functions functions = new Functions(client);
functions.listDeployments(
"", // functionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/functions/list-executions.md b/docs/examples/java/functions/list-executions.md
index 8026d47..2b97ab3 100644
--- a/docs/examples/java/functions/list-executions.md
+++ b/docs/examples/java/functions/list-executions.md
@@ -11,7 +11,7 @@ Functions functions = new Functions(client);
functions.listExecutions(
"", // functionId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/functions/list.md b/docs/examples/java/functions/list.md
index 5d0f59c..712510d 100644
--- a/docs/examples/java/functions/list.md
+++ b/docs/examples/java/functions/list.md
@@ -10,7 +10,7 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.list(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/functions/update.md b/docs/examples/java/functions/update.md
index 5956c57..4b54a63 100644
--- a/docs/examples/java/functions/update.md
+++ b/docs/examples/java/functions/update.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Functions;
+import io.appwrite.enums.Runtime;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -12,16 +13,16 @@ Functions functions = new Functions(client);
functions.update(
"", // functionId
"", // name
- .NODE_14_5, // runtime (optional)
- listOf("any"), // execute (optional)
- listOf(), // events (optional)
+ Runtime.NODE_14_5, // runtime (optional)
+ List.of("any"), // execute (optional)
+ List.of(), // events (optional)
"", // schedule (optional)
1, // timeout (optional)
false, // enabled (optional)
false, // logging (optional)
"", // entrypoint (optional)
"", // commands (optional)
- listOf(), // scopes (optional)
+ List.of(), // scopes (optional)
"", // installationId (optional)
"", // providerRepositoryId (optional)
"", // providerBranch (optional)
diff --git a/docs/examples/java/graphql/mutation.md b/docs/examples/java/graphql/mutation.md
index 7788924..baf41a8 100644
--- a/docs/examples/java/graphql/mutation.md
+++ b/docs/examples/java/graphql/mutation.md
@@ -10,7 +10,7 @@ Client client = new Client()
Graphql graphql = new Graphql(client);
graphql.mutation(
- mapOf( "a" to "b" ), // query
+ Map.of("a", "b"), // query
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/graphql/query.md b/docs/examples/java/graphql/query.md
index e109d52..381da3f 100644
--- a/docs/examples/java/graphql/query.md
+++ b/docs/examples/java/graphql/query.md
@@ -10,7 +10,7 @@ Client client = new Client()
Graphql graphql = new Graphql(client);
graphql.query(
- mapOf( "a" to "b" ), // query
+ Map.of("a", "b"), // query
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/health/get-failed-jobs.md b/docs/examples/java/health/get-failed-jobs.md
index d2b81bd..0495e26 100644
--- a/docs/examples/java/health/get-failed-jobs.md
+++ b/docs/examples/java/health/get-failed-jobs.md
@@ -11,7 +11,7 @@ Client client = new Client()
Health health = new Health(client);
health.getFailedJobs(
- .V1_DATABASE, // name
+ Name.V1_DATABASE, // name
0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/create-email.md b/docs/examples/java/messaging/create-email.md
index d6ab5ee..ca654e6 100644
--- a/docs/examples/java/messaging/create-email.md
+++ b/docs/examples/java/messaging/create-email.md
@@ -13,12 +13,12 @@ messaging.createEmail(
"", // messageId
"", // subject
"", // content
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
- listOf(), // cc (optional)
- listOf(), // bcc (optional)
- listOf(), // attachments (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
+ List.of(), // cc (optional)
+ List.of(), // bcc (optional)
+ List.of(), // attachments (optional)
false, // draft (optional)
false, // html (optional)
"", // scheduledAt (optional)
diff --git a/docs/examples/java/messaging/create-fcm-provider.md b/docs/examples/java/messaging/create-fcm-provider.md
index 0d67e28..554ab3c 100644
--- a/docs/examples/java/messaging/create-fcm-provider.md
+++ b/docs/examples/java/messaging/create-fcm-provider.md
@@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
messaging.createFCMProvider(
"", // providerId
"", // name
- mapOf( "a" to "b" ), // serviceAccountJSON (optional)
+ Map.of("a", "b"), // serviceAccountJSON (optional)
false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/create-push.md b/docs/examples/java/messaging/create-push.md
index 14e8ca2..7ab3541 100644
--- a/docs/examples/java/messaging/create-push.md
+++ b/docs/examples/java/messaging/create-push.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
+import io.appwrite.enums.MessagePriority;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,10 +14,10 @@ messaging.createPush(
"", // messageId
"", // title (optional)
"", // body (optional)
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
- mapOf( "a" to "b" ), // data (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
+ Map.of("a", "b"), // data (optional)
"", // action (optional)
"", // image (optional)
"", // icon (optional)
diff --git a/docs/examples/java/messaging/create-sms.md b/docs/examples/java/messaging/create-sms.md
index ca40cc3..5ac9507 100644
--- a/docs/examples/java/messaging/create-sms.md
+++ b/docs/examples/java/messaging/create-sms.md
@@ -12,9 +12,9 @@ Messaging messaging = new Messaging(client);
messaging.createSMS(
"", // messageId
"", // content
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
false, // draft (optional)
"", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/messaging/create-smtp-provider.md b/docs/examples/java/messaging/create-smtp-provider.md
index 1f1a0f9..966436e 100644
--- a/docs/examples/java/messaging/create-smtp-provider.md
+++ b/docs/examples/java/messaging/create-smtp-provider.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
+import io.appwrite.enums.SmtpEncryption;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/messaging/create-topic.md b/docs/examples/java/messaging/create-topic.md
index 63a24b4..ec55053 100644
--- a/docs/examples/java/messaging/create-topic.md
+++ b/docs/examples/java/messaging/create-topic.md
@@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
messaging.createTopic(
"", // topicId
"", // name
- listOf("any"), // subscribe (optional)
+ List.of("any"), // subscribe (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/messaging/list-message-logs.md b/docs/examples/java/messaging/list-message-logs.md
index 253299c..30469ff 100644
--- a/docs/examples/java/messaging/list-message-logs.md
+++ b/docs/examples/java/messaging/list-message-logs.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listMessageLogs(
"", // messageId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/list-messages.md b/docs/examples/java/messaging/list-messages.md
index 6535222..8af8085 100644
--- a/docs/examples/java/messaging/list-messages.md
+++ b/docs/examples/java/messaging/list-messages.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listMessages(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/messaging/list-provider-logs.md b/docs/examples/java/messaging/list-provider-logs.md
index 3bce211..e62dedf 100644
--- a/docs/examples/java/messaging/list-provider-logs.md
+++ b/docs/examples/java/messaging/list-provider-logs.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listProviderLogs(
"", // providerId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/list-providers.md b/docs/examples/java/messaging/list-providers.md
index 115cd41..b52408c 100644
--- a/docs/examples/java/messaging/list-providers.md
+++ b/docs/examples/java/messaging/list-providers.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listProviders(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/messaging/list-subscriber-logs.md b/docs/examples/java/messaging/list-subscriber-logs.md
index e2e1e94..317db32 100644
--- a/docs/examples/java/messaging/list-subscriber-logs.md
+++ b/docs/examples/java/messaging/list-subscriber-logs.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listSubscriberLogs(
"", // subscriberId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/list-subscribers.md b/docs/examples/java/messaging/list-subscribers.md
index 3b87ed8..cc55217 100644
--- a/docs/examples/java/messaging/list-subscribers.md
+++ b/docs/examples/java/messaging/list-subscribers.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listSubscribers(
"", // topicId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/messaging/list-targets.md b/docs/examples/java/messaging/list-targets.md
index db6aee1..b123218 100644
--- a/docs/examples/java/messaging/list-targets.md
+++ b/docs/examples/java/messaging/list-targets.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listTargets(
"", // messageId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/list-topic-logs.md b/docs/examples/java/messaging/list-topic-logs.md
index 800bb6b..d2d8809 100644
--- a/docs/examples/java/messaging/list-topic-logs.md
+++ b/docs/examples/java/messaging/list-topic-logs.md
@@ -11,7 +11,7 @@ Messaging messaging = new Messaging(client);
messaging.listTopicLogs(
"", // topicId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/messaging/list-topics.md b/docs/examples/java/messaging/list-topics.md
index bd53b41..ea258c2 100644
--- a/docs/examples/java/messaging/list-topics.md
+++ b/docs/examples/java/messaging/list-topics.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listTopics(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/messaging/update-email.md b/docs/examples/java/messaging/update-email.md
index 56e9767..1bed63b 100644
--- a/docs/examples/java/messaging/update-email.md
+++ b/docs/examples/java/messaging/update-email.md
@@ -11,17 +11,17 @@ Messaging messaging = new Messaging(client);
messaging.updateEmail(
"", // messageId
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
"", // subject (optional)
"", // content (optional)
false, // draft (optional)
false, // html (optional)
- listOf(), // cc (optional)
- listOf(), // bcc (optional)
+ List.of(), // cc (optional)
+ List.of(), // bcc (optional)
"", // scheduledAt (optional)
- listOf(), // attachments (optional)
+ List.of(), // attachments (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/messaging/update-fcm-provider.md b/docs/examples/java/messaging/update-fcm-provider.md
index dd92f93..2976ff5 100644
--- a/docs/examples/java/messaging/update-fcm-provider.md
+++ b/docs/examples/java/messaging/update-fcm-provider.md
@@ -13,7 +13,7 @@ messaging.updateFCMProvider(
"", // providerId
"", // name (optional)
false, // enabled (optional)
- mapOf( "a" to "b" ), // serviceAccountJSON (optional)
+ Map.of("a", "b"), // serviceAccountJSON (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/messaging/update-push.md b/docs/examples/java/messaging/update-push.md
index ce56683..80f7013 100644
--- a/docs/examples/java/messaging/update-push.md
+++ b/docs/examples/java/messaging/update-push.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
+import io.appwrite.enums.MessagePriority;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -11,12 +12,12 @@ Messaging messaging = new Messaging(client);
messaging.updatePush(
"", // messageId
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
"", // title (optional)
"", // body (optional)
- mapOf( "a" to "b" ), // data (optional)
+ Map.of("a", "b"), // data (optional)
"", // action (optional)
"", // image (optional)
"", // icon (optional)
diff --git a/docs/examples/java/messaging/update-sms.md b/docs/examples/java/messaging/update-sms.md
index c59505b..4df9588 100644
--- a/docs/examples/java/messaging/update-sms.md
+++ b/docs/examples/java/messaging/update-sms.md
@@ -11,9 +11,9 @@ Messaging messaging = new Messaging(client);
messaging.updateSMS(
"", // messageId
- listOf(), // topics (optional)
- listOf(), // users (optional)
- listOf(), // targets (optional)
+ List.of(), // topics (optional)
+ List.of(), // users (optional)
+ List.of(), // targets (optional)
"", // content (optional)
false, // draft (optional)
"", // scheduledAt (optional)
diff --git a/docs/examples/java/messaging/update-smtp-provider.md b/docs/examples/java/messaging/update-smtp-provider.md
index 36f1200..c8ab757 100644
--- a/docs/examples/java/messaging/update-smtp-provider.md
+++ b/docs/examples/java/messaging/update-smtp-provider.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Messaging;
+import io.appwrite.enums.SmtpEncryption;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/messaging/update-topic.md b/docs/examples/java/messaging/update-topic.md
index be9c44d..0d651c7 100644
--- a/docs/examples/java/messaging/update-topic.md
+++ b/docs/examples/java/messaging/update-topic.md
@@ -12,7 +12,7 @@ Messaging messaging = new Messaging(client);
messaging.updateTopic(
"", // topicId
"", // name (optional)
- listOf("any"), // subscribe (optional)
+ List.of("any"), // subscribe (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/sites/create-template-deployment.md b/docs/examples/java/sites/create-template-deployment.md
index 63aba4a..e7fee58 100644
--- a/docs/examples/java/sites/create-template-deployment.md
+++ b/docs/examples/java/sites/create-template-deployment.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
+import io.appwrite.enums.TemplateReferenceType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -14,7 +15,8 @@ sites.createTemplateDeployment(
"", // repository
"", // owner
"", // rootDirectory
- "", // version
+ TemplateReferenceType.BRANCH, // type
+ "", // reference
false, // activate (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/sites/create-vcs-deployment.md b/docs/examples/java/sites/create-vcs-deployment.md
index 754eb26..8a1dca9 100644
--- a/docs/examples/java/sites/create-vcs-deployment.md
+++ b/docs/examples/java/sites/create-vcs-deployment.md
@@ -1,7 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
-import io.appwrite.enums.VCSDeploymentType;
+import io.appwrite.enums.VCSReferenceType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -12,7 +12,7 @@ Sites sites = new Sites(client);
sites.createVcsDeployment(
"", // siteId
- VCSDeploymentType.BRANCH, // type
+ VCSReferenceType.BRANCH, // type
"", // reference
false, // activate (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/sites/create.md b/docs/examples/java/sites/create.md
index 19664ec..11e0dbb 100644
--- a/docs/examples/java/sites/create.md
+++ b/docs/examples/java/sites/create.md
@@ -3,6 +3,7 @@ import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
import io.appwrite.enums.Framework;
import io.appwrite.enums.BuildRuntime;
+import io.appwrite.enums.Adapter;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -14,15 +15,15 @@ Sites sites = new Sites(client);
sites.create(
"", // siteId
"", // name
- .ANALOG, // framework
- .NODE_14_5, // buildRuntime
+ Framework.ANALOG, // framework
+ BuildRuntime.NODE_14_5, // buildRuntime
false, // enabled (optional)
false, // logging (optional)
1, // timeout (optional)
"", // installCommand (optional)
"", // buildCommand (optional)
"", // outputDirectory (optional)
- .STATIC, // adapter (optional)
+ Adapter.STATIC, // adapter (optional)
"", // installationId (optional)
"", // fallbackFile (optional)
"", // providerRepositoryId (optional)
diff --git a/docs/examples/java/sites/get-deployment-download.md b/docs/examples/java/sites/get-deployment-download.md
index 5875c72..ce26ba8 100644
--- a/docs/examples/java/sites/get-deployment-download.md
+++ b/docs/examples/java/sites/get-deployment-download.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
+import io.appwrite.enums.DeploymentDownloadType;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/sites/list-deployments.md b/docs/examples/java/sites/list-deployments.md
index a19f4ec..a1953cd 100644
--- a/docs/examples/java/sites/list-deployments.md
+++ b/docs/examples/java/sites/list-deployments.md
@@ -11,7 +11,7 @@ Sites sites = new Sites(client);
sites.listDeployments(
"", // siteId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/sites/list-logs.md b/docs/examples/java/sites/list-logs.md
index 85c2171..095f0ae 100644
--- a/docs/examples/java/sites/list-logs.md
+++ b/docs/examples/java/sites/list-logs.md
@@ -11,7 +11,7 @@ Sites sites = new Sites(client);
sites.listLogs(
"", // siteId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/sites/list.md b/docs/examples/java/sites/list.md
index 20b5533..d8c6941 100644
--- a/docs/examples/java/sites/list.md
+++ b/docs/examples/java/sites/list.md
@@ -10,7 +10,7 @@ Client client = new Client()
Sites sites = new Sites(client);
sites.list(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/sites/update.md b/docs/examples/java/sites/update.md
index 9a8b577..0c4024b 100644
--- a/docs/examples/java/sites/update.md
+++ b/docs/examples/java/sites/update.md
@@ -2,6 +2,8 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Sites;
import io.appwrite.enums.Framework;
+import io.appwrite.enums.BuildRuntime;
+import io.appwrite.enums.Adapter;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -13,15 +15,15 @@ Sites sites = new Sites(client);
sites.update(
"", // siteId
"", // name
- .ANALOG, // framework
+ Framework.ANALOG, // framework
false, // enabled (optional)
false, // logging (optional)
1, // timeout (optional)
"", // installCommand (optional)
"", // buildCommand (optional)
"", // outputDirectory (optional)
- .NODE_14_5, // buildRuntime (optional)
- .STATIC, // adapter (optional)
+ BuildRuntime.NODE_14_5, // buildRuntime (optional)
+ Adapter.STATIC, // adapter (optional)
"", // fallbackFile (optional)
"", // installationId (optional)
"", // providerRepositoryId (optional)
diff --git a/docs/examples/java/storage/create-bucket.md b/docs/examples/java/storage/create-bucket.md
index d48db24..0af282a 100644
--- a/docs/examples/java/storage/create-bucket.md
+++ b/docs/examples/java/storage/create-bucket.md
@@ -1,8 +1,9 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Storage;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Storage;
+import io.appwrite.enums.Compression;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -14,14 +15,15 @@ Storage storage = new Storage(client);
storage.createBucket(
"", // bucketId
"", // name
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
false, // fileSecurity (optional)
false, // enabled (optional)
1, // maximumFileSize (optional)
- listOf(), // allowedFileExtensions (optional)
- .NONE, // compression (optional)
+ List.of(), // allowedFileExtensions (optional)
+ Compression.NONE, // compression (optional)
false, // encryption (optional)
false, // antivirus (optional)
+ false, // transformations (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/storage/create-file.md b/docs/examples/java/storage/create-file.md
index 7ddf891..abaeee3 100644
--- a/docs/examples/java/storage/create-file.md
+++ b/docs/examples/java/storage/create-file.md
@@ -1,9 +1,9 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.models.InputFile;
-import io.appwrite.services.Storage;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Storage;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -16,7 +16,7 @@ storage.createFile(
"", // bucketId
"", // fileId
InputFile.fromPath("file.png"), // file
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/storage/get-file-preview.md b/docs/examples/java/storage/get-file-preview.md
index 1a0ab59..61f7637 100644
--- a/docs/examples/java/storage/get-file-preview.md
+++ b/docs/examples/java/storage/get-file-preview.md
@@ -1,6 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.Storage;
+import io.appwrite.enums.ImageGravity;
+import io.appwrite.enums.ImageFormat;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/storage/list-buckets.md b/docs/examples/java/storage/list-buckets.md
index 504cfb7..3fde32c 100644
--- a/docs/examples/java/storage/list-buckets.md
+++ b/docs/examples/java/storage/list-buckets.md
@@ -10,7 +10,7 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.listBuckets(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/storage/list-files.md b/docs/examples/java/storage/list-files.md
index 6397ca0..712c420 100644
--- a/docs/examples/java/storage/list-files.md
+++ b/docs/examples/java/storage/list-files.md
@@ -11,7 +11,7 @@ Storage storage = new Storage(client);
storage.listFiles(
"", // bucketId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/storage/update-bucket.md b/docs/examples/java/storage/update-bucket.md
index 586b113..47b322e 100644
--- a/docs/examples/java/storage/update-bucket.md
+++ b/docs/examples/java/storage/update-bucket.md
@@ -1,8 +1,9 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Storage;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Storage;
+import io.appwrite.enums.Compression;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -14,14 +15,15 @@ Storage storage = new Storage(client);
storage.updateBucket(
"", // bucketId
"", // name
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
false, // fileSecurity (optional)
false, // enabled (optional)
1, // maximumFileSize (optional)
- listOf(), // allowedFileExtensions (optional)
- .NONE, // compression (optional)
+ List.of(), // allowedFileExtensions (optional)
+ Compression.NONE, // compression (optional)
false, // encryption (optional)
false, // antivirus (optional)
+ false, // transformations (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/storage/update-file.md b/docs/examples/java/storage/update-file.md
index d534e0e..b394fd5 100644
--- a/docs/examples/java/storage/update-file.md
+++ b/docs/examples/java/storage/update-file.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Storage;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.Storage;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +15,7 @@ storage.updateFile(
"", // bucketId
"", // fileId
"", // name (optional)
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-enum-column.md b/docs/examples/java/tablesdb/create-enum-column.md
index bc31bbe..ea0452f 100644
--- a/docs/examples/java/tablesdb/create-enum-column.md
+++ b/docs/examples/java/tablesdb/create-enum-column.md
@@ -13,7 +13,7 @@ tablesDB.createEnumColumn(
"", // databaseId
"", // tableId
"", // key
- listOf(), // elements
+ List.of(), // elements
false, // required
"", // default (optional)
false, // array (optional)
diff --git a/docs/examples/java/tablesdb/create-index.md b/docs/examples/java/tablesdb/create-index.md
index 991bd34..07076d9 100644
--- a/docs/examples/java/tablesdb/create-index.md
+++ b/docs/examples/java/tablesdb/create-index.md
@@ -15,9 +15,9 @@ tablesDB.createIndex(
"", // tableId
"", // key
IndexType.KEY, // type
- listOf(), // columns
- listOf(), // orders (optional)
- listOf(), // lengths (optional)
+ List.of(), // columns
+ List.of(), // orders (optional)
+ List.of(), // lengths (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-line-column.md b/docs/examples/java/tablesdb/create-line-column.md
index afe029e..f8351ca 100644
--- a/docs/examples/java/tablesdb/create-line-column.md
+++ b/docs/examples/java/tablesdb/create-line-column.md
@@ -14,7 +14,7 @@ tablesDB.createLineColumn(
"", // tableId
"", // key
false, // required
- listOf([1, 2], [3, 4], [5, 6]), // default (optional)
+ List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6)), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-operations.md b/docs/examples/java/tablesdb/create-operations.md
index 9504f62..a7c3a1b 100644
--- a/docs/examples/java/tablesdb/create-operations.md
+++ b/docs/examples/java/tablesdb/create-operations.md
@@ -11,17 +11,15 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.createOperations(
"", // transactionId
- listOf(
- {
- "action": "create",
- "databaseId": "",
- "tableId": "",
- "rowId": "",
- "data": {
- "name": "Walter O'Brien"
- }
- }
- ), // operations (optional)
+ List.of(Map.of(
+ "action", "create",
+ "databaseId", "",
+ "tableId", "",
+ "rowId", "",
+ "data", Map.of(
+ "name", "Walter O'Brien"
+ )
+ )), // operations (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-point-column.md b/docs/examples/java/tablesdb/create-point-column.md
index 2c9941b..2f6ae0e 100644
--- a/docs/examples/java/tablesdb/create-point-column.md
+++ b/docs/examples/java/tablesdb/create-point-column.md
@@ -14,7 +14,7 @@ tablesDB.createPointColumn(
"", // tableId
"", // key
false, // required
- listOf(1, 2), // default (optional)
+ List.of(1, 2), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-polygon-column.md b/docs/examples/java/tablesdb/create-polygon-column.md
index 58ca798..58caa8a 100644
--- a/docs/examples/java/tablesdb/create-polygon-column.md
+++ b/docs/examples/java/tablesdb/create-polygon-column.md
@@ -14,7 +14,7 @@ tablesDB.createPolygonColumn(
"", // tableId
"", // key
false, // required
- listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional)
+ List.of(List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6), List.of(1, 2))), // default (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/create-relationship-column.md b/docs/examples/java/tablesdb/create-relationship-column.md
index 956c1fa..c7a3a5f 100644
--- a/docs/examples/java/tablesdb/create-relationship-column.md
+++ b/docs/examples/java/tablesdb/create-relationship-column.md
@@ -2,6 +2,7 @@ import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;
import io.appwrite.enums.RelationshipType;
+import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/tablesdb/create-row.md b/docs/examples/java/tablesdb/create-row.md
index 9e47167..3da8c32 100644
--- a/docs/examples/java/tablesdb/create-row.md
+++ b/docs/examples/java/tablesdb/create-row.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.TablesDB;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.TablesDB;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,14 +15,14 @@ tablesDB.createRow(
"", // databaseId
"", // tableId
"", // rowId
- mapOf(
- "username" to "walter.obrien",
- "email" to "walter.obrien@example.com",
- "fullName" to "Walter O'Brien",
- "age" to 30,
- "isAdmin" to false
+ Map.of(
+ "username", "walter.obrien",
+ "email", "walter.obrien@example.com",
+ "fullName", "Walter O'Brien",
+ "age", 30,
+ "isAdmin", false
), // data
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/create-rows.md b/docs/examples/java/tablesdb/create-rows.md
index 956d812..e99ea04 100644
--- a/docs/examples/java/tablesdb/create-rows.md
+++ b/docs/examples/java/tablesdb/create-rows.md
@@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.createRows(
"", // databaseId
"", // tableId
- listOf(), // rows
+ List.of(), // rows
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/create-table.md b/docs/examples/java/tablesdb/create-table.md
index 1f9fd10..615278a 100644
--- a/docs/examples/java/tablesdb/create-table.md
+++ b/docs/examples/java/tablesdb/create-table.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.TablesDB;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.TablesDB;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +15,7 @@ tablesDB.createTable(
"", // databaseId
"", // tableId
"", // name
- listOf(Permission.read(Role.any())), // permissions (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
false, // rowSecurity (optional)
false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/tablesdb/delete-rows.md b/docs/examples/java/tablesdb/delete-rows.md
index 80ca0bb..f90789d 100644
--- a/docs/examples/java/tablesdb/delete-rows.md
+++ b/docs/examples/java/tablesdb/delete-rows.md
@@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.deleteRows(
"", // databaseId
"", // tableId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/get-row.md b/docs/examples/java/tablesdb/get-row.md
index d642ebc..5b18e8f 100644
--- a/docs/examples/java/tablesdb/get-row.md
+++ b/docs/examples/java/tablesdb/get-row.md
@@ -13,7 +13,7 @@ tablesDB.getRow(
"", // databaseId
"", // tableId
"", // rowId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/list-columns.md b/docs/examples/java/tablesdb/list-columns.md
index bdf376c..f7e37f9 100644
--- a/docs/examples/java/tablesdb/list-columns.md
+++ b/docs/examples/java/tablesdb/list-columns.md
@@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.listColumns(
"", // databaseId
"", // tableId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/list-indexes.md b/docs/examples/java/tablesdb/list-indexes.md
index 5b73204..ca792c5 100644
--- a/docs/examples/java/tablesdb/list-indexes.md
+++ b/docs/examples/java/tablesdb/list-indexes.md
@@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.listIndexes(
"", // databaseId
"", // tableId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/list-rows.md b/docs/examples/java/tablesdb/list-rows.md
index 8d7956b..7903da4 100644
--- a/docs/examples/java/tablesdb/list-rows.md
+++ b/docs/examples/java/tablesdb/list-rows.md
@@ -12,7 +12,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.listRows(
"", // databaseId
"", // tableId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/tablesdb/list-tables.md b/docs/examples/java/tablesdb/list-tables.md
index 646be0f..9b4c88b 100644
--- a/docs/examples/java/tablesdb/list-tables.md
+++ b/docs/examples/java/tablesdb/list-tables.md
@@ -11,7 +11,7 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.listTables(
"", // databaseId
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/tablesdb/list-transactions.md b/docs/examples/java/tablesdb/list-transactions.md
index acc4902..f0b4db0 100644
--- a/docs/examples/java/tablesdb/list-transactions.md
+++ b/docs/examples/java/tablesdb/list-transactions.md
@@ -10,7 +10,7 @@ Client client = new Client()
TablesDB tablesDB = new TablesDB(client);
tablesDB.listTransactions(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
diff --git a/docs/examples/java/tablesdb/list.md b/docs/examples/java/tablesdb/list.md
index 98784df..cf23036 100644
--- a/docs/examples/java/tablesdb/list.md
+++ b/docs/examples/java/tablesdb/list.md
@@ -10,7 +10,7 @@ Client client = new Client()
TablesDB tablesDB = new TablesDB(client);
tablesDB.list(
- listOf(), // queries (optional)
+ List.of(), // queries (optional)
"", // search (optional)
false, // total (optional)
new CoroutineCallback<>((result, error) -> {
diff --git a/docs/examples/java/tablesdb/update-enum-column.md b/docs/examples/java/tablesdb/update-enum-column.md
index 5a8036a..0f182b7 100644
--- a/docs/examples/java/tablesdb/update-enum-column.md
+++ b/docs/examples/java/tablesdb/update-enum-column.md
@@ -13,7 +13,7 @@ tablesDB.updateEnumColumn(
"", // databaseId
"", // tableId
"", // key
- listOf(), // elements
+ List.of(), // elements
false, // required
"", // default
"", // newKey (optional)
diff --git a/docs/examples/java/tablesdb/update-line-column.md b/docs/examples/java/tablesdb/update-line-column.md
index 4c65a90..4ef648f 100644
--- a/docs/examples/java/tablesdb/update-line-column.md
+++ b/docs/examples/java/tablesdb/update-line-column.md
@@ -14,7 +14,7 @@ tablesDB.updateLineColumn(
"", // tableId
"", // key
false, // required
- listOf([1, 2], [3, 4], [5, 6]), // default (optional)
+ List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6)), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/update-point-column.md b/docs/examples/java/tablesdb/update-point-column.md
index 56ac86a..729595d 100644
--- a/docs/examples/java/tablesdb/update-point-column.md
+++ b/docs/examples/java/tablesdb/update-point-column.md
@@ -14,7 +14,7 @@ tablesDB.updatePointColumn(
"", // tableId
"", // key
false, // required
- listOf(1, 2), // default (optional)
+ List.of(1, 2), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/update-polygon-column.md b/docs/examples/java/tablesdb/update-polygon-column.md
index 189d473..bc6ccc9 100644
--- a/docs/examples/java/tablesdb/update-polygon-column.md
+++ b/docs/examples/java/tablesdb/update-polygon-column.md
@@ -14,7 +14,7 @@ tablesDB.updatePolygonColumn(
"", // tableId
"", // key
false, // required
- listOf([[1, 2], [3, 4], [5, 6], [1, 2]]), // default (optional)
+ List.of(List.of(List.of(1, 2), List.of(3, 4), List.of(5, 6), List.of(1, 2))), // default (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/update-relationship-column.md b/docs/examples/java/tablesdb/update-relationship-column.md
index 45aea8a..eaf6b1b 100644
--- a/docs/examples/java/tablesdb/update-relationship-column.md
+++ b/docs/examples/java/tablesdb/update-relationship-column.md
@@ -1,6 +1,7 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
import io.appwrite.services.TablesDB;
+import io.appwrite.enums.RelationMutate;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
diff --git a/docs/examples/java/tablesdb/update-row.md b/docs/examples/java/tablesdb/update-row.md
index 835f63b..5585274 100644
--- a/docs/examples/java/tablesdb/update-row.md
+++ b/docs/examples/java/tablesdb/update-row.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.TablesDB;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.TablesDB;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,8 +15,8 @@ tablesDB.updateRow(
"", // databaseId
"", // tableId
"", // rowId
- mapOf( "a" to "b" ), // data (optional)
- listOf(Permission.read(Role.any())), // permissions (optional)
+ Map.of("a", "b"), // data (optional)
+ List.of(Permission.read(Role.any())), // permissions (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/update-rows.md b/docs/examples/java/tablesdb/update-rows.md
index 7d39e44..b479613 100644
--- a/docs/examples/java/tablesdb/update-rows.md
+++ b/docs/examples/java/tablesdb/update-rows.md
@@ -12,8 +12,8 @@ TablesDB tablesDB = new TablesDB(client);
tablesDB.updateRows(
"", // databaseId
"", // tableId
- mapOf( "a" to "b" ), // data (optional)
- listOf(), // queries (optional)
+ Map.of("a", "b"), // data (optional)
+ List.of(), // queries (optional)
"", // transactionId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/tablesdb/update-table.md b/docs/examples/java/tablesdb/update-table.md
index 257803b..cf0c2fb 100644
--- a/docs/examples/java/tablesdb/update-table.md
+++ b/docs/examples/java/tablesdb/update-table.md
@@ -1,8 +1,8 @@
import io.appwrite.Client;
import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.TablesDB;
import io.appwrite.Permission;
import io.appwrite.Role;
+import io.appwrite.services.TablesDB;
Client client = new Client()
.setEndpoint("https://.cloud.appwrite.io/v1") // Your API Endpoint
@@ -15,7 +15,7 @@ tablesDB.updateTable(
"