diff --git a/README.md b/README.md
index 3d09470..c5064e6 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
![Maven Central](https://img.shields.io/maven-central/v/io.appwrite/sdk-for-kotlin.svg?color=green&style=flat-square)
![License](https://img.shields.io/github/license/appwrite/sdk-for-kotlin.svg?style=flat-square)
-![Version](https://img.shields.io/badge/api%20version-1.4.13-blue.svg?style=flat-square)
+![Version](https://img.shields.io/badge/api%20version-1.5.0-blue.svg?style=flat-square)
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
@@ -39,7 +39,7 @@ repositories {
Next, add the dependency to your project's `build.gradle(.kts)` file:
```groovy
-implementation("io.appwrite:sdk-for-kotlin:5.0.0-rc.3")
+implementation("io.appwrite:sdk-for-kotlin:5.0.0-rc.4")
```
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
io.appwrite
sdk-for-kotlin
- 5.0.0-rc.3
+ 5.0.0-rc.4
```
diff --git a/docs/examples/java/account/add-authenticator.md b/docs/examples/java/account/add-authenticator.md
index c4dd4c6..3c3ac2b 100644
--- a/docs/examples/java/account/add-authenticator.md
+++ b/docs/examples/java/account/add-authenticator.md
@@ -11,7 +11,7 @@ Client client = new Client()
Account account = new Account(client);
account.addAuthenticator(
- AuthenticatorType.TOTP
+ AuthenticatorType.TOTP, // type
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.addAuthenticator(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-email-password-session.md b/docs/examples/java/account/create-email-password-session.md
index 76ccd7c..0af4269 100644
--- a/docs/examples/java/account/create-email-password-session.md
+++ b/docs/examples/java/account/create-email-password-session.md
@@ -9,8 +9,8 @@ Client client = new Client()
Account account = new Account(client);
account.createEmailPasswordSession(
- "email@example.com",
- "password"
+ "email@example.com", // email
+ "password", // password
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createEmailPasswordSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-email-token.md b/docs/examples/java/account/create-email-token.md
index 1f12878..0790db7 100644
--- a/docs/examples/java/account/create-email-token.md
+++ b/docs/examples/java/account/create-email-token.md
@@ -9,8 +9,9 @@ Client client = new Client()
Account account = new Account(client);
account.createEmailToken(
- "[USER_ID]",
- "email@example.com",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ false, // phrase (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ account.createEmailToken(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-magic-u-r-l-token.md b/docs/examples/java/account/create-magic-u-r-l-token.md
index 0a3a305..a1abad4 100644
--- a/docs/examples/java/account/create-magic-u-r-l-token.md
+++ b/docs/examples/java/account/create-magic-u-r-l-token.md
@@ -9,8 +9,10 @@ Client client = new Client()
Account account = new Account(client);
account.createMagicURLToken(
- "[USER_ID]",
- "email@example.com",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "https://example.com", // url (optional)
+ false, // phrase (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ account.createMagicURLToken(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-o-auth2session.md b/docs/examples/java/account/create-o-auth2session.md
index 7f7ee6e..5e1ac01 100644
--- a/docs/examples/java/account/create-o-auth2session.md
+++ b/docs/examples/java/account/create-o-auth2session.md
@@ -10,7 +10,11 @@ Client client = new Client()
Account account = new Account(client);
account.createOAuth2Session(
- OAuthProvider.AMAZON,
+ OAuthProvider.AMAZON, // provider
+ "https://example.com", // success (optional)
+ "https://example.com", // failure (optional)
+ false, // token (optional)
+ listOf(), // scopes (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +24,4 @@ account.createOAuth2Session(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-phone-token.md b/docs/examples/java/account/create-phone-token.md
index a6868c5..9276ffe 100644
--- a/docs/examples/java/account/create-phone-token.md
+++ b/docs/examples/java/account/create-phone-token.md
@@ -9,8 +9,8 @@ Client client = new Client()
Account account = new Account(client);
account.createPhoneToken(
- "[USER_ID]",
- "+12065550100"
+ "[USER_ID]", // userId
+ "+12065550100", // phone
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createPhoneToken(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-recovery.md b/docs/examples/java/account/create-recovery.md
index 95a8192..590fee3 100644
--- a/docs/examples/java/account/create-recovery.md
+++ b/docs/examples/java/account/create-recovery.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.createRecovery(
- "email@example.com",
- "https://example.com"
+ "email@example.com", // email
+ "https://example.com", // url
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.createRecovery(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-session.md b/docs/examples/java/account/create-session.md
index 4879d0f..0172f42 100644
--- a/docs/examples/java/account/create-session.md
+++ b/docs/examples/java/account/create-session.md
@@ -9,8 +9,8 @@ Client client = new Client()
Account account = new Account(client);
account.createSession(
- "[USER_ID]",
- "[SECRET]"
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create-verification.md b/docs/examples/java/account/create-verification.md
index 51321d3..d38067b 100644
--- a/docs/examples/java/account/create-verification.md
+++ b/docs/examples/java/account/create-verification.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.createVerification(
- "https://example.com"
+ "https://example.com", // url
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.createVerification(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create.md b/docs/examples/java/account/create.md
index 1a83a6b..87080f0 100644
--- a/docs/examples/java/account/create.md
+++ b/docs/examples/java/account/create.md
@@ -9,9 +9,10 @@ Client client = new Client()
Account account = new Account(client);
account.create(
- "[USER_ID]",
- "email@example.com",
- "",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "", // password
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ account.create(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/create2f-a-challenge.md b/docs/examples/java/account/create2f-a-challenge.md
index 65532d2..abe2740 100644
--- a/docs/examples/java/account/create2f-a-challenge.md
+++ b/docs/examples/java/account/create2f-a-challenge.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.create2FAChallenge(
- AuthenticationFactor.TOTP
+ AuthenticationFactor.TOTP, // factor
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.create2FAChallenge(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/delete-authenticator.md b/docs/examples/java/account/delete-authenticator.md
index 7464189..3e8f03e 100644
--- a/docs/examples/java/account/delete-authenticator.md
+++ b/docs/examples/java/account/delete-authenticator.md
@@ -11,8 +11,8 @@ Client client = new Client()
Account account = new Account(client);
account.deleteAuthenticator(
- AuthenticatorType.TOTP,
- "[OTP]"
+ AuthenticatorType.TOTP, // type
+ "[OTP]", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ account.deleteAuthenticator(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/delete-identity.md b/docs/examples/java/account/delete-identity.md
index 8c7e2b2..5d389a6 100644
--- a/docs/examples/java/account/delete-identity.md
+++ b/docs/examples/java/account/delete-identity.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.deleteIdentity(
- "[IDENTITY_ID]"
+ "[IDENTITY_ID]", // identityId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.deleteIdentity(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/delete-session.md b/docs/examples/java/account/delete-session.md
index f825d7c..04899b6 100644
--- a/docs/examples/java/account/delete-session.md
+++ b/docs/examples/java/account/delete-session.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.deleteSession(
- "[SESSION_ID]"
+ "[SESSION_ID]", // sessionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.deleteSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/get-session.md b/docs/examples/java/account/get-session.md
index da7617f..34e1c68 100644
--- a/docs/examples/java/account/get-session.md
+++ b/docs/examples/java/account/get-session.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.getSession(
- "[SESSION_ID]"
+ "[SESSION_ID]", // sessionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.getSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/list-identities.md b/docs/examples/java/account/list-identities.md
index ffb1a0d..4b07399 100644
--- a/docs/examples/java/account/list-identities.md
+++ b/docs/examples/java/account/list-identities.md
@@ -10,6 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.listIdentities(
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ account.listIdentities(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/list-logs.md b/docs/examples/java/account/list-logs.md
index a746762..b33b55a 100644
--- a/docs/examples/java/account/list-logs.md
+++ b/docs/examples/java/account/list-logs.md
@@ -10,6 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.listLogs(
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ account.listLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-challenge.md b/docs/examples/java/account/update-challenge.md
index 7fbef51..b3ff1f4 100644
--- a/docs/examples/java/account/update-challenge.md
+++ b/docs/examples/java/account/update-challenge.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updateChallenge(
- "[CHALLENGE_ID]",
- "[OTP]"
+ "[CHALLENGE_ID]", // challengeId
+ "[OTP]", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.updateChallenge(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-email.md b/docs/examples/java/account/update-email.md
index 5c5e4a6..453e1da 100644
--- a/docs/examples/java/account/update-email.md
+++ b/docs/examples/java/account/update-email.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updateEmail(
- "email@example.com",
- "password"
+ "email@example.com", // email
+ "password", // password
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.updateEmail(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-m-f-a.md b/docs/examples/java/account/update-m-f-a.md
index 47c1675..28780ae 100644
--- a/docs/examples/java/account/update-m-f-a.md
+++ b/docs/examples/java/account/update-m-f-a.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.updateMFA(
- false
+ false, // mfa
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.updateMFA(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-magic-u-r-l-session.md b/docs/examples/java/account/update-magic-u-r-l-session.md
index bb4f3eb..385c421 100644
--- a/docs/examples/java/account/update-magic-u-r-l-session.md
+++ b/docs/examples/java/account/update-magic-u-r-l-session.md
@@ -9,8 +9,8 @@ Client client = new Client()
Account account = new Account(client);
account.updateMagicURLSession(
- "[USER_ID]",
- "[SECRET]"
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.updateMagicURLSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-name.md b/docs/examples/java/account/update-name.md
index e7845dc..cfa70ff 100644
--- a/docs/examples/java/account/update-name.md
+++ b/docs/examples/java/account/update-name.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.updateName(
- "[NAME]"
+ "[NAME]", // name
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.updateName(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-password.md b/docs/examples/java/account/update-password.md
index 2144631..078301a 100644
--- a/docs/examples/java/account/update-password.md
+++ b/docs/examples/java/account/update-password.md
@@ -10,7 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updatePassword(
- "",
+ "", // password
+ "password", // oldPassword (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ account.updatePassword(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-phone-verification.md b/docs/examples/java/account/update-phone-verification.md
index 8980bbd..b3e1e62 100644
--- a/docs/examples/java/account/update-phone-verification.md
+++ b/docs/examples/java/account/update-phone-verification.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updatePhoneVerification(
- "[USER_ID]",
- "[SECRET]"
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.updatePhoneVerification(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-phone.md b/docs/examples/java/account/update-phone.md
index 987f7a5..1808767 100644
--- a/docs/examples/java/account/update-phone.md
+++ b/docs/examples/java/account/update-phone.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updatePhone(
- "+12065550100",
- "password"
+ "+12065550100", // phone
+ "password", // password
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.updatePhone(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-prefs.md b/docs/examples/java/account/update-prefs.md
index 5cdf173..0ff1116 100644
--- a/docs/examples/java/account/update-prefs.md
+++ b/docs/examples/java/account/update-prefs.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.updatePrefs(
- mapOf( "a" to "b" )
+ mapOf( "a" to "b" ), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.updatePrefs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-recovery.md b/docs/examples/java/account/update-recovery.md
index bfd0d9f..2658fa2 100644
--- a/docs/examples/java/account/update-recovery.md
+++ b/docs/examples/java/account/update-recovery.md
@@ -10,9 +10,9 @@ Client client = new Client()
Account account = new Account(client);
account.updateRecovery(
- "[USER_ID]",
- "[SECRET]",
- ""
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
+ "", // password
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ account.updateRecovery(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-session.md b/docs/examples/java/account/update-session.md
index 8bb52c9..d90b656 100644
--- a/docs/examples/java/account/update-session.md
+++ b/docs/examples/java/account/update-session.md
@@ -10,7 +10,7 @@ Client client = new Client()
Account account = new Account(client);
account.updateSession(
- "[SESSION_ID]"
+ "[SESSION_ID]", // sessionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ account.updateSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/update-verification.md b/docs/examples/java/account/update-verification.md
index c48870e..87e0277 100644
--- a/docs/examples/java/account/update-verification.md
+++ b/docs/examples/java/account/update-verification.md
@@ -10,8 +10,8 @@ Client client = new Client()
Account account = new Account(client);
account.updateVerification(
- "[USER_ID]",
- "[SECRET]"
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ account.updateVerification(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/account/verify-authenticator.md b/docs/examples/java/account/verify-authenticator.md
index d087314..771857a 100644
--- a/docs/examples/java/account/verify-authenticator.md
+++ b/docs/examples/java/account/verify-authenticator.md
@@ -11,8 +11,8 @@ Client client = new Client()
Account account = new Account(client);
account.verifyAuthenticator(
- AuthenticatorType.TOTP,
- "[OTP]"
+ AuthenticatorType.TOTP, // type
+ "[OTP]", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ account.verifyAuthenticator(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-browser.md b/docs/examples/java/avatars/get-browser.md
index c437abf..7e89188 100644
--- a/docs/examples/java/avatars/get-browser.md
+++ b/docs/examples/java/avatars/get-browser.md
@@ -11,7 +11,10 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getBrowser(
- Browser.AVANT_BROWSER,
+ Browser.AVANT_BROWSER, // code
+ 0, // width (optional)
+ 0, // height (optional)
+ 0, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +24,4 @@ avatars.getBrowser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-credit-card.md b/docs/examples/java/avatars/get-credit-card.md
index 010e4b0..e6e6004 100644
--- a/docs/examples/java/avatars/get-credit-card.md
+++ b/docs/examples/java/avatars/get-credit-card.md
@@ -11,7 +11,10 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getCreditCard(
- CreditCard.AMERICAN_EXPRESS,
+ CreditCard.AMERICAN_EXPRESS, // code
+ 0, // width (optional)
+ 0, // height (optional)
+ 0, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +24,4 @@ avatars.getCreditCard(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-favicon.md b/docs/examples/java/avatars/get-favicon.md
index 7c9b232..3819896 100644
--- a/docs/examples/java/avatars/get-favicon.md
+++ b/docs/examples/java/avatars/get-favicon.md
@@ -10,7 +10,7 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getFavicon(
- "https://example.com"
+ "https://example.com", // url
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ avatars.getFavicon(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-flag.md b/docs/examples/java/avatars/get-flag.md
index fdcc069..b5dc08a 100644
--- a/docs/examples/java/avatars/get-flag.md
+++ b/docs/examples/java/avatars/get-flag.md
@@ -11,7 +11,10 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getFlag(
- Flag.AFGHANISTAN,
+ Flag.AFGHANISTAN, // code
+ 0, // width (optional)
+ 0, // height (optional)
+ 0, // quality (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +24,4 @@ avatars.getFlag(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-image.md b/docs/examples/java/avatars/get-image.md
index 2357ba1..f1d0d29 100644
--- a/docs/examples/java/avatars/get-image.md
+++ b/docs/examples/java/avatars/get-image.md
@@ -10,7 +10,9 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getImage(
- "https://example.com",
+ "https://example.com", // url
+ 0, // width (optional)
+ 0, // height (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ avatars.getImage(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-initials.md b/docs/examples/java/avatars/get-initials.md
index 4c65beb..1f7ec73 100644
--- a/docs/examples/java/avatars/get-initials.md
+++ b/docs/examples/java/avatars/get-initials.md
@@ -10,6 +10,10 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getInitials(
+ "[NAME]", // name (optional)
+ 0, // width (optional)
+ 0, // height (optional)
+ "", // background (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +23,4 @@ avatars.getInitials(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/avatars/get-q-r.md b/docs/examples/java/avatars/get-q-r.md
index 2d18a02..4b239a2 100644
--- a/docs/examples/java/avatars/get-q-r.md
+++ b/docs/examples/java/avatars/get-q-r.md
@@ -10,7 +10,10 @@ Client client = new Client()
Avatars avatars = new Avatars(client);
avatars.getQR(
- "[TEXT]",
+ "[TEXT]", // text
+ 1, // size (optional)
+ 0, // margin (optional)
+ false, // download (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +23,4 @@ avatars.getQR(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-boolean-attribute.md b/docs/examples/java/databases/create-boolean-attribute.md
index 6e79f0a..f1604bb 100644
--- a/docs/examples/java/databases/create-boolean-attribute.md
+++ b/docs/examples/java/databases/create-boolean-attribute.md
@@ -10,10 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createBooleanAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ false, // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ databases.createBooleanAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-collection.md b/docs/examples/java/databases/create-collection.md
index 96b5d9b..aed6669 100644
--- a/docs/examples/java/databases/create-collection.md
+++ b/docs/examples/java/databases/create-collection.md
@@ -10,9 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createCollection(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[NAME]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[NAME]", // name
+ listOf("read("any")"), // permissions (optional)
+ false, // documentSecurity (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +25,4 @@ databases.createCollection(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-datetime-attribute.md b/docs/examples/java/databases/create-datetime-attribute.md
index 307a8ff..1b9f60f 100644
--- a/docs/examples/java/databases/create-datetime-attribute.md
+++ b/docs/examples/java/databases/create-datetime-attribute.md
@@ -10,10 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createDatetimeAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ databases.createDatetimeAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-document.md b/docs/examples/java/databases/create-document.md
index 02d89a9..e88d17e 100644
--- a/docs/examples/java/databases/create-document.md
+++ b/docs/examples/java/databases/create-document.md
@@ -10,10 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createDocument(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[DOCUMENT_ID]",
- mapOf( "a" to "b" ),
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[DOCUMENT_ID]", // documentId
+ mapOf( "a" to "b" ), // data
+ listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +24,4 @@ databases.createDocument(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-email-attribute.md b/docs/examples/java/databases/create-email-attribute.md
index 8774c55..11f87e0 100644
--- a/docs/examples/java/databases/create-email-attribute.md
+++ b/docs/examples/java/databases/create-email-attribute.md
@@ -10,10 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createEmailAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "email@example.com", // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ databases.createEmailAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-enum-attribute.md b/docs/examples/java/databases/create-enum-attribute.md
index e2cf6a2..ee27c06 100644
--- a/docs/examples/java/databases/create-enum-attribute.md
+++ b/docs/examples/java/databases/create-enum-attribute.md
@@ -10,11 +10,13 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createEnumAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- listOf(),
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ listOf(), // elements
+ false, // required
+ "[DEFAULT]", // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +26,4 @@ databases.createEnumAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-float-attribute.md b/docs/examples/java/databases/create-float-attribute.md
index 0fba6ac..ca995ab 100644
--- a/docs/examples/java/databases/create-float-attribute.md
+++ b/docs/examples/java/databases/create-float-attribute.md
@@ -10,10 +10,14 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createFloatAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ 0, // min (optional)
+ 0, // max (optional)
+ 0, // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +27,4 @@ databases.createFloatAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-index.md b/docs/examples/java/databases/create-index.md
index d1d8b9e..147ab01 100644
--- a/docs/examples/java/databases/create-index.md
+++ b/docs/examples/java/databases/create-index.md
@@ -11,11 +11,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createIndex(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- IndexType.KEY,
- listOf(),
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ IndexType.KEY, // type
+ listOf(), // attributes
+ listOf(), // orders (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -25,3 +26,4 @@ databases.createIndex(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-integer-attribute.md b/docs/examples/java/databases/create-integer-attribute.md
index 5446862..5c06248 100644
--- a/docs/examples/java/databases/create-integer-attribute.md
+++ b/docs/examples/java/databases/create-integer-attribute.md
@@ -10,10 +10,14 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createIntegerAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ 0, // min (optional)
+ 0, // max (optional)
+ 0, // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +27,4 @@ databases.createIntegerAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-ip-attribute.md b/docs/examples/java/databases/create-ip-attribute.md
index fe37da9..ba5906c 100644
--- a/docs/examples/java/databases/create-ip-attribute.md
+++ b/docs/examples/java/databases/create-ip-attribute.md
@@ -10,10 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createIpAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "", // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ databases.createIpAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-relationship-attribute.md b/docs/examples/java/databases/create-relationship-attribute.md
index 7f4970f..fde5e26 100644
--- a/docs/examples/java/databases/create-relationship-attribute.md
+++ b/docs/examples/java/databases/create-relationship-attribute.md
@@ -11,10 +11,14 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createRelationshipAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[RELATED_COLLECTION_ID]",
- RelationshipType.ONE_TO_ONE,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[RELATED_COLLECTION_ID]", // relatedCollectionId
+ RelationshipType.ONE_TO_ONE, // type
+ false, // twoWay (optional)
+ "", // key (optional)
+ "", // twoWayKey (optional)
+ RelationMutate.CASCADE, // onDelete (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +28,4 @@ databases.createRelationshipAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-string-attribute.md b/docs/examples/java/databases/create-string-attribute.md
index a9b1916..e6272ce 100644
--- a/docs/examples/java/databases/create-string-attribute.md
+++ b/docs/examples/java/databases/create-string-attribute.md
@@ -10,11 +10,14 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createStringAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- 1,
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ 1, // size
+ false, // required
+ "[DEFAULT]", // default (optional)
+ false, // array (optional)
+ false, // encrypt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +27,4 @@ databases.createStringAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create-url-attribute.md b/docs/examples/java/databases/create-url-attribute.md
index 9c504d8..1f4e344 100644
--- a/docs/examples/java/databases/create-url-attribute.md
+++ b/docs/examples/java/databases/create-url-attribute.md
@@ -10,10 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.createUrlAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "https://example.com", // default (optional)
+ false, // array (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ databases.createUrlAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/create.md b/docs/examples/java/databases/create.md
index a323434..813d91f 100644
--- a/docs/examples/java/databases/create.md
+++ b/docs/examples/java/databases/create.md
@@ -10,8 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.create(
- "[DATABASE_ID]",
- "[NAME]",
+ "[DATABASE_ID]", // databaseId
+ "[NAME]", // name
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ databases.create(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/delete-attribute.md b/docs/examples/java/databases/delete-attribute.md
index 68aeecd..3887864 100644
--- a/docs/examples/java/databases/delete-attribute.md
+++ b/docs/examples/java/databases/delete-attribute.md
@@ -10,9 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.deleteAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ databases.deleteAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/delete-collection.md b/docs/examples/java/databases/delete-collection.md
index cd328b4..7a6e0c8 100644
--- a/docs/examples/java/databases/delete-collection.md
+++ b/docs/examples/java/databases/delete-collection.md
@@ -10,8 +10,8 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.deleteCollection(
- "[DATABASE_ID]",
- "[COLLECTION_ID]"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ databases.deleteCollection(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/delete-document.md b/docs/examples/java/databases/delete-document.md
index 4e0ea73..f0c1627 100644
--- a/docs/examples/java/databases/delete-document.md
+++ b/docs/examples/java/databases/delete-document.md
@@ -10,9 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.deleteDocument(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[DOCUMENT_ID]"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[DOCUMENT_ID]", // documentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ databases.deleteDocument(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/delete-index.md b/docs/examples/java/databases/delete-index.md
index 640bd0f..78b079e 100644
--- a/docs/examples/java/databases/delete-index.md
+++ b/docs/examples/java/databases/delete-index.md
@@ -10,9 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.deleteIndex(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ databases.deleteIndex(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/delete.md b/docs/examples/java/databases/delete.md
index 897a450..412a220 100644
--- a/docs/examples/java/databases/delete.md
+++ b/docs/examples/java/databases/delete.md
@@ -10,7 +10,7 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.delete(
- "[DATABASE_ID]"
+ "[DATABASE_ID]", // databaseId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ databases.delete(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/get-attribute.md b/docs/examples/java/databases/get-attribute.md
index 79c1d2b..b43eebd 100644
--- a/docs/examples/java/databases/get-attribute.md
+++ b/docs/examples/java/databases/get-attribute.md
@@ -10,9 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.getAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ databases.getAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/get-collection.md b/docs/examples/java/databases/get-collection.md
index 3ecfa0c..57a1ba3 100644
--- a/docs/examples/java/databases/get-collection.md
+++ b/docs/examples/java/databases/get-collection.md
@@ -10,8 +10,8 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.getCollection(
- "[DATABASE_ID]",
- "[COLLECTION_ID]"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ databases.getCollection(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/get-document.md b/docs/examples/java/databases/get-document.md
index 16acc71..8decae8 100644
--- a/docs/examples/java/databases/get-document.md
+++ b/docs/examples/java/databases/get-document.md
@@ -10,9 +10,10 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.getDocument(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[DOCUMENT_ID]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[DOCUMENT_ID]", // documentId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ databases.getDocument(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/get-index.md b/docs/examples/java/databases/get-index.md
index 2bf036a..e32b4fd 100644
--- a/docs/examples/java/databases/get-index.md
+++ b/docs/examples/java/databases/get-index.md
@@ -10,9 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.getIndex(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ databases.getIndex(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/get.md b/docs/examples/java/databases/get.md
index 066ec4d..359efbc 100644
--- a/docs/examples/java/databases/get.md
+++ b/docs/examples/java/databases/get.md
@@ -10,7 +10,7 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.get(
- "[DATABASE_ID]"
+ "[DATABASE_ID]", // databaseId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ databases.get(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/list-attributes.md b/docs/examples/java/databases/list-attributes.md
index f42baa0..ca57d53 100644
--- a/docs/examples/java/databases/list-attributes.md
+++ b/docs/examples/java/databases/list-attributes.md
@@ -10,8 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.listAttributes(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ databases.listAttributes(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/list-collections.md b/docs/examples/java/databases/list-collections.md
index 67c343f..78f48bd 100644
--- a/docs/examples/java/databases/list-collections.md
+++ b/docs/examples/java/databases/list-collections.md
@@ -10,7 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.listCollections(
- "[DATABASE_ID]",
+ "[DATABASE_ID]", // databaseId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ databases.listCollections(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/list-documents.md b/docs/examples/java/databases/list-documents.md
index 1911e8b..7d9413a 100644
--- a/docs/examples/java/databases/list-documents.md
+++ b/docs/examples/java/databases/list-documents.md
@@ -10,8 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.listDocuments(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ databases.listDocuments(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/list-indexes.md b/docs/examples/java/databases/list-indexes.md
index be50cdd..4b845de 100644
--- a/docs/examples/java/databases/list-indexes.md
+++ b/docs/examples/java/databases/list-indexes.md
@@ -10,8 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.listIndexes(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ databases.listIndexes(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/list.md b/docs/examples/java/databases/list.md
index 04f8186..1eaa5fa 100644
--- a/docs/examples/java/databases/list.md
+++ b/docs/examples/java/databases/list.md
@@ -10,6 +10,8 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.list(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ databases.list(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-boolean-attribute.md b/docs/examples/java/databases/update-boolean-attribute.md
index 97cee2d..6f0f2e5 100644
--- a/docs/examples/java/databases/update-boolean-attribute.md
+++ b/docs/examples/java/databases/update-boolean-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateBooleanAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- false
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ false, // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateBooleanAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-collection.md b/docs/examples/java/databases/update-collection.md
index 3f25c50..961fb07 100644
--- a/docs/examples/java/databases/update-collection.md
+++ b/docs/examples/java/databases/update-collection.md
@@ -10,9 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateCollection(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[NAME]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[NAME]", // name
+ listOf("read("any")"), // permissions (optional)
+ false, // documentSecurity (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +25,4 @@ databases.updateCollection(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-datetime-attribute.md b/docs/examples/java/databases/update-datetime-attribute.md
index 503f2de..39707df 100644
--- a/docs/examples/java/databases/update-datetime-attribute.md
+++ b/docs/examples/java/databases/update-datetime-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateDatetimeAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateDatetimeAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-document.md b/docs/examples/java/databases/update-document.md
index e96f003..5058037 100644
--- a/docs/examples/java/databases/update-document.md
+++ b/docs/examples/java/databases/update-document.md
@@ -10,9 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateDocument(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "[DOCUMENT_ID]",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "[DOCUMENT_ID]", // documentId
+ mapOf( "a" to "b" ), // data (optional)
+ listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +24,4 @@ databases.updateDocument(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-email-attribute.md b/docs/examples/java/databases/update-email-attribute.md
index 39ea153..fa9e785 100644
--- a/docs/examples/java/databases/update-email-attribute.md
+++ b/docs/examples/java/databases/update-email-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateEmailAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- "email@example.com"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "email@example.com", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateEmailAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-enum-attribute.md b/docs/examples/java/databases/update-enum-attribute.md
index 969ea4e..e053522 100644
--- a/docs/examples/java/databases/update-enum-attribute.md
+++ b/docs/examples/java/databases/update-enum-attribute.md
@@ -10,12 +10,12 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateEnumAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- listOf(),
- false,
- "[DEFAULT]"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ listOf(), // elements
+ false, // required
+ "[DEFAULT]", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -25,3 +25,4 @@ databases.updateEnumAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-float-attribute.md b/docs/examples/java/databases/update-float-attribute.md
index 67d76e4..58415c4 100644
--- a/docs/examples/java/databases/update-float-attribute.md
+++ b/docs/examples/java/databases/update-float-attribute.md
@@ -10,13 +10,13 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateFloatAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- 0,
- 0,
- 0
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ 0, // min
+ 0, // max
+ 0, // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -26,3 +26,4 @@ databases.updateFloatAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-integer-attribute.md b/docs/examples/java/databases/update-integer-attribute.md
index b9308dc..41c3388 100644
--- a/docs/examples/java/databases/update-integer-attribute.md
+++ b/docs/examples/java/databases/update-integer-attribute.md
@@ -10,13 +10,13 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateIntegerAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- 0,
- 0,
- 0
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ 0, // min
+ 0, // max
+ 0, // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -26,3 +26,4 @@ databases.updateIntegerAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-ip-attribute.md b/docs/examples/java/databases/update-ip-attribute.md
index 6a936a5..2f519c5 100644
--- a/docs/examples/java/databases/update-ip-attribute.md
+++ b/docs/examples/java/databases/update-ip-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateIpAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- ""
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateIpAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-relationship-attribute.md b/docs/examples/java/databases/update-relationship-attribute.md
index 272952b..b587439 100644
--- a/docs/examples/java/databases/update-relationship-attribute.md
+++ b/docs/examples/java/databases/update-relationship-attribute.md
@@ -10,9 +10,10 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateRelationshipAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ RelationMutate.CASCADE, // onDelete (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ databases.updateRelationshipAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-string-attribute.md b/docs/examples/java/databases/update-string-attribute.md
index aba0d0e..2f69ef0 100644
--- a/docs/examples/java/databases/update-string-attribute.md
+++ b/docs/examples/java/databases/update-string-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateStringAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- "[DEFAULT]"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "[DEFAULT]", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateStringAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update-url-attribute.md b/docs/examples/java/databases/update-url-attribute.md
index 87ab384..dac1258 100644
--- a/docs/examples/java/databases/update-url-attribute.md
+++ b/docs/examples/java/databases/update-url-attribute.md
@@ -10,11 +10,11 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.updateUrlAttribute(
- "[DATABASE_ID]",
- "[COLLECTION_ID]",
- "",
- false,
- "https://example.com"
+ "[DATABASE_ID]", // databaseId
+ "[COLLECTION_ID]", // collectionId
+ "", // key
+ false, // required
+ "https://example.com", // default
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +24,4 @@ databases.updateUrlAttribute(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/databases/update.md b/docs/examples/java/databases/update.md
index b706df6..ad06b80 100644
--- a/docs/examples/java/databases/update.md
+++ b/docs/examples/java/databases/update.md
@@ -10,8 +10,9 @@ Client client = new Client()
Databases databases = new Databases(client);
databases.update(
- "[DATABASE_ID]",
- "[NAME]",
+ "[DATABASE_ID]", // databaseId
+ "[NAME]", // name
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ databases.update(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/create-build.md b/docs/examples/java/functions/create-build.md
index 10c8d2f..6a351a6 100644
--- a/docs/examples/java/functions/create-build.md
+++ b/docs/examples/java/functions/create-build.md
@@ -10,9 +10,9 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.createBuild(
- "[FUNCTION_ID]",
- "[DEPLOYMENT_ID]",
- "[BUILD_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[DEPLOYMENT_ID]", // deploymentId
+ "[BUILD_ID]", // buildId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ functions.createBuild(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/create-deployment.md b/docs/examples/java/functions/create-deployment.md
index 4e6da33..a1cf1a6 100644
--- a/docs/examples/java/functions/create-deployment.md
+++ b/docs/examples/java/functions/create-deployment.md
@@ -11,9 +11,11 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.createDeployment(
- "[FUNCTION_ID]",
- InputFile.fromPath("file.png"),
- false,
+ "[FUNCTION_ID]", // functionId
+ InputFile.fromPath("file.png"), // code
+ false, // activate
+ "[ENTRYPOINT]", // entrypoint (optional)
+ "[COMMANDS]", // commands (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +25,4 @@ functions.createDeployment(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/create-execution.md b/docs/examples/java/functions/create-execution.md
index 1ad77bb..9ad5b2d 100644
--- a/docs/examples/java/functions/create-execution.md
+++ b/docs/examples/java/functions/create-execution.md
@@ -10,7 +10,12 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.createExecution(
- "[FUNCTION_ID]",
+ "[FUNCTION_ID]", // functionId
+ "[BODY]", // body (optional)
+ false, // async (optional)
+ "[PATH]", // path (optional)
+ ExecutionMethod.GET, // method (optional)
+ mapOf( "a" to "b" ), // headers (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ functions.createExecution(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/create-variable.md b/docs/examples/java/functions/create-variable.md
index 5e9c5a6..359c339 100644
--- a/docs/examples/java/functions/create-variable.md
+++ b/docs/examples/java/functions/create-variable.md
@@ -10,9 +10,9 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.createVariable(
- "[FUNCTION_ID]",
- "[KEY]",
- "[VALUE]"
+ "[FUNCTION_ID]", // functionId
+ "[KEY]", // key
+ "[VALUE]", // value
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ functions.createVariable(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/create.md b/docs/examples/java/functions/create.md
index 9ac9561..a9b256f 100644
--- a/docs/examples/java/functions/create.md
+++ b/docs/examples/java/functions/create.md
@@ -11,9 +11,26 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.create(
- "[FUNCTION_ID]",
- "[NAME]",
- .NODE180,
+ "[FUNCTION_ID]", // functionId
+ "[NAME]", // name
+ .NODE145, // runtime
+ listOf("any"), // execute (optional)
+ listOf(), // events (optional)
+ "", // schedule (optional)
+ 1, // timeout (optional)
+ false, // enabled (optional)
+ false, // logging (optional)
+ "[ENTRYPOINT]", // entrypoint (optional)
+ "[COMMANDS]", // commands (optional)
+ "[INSTALLATION_ID]", // installationId (optional)
+ "[PROVIDER_REPOSITORY_ID]", // providerRepositoryId (optional)
+ "[PROVIDER_BRANCH]", // providerBranch (optional)
+ false, // providerSilentMode (optional)
+ "[PROVIDER_ROOT_DIRECTORY]", // providerRootDirectory (optional)
+ "[TEMPLATE_REPOSITORY]", // templateRepository (optional)
+ "[TEMPLATE_OWNER]", // templateOwner (optional)
+ "[TEMPLATE_ROOT_DIRECTORY]", // templateRootDirectory (optional)
+ "[TEMPLATE_BRANCH]", // templateBranch (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +40,4 @@ functions.create(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/delete-deployment.md b/docs/examples/java/functions/delete-deployment.md
index 703dce6..eb9ae2b 100644
--- a/docs/examples/java/functions/delete-deployment.md
+++ b/docs/examples/java/functions/delete-deployment.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.deleteDeployment(
- "[FUNCTION_ID]",
- "[DEPLOYMENT_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[DEPLOYMENT_ID]", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.deleteDeployment(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/delete-variable.md b/docs/examples/java/functions/delete-variable.md
index d366150..7dc8af2 100644
--- a/docs/examples/java/functions/delete-variable.md
+++ b/docs/examples/java/functions/delete-variable.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.deleteVariable(
- "[FUNCTION_ID]",
- "[VARIABLE_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[VARIABLE_ID]", // variableId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.deleteVariable(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/delete.md b/docs/examples/java/functions/delete.md
index 8f39896..d8979dc 100644
--- a/docs/examples/java/functions/delete.md
+++ b/docs/examples/java/functions/delete.md
@@ -10,7 +10,7 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.delete(
- "[FUNCTION_ID]"
+ "[FUNCTION_ID]", // functionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ functions.delete(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/download-deployment.md b/docs/examples/java/functions/download-deployment.md
index 91898dc..cfacd12 100644
--- a/docs/examples/java/functions/download-deployment.md
+++ b/docs/examples/java/functions/download-deployment.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.downloadDeployment(
- "[FUNCTION_ID]",
- "[DEPLOYMENT_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[DEPLOYMENT_ID]", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.downloadDeployment(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/get-deployment.md b/docs/examples/java/functions/get-deployment.md
index 5b539d2..e8be9dc 100644
--- a/docs/examples/java/functions/get-deployment.md
+++ b/docs/examples/java/functions/get-deployment.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.getDeployment(
- "[FUNCTION_ID]",
- "[DEPLOYMENT_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[DEPLOYMENT_ID]", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.getDeployment(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/get-execution.md b/docs/examples/java/functions/get-execution.md
index ce66cc9..a8ee753 100644
--- a/docs/examples/java/functions/get-execution.md
+++ b/docs/examples/java/functions/get-execution.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.getExecution(
- "[FUNCTION_ID]",
- "[EXECUTION_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[EXECUTION_ID]", // executionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.getExecution(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/get-variable.md b/docs/examples/java/functions/get-variable.md
index 2be25a5..e719657 100644
--- a/docs/examples/java/functions/get-variable.md
+++ b/docs/examples/java/functions/get-variable.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.getVariable(
- "[FUNCTION_ID]",
- "[VARIABLE_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[VARIABLE_ID]", // variableId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.getVariable(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/get.md b/docs/examples/java/functions/get.md
index 8ad5ea3..6b87d6f 100644
--- a/docs/examples/java/functions/get.md
+++ b/docs/examples/java/functions/get.md
@@ -10,7 +10,7 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.get(
- "[FUNCTION_ID]"
+ "[FUNCTION_ID]", // functionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ functions.get(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/list-deployments.md b/docs/examples/java/functions/list-deployments.md
index 61f48c8..0c07d6a 100644
--- a/docs/examples/java/functions/list-deployments.md
+++ b/docs/examples/java/functions/list-deployments.md
@@ -10,7 +10,9 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.listDeployments(
- "[FUNCTION_ID]",
+ "[FUNCTION_ID]", // functionId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ functions.listDeployments(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/list-executions.md b/docs/examples/java/functions/list-executions.md
index cee852a..d66d73c 100644
--- a/docs/examples/java/functions/list-executions.md
+++ b/docs/examples/java/functions/list-executions.md
@@ -10,7 +10,9 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.listExecutions(
- "[FUNCTION_ID]",
+ "[FUNCTION_ID]", // functionId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ functions.listExecutions(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/list-variables.md b/docs/examples/java/functions/list-variables.md
index 4fa47e8..6d465bb 100644
--- a/docs/examples/java/functions/list-variables.md
+++ b/docs/examples/java/functions/list-variables.md
@@ -10,7 +10,7 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.listVariables(
- "[FUNCTION_ID]"
+ "[FUNCTION_ID]", // functionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ functions.listVariables(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/list.md b/docs/examples/java/functions/list.md
index 4224cf5..b87e493 100644
--- a/docs/examples/java/functions/list.md
+++ b/docs/examples/java/functions/list.md
@@ -10,6 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.list(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ functions.list(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/update-deployment.md b/docs/examples/java/functions/update-deployment.md
index 2af0637..bb9c766 100644
--- a/docs/examples/java/functions/update-deployment.md
+++ b/docs/examples/java/functions/update-deployment.md
@@ -10,8 +10,8 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.updateDeployment(
- "[FUNCTION_ID]",
- "[DEPLOYMENT_ID]"
+ "[FUNCTION_ID]", // functionId
+ "[DEPLOYMENT_ID]", // deploymentId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ functions.updateDeployment(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/update-variable.md b/docs/examples/java/functions/update-variable.md
index f30bbf8..48219d1 100644
--- a/docs/examples/java/functions/update-variable.md
+++ b/docs/examples/java/functions/update-variable.md
@@ -10,9 +10,10 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.updateVariable(
- "[FUNCTION_ID]",
- "[VARIABLE_ID]",
- "[KEY]",
+ "[FUNCTION_ID]", // functionId
+ "[VARIABLE_ID]", // variableId
+ "[KEY]", // key
+ "[VALUE]", // value (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ functions.updateVariable(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/functions/update.md b/docs/examples/java/functions/update.md
index 8a53d75..b934ece 100644
--- a/docs/examples/java/functions/update.md
+++ b/docs/examples/java/functions/update.md
@@ -10,8 +10,22 @@ Client client = new Client()
Functions functions = new Functions(client);
functions.update(
- "[FUNCTION_ID]",
- "[NAME]",
+ "[FUNCTION_ID]", // functionId
+ "[NAME]", // name
+ .NODE145, // runtime (optional)
+ listOf("any"), // execute (optional)
+ listOf(), // events (optional)
+ "", // schedule (optional)
+ 1, // timeout (optional)
+ false, // enabled (optional)
+ false, // logging (optional)
+ "[ENTRYPOINT]", // entrypoint (optional)
+ "[COMMANDS]", // commands (optional)
+ "[INSTALLATION_ID]", // installationId (optional)
+ "[PROVIDER_REPOSITORY_ID]", // providerRepositoryId (optional)
+ "[PROVIDER_BRANCH]", // providerBranch (optional)
+ false, // providerSilentMode (optional)
+ "[PROVIDER_ROOT_DIRECTORY]", // providerRootDirectory (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +35,4 @@ functions.update(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/graphql/mutation.md b/docs/examples/java/graphql/mutation.md
index d689c62..3b45db7 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" )
+ mapOf( "a" to "b" ), // query
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ graphql.mutation(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/graphql/query.md b/docs/examples/java/graphql/query.md
index e4b8693..508b326 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" )
+ mapOf( "a" to "b" ), // query
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ graphql.query(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-certificate.md b/docs/examples/java/health/get-certificate.md
index 7610caa..73120ec 100644
--- a/docs/examples/java/health/get-certificate.md
+++ b/docs/examples/java/health/get-certificate.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getCertificate(
+ "", // domain (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getCertificate(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-failed-jobs.md b/docs/examples/java/health/get-failed-jobs.md
index 7de233c..9925b7e 100644
--- a/docs/examples/java/health/get-failed-jobs.md
+++ b/docs/examples/java/health/get-failed-jobs.md
@@ -11,7 +11,8 @@ Client client = new Client()
Health health = new Health(client);
health.getFailedJobs(
- .V1DATABASE,
+ .V1DATABASE, // name
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ health.getFailedJobs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-builds.md b/docs/examples/java/health/get-queue-builds.md
index ff8a54f..e7289a7 100644
--- a/docs/examples/java/health/get-queue-builds.md
+++ b/docs/examples/java/health/get-queue-builds.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueBuilds(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueBuilds(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-certificates.md b/docs/examples/java/health/get-queue-certificates.md
index e3247d5..14722d1 100644
--- a/docs/examples/java/health/get-queue-certificates.md
+++ b/docs/examples/java/health/get-queue-certificates.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueCertificates(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueCertificates(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-databases.md b/docs/examples/java/health/get-queue-databases.md
index 79b4897..53b45a8 100644
--- a/docs/examples/java/health/get-queue-databases.md
+++ b/docs/examples/java/health/get-queue-databases.md
@@ -10,6 +10,8 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueDatabases(
+ "[NAME]", // name (optional)
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ health.getQueueDatabases(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-deletes.md b/docs/examples/java/health/get-queue-deletes.md
index 4152092..83a4862 100644
--- a/docs/examples/java/health/get-queue-deletes.md
+++ b/docs/examples/java/health/get-queue-deletes.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueDeletes(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueDeletes(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-functions.md b/docs/examples/java/health/get-queue-functions.md
index 9643108..1984d81 100644
--- a/docs/examples/java/health/get-queue-functions.md
+++ b/docs/examples/java/health/get-queue-functions.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueFunctions(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueFunctions(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-logs.md b/docs/examples/java/health/get-queue-logs.md
index 8e81796..fa7fa7e 100644
--- a/docs/examples/java/health/get-queue-logs.md
+++ b/docs/examples/java/health/get-queue-logs.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueLogs(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-mails.md b/docs/examples/java/health/get-queue-mails.md
index 812273e..3962d94 100644
--- a/docs/examples/java/health/get-queue-mails.md
+++ b/docs/examples/java/health/get-queue-mails.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueMails(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueMails(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-messaging.md b/docs/examples/java/health/get-queue-messaging.md
index 1e0c8f5..01b7e5a 100644
--- a/docs/examples/java/health/get-queue-messaging.md
+++ b/docs/examples/java/health/get-queue-messaging.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueMessaging(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueMessaging(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-migrations.md b/docs/examples/java/health/get-queue-migrations.md
index eaf4a89..7272a6f 100644
--- a/docs/examples/java/health/get-queue-migrations.md
+++ b/docs/examples/java/health/get-queue-migrations.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueMigrations(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueMigrations(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/health/get-queue-webhooks.md b/docs/examples/java/health/get-queue-webhooks.md
index e400824..06dba93 100644
--- a/docs/examples/java/health/get-queue-webhooks.md
+++ b/docs/examples/java/health/get-queue-webhooks.md
@@ -10,6 +10,7 @@ Client client = new Client()
Health health = new Health(client);
health.getQueueWebhooks(
+ 0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +20,4 @@ health.getQueueWebhooks(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-s-m-t-p-provider.md b/docs/examples/java/messaging/create-apns-provider.md
similarity index 66%
rename from docs/examples/java/messaging/create-s-m-t-p-provider.md
rename to docs/examples/java/messaging/create-apns-provider.md
index d443f8d..4632938 100644
--- a/docs/examples/java/messaging/create-s-m-t-p-provider.md
+++ b/docs/examples/java/messaging/create-apns-provider.md
@@ -9,10 +9,14 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createSMTPProvider(
- "[PROVIDER_ID]",
- "[NAME]",
- "[HOST]",
+messaging.createApnsProvider(
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "[AUTH_KEY]", // authKey (optional)
+ "[AUTH_KEY_ID]", // authKeyId (optional)
+ "[TEAM_ID]", // teamId (optional)
+ "[BUNDLE_ID]", // bundleId (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +26,4 @@ messaging.createSMTPProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-email.md b/docs/examples/java/messaging/create-email.md
index ffd9cd6..783cb14 100644
--- a/docs/examples/java/messaging/create-email.md
+++ b/docs/examples/java/messaging/create-email.md
@@ -10,9 +10,18 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createEmail(
- "[MESSAGE_ID]",
- "[SUBJECT]",
- "[CONTENT]",
+ "[MESSAGE_ID]", // messageId
+ "[SUBJECT]", // subject
+ "[CONTENT]", // content
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ listOf(), // cc (optional)
+ listOf(), // bcc (optional)
+ listOf(), // attachments (optional)
+ MessageStatus.DRAFT, // status (optional)
+ false, // html (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +31,4 @@ messaging.createEmail(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-a-p-n-s-provider.md b/docs/examples/java/messaging/create-fcm-provider.md
similarity index 76%
rename from docs/examples/java/messaging/create-a-p-n-s-provider.md
rename to docs/examples/java/messaging/create-fcm-provider.md
index 61fca2e..eb0efb7 100644
--- a/docs/examples/java/messaging/create-a-p-n-s-provider.md
+++ b/docs/examples/java/messaging/create-fcm-provider.md
@@ -9,9 +9,11 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createAPNSProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+messaging.createFcmProvider(
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ mapOf( "a" to "b" ), // serviceAccountJSON (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +23,4 @@ messaging.createAPNSProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-mailgun-provider.md b/docs/examples/java/messaging/create-mailgun-provider.md
index 39e1ac8..7964f99 100644
--- a/docs/examples/java/messaging/create-mailgun-provider.md
+++ b/docs/examples/java/messaging/create-mailgun-provider.md
@@ -10,8 +10,16 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createMailgunProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "[API_KEY]", // apiKey (optional)
+ "[DOMAIN]", // domain (optional)
+ false, // isEuRegion (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "email@example.com", // replyToEmail (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +29,4 @@ messaging.createMailgunProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-msg91provider.md b/docs/examples/java/messaging/create-msg91provider.md
index ef4f034..b1b0b17 100644
--- a/docs/examples/java/messaging/create-msg91provider.md
+++ b/docs/examples/java/messaging/create-msg91provider.md
@@ -10,8 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createMsg91Provider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "+12065550100", // from (optional)
+ "[SENDER_ID]", // senderId (optional)
+ "[AUTH_KEY]", // authKey (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +25,4 @@ messaging.createMsg91Provider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-push.md b/docs/examples/java/messaging/create-push.md
index efea1a7..12e5b01 100644
--- a/docs/examples/java/messaging/create-push.md
+++ b/docs/examples/java/messaging/create-push.md
@@ -10,9 +10,22 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createPush(
- "[MESSAGE_ID]",
- "[TITLE]",
- "[BODY]",
+ "[MESSAGE_ID]", // messageId
+ "[TITLE]", // title
+ "[BODY]", // body
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ mapOf( "a" to "b" ), // data (optional)
+ "[ACTION]", // action (optional)
+ "[ID1:ID2]", // image (optional)
+ "[ICON]", // icon (optional)
+ "[SOUND]", // sound (optional)
+ "[COLOR]", // color (optional)
+ "[TAG]", // tag (optional)
+ "[BADGE]", // badge (optional)
+ MessageStatus.DRAFT, // status (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +35,4 @@ messaging.createPush(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-sendgrid-provider.md b/docs/examples/java/messaging/create-sendgrid-provider.md
index 564e9fe..239fa50 100644
--- a/docs/examples/java/messaging/create-sendgrid-provider.md
+++ b/docs/examples/java/messaging/create-sendgrid-provider.md
@@ -10,8 +10,14 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createSendgridProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "[API_KEY]", // apiKey (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "email@example.com", // replyToEmail (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +27,4 @@ messaging.createSendgridProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-f-c-m-provider.md b/docs/examples/java/messaging/create-sms.md
similarity index 68%
rename from docs/examples/java/messaging/create-f-c-m-provider.md
rename to docs/examples/java/messaging/create-sms.md
index 18df4ba..b7a6d7e 100644
--- a/docs/examples/java/messaging/create-f-c-m-provider.md
+++ b/docs/examples/java/messaging/create-sms.md
@@ -9,9 +9,14 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createFCMProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+messaging.createSms(
+ "[MESSAGE_ID]", // messageId
+ "[CONTENT]", // content
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ MessageStatus.DRAFT, // status (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +26,4 @@ messaging.createFCMProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-smtp-provider.md b/docs/examples/java/messaging/create-smtp-provider.md
new file mode 100644
index 0000000..0359956
--- /dev/null
+++ b/docs/examples/java/messaging/create-smtp-provider.md
@@ -0,0 +1,36 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("5df5acd0d48c2") // Your project ID
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.createSmtpProvider(
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "[HOST]", // host
+ 1, // port (optional)
+ "[USERNAME]", // username (optional)
+ "[PASSWORD]", // password (optional)
+ .NONE, // encryption (optional)
+ false, // autoTLS (optional)
+ "[MAILER]", // mailer (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "email@example.com", // replyToEmail (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/create-subscriber.md b/docs/examples/java/messaging/create-subscriber.md
index d6f5cfa..9e2c7d3 100644
--- a/docs/examples/java/messaging/create-subscriber.md
+++ b/docs/examples/java/messaging/create-subscriber.md
@@ -10,9 +10,9 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createSubscriber(
- "[TOPIC_ID]",
- "[SUBSCRIBER_ID]",
- "[TARGET_ID]"
+ "[TOPIC_ID]", // topicId
+ "[SUBSCRIBER_ID]", // subscriberId
+ "[TARGET_ID]", // targetId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ messaging.createSubscriber(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-telesign-provider.md b/docs/examples/java/messaging/create-telesign-provider.md
index 0951bde..89b31d3 100644
--- a/docs/examples/java/messaging/create-telesign-provider.md
+++ b/docs/examples/java/messaging/create-telesign-provider.md
@@ -10,8 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createTelesignProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "+12065550100", // from (optional)
+ "[CUSTOMER_ID]", // customerId (optional)
+ "[API_KEY]", // apiKey (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +25,4 @@ messaging.createTelesignProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-textmagic-provider.md b/docs/examples/java/messaging/create-textmagic-provider.md
index c858612..1d17e01 100644
--- a/docs/examples/java/messaging/create-textmagic-provider.md
+++ b/docs/examples/java/messaging/create-textmagic-provider.md
@@ -10,8 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createTextmagicProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "+12065550100", // from (optional)
+ "[USERNAME]", // username (optional)
+ "[API_KEY]", // apiKey (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +25,4 @@ messaging.createTextmagicProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-topic.md b/docs/examples/java/messaging/create-topic.md
index c54c1a4..b0747c5 100644
--- a/docs/examples/java/messaging/create-topic.md
+++ b/docs/examples/java/messaging/create-topic.md
@@ -10,8 +10,9 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createTopic(
- "[TOPIC_ID]",
- "[NAME]",
+ "[TOPIC_ID]", // topicId
+ "[NAME]", // name
+ listOf("any"), // subscribe (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ messaging.createTopic(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-twilio-provider.md b/docs/examples/java/messaging/create-twilio-provider.md
index ba64586..5c9f99e 100644
--- a/docs/examples/java/messaging/create-twilio-provider.md
+++ b/docs/examples/java/messaging/create-twilio-provider.md
@@ -10,8 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createTwilioProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "+12065550100", // from (optional)
+ "[ACCOUNT_SID]", // accountSid (optional)
+ "[AUTH_TOKEN]", // authToken (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +25,4 @@ messaging.createTwilioProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-vonage-provider.md b/docs/examples/java/messaging/create-vonage-provider.md
index e487804..34bdda9 100644
--- a/docs/examples/java/messaging/create-vonage-provider.md
+++ b/docs/examples/java/messaging/create-vonage-provider.md
@@ -10,8 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.createVonageProvider(
- "[PROVIDER_ID]",
- "[NAME]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name
+ "+12065550100", // from (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[API_SECRET]", // apiSecret (optional)
+ false, // enabled (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +25,4 @@ messaging.createVonageProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/delete-provider.md b/docs/examples/java/messaging/delete-provider.md
index cd2383f..30e94f9 100644
--- a/docs/examples/java/messaging/delete-provider.md
+++ b/docs/examples/java/messaging/delete-provider.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.deleteProvider(
- "[PROVIDER_ID]"
+ "[PROVIDER_ID]", // providerId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.deleteProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/delete-subscriber.md b/docs/examples/java/messaging/delete-subscriber.md
index ca34630..3d3cfde 100644
--- a/docs/examples/java/messaging/delete-subscriber.md
+++ b/docs/examples/java/messaging/delete-subscriber.md
@@ -10,8 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.deleteSubscriber(
- "[TOPIC_ID]",
- "[SUBSCRIBER_ID]"
+ "[TOPIC_ID]", // topicId
+ "[SUBSCRIBER_ID]", // subscriberId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ messaging.deleteSubscriber(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/delete-topic.md b/docs/examples/java/messaging/delete-topic.md
index 355b29e..c58dfe6 100644
--- a/docs/examples/java/messaging/delete-topic.md
+++ b/docs/examples/java/messaging/delete-topic.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.deleteTopic(
- "[TOPIC_ID]"
+ "[TOPIC_ID]", // topicId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.deleteTopic(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/delete.md b/docs/examples/java/messaging/delete.md
index d4ce16d..9852aa4 100644
--- a/docs/examples/java/messaging/delete.md
+++ b/docs/examples/java/messaging/delete.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.delete(
- "[MESSAGE_ID]"
+ "[MESSAGE_ID]", // messageId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.delete(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/get-message.md b/docs/examples/java/messaging/get-message.md
index e5c3bdd..8a2ab1a 100644
--- a/docs/examples/java/messaging/get-message.md
+++ b/docs/examples/java/messaging/get-message.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.getMessage(
- "[MESSAGE_ID]"
+ "[MESSAGE_ID]", // messageId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.getMessage(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/get-provider.md b/docs/examples/java/messaging/get-provider.md
index 89446ca..4e8a26c 100644
--- a/docs/examples/java/messaging/get-provider.md
+++ b/docs/examples/java/messaging/get-provider.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.getProvider(
- "[PROVIDER_ID]"
+ "[PROVIDER_ID]", // providerId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.getProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/get-subscriber.md b/docs/examples/java/messaging/get-subscriber.md
index 8d83b88..442a594 100644
--- a/docs/examples/java/messaging/get-subscriber.md
+++ b/docs/examples/java/messaging/get-subscriber.md
@@ -10,8 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.getSubscriber(
- "[TOPIC_ID]",
- "[SUBSCRIBER_ID]"
+ "[TOPIC_ID]", // topicId
+ "[SUBSCRIBER_ID]", // subscriberId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ messaging.getSubscriber(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/get-topic.md b/docs/examples/java/messaging/get-topic.md
index 2d6a0e4..a178adb 100644
--- a/docs/examples/java/messaging/get-topic.md
+++ b/docs/examples/java/messaging/get-topic.md
@@ -10,7 +10,7 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.getTopic(
- "[TOPIC_ID]"
+ "[TOPIC_ID]", // topicId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ messaging.getTopic(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-message-logs.md b/docs/examples/java/messaging/list-message-logs.md
index dd19e66..e9be824 100644
--- a/docs/examples/java/messaging/list-message-logs.md
+++ b/docs/examples/java/messaging/list-message-logs.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listMessageLogs(
- "[MESSAGE_ID]",
+ "[MESSAGE_ID]", // messageId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.listMessageLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-messages.md b/docs/examples/java/messaging/list-messages.md
index c97d2ea..e2f4036 100644
--- a/docs/examples/java/messaging/list-messages.md
+++ b/docs/examples/java/messaging/list-messages.md
@@ -10,6 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listMessages(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ messaging.listMessages(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-provider-logs.md b/docs/examples/java/messaging/list-provider-logs.md
index 21ce753..22db1d9 100644
--- a/docs/examples/java/messaging/list-provider-logs.md
+++ b/docs/examples/java/messaging/list-provider-logs.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listProviderLogs(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.listProviderLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-providers.md b/docs/examples/java/messaging/list-providers.md
index 8b44080..ac9ac85 100644
--- a/docs/examples/java/messaging/list-providers.md
+++ b/docs/examples/java/messaging/list-providers.md
@@ -10,6 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listProviders(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ messaging.listProviders(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-subscriber-logs.md b/docs/examples/java/messaging/list-subscriber-logs.md
index 39eb935..02ada22 100644
--- a/docs/examples/java/messaging/list-subscriber-logs.md
+++ b/docs/examples/java/messaging/list-subscriber-logs.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listSubscriberLogs(
- "[SUBSCRIBER_ID]",
+ "[SUBSCRIBER_ID]", // subscriberId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.listSubscriberLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-subscribers.md b/docs/examples/java/messaging/list-subscribers.md
index a55c4ac..d3811e8 100644
--- a/docs/examples/java/messaging/list-subscribers.md
+++ b/docs/examples/java/messaging/list-subscribers.md
@@ -10,7 +10,9 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listSubscribers(
- "[TOPIC_ID]",
+ "[TOPIC_ID]", // topicId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ messaging.listSubscribers(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-targets.md b/docs/examples/java/messaging/list-targets.md
index ff5fd7b..6035328 100644
--- a/docs/examples/java/messaging/list-targets.md
+++ b/docs/examples/java/messaging/list-targets.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listTargets(
- "[MESSAGE_ID]",
+ "[MESSAGE_ID]", // messageId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.listTargets(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-topic-logs.md b/docs/examples/java/messaging/list-topic-logs.md
index b51faec..137796f 100644
--- a/docs/examples/java/messaging/list-topic-logs.md
+++ b/docs/examples/java/messaging/list-topic-logs.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listTopicLogs(
- "[TOPIC_ID]",
+ "[TOPIC_ID]", // topicId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.listTopicLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/list-topics.md b/docs/examples/java/messaging/list-topics.md
index 7964595..34c98e9 100644
--- a/docs/examples/java/messaging/list-topics.md
+++ b/docs/examples/java/messaging/list-topics.md
@@ -10,6 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.listTopics(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ messaging.listTopics(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-a-p-n-s-provider.md b/docs/examples/java/messaging/update-a-p-n-s-provider.md
index 9abe614..f38ccd5 100644
--- a/docs/examples/java/messaging/update-a-p-n-s-provider.md
+++ b/docs/examples/java/messaging/update-a-p-n-s-provider.md
@@ -10,7 +10,13 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateAPNSProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[AUTH_KEY]", // authKey (optional)
+ "[AUTH_KEY_ID]", // authKeyId (optional)
+ "[TEAM_ID]", // teamId (optional)
+ "[BUNDLE_ID]", // bundleId (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +26,4 @@ messaging.updateAPNSProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-email.md b/docs/examples/java/messaging/update-email.md
index a93460e..d910644 100644
--- a/docs/examples/java/messaging/update-email.md
+++ b/docs/examples/java/messaging/update-email.md
@@ -10,7 +10,17 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateEmail(
- "[MESSAGE_ID]",
+ "[MESSAGE_ID]", // messageId
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ "[SUBJECT]", // subject (optional)
+ "[CONTENT]", // content (optional)
+ MessageStatus.DRAFT, // status (optional)
+ false, // html (optional)
+ listOf(), // cc (optional)
+ listOf(), // bcc (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +30,4 @@ messaging.updateEmail(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-f-c-m-provider.md b/docs/examples/java/messaging/update-f-c-m-provider.md
index 5b2afbb..27a90c1 100644
--- a/docs/examples/java/messaging/update-f-c-m-provider.md
+++ b/docs/examples/java/messaging/update-f-c-m-provider.md
@@ -10,7 +10,10 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateFCMProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ mapOf( "a" to "b" ), // serviceAccountJSON (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +23,4 @@ messaging.updateFCMProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-mailgun-provider.md b/docs/examples/java/messaging/update-mailgun-provider.md
index 6567b5c..fa6d193 100644
--- a/docs/examples/java/messaging/update-mailgun-provider.md
+++ b/docs/examples/java/messaging/update-mailgun-provider.md
@@ -10,7 +10,16 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateMailgunProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[DOMAIN]", // domain (optional)
+ false, // isEuRegion (optional)
+ false, // enabled (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "[REPLY_TO_EMAIL]", // replyToEmail (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +29,4 @@ messaging.updateMailgunProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-msg91provider.md b/docs/examples/java/messaging/update-msg91provider.md
index e50b05a..fd7e615 100644
--- a/docs/examples/java/messaging/update-msg91provider.md
+++ b/docs/examples/java/messaging/update-msg91provider.md
@@ -10,7 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateMsg91Provider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[SENDER_ID]", // senderId (optional)
+ "[AUTH_KEY]", // authKey (optional)
+ "[FROM]", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ messaging.updateMsg91Provider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-push.md b/docs/examples/java/messaging/update-push.md
index 0bebecd..f8a16b9 100644
--- a/docs/examples/java/messaging/update-push.md
+++ b/docs/examples/java/messaging/update-push.md
@@ -10,7 +10,22 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updatePush(
- "[MESSAGE_ID]",
+ "[MESSAGE_ID]", // messageId
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ "[TITLE]", // title (optional)
+ "[BODY]", // body (optional)
+ mapOf( "a" to "b" ), // data (optional)
+ "[ACTION]", // action (optional)
+ "[ID1:ID2]", // image (optional)
+ "[ICON]", // icon (optional)
+ "[SOUND]", // sound (optional)
+ "[COLOR]", // color (optional)
+ "[TAG]", // tag (optional)
+ 0, // badge (optional)
+ MessageStatus.DRAFT, // status (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +35,4 @@ messaging.updatePush(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-s-m-s.md b/docs/examples/java/messaging/update-s-m-s.md
deleted file mode 100644
index 7ff3526..0000000
--- a/docs/examples/java/messaging/update-s-m-s.md
+++ /dev/null
@@ -1,22 +0,0 @@
-import io.appwrite.Client;
-import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Messaging;
-
-Client client = new Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-
-Messaging messaging = new Messaging(client);
-
-messaging.updateSMS(
- "[MESSAGE_ID]",
- new CoroutineCallback<>((result, error) -> {
- if (error != null) {
- error.printStackTrace();
- return;
- }
-
- System.out.println(result);
- })
-);
diff --git a/docs/examples/java/messaging/update-s-m-t-p-provider.md b/docs/examples/java/messaging/update-s-m-t-p-provider.md
deleted file mode 100644
index 32b9d28..0000000
--- a/docs/examples/java/messaging/update-s-m-t-p-provider.md
+++ /dev/null
@@ -1,22 +0,0 @@
-import io.appwrite.Client;
-import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Messaging;
-
-Client client = new Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
-
-Messaging messaging = new Messaging(client);
-
-messaging.updateSMTPProvider(
- "[PROVIDER_ID]",
- new CoroutineCallback<>((result, error) -> {
- if (error != null) {
- error.printStackTrace();
- return;
- }
-
- System.out.println(result);
- })
-);
diff --git a/docs/examples/java/messaging/update-sendgrid-provider.md b/docs/examples/java/messaging/update-sendgrid-provider.md
index 693ecad..9604aa0 100644
--- a/docs/examples/java/messaging/update-sendgrid-provider.md
+++ b/docs/examples/java/messaging/update-sendgrid-provider.md
@@ -10,7 +10,14 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateSendgridProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "[REPLY_TO_EMAIL]", // replyToEmail (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +27,4 @@ messaging.updateSendgridProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/create-s-m-s.md b/docs/examples/java/messaging/update-sms.md
similarity index 67%
rename from docs/examples/java/messaging/create-s-m-s.md
rename to docs/examples/java/messaging/update-sms.md
index cc6b7cd..573338d 100644
--- a/docs/examples/java/messaging/create-s-m-s.md
+++ b/docs/examples/java/messaging/update-sms.md
@@ -9,9 +9,14 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
-messaging.createSMS(
- "[MESSAGE_ID]",
- "[CONTENT]",
+messaging.updateSms(
+ "[MESSAGE_ID]", // messageId
+ listOf(), // topics (optional)
+ listOf(), // users (optional)
+ listOf(), // targets (optional)
+ "[CONTENT]", // content (optional)
+ MessageStatus.DRAFT, // status (optional)
+ "", // scheduledAt (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +26,4 @@ messaging.createSMS(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-smtp-provider.md b/docs/examples/java/messaging/update-smtp-provider.md
new file mode 100644
index 0000000..25dee8e
--- /dev/null
+++ b/docs/examples/java/messaging/update-smtp-provider.md
@@ -0,0 +1,36 @@
+import io.appwrite.Client;
+import io.appwrite.coroutines.CoroutineCallback;
+import io.appwrite.services.Messaging;
+
+Client client = new Client()
+ .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("5df5acd0d48c2") // Your project ID
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2"); // Your secret API key
+
+Messaging messaging = new Messaging(client);
+
+messaging.updateSmtpProvider(
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ "[HOST]", // host (optional)
+ 1, // port (optional)
+ "[USERNAME]", // username (optional)
+ "[PASSWORD]", // password (optional)
+ .NONE, // encryption (optional)
+ false, // autoTLS (optional)
+ "[MAILER]", // mailer (optional)
+ "[FROM_NAME]", // fromName (optional)
+ "email@example.com", // fromEmail (optional)
+ "[REPLY_TO_NAME]", // replyToName (optional)
+ "[REPLY_TO_EMAIL]", // replyToEmail (optional)
+ false, // enabled (optional)
+ new CoroutineCallback<>((result, error) -> {
+ if (error != null) {
+ error.printStackTrace();
+ return;
+ }
+
+ System.out.println(result);
+ })
+);
+
diff --git a/docs/examples/java/messaging/update-telesign-provider.md b/docs/examples/java/messaging/update-telesign-provider.md
index 35f8b0e..403d410 100644
--- a/docs/examples/java/messaging/update-telesign-provider.md
+++ b/docs/examples/java/messaging/update-telesign-provider.md
@@ -10,7 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateTelesignProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[CUSTOMER_ID]", // customerId (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[FROM]", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ messaging.updateTelesignProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-textmagic-provider.md b/docs/examples/java/messaging/update-textmagic-provider.md
index 40178e4..f467094 100644
--- a/docs/examples/java/messaging/update-textmagic-provider.md
+++ b/docs/examples/java/messaging/update-textmagic-provider.md
@@ -10,7 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateTextmagicProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[USERNAME]", // username (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[FROM]", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ messaging.updateTextmagicProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-topic.md b/docs/examples/java/messaging/update-topic.md
index 983b8a0..a892176 100644
--- a/docs/examples/java/messaging/update-topic.md
+++ b/docs/examples/java/messaging/update-topic.md
@@ -10,7 +10,8 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateTopic(
- "[TOPIC_ID]",
+ "[TOPIC_ID]", // topicId
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ messaging.updateTopic(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-twilio-provider.md b/docs/examples/java/messaging/update-twilio-provider.md
index cd9abec..e864b60 100644
--- a/docs/examples/java/messaging/update-twilio-provider.md
+++ b/docs/examples/java/messaging/update-twilio-provider.md
@@ -10,7 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateTwilioProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[ACCOUNT_SID]", // accountSid (optional)
+ "[AUTH_TOKEN]", // authToken (optional)
+ "[FROM]", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ messaging.updateTwilioProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/messaging/update-vonage-provider.md b/docs/examples/java/messaging/update-vonage-provider.md
index b4d4cea..89de47a 100644
--- a/docs/examples/java/messaging/update-vonage-provider.md
+++ b/docs/examples/java/messaging/update-vonage-provider.md
@@ -10,7 +10,12 @@ Client client = new Client()
Messaging messaging = new Messaging(client);
messaging.updateVonageProvider(
- "[PROVIDER_ID]",
+ "[PROVIDER_ID]", // providerId
+ "[NAME]", // name (optional)
+ false, // enabled (optional)
+ "[API_KEY]", // apiKey (optional)
+ "[API_SECRET]", // apiSecret (optional)
+ "[FROM]", // from (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +25,4 @@ messaging.updateVonageProvider(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/create-bucket.md b/docs/examples/java/storage/create-bucket.md
index c9ebc91..55ea448 100644
--- a/docs/examples/java/storage/create-bucket.md
+++ b/docs/examples/java/storage/create-bucket.md
@@ -10,8 +10,16 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.createBucket(
- "[BUCKET_ID]",
- "[NAME]",
+ "[BUCKET_ID]", // bucketId
+ "[NAME]", // name
+ listOf("read("any")"), // permissions (optional)
+ false, // fileSecurity (optional)
+ false, // enabled (optional)
+ 1, // maximumFileSize (optional)
+ listOf(), // allowedFileExtensions (optional)
+ .NONE, // compression (optional)
+ false, // encryption (optional)
+ false, // antivirus (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +29,4 @@ storage.createBucket(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/create-file.md b/docs/examples/java/storage/create-file.md
index 1201f21..243f950 100644
--- a/docs/examples/java/storage/create-file.md
+++ b/docs/examples/java/storage/create-file.md
@@ -11,9 +11,10 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.createFile(
- "[BUCKET_ID]",
- "[FILE_ID]",
- InputFile.fromPath("file.png"),
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
+ InputFile.fromPath("file.png"), // file
+ listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +24,4 @@ storage.createFile(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/delete-bucket.md b/docs/examples/java/storage/delete-bucket.md
index f26e9ee..25841d2 100644
--- a/docs/examples/java/storage/delete-bucket.md
+++ b/docs/examples/java/storage/delete-bucket.md
@@ -10,7 +10,7 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.deleteBucket(
- "[BUCKET_ID]"
+ "[BUCKET_ID]", // bucketId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ storage.deleteBucket(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/delete-file.md b/docs/examples/java/storage/delete-file.md
index c682297..278a7e0 100644
--- a/docs/examples/java/storage/delete-file.md
+++ b/docs/examples/java/storage/delete-file.md
@@ -10,8 +10,8 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.deleteFile(
- "[BUCKET_ID]",
- "[FILE_ID]"
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ storage.deleteFile(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/get-bucket.md b/docs/examples/java/storage/get-bucket.md
index 2157dd7..cc926c8 100644
--- a/docs/examples/java/storage/get-bucket.md
+++ b/docs/examples/java/storage/get-bucket.md
@@ -10,7 +10,7 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.getBucket(
- "[BUCKET_ID]"
+ "[BUCKET_ID]", // bucketId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ storage.getBucket(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/get-file-download.md b/docs/examples/java/storage/get-file-download.md
index 33486b5..91715b4 100644
--- a/docs/examples/java/storage/get-file-download.md
+++ b/docs/examples/java/storage/get-file-download.md
@@ -10,8 +10,8 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.getFileDownload(
- "[BUCKET_ID]",
- "[FILE_ID]"
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ storage.getFileDownload(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/get-file-preview.md b/docs/examples/java/storage/get-file-preview.md
index 50daff8..6e20a72 100644
--- a/docs/examples/java/storage/get-file-preview.md
+++ b/docs/examples/java/storage/get-file-preview.md
@@ -10,8 +10,19 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.getFilePreview(
- "[BUCKET_ID]",
- "[FILE_ID]",
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
+ 0, // width (optional)
+ 0, // height (optional)
+ ImageGravity.CENTER, // gravity (optional)
+ 0, // quality (optional)
+ 0, // borderWidth (optional)
+ "", // borderColor (optional)
+ 0, // borderRadius (optional)
+ 0, // opacity (optional)
+ -360, // rotation (optional)
+ "", // background (optional)
+ ImageFormat.JPG, // output (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +32,4 @@ storage.getFilePreview(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/get-file-view.md b/docs/examples/java/storage/get-file-view.md
index 11cced5..db15c5e 100644
--- a/docs/examples/java/storage/get-file-view.md
+++ b/docs/examples/java/storage/get-file-view.md
@@ -10,8 +10,8 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.getFileView(
- "[BUCKET_ID]",
- "[FILE_ID]"
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ storage.getFileView(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/get-file.md b/docs/examples/java/storage/get-file.md
index 7b1c1e2..43f0195 100644
--- a/docs/examples/java/storage/get-file.md
+++ b/docs/examples/java/storage/get-file.md
@@ -10,8 +10,8 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.getFile(
- "[BUCKET_ID]",
- "[FILE_ID]"
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ storage.getFile(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/list-buckets.md b/docs/examples/java/storage/list-buckets.md
index 49c29ca..79b3f8d 100644
--- a/docs/examples/java/storage/list-buckets.md
+++ b/docs/examples/java/storage/list-buckets.md
@@ -10,6 +10,8 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.listBuckets(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ storage.listBuckets(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/list-files.md b/docs/examples/java/storage/list-files.md
index 9aacd78..796d3c0 100644
--- a/docs/examples/java/storage/list-files.md
+++ b/docs/examples/java/storage/list-files.md
@@ -10,7 +10,9 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.listFiles(
- "[BUCKET_ID]",
+ "[BUCKET_ID]", // bucketId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ storage.listFiles(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/update-bucket.md b/docs/examples/java/storage/update-bucket.md
index 05483ea..c442d66 100644
--- a/docs/examples/java/storage/update-bucket.md
+++ b/docs/examples/java/storage/update-bucket.md
@@ -10,8 +10,16 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.updateBucket(
- "[BUCKET_ID]",
- "[NAME]",
+ "[BUCKET_ID]", // bucketId
+ "[NAME]", // name
+ listOf("read("any")"), // permissions (optional)
+ false, // fileSecurity (optional)
+ false, // enabled (optional)
+ 1, // maximumFileSize (optional)
+ listOf(), // allowedFileExtensions (optional)
+ .NONE, // compression (optional)
+ false, // encryption (optional)
+ false, // antivirus (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +29,4 @@ storage.updateBucket(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/storage/update-file.md b/docs/examples/java/storage/update-file.md
index 5a20996..1fd2d77 100644
--- a/docs/examples/java/storage/update-file.md
+++ b/docs/examples/java/storage/update-file.md
@@ -10,8 +10,10 @@ Client client = new Client()
Storage storage = new Storage(client);
storage.updateFile(
- "[BUCKET_ID]",
- "[FILE_ID]",
+ "[BUCKET_ID]", // bucketId
+ "[FILE_ID]", // fileId
+ "[NAME]", // name (optional)
+ listOf("read("any")"), // permissions (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +23,4 @@ storage.updateFile(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/create-membership.md b/docs/examples/java/teams/create-membership.md
index 668a2e7..a4a74a4 100644
--- a/docs/examples/java/teams/create-membership.md
+++ b/docs/examples/java/teams/create-membership.md
@@ -10,8 +10,13 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.createMembership(
- "[TEAM_ID]",
- listOf(),
+ "[TEAM_ID]", // teamId
+ listOf(), // roles
+ "email@example.com", // email (optional)
+ "[USER_ID]", // userId (optional)
+ "+12065550100", // phone (optional)
+ "https://example.com", // url (optional)
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +26,4 @@ teams.createMembership(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/create.md b/docs/examples/java/teams/create.md
index 6b15ab3..cff5122 100644
--- a/docs/examples/java/teams/create.md
+++ b/docs/examples/java/teams/create.md
@@ -10,8 +10,9 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.create(
- "[TEAM_ID]",
- "[NAME]",
+ "[TEAM_ID]", // teamId
+ "[NAME]", // name
+ listOf(), // roles (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +22,4 @@ teams.create(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/delete-membership.md b/docs/examples/java/teams/delete-membership.md
index f2978a3..ccae7b7 100644
--- a/docs/examples/java/teams/delete-membership.md
+++ b/docs/examples/java/teams/delete-membership.md
@@ -10,8 +10,8 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.deleteMembership(
- "[TEAM_ID]",
- "[MEMBERSHIP_ID]"
+ "[TEAM_ID]", // teamId
+ "[MEMBERSHIP_ID]", // membershipId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ teams.deleteMembership(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/delete.md b/docs/examples/java/teams/delete.md
index 5b5ee98..1d45fdb 100644
--- a/docs/examples/java/teams/delete.md
+++ b/docs/examples/java/teams/delete.md
@@ -10,7 +10,7 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.delete(
- "[TEAM_ID]"
+ "[TEAM_ID]", // teamId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ teams.delete(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/get-membership.md b/docs/examples/java/teams/get-membership.md
index ce71298..a8bc916 100644
--- a/docs/examples/java/teams/get-membership.md
+++ b/docs/examples/java/teams/get-membership.md
@@ -10,8 +10,8 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.getMembership(
- "[TEAM_ID]",
- "[MEMBERSHIP_ID]"
+ "[TEAM_ID]", // teamId
+ "[MEMBERSHIP_ID]", // membershipId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ teams.getMembership(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/get-prefs.md b/docs/examples/java/teams/get-prefs.md
index 16e5e06..e8a18c6 100644
--- a/docs/examples/java/teams/get-prefs.md
+++ b/docs/examples/java/teams/get-prefs.md
@@ -10,7 +10,7 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.getPrefs(
- "[TEAM_ID]"
+ "[TEAM_ID]", // teamId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ teams.getPrefs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/get.md b/docs/examples/java/teams/get.md
index f42b585..dce5350 100644
--- a/docs/examples/java/teams/get.md
+++ b/docs/examples/java/teams/get.md
@@ -10,7 +10,7 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.get(
- "[TEAM_ID]"
+ "[TEAM_ID]", // teamId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ teams.get(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/list-memberships.md b/docs/examples/java/teams/list-memberships.md
index ddd2b74..2732015 100644
--- a/docs/examples/java/teams/list-memberships.md
+++ b/docs/examples/java/teams/list-memberships.md
@@ -10,7 +10,9 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.listMemberships(
- "[TEAM_ID]",
+ "[TEAM_ID]", // teamId
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ teams.listMemberships(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/list.md b/docs/examples/java/teams/list.md
index b2e0578..4f745f7 100644
--- a/docs/examples/java/teams/list.md
+++ b/docs/examples/java/teams/list.md
@@ -10,6 +10,8 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.list(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ teams.list(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/update-membership-status.md b/docs/examples/java/teams/update-membership-status.md
index 617fe70..d4d206c 100644
--- a/docs/examples/java/teams/update-membership-status.md
+++ b/docs/examples/java/teams/update-membership-status.md
@@ -10,10 +10,10 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.updateMembershipStatus(
- "[TEAM_ID]",
- "[MEMBERSHIP_ID]",
- "[USER_ID]",
- "[SECRET]"
+ "[TEAM_ID]", // teamId
+ "[MEMBERSHIP_ID]", // membershipId
+ "[USER_ID]", // userId
+ "[SECRET]", // secret
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +23,4 @@ teams.updateMembershipStatus(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/update-membership.md b/docs/examples/java/teams/update-membership.md
index 3d03f6a..02079b5 100644
--- a/docs/examples/java/teams/update-membership.md
+++ b/docs/examples/java/teams/update-membership.md
@@ -10,9 +10,9 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.updateMembership(
- "[TEAM_ID]",
- "[MEMBERSHIP_ID]",
- listOf()
+ "[TEAM_ID]", // teamId
+ "[MEMBERSHIP_ID]", // membershipId
+ listOf(), // roles
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +22,4 @@ teams.updateMembership(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/update-name.md b/docs/examples/java/teams/update-name.md
index 8a92142..4ec3779 100644
--- a/docs/examples/java/teams/update-name.md
+++ b/docs/examples/java/teams/update-name.md
@@ -10,8 +10,8 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.updateName(
- "[TEAM_ID]",
- "[NAME]"
+ "[TEAM_ID]", // teamId
+ "[NAME]", // name
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ teams.updateName(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/teams/update-prefs.md b/docs/examples/java/teams/update-prefs.md
index 3bd2d9f..f1f9ba1 100644
--- a/docs/examples/java/teams/update-prefs.md
+++ b/docs/examples/java/teams/update-prefs.md
@@ -10,8 +10,8 @@ Client client = new Client()
Teams teams = new Teams(client);
teams.updatePrefs(
- "[TEAM_ID]",
- mapOf( "a" to "b" )
+ "[TEAM_ID]", // teamId
+ mapOf( "a" to "b" ), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ teams.updatePrefs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-argon2user.md b/docs/examples/java/users/create-argon2user.md
index 47ac52c..c28976b 100644
--- a/docs/examples/java/users/create-argon2user.md
+++ b/docs/examples/java/users/create-argon2user.md
@@ -10,9 +10,10 @@ Client client = new Client()
Users users = new Users(client);
users.createArgon2User(
- "[USER_ID]",
- "email@example.com",
- "password",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ users.createArgon2User(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-bcrypt-user.md b/docs/examples/java/users/create-bcrypt-user.md
index 91989df..e5b0234 100644
--- a/docs/examples/java/users/create-bcrypt-user.md
+++ b/docs/examples/java/users/create-bcrypt-user.md
@@ -10,9 +10,10 @@ Client client = new Client()
Users users = new Users(client);
users.createBcryptUser(
- "[USER_ID]",
- "email@example.com",
- "password",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ users.createBcryptUser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-m-d5user.md b/docs/examples/java/users/create-m-d5user.md
index 35de18d..ab6acf0 100644
--- a/docs/examples/java/users/create-m-d5user.md
+++ b/docs/examples/java/users/create-m-d5user.md
@@ -10,9 +10,10 @@ Client client = new Client()
Users users = new Users(client);
users.createMD5User(
- "[USER_ID]",
- "email@example.com",
- "password",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ users.createMD5User(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-p-h-pass-user.md b/docs/examples/java/users/create-p-h-pass-user.md
index 7501f02..d08e98b 100644
--- a/docs/examples/java/users/create-p-h-pass-user.md
+++ b/docs/examples/java/users/create-p-h-pass-user.md
@@ -10,9 +10,10 @@ Client client = new Client()
Users users = new Users(client);
users.createPHPassUser(
- "[USER_ID]",
- "email@example.com",
- "password",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +23,4 @@ users.createPHPassUser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-s-h-a-user.md b/docs/examples/java/users/create-s-h-a-user.md
index ae26de5..c845e22 100644
--- a/docs/examples/java/users/create-s-h-a-user.md
+++ b/docs/examples/java/users/create-s-h-a-user.md
@@ -10,9 +10,11 @@ Client client = new Client()
Users users = new Users(client);
users.createSHAUser(
- "[USER_ID]",
- "email@example.com",
- "password",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ PasswordHash.SHA1, // passwordVersion (optional)
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -22,3 +24,4 @@ users.createSHAUser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-scrypt-modified-user.md b/docs/examples/java/users/create-scrypt-modified-user.md
index da0936a..13879a6 100644
--- a/docs/examples/java/users/create-scrypt-modified-user.md
+++ b/docs/examples/java/users/create-scrypt-modified-user.md
@@ -10,12 +10,13 @@ Client client = new Client()
Users users = new Users(client);
users.createScryptModifiedUser(
- "[USER_ID]",
- "email@example.com",
- "password",
- "[PASSWORD_SALT]",
- "[PASSWORD_SALT_SEPARATOR]",
- "[PASSWORD_SIGNER_KEY]",
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[PASSWORD_SALT]", // passwordSalt
+ "[PASSWORD_SALT_SEPARATOR]", // passwordSaltSeparator
+ "[PASSWORD_SIGNER_KEY]", // passwordSignerKey
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -25,3 +26,4 @@ users.createScryptModifiedUser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-scrypt-user.md b/docs/examples/java/users/create-scrypt-user.md
index 9b48e06..a38ca81 100644
--- a/docs/examples/java/users/create-scrypt-user.md
+++ b/docs/examples/java/users/create-scrypt-user.md
@@ -10,14 +10,15 @@ Client client = new Client()
Users users = new Users(client);
users.createScryptUser(
- "[USER_ID]",
- "email@example.com",
- "password",
- "[PASSWORD_SALT]",
- 0,
- 0,
- 0,
- 0,
+ "[USER_ID]", // userId
+ "email@example.com", // email
+ "password", // password
+ "[PASSWORD_SALT]", // passwordSalt
+ 0, // passwordCpu
+ 0, // passwordMemory
+ 0, // passwordParallel
+ 0, // passwordLength
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -27,3 +28,4 @@ users.createScryptUser(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-session.md b/docs/examples/java/users/create-session.md
index 1a91fb2..55f2233 100644
--- a/docs/examples/java/users/create-session.md
+++ b/docs/examples/java/users/create-session.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.createSession(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.createSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-target.md b/docs/examples/java/users/create-target.md
index 998bdf9..60baf57 100644
--- a/docs/examples/java/users/create-target.md
+++ b/docs/examples/java/users/create-target.md
@@ -11,10 +11,12 @@ Client client = new Client()
Users users = new Users(client);
users.createTarget(
- "[USER_ID]",
- "[TARGET_ID]",
- MessagingProviderType.EMAIL,
- "[IDENTIFIER]",
+ "[USER_ID]", // userId
+ "[TARGET_ID]", // targetId
+ MessagingProviderType.EMAIL, // providerType
+ "[IDENTIFIER]", // identifier
+ "[PROVIDER_ID]", // providerId (optional)
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -24,3 +26,4 @@ users.createTarget(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create-token.md b/docs/examples/java/users/create-token.md
index ee4d5f3..8a65e83 100644
--- a/docs/examples/java/users/create-token.md
+++ b/docs/examples/java/users/create-token.md
@@ -10,7 +10,9 @@ Client client = new Client()
Users users = new Users(client);
users.createToken(
- "[USER_ID]",
+ "[USER_ID]", // userId
+ 4, // length (optional)
+ 60, // expire (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +22,4 @@ users.createToken(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/create.md b/docs/examples/java/users/create.md
index 97aad15..bb03020 100644
--- a/docs/examples/java/users/create.md
+++ b/docs/examples/java/users/create.md
@@ -10,7 +10,11 @@ Client client = new Client()
Users users = new Users(client);
users.create(
- "[USER_ID]",
+ "[USER_ID]", // userId
+ "email@example.com", // email (optional)
+ "+12065550100", // phone (optional)
+ "", // password (optional)
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +24,4 @@ users.create(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete-authenticator.md b/docs/examples/java/users/delete-authenticator.md
index e4f0352..fe2cb4a 100644
--- a/docs/examples/java/users/delete-authenticator.md
+++ b/docs/examples/java/users/delete-authenticator.md
@@ -11,9 +11,9 @@ Client client = new Client()
Users users = new Users(client);
users.deleteAuthenticator(
- "[USER_ID]",
- AuthenticatorType.TOTP,
- "[OTP]"
+ "[USER_ID]", // userId
+ AuthenticatorType.TOTP, // type
+ "[OTP]", // otp
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -23,3 +23,4 @@ users.deleteAuthenticator(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete-identity.md b/docs/examples/java/users/delete-identity.md
index cd165a6..7e6253d 100644
--- a/docs/examples/java/users/delete-identity.md
+++ b/docs/examples/java/users/delete-identity.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.deleteIdentity(
- "[IDENTITY_ID]"
+ "[IDENTITY_ID]", // identityId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.deleteIdentity(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete-session.md b/docs/examples/java/users/delete-session.md
index 8415328..130f02b 100644
--- a/docs/examples/java/users/delete-session.md
+++ b/docs/examples/java/users/delete-session.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.deleteSession(
- "[USER_ID]",
- "[SESSION_ID]"
+ "[USER_ID]", // userId
+ "[SESSION_ID]", // sessionId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.deleteSession(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete-sessions.md b/docs/examples/java/users/delete-sessions.md
index 9a2284c..414321c 100644
--- a/docs/examples/java/users/delete-sessions.md
+++ b/docs/examples/java/users/delete-sessions.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.deleteSessions(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.deleteSessions(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete-target.md b/docs/examples/java/users/delete-target.md
index 71f366a..b4077af 100644
--- a/docs/examples/java/users/delete-target.md
+++ b/docs/examples/java/users/delete-target.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.deleteTarget(
- "[USER_ID]",
- "[TARGET_ID]"
+ "[USER_ID]", // userId
+ "[TARGET_ID]", // targetId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.deleteTarget(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/delete.md b/docs/examples/java/users/delete.md
index 893a4d3..78e5a0e 100644
--- a/docs/examples/java/users/delete.md
+++ b/docs/examples/java/users/delete.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.delete(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.delete(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/get-prefs.md b/docs/examples/java/users/get-prefs.md
index 664843e..e30d45a 100644
--- a/docs/examples/java/users/get-prefs.md
+++ b/docs/examples/java/users/get-prefs.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.getPrefs(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.getPrefs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/get-target.md b/docs/examples/java/users/get-target.md
index f15e0ce..3dd6a04 100644
--- a/docs/examples/java/users/get-target.md
+++ b/docs/examples/java/users/get-target.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.getTarget(
- "[USER_ID]",
- "[TARGET_ID]"
+ "[USER_ID]", // userId
+ "[TARGET_ID]", // targetId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.getTarget(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/get.md b/docs/examples/java/users/get.md
index 1be96ae..70f76c3 100644
--- a/docs/examples/java/users/get.md
+++ b/docs/examples/java/users/get.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.get(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.get(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-factors.md b/docs/examples/java/users/list-factors.md
index 5d274cd..527c93b 100644
--- a/docs/examples/java/users/list-factors.md
+++ b/docs/examples/java/users/list-factors.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.listFactors(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.listFactors(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-identities.md b/docs/examples/java/users/list-identities.md
index 011f3a6..fc6eb7c 100644
--- a/docs/examples/java/users/list-identities.md
+++ b/docs/examples/java/users/list-identities.md
@@ -10,6 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.listIdentities(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ users.listIdentities(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-logs.md b/docs/examples/java/users/list-logs.md
index 08ace35..500c90f 100644
--- a/docs/examples/java/users/list-logs.md
+++ b/docs/examples/java/users/list-logs.md
@@ -10,7 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.listLogs(
- "[USER_ID]",
+ "[USER_ID]", // userId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ users.listLogs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-memberships.md b/docs/examples/java/users/list-memberships.md
index 503dbcb..0827056 100644
--- a/docs/examples/java/users/list-memberships.md
+++ b/docs/examples/java/users/list-memberships.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.listMemberships(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.listMemberships(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-sessions.md b/docs/examples/java/users/list-sessions.md
index efe091f..01317e6 100644
--- a/docs/examples/java/users/list-sessions.md
+++ b/docs/examples/java/users/list-sessions.md
@@ -10,7 +10,7 @@ Client client = new Client()
Users users = new Users(client);
users.listSessions(
- "[USER_ID]"
+ "[USER_ID]", // userId
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +20,4 @@ users.listSessions(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list-targets.md b/docs/examples/java/users/list-targets.md
index 45cfd5c..30ed215 100644
--- a/docs/examples/java/users/list-targets.md
+++ b/docs/examples/java/users/list-targets.md
@@ -10,7 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.listTargets(
- "[USER_ID]",
+ "[USER_ID]", // userId
+ listOf(), // queries (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -20,3 +21,4 @@ users.listTargets(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/list.md b/docs/examples/java/users/list.md
index d591bce..96915a1 100644
--- a/docs/examples/java/users/list.md
+++ b/docs/examples/java/users/list.md
@@ -10,6 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.list(
+ listOf(), // queries (optional)
+ "[SEARCH]", // search (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -19,3 +21,4 @@ users.list(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-email-verification.md b/docs/examples/java/users/update-email-verification.md
index 3d6d205..8311876 100644
--- a/docs/examples/java/users/update-email-verification.md
+++ b/docs/examples/java/users/update-email-verification.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateEmailVerification(
- "[USER_ID]",
- false
+ "[USER_ID]", // userId
+ false, // emailVerification
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateEmailVerification(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-email.md b/docs/examples/java/users/update-email.md
index d0e9b17..b2cf2fc 100644
--- a/docs/examples/java/users/update-email.md
+++ b/docs/examples/java/users/update-email.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateEmail(
- "[USER_ID]",
- "email@example.com"
+ "[USER_ID]", // userId
+ "email@example.com", // email
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateEmail(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-labels.md b/docs/examples/java/users/update-labels.md
index e0c7bdc..4be5904 100644
--- a/docs/examples/java/users/update-labels.md
+++ b/docs/examples/java/users/update-labels.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateLabels(
- "[USER_ID]",
- listOf()
+ "[USER_ID]", // userId
+ listOf(), // labels
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateLabels(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-mfa.md b/docs/examples/java/users/update-mfa.md
index 811f385..6614f8b 100644
--- a/docs/examples/java/users/update-mfa.md
+++ b/docs/examples/java/users/update-mfa.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateMfa(
- "[USER_ID]",
- false
+ "[USER_ID]", // userId
+ false, // mfa
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateMfa(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-name.md b/docs/examples/java/users/update-name.md
index e16f539..7841ae3 100644
--- a/docs/examples/java/users/update-name.md
+++ b/docs/examples/java/users/update-name.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateName(
- "[USER_ID]",
- "[NAME]"
+ "[USER_ID]", // userId
+ "[NAME]", // name
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateName(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-password.md b/docs/examples/java/users/update-password.md
index c94e6dd..63d6bef 100644
--- a/docs/examples/java/users/update-password.md
+++ b/docs/examples/java/users/update-password.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updatePassword(
- "[USER_ID]",
- ""
+ "[USER_ID]", // userId
+ "", // password
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updatePassword(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-phone-verification.md b/docs/examples/java/users/update-phone-verification.md
index 8c9a26d..c45aa7c 100644
--- a/docs/examples/java/users/update-phone-verification.md
+++ b/docs/examples/java/users/update-phone-verification.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updatePhoneVerification(
- "[USER_ID]",
- false
+ "[USER_ID]", // userId
+ false, // phoneVerification
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updatePhoneVerification(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-phone.md b/docs/examples/java/users/update-phone.md
index 4a2accb..c43a67b 100644
--- a/docs/examples/java/users/update-phone.md
+++ b/docs/examples/java/users/update-phone.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updatePhone(
- "[USER_ID]",
- "+12065550100"
+ "[USER_ID]", // userId
+ "+12065550100", // number
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updatePhone(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-prefs.md b/docs/examples/java/users/update-prefs.md
index b12a5d8..3e97709 100644
--- a/docs/examples/java/users/update-prefs.md
+++ b/docs/examples/java/users/update-prefs.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updatePrefs(
- "[USER_ID]",
- mapOf( "a" to "b" )
+ "[USER_ID]", // userId
+ mapOf( "a" to "b" ), // prefs
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updatePrefs(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-status.md b/docs/examples/java/users/update-status.md
index 012142c..bc0d1da 100644
--- a/docs/examples/java/users/update-status.md
+++ b/docs/examples/java/users/update-status.md
@@ -10,8 +10,8 @@ Client client = new Client()
Users users = new Users(client);
users.updateStatus(
- "[USER_ID]",
- false
+ "[USER_ID]", // userId
+ false, // status
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +21,4 @@ users.updateStatus(
System.out.println(result);
})
);
+
diff --git a/docs/examples/java/users/update-target.md b/docs/examples/java/users/update-target.md
index 04d6dfb..3651408 100644
--- a/docs/examples/java/users/update-target.md
+++ b/docs/examples/java/users/update-target.md
@@ -10,8 +10,11 @@ Client client = new Client()
Users users = new Users(client);
users.updateTarget(
- "[USER_ID]",
- "[TARGET_ID]",
+ "[USER_ID]", // userId
+ "[TARGET_ID]", // targetId
+ "[IDENTIFIER]", // identifier (optional)
+ "[PROVIDER_ID]", // providerId (optional)
+ "[NAME]", // name (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
@@ -21,3 +24,4 @@ users.updateTarget(
System.out.println(result);
})
);
+
diff --git a/docs/examples/kotlin/account/create-email-token.md b/docs/examples/kotlin/account/create-email-token.md
index 7cc6866..827765b 100644
--- a/docs/examples/kotlin/account/create-email-token.md
+++ b/docs/examples/kotlin/account/create-email-token.md
@@ -11,4 +11,5 @@ val account = Account(client)
val response = account.createEmailToken(
userId = "[USER_ID]",
email = "email@example.com",
+ phrase = false // optional
)
diff --git a/docs/examples/kotlin/account/create-magic-u-r-l-token.md b/docs/examples/kotlin/account/create-magic-u-r-l-token.md
index 6fb74a1..904a9b5 100644
--- a/docs/examples/kotlin/account/create-magic-u-r-l-token.md
+++ b/docs/examples/kotlin/account/create-magic-u-r-l-token.md
@@ -11,4 +11,6 @@ val account = Account(client)
val response = account.createMagicURLToken(
userId = "[USER_ID]",
email = "email@example.com",
+ url = "https://example.com", // optional
+ phrase = false // optional
)
diff --git a/docs/examples/kotlin/account/create-o-auth2session.md b/docs/examples/kotlin/account/create-o-auth2session.md
index 11118f9..488e9be 100644
--- a/docs/examples/kotlin/account/create-o-auth2session.md
+++ b/docs/examples/kotlin/account/create-o-auth2session.md
@@ -11,4 +11,8 @@ val account = Account(client)
account.createOAuth2Session(
provider = OAuthProvider.AMAZON,
+ success = "https://example.com", // optional
+ failure = "https://example.com", // optional
+ token = false, // optional
+ scopes = listOf() // optional
)
diff --git a/docs/examples/kotlin/account/create.md b/docs/examples/kotlin/account/create.md
index bffbcf9..f714c3f 100644
--- a/docs/examples/kotlin/account/create.md
+++ b/docs/examples/kotlin/account/create.md
@@ -12,4 +12,5 @@ val response = account.create(
userId = "[USER_ID]",
email = "email@example.com",
password = "",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/account/list-identities.md b/docs/examples/kotlin/account/list-identities.md
index 2dcdd94..5dda161 100644
--- a/docs/examples/kotlin/account/list-identities.md
+++ b/docs/examples/kotlin/account/list-identities.md
@@ -10,4 +10,5 @@ val client = Client()
val account = Account(client)
val response = account.listIdentities(
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/account/list-logs.md b/docs/examples/kotlin/account/list-logs.md
index 9ffb5c8..4550de2 100644
--- a/docs/examples/kotlin/account/list-logs.md
+++ b/docs/examples/kotlin/account/list-logs.md
@@ -10,4 +10,5 @@ val client = Client()
val account = Account(client)
val response = account.listLogs(
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/account/update-password.md b/docs/examples/kotlin/account/update-password.md
index c647bd5..8d62d87 100644
--- a/docs/examples/kotlin/account/update-password.md
+++ b/docs/examples/kotlin/account/update-password.md
@@ -11,4 +11,5 @@ val account = Account(client)
val response = account.updatePassword(
password = "",
+ oldPassword = "password" // optional
)
diff --git a/docs/examples/kotlin/avatars/get-browser.md b/docs/examples/kotlin/avatars/get-browser.md
index 9e11a05..b5eb52d 100644
--- a/docs/examples/kotlin/avatars/get-browser.md
+++ b/docs/examples/kotlin/avatars/get-browser.md
@@ -12,4 +12,7 @@ val avatars = Avatars(client)
val result = avatars.getBrowser(
code = Browser.AVANT_BROWSER,
+ width = 0, // optional
+ height = 0, // optional
+ quality = 0 // optional
)
diff --git a/docs/examples/kotlin/avatars/get-credit-card.md b/docs/examples/kotlin/avatars/get-credit-card.md
index 08e0fa5..f60f78f 100644
--- a/docs/examples/kotlin/avatars/get-credit-card.md
+++ b/docs/examples/kotlin/avatars/get-credit-card.md
@@ -12,4 +12,7 @@ val avatars = Avatars(client)
val result = avatars.getCreditCard(
code = CreditCard.AMERICAN_EXPRESS,
+ width = 0, // optional
+ height = 0, // optional
+ quality = 0 // optional
)
diff --git a/docs/examples/kotlin/avatars/get-flag.md b/docs/examples/kotlin/avatars/get-flag.md
index 6b6adc7..646445c 100644
--- a/docs/examples/kotlin/avatars/get-flag.md
+++ b/docs/examples/kotlin/avatars/get-flag.md
@@ -12,4 +12,7 @@ val avatars = Avatars(client)
val result = avatars.getFlag(
code = Flag.AFGHANISTAN,
+ width = 0, // optional
+ height = 0, // optional
+ quality = 0 // optional
)
diff --git a/docs/examples/kotlin/avatars/get-image.md b/docs/examples/kotlin/avatars/get-image.md
index e77a5be..bda8ee6 100644
--- a/docs/examples/kotlin/avatars/get-image.md
+++ b/docs/examples/kotlin/avatars/get-image.md
@@ -11,4 +11,6 @@ val avatars = Avatars(client)
val result = avatars.getImage(
url = "https://example.com",
+ width = 0, // optional
+ height = 0 // optional
)
diff --git a/docs/examples/kotlin/avatars/get-initials.md b/docs/examples/kotlin/avatars/get-initials.md
index 2e869ac..de8c308 100644
--- a/docs/examples/kotlin/avatars/get-initials.md
+++ b/docs/examples/kotlin/avatars/get-initials.md
@@ -10,4 +10,8 @@ val client = Client()
val avatars = Avatars(client)
val result = avatars.getInitials(
+ name = "[NAME]", // optional
+ width = 0, // optional
+ height = 0, // optional
+ background = "" // optional
)
diff --git a/docs/examples/kotlin/avatars/get-q-r.md b/docs/examples/kotlin/avatars/get-q-r.md
index 1395f5d..e4042dd 100644
--- a/docs/examples/kotlin/avatars/get-q-r.md
+++ b/docs/examples/kotlin/avatars/get-q-r.md
@@ -11,4 +11,7 @@ val avatars = Avatars(client)
val result = avatars.getQR(
text = "[TEXT]",
+ size = 1, // optional
+ margin = 0, // optional
+ download = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-boolean-attribute.md b/docs/examples/kotlin/databases/create-boolean-attribute.md
index c4b4bc2..d6e73f6 100644
--- a/docs/examples/kotlin/databases/create-boolean-attribute.md
+++ b/docs/examples/kotlin/databases/create-boolean-attribute.md
@@ -14,4 +14,6 @@ val response = databases.createBooleanAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ default = false, // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-collection.md b/docs/examples/kotlin/databases/create-collection.md
index a277557..1abafd9 100644
--- a/docs/examples/kotlin/databases/create-collection.md
+++ b/docs/examples/kotlin/databases/create-collection.md
@@ -13,4 +13,7 @@ val response = databases.createCollection(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
name = "[NAME]",
+ permissions = listOf("read("any")"), // optional
+ documentSecurity = false, // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-datetime-attribute.md b/docs/examples/kotlin/databases/create-datetime-attribute.md
index dcb6775..3da4625 100644
--- a/docs/examples/kotlin/databases/create-datetime-attribute.md
+++ b/docs/examples/kotlin/databases/create-datetime-attribute.md
@@ -14,4 +14,6 @@ val response = databases.createDatetimeAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ default = "", // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-document.md b/docs/examples/kotlin/databases/create-document.md
index 5b77e54..9c74ab4 100644
--- a/docs/examples/kotlin/databases/create-document.md
+++ b/docs/examples/kotlin/databases/create-document.md
@@ -14,4 +14,5 @@ val response = databases.createDocument(
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
data = mapOf( "a" to "b" ),
+ permissions = listOf("read("any")") // optional
)
diff --git a/docs/examples/kotlin/databases/create-email-attribute.md b/docs/examples/kotlin/databases/create-email-attribute.md
index 2baec16..192e4da 100644
--- a/docs/examples/kotlin/databases/create-email-attribute.md
+++ b/docs/examples/kotlin/databases/create-email-attribute.md
@@ -14,4 +14,6 @@ val response = databases.createEmailAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ default = "email@example.com", // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-enum-attribute.md b/docs/examples/kotlin/databases/create-enum-attribute.md
index d28c1c9..3c84ddb 100644
--- a/docs/examples/kotlin/databases/create-enum-attribute.md
+++ b/docs/examples/kotlin/databases/create-enum-attribute.md
@@ -15,4 +15,6 @@ val response = databases.createEnumAttribute(
key = "",
elements = listOf(),
required = false,
+ default = "[DEFAULT]", // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-float-attribute.md b/docs/examples/kotlin/databases/create-float-attribute.md
index a72d104..7052592 100644
--- a/docs/examples/kotlin/databases/create-float-attribute.md
+++ b/docs/examples/kotlin/databases/create-float-attribute.md
@@ -14,4 +14,8 @@ val response = databases.createFloatAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ min = 0, // optional
+ max = 0, // optional
+ default = 0, // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-index.md b/docs/examples/kotlin/databases/create-index.md
index 0bc9757..db479a4 100644
--- a/docs/examples/kotlin/databases/create-index.md
+++ b/docs/examples/kotlin/databases/create-index.md
@@ -16,4 +16,5 @@ val response = databases.createIndex(
key = "",
type = IndexType.KEY,
attributes = listOf(),
+ orders = listOf() // optional
)
diff --git a/docs/examples/kotlin/databases/create-integer-attribute.md b/docs/examples/kotlin/databases/create-integer-attribute.md
index 776a15c..763f729 100644
--- a/docs/examples/kotlin/databases/create-integer-attribute.md
+++ b/docs/examples/kotlin/databases/create-integer-attribute.md
@@ -14,4 +14,8 @@ val response = databases.createIntegerAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ min = 0, // optional
+ max = 0, // optional
+ default = 0, // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-ip-attribute.md b/docs/examples/kotlin/databases/create-ip-attribute.md
index 6685a78..13c1df3 100644
--- a/docs/examples/kotlin/databases/create-ip-attribute.md
+++ b/docs/examples/kotlin/databases/create-ip-attribute.md
@@ -14,4 +14,6 @@ val response = databases.createIpAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ default = "", // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-relationship-attribute.md b/docs/examples/kotlin/databases/create-relationship-attribute.md
index 7985977..97334f9 100644
--- a/docs/examples/kotlin/databases/create-relationship-attribute.md
+++ b/docs/examples/kotlin/databases/create-relationship-attribute.md
@@ -15,4 +15,8 @@ val response = databases.createRelationshipAttribute(
collectionId = "[COLLECTION_ID]",
relatedCollectionId = "[RELATED_COLLECTION_ID]",
type = RelationshipType.ONE_TO_ONE,
+ twoWay = false, // optional
+ key = "", // optional
+ twoWayKey = "", // optional
+ onDelete = "cascade" // optional
)
diff --git a/docs/examples/kotlin/databases/create-string-attribute.md b/docs/examples/kotlin/databases/create-string-attribute.md
index a268483..d37be76 100644
--- a/docs/examples/kotlin/databases/create-string-attribute.md
+++ b/docs/examples/kotlin/databases/create-string-attribute.md
@@ -15,4 +15,7 @@ val response = databases.createStringAttribute(
key = "",
size = 1,
required = false,
+ default = "[DEFAULT]", // optional
+ array = false, // optional
+ encrypt = false // optional
)
diff --git a/docs/examples/kotlin/databases/create-url-attribute.md b/docs/examples/kotlin/databases/create-url-attribute.md
index 934b1c7..d4f26ce 100644
--- a/docs/examples/kotlin/databases/create-url-attribute.md
+++ b/docs/examples/kotlin/databases/create-url-attribute.md
@@ -14,4 +14,6 @@ val response = databases.createUrlAttribute(
collectionId = "[COLLECTION_ID]",
key = "",
required = false,
+ default = "https://example.com", // optional
+ array = false // optional
)
diff --git a/docs/examples/kotlin/databases/create.md b/docs/examples/kotlin/databases/create.md
index 0285f9b..f3e50c6 100644
--- a/docs/examples/kotlin/databases/create.md
+++ b/docs/examples/kotlin/databases/create.md
@@ -12,4 +12,5 @@ val databases = Databases(client)
val response = databases.create(
databaseId = "[DATABASE_ID]",
name = "[NAME]",
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/databases/get-document.md b/docs/examples/kotlin/databases/get-document.md
index b32ce51..1ca6682 100644
--- a/docs/examples/kotlin/databases/get-document.md
+++ b/docs/examples/kotlin/databases/get-document.md
@@ -13,4 +13,5 @@ val response = databases.getDocument(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/databases/list-attributes.md b/docs/examples/kotlin/databases/list-attributes.md
index 03c6aa1..7ab3603 100644
--- a/docs/examples/kotlin/databases/list-attributes.md
+++ b/docs/examples/kotlin/databases/list-attributes.md
@@ -12,4 +12,5 @@ val databases = Databases(client)
val response = databases.listAttributes(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/databases/list-collections.md b/docs/examples/kotlin/databases/list-collections.md
index 0cc8fbd..57cb983 100644
--- a/docs/examples/kotlin/databases/list-collections.md
+++ b/docs/examples/kotlin/databases/list-collections.md
@@ -11,4 +11,6 @@ val databases = Databases(client)
val response = databases.listCollections(
databaseId = "[DATABASE_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/databases/list-documents.md b/docs/examples/kotlin/databases/list-documents.md
index c8b9dba..6e47afb 100644
--- a/docs/examples/kotlin/databases/list-documents.md
+++ b/docs/examples/kotlin/databases/list-documents.md
@@ -12,4 +12,5 @@ val databases = Databases(client)
val response = databases.listDocuments(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/databases/list-indexes.md b/docs/examples/kotlin/databases/list-indexes.md
index 0d682ce..ee33334 100644
--- a/docs/examples/kotlin/databases/list-indexes.md
+++ b/docs/examples/kotlin/databases/list-indexes.md
@@ -12,4 +12,5 @@ val databases = Databases(client)
val response = databases.listIndexes(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/databases/list.md b/docs/examples/kotlin/databases/list.md
index e20c908..3ca7d8f 100644
--- a/docs/examples/kotlin/databases/list.md
+++ b/docs/examples/kotlin/databases/list.md
@@ -10,4 +10,6 @@ val client = Client()
val databases = Databases(client)
val response = databases.list(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/databases/update-collection.md b/docs/examples/kotlin/databases/update-collection.md
index de7b309..d2ae680 100644
--- a/docs/examples/kotlin/databases/update-collection.md
+++ b/docs/examples/kotlin/databases/update-collection.md
@@ -13,4 +13,7 @@ val response = databases.updateCollection(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
name = "[NAME]",
+ permissions = listOf("read("any")"), // optional
+ documentSecurity = false, // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/databases/update-document.md b/docs/examples/kotlin/databases/update-document.md
index 016f0b1..dd21d38 100644
--- a/docs/examples/kotlin/databases/update-document.md
+++ b/docs/examples/kotlin/databases/update-document.md
@@ -13,4 +13,6 @@ val response = databases.updateDocument(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
documentId = "[DOCUMENT_ID]",
+ data = mapOf( "a" to "b" ), // optional
+ permissions = listOf("read("any")") // optional
)
diff --git a/docs/examples/kotlin/databases/update-relationship-attribute.md b/docs/examples/kotlin/databases/update-relationship-attribute.md
index ab9309e..c4a4812 100644
--- a/docs/examples/kotlin/databases/update-relationship-attribute.md
+++ b/docs/examples/kotlin/databases/update-relationship-attribute.md
@@ -13,4 +13,5 @@ val response = databases.updateRelationshipAttribute(
databaseId = "[DATABASE_ID]",
collectionId = "[COLLECTION_ID]",
key = "",
+ onDelete = "cascade" // optional
)
diff --git a/docs/examples/kotlin/databases/update.md b/docs/examples/kotlin/databases/update.md
index a970e6b..7ea1ec6 100644
--- a/docs/examples/kotlin/databases/update.md
+++ b/docs/examples/kotlin/databases/update.md
@@ -12,4 +12,5 @@ val databases = Databases(client)
val response = databases.update(
databaseId = "[DATABASE_ID]",
name = "[NAME]",
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/functions/create-deployment.md b/docs/examples/kotlin/functions/create-deployment.md
index ba0bb2c..be7098f 100644
--- a/docs/examples/kotlin/functions/create-deployment.md
+++ b/docs/examples/kotlin/functions/create-deployment.md
@@ -14,4 +14,6 @@ val response = functions.createDeployment(
functionId = "[FUNCTION_ID]",
code = InputFile.fromPath("file.png"),
activate = false,
+ entrypoint = "[ENTRYPOINT]", // optional
+ commands = "[COMMANDS]" // optional
)
diff --git a/docs/examples/kotlin/functions/create-execution.md b/docs/examples/kotlin/functions/create-execution.md
index 28b8d46..fd47f70 100644
--- a/docs/examples/kotlin/functions/create-execution.md
+++ b/docs/examples/kotlin/functions/create-execution.md
@@ -11,4 +11,9 @@ val functions = Functions(client)
val response = functions.createExecution(
functionId = "[FUNCTION_ID]",
+ body = "[BODY]", // optional
+ async = false, // optional
+ path = "[PATH]", // optional
+ method = "GET", // optional
+ headers = mapOf( "a" to "b" ) // optional
)
diff --git a/docs/examples/kotlin/functions/create.md b/docs/examples/kotlin/functions/create.md
index ee08551..2774236 100644
--- a/docs/examples/kotlin/functions/create.md
+++ b/docs/examples/kotlin/functions/create.md
@@ -13,5 +13,22 @@ val functions = Functions(client)
val response = functions.create(
functionId = "[FUNCTION_ID]",
name = "[NAME]",
- runtime = .NODE180,
+ runtime = .NODE145,
+ execute = listOf("any"), // optional
+ events = listOf(), // optional
+ schedule = "", // optional
+ timeout = 1, // optional
+ enabled = false, // optional
+ logging = false, // optional
+ entrypoint = "[ENTRYPOINT]", // optional
+ commands = "[COMMANDS]", // optional
+ installationId = "[INSTALLATION_ID]", // optional
+ providerRepositoryId = "[PROVIDER_REPOSITORY_ID]", // optional
+ providerBranch = "[PROVIDER_BRANCH]", // optional
+ providerSilentMode = false, // optional
+ providerRootDirectory = "[PROVIDER_ROOT_DIRECTORY]", // optional
+ templateRepository = "[TEMPLATE_REPOSITORY]", // optional
+ templateOwner = "[TEMPLATE_OWNER]", // optional
+ templateRootDirectory = "[TEMPLATE_ROOT_DIRECTORY]", // optional
+ templateBranch = "[TEMPLATE_BRANCH]" // optional
)
diff --git a/docs/examples/kotlin/functions/list-deployments.md b/docs/examples/kotlin/functions/list-deployments.md
index 55410a6..0000f09 100644
--- a/docs/examples/kotlin/functions/list-deployments.md
+++ b/docs/examples/kotlin/functions/list-deployments.md
@@ -11,4 +11,6 @@ val functions = Functions(client)
val response = functions.listDeployments(
functionId = "[FUNCTION_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/functions/list-executions.md b/docs/examples/kotlin/functions/list-executions.md
index 40b70a4..04b097d 100644
--- a/docs/examples/kotlin/functions/list-executions.md
+++ b/docs/examples/kotlin/functions/list-executions.md
@@ -11,4 +11,6 @@ val functions = Functions(client)
val response = functions.listExecutions(
functionId = "[FUNCTION_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/functions/list.md b/docs/examples/kotlin/functions/list.md
index 36716ef..578e5b1 100644
--- a/docs/examples/kotlin/functions/list.md
+++ b/docs/examples/kotlin/functions/list.md
@@ -10,4 +10,6 @@ val client = Client()
val functions = Functions(client)
val response = functions.list(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/functions/update-variable.md b/docs/examples/kotlin/functions/update-variable.md
index 76c6619..dd1d6b5 100644
--- a/docs/examples/kotlin/functions/update-variable.md
+++ b/docs/examples/kotlin/functions/update-variable.md
@@ -13,4 +13,5 @@ val response = functions.updateVariable(
functionId = "[FUNCTION_ID]",
variableId = "[VARIABLE_ID]",
key = "[KEY]",
+ value = "[VALUE]" // optional
)
diff --git a/docs/examples/kotlin/functions/update.md b/docs/examples/kotlin/functions/update.md
index 3fff459..249cdc5 100644
--- a/docs/examples/kotlin/functions/update.md
+++ b/docs/examples/kotlin/functions/update.md
@@ -12,4 +12,18 @@ val functions = Functions(client)
val response = functions.update(
functionId = "[FUNCTION_ID]",
name = "[NAME]",
+ runtime = "node-14.5", // optional
+ execute = listOf("any"), // optional
+ events = listOf(), // optional
+ schedule = "", // optional
+ timeout = 1, // optional
+ enabled = false, // optional
+ logging = false, // optional
+ entrypoint = "[ENTRYPOINT]", // optional
+ commands = "[COMMANDS]", // optional
+ installationId = "[INSTALLATION_ID]", // optional
+ providerRepositoryId = "[PROVIDER_REPOSITORY_ID]", // optional
+ providerBranch = "[PROVIDER_BRANCH]", // optional
+ providerSilentMode = false, // optional
+ providerRootDirectory = "[PROVIDER_ROOT_DIRECTORY]" // optional
)
diff --git a/docs/examples/kotlin/health/get-certificate.md b/docs/examples/kotlin/health/get-certificate.md
index 4884dce..48b1e06 100644
--- a/docs/examples/kotlin/health/get-certificate.md
+++ b/docs/examples/kotlin/health/get-certificate.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getCertificate(
+ domain = "" // optional
)
diff --git a/docs/examples/kotlin/health/get-failed-jobs.md b/docs/examples/kotlin/health/get-failed-jobs.md
index 2af372a..be32c8e 100644
--- a/docs/examples/kotlin/health/get-failed-jobs.md
+++ b/docs/examples/kotlin/health/get-failed-jobs.md
@@ -12,4 +12,5 @@ val health = Health(client)
val response = health.getFailedJobs(
name = .V1DATABASE,
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-builds.md b/docs/examples/kotlin/health/get-queue-builds.md
index cab814d..1392689 100644
--- a/docs/examples/kotlin/health/get-queue-builds.md
+++ b/docs/examples/kotlin/health/get-queue-builds.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueBuilds(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-certificates.md b/docs/examples/kotlin/health/get-queue-certificates.md
index 86e25fc..af6e442 100644
--- a/docs/examples/kotlin/health/get-queue-certificates.md
+++ b/docs/examples/kotlin/health/get-queue-certificates.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueCertificates(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-databases.md b/docs/examples/kotlin/health/get-queue-databases.md
index 3a2fd4d..f3c3f52 100644
--- a/docs/examples/kotlin/health/get-queue-databases.md
+++ b/docs/examples/kotlin/health/get-queue-databases.md
@@ -10,4 +10,6 @@ val client = Client()
val health = Health(client)
val response = health.getQueueDatabases(
+ name = "[NAME]", // optional
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-deletes.md b/docs/examples/kotlin/health/get-queue-deletes.md
index 0d90223..c7f7a0a 100644
--- a/docs/examples/kotlin/health/get-queue-deletes.md
+++ b/docs/examples/kotlin/health/get-queue-deletes.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueDeletes(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-functions.md b/docs/examples/kotlin/health/get-queue-functions.md
index 7b47d78..37f2c67 100644
--- a/docs/examples/kotlin/health/get-queue-functions.md
+++ b/docs/examples/kotlin/health/get-queue-functions.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueFunctions(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-logs.md b/docs/examples/kotlin/health/get-queue-logs.md
index 34f1426..f0f2bde 100644
--- a/docs/examples/kotlin/health/get-queue-logs.md
+++ b/docs/examples/kotlin/health/get-queue-logs.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueLogs(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-mails.md b/docs/examples/kotlin/health/get-queue-mails.md
index 7362c95..d4dc40a 100644
--- a/docs/examples/kotlin/health/get-queue-mails.md
+++ b/docs/examples/kotlin/health/get-queue-mails.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueMails(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-messaging.md b/docs/examples/kotlin/health/get-queue-messaging.md
index aaa3373..ffb7192 100644
--- a/docs/examples/kotlin/health/get-queue-messaging.md
+++ b/docs/examples/kotlin/health/get-queue-messaging.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueMessaging(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-migrations.md b/docs/examples/kotlin/health/get-queue-migrations.md
index c72fc43..300814c 100644
--- a/docs/examples/kotlin/health/get-queue-migrations.md
+++ b/docs/examples/kotlin/health/get-queue-migrations.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueMigrations(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-webhooks.md b/docs/examples/kotlin/health/get-queue-webhooks.md
index 32e5064..d4d56dd 100644
--- a/docs/examples/kotlin/health/get-queue-webhooks.md
+++ b/docs/examples/kotlin/health/get-queue-webhooks.md
@@ -10,4 +10,5 @@ val client = Client()
val health = Health(client)
val response = health.getQueueWebhooks(
+ threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/messaging/create-f-c-m-provider.md b/docs/examples/kotlin/messaging/create-apns-provider.md
similarity index 63%
rename from docs/examples/kotlin/messaging/create-f-c-m-provider.md
rename to docs/examples/kotlin/messaging/create-apns-provider.md
index a066bc6..1278ead 100644
--- a/docs/examples/kotlin/messaging/create-f-c-m-provider.md
+++ b/docs/examples/kotlin/messaging/create-apns-provider.md
@@ -9,7 +9,12 @@ val client = Client()
val messaging = Messaging(client)
-val response = messaging.createFCMProvider(
+val response = messaging.createApnsProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ authKey = "[AUTH_KEY]", // optional
+ authKeyId = "[AUTH_KEY_ID]", // optional
+ teamId = "[TEAM_ID]", // optional
+ bundleId = "[BUNDLE_ID]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-email.md b/docs/examples/kotlin/messaging/create-email.md
index 66fd126..765e8e2 100644
--- a/docs/examples/kotlin/messaging/create-email.md
+++ b/docs/examples/kotlin/messaging/create-email.md
@@ -13,4 +13,13 @@ val response = messaging.createEmail(
messageId = "[MESSAGE_ID]",
subject = "[SUBJECT]",
content = "[CONTENT]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ cc = listOf(), // optional
+ bcc = listOf(), // optional
+ attachments = listOf(), // optional
+ status = "draft", // optional
+ html = false, // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/create-a-p-n-s-provider.md b/docs/examples/kotlin/messaging/create-fcm-provider.md
similarity index 75%
rename from docs/examples/kotlin/messaging/create-a-p-n-s-provider.md
rename to docs/examples/kotlin/messaging/create-fcm-provider.md
index 56f2b48..fa2edf3 100644
--- a/docs/examples/kotlin/messaging/create-a-p-n-s-provider.md
+++ b/docs/examples/kotlin/messaging/create-fcm-provider.md
@@ -9,7 +9,9 @@ val client = Client()
val messaging = Messaging(client)
-val response = messaging.createAPNSProvider(
+val response = messaging.createFcmProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ serviceAccountJSON = mapOf( "a" to "b" ), // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-mailgun-provider.md b/docs/examples/kotlin/messaging/create-mailgun-provider.md
index 0bd6589..42f7d4d 100644
--- a/docs/examples/kotlin/messaging/create-mailgun-provider.md
+++ b/docs/examples/kotlin/messaging/create-mailgun-provider.md
@@ -12,4 +12,12 @@ val messaging = Messaging(client)
val response = messaging.createMailgunProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ apiKey = "[API_KEY]", // optional
+ domain = "[DOMAIN]", // optional
+ isEuRegion = false, // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "email@example.com", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-msg91provider.md b/docs/examples/kotlin/messaging/create-msg91provider.md
index 82d9128..9d2d643 100644
--- a/docs/examples/kotlin/messaging/create-msg91provider.md
+++ b/docs/examples/kotlin/messaging/create-msg91provider.md
@@ -12,4 +12,8 @@ val messaging = Messaging(client)
val response = messaging.createMsg91Provider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ from = "+12065550100", // optional
+ senderId = "[SENDER_ID]", // optional
+ authKey = "[AUTH_KEY]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-push.md b/docs/examples/kotlin/messaging/create-push.md
index 7de3bdd..eeced9a 100644
--- a/docs/examples/kotlin/messaging/create-push.md
+++ b/docs/examples/kotlin/messaging/create-push.md
@@ -13,4 +13,17 @@ val response = messaging.createPush(
messageId = "[MESSAGE_ID]",
title = "[TITLE]",
body = "[BODY]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ data = mapOf( "a" to "b" ), // optional
+ action = "[ACTION]", // optional
+ image = "[ID1:ID2]", // optional
+ icon = "[ICON]", // optional
+ sound = "[SOUND]", // optional
+ color = "[COLOR]", // optional
+ tag = "[TAG]", // optional
+ badge = "[BADGE]", // optional
+ status = "draft", // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/create-s-m-t-p-provider.md b/docs/examples/kotlin/messaging/create-s-m-t-p-provider.md
deleted file mode 100644
index df4c616..0000000
--- a/docs/examples/kotlin/messaging/create-s-m-t-p-provider.md
+++ /dev/null
@@ -1,16 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.coroutines.CoroutineCallback
-import io.appwrite.services.Messaging
-
-val client = Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-
-val messaging = Messaging(client)
-
-val response = messaging.createSMTPProvider(
- providerId = "[PROVIDER_ID]",
- name = "[NAME]",
- host = "[HOST]",
-)
diff --git a/docs/examples/kotlin/messaging/create-sendgrid-provider.md b/docs/examples/kotlin/messaging/create-sendgrid-provider.md
index 8d5ceb1..8dee8ad 100644
--- a/docs/examples/kotlin/messaging/create-sendgrid-provider.md
+++ b/docs/examples/kotlin/messaging/create-sendgrid-provider.md
@@ -12,4 +12,10 @@ val messaging = Messaging(client)
val response = messaging.createSendgridProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ apiKey = "[API_KEY]", // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "email@example.com", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-s-m-s.md b/docs/examples/kotlin/messaging/create-sms.md
similarity index 67%
rename from docs/examples/kotlin/messaging/create-s-m-s.md
rename to docs/examples/kotlin/messaging/create-sms.md
index 9b413e8..d3d71b9 100644
--- a/docs/examples/kotlin/messaging/create-s-m-s.md
+++ b/docs/examples/kotlin/messaging/create-sms.md
@@ -9,7 +9,12 @@ val client = Client()
val messaging = Messaging(client)
-val response = messaging.createSMS(
+val response = messaging.createSms(
messageId = "[MESSAGE_ID]",
content = "[CONTENT]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ status = "draft", // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/create-smtp-provider.md b/docs/examples/kotlin/messaging/create-smtp-provider.md
new file mode 100644
index 0000000..7f5621e
--- /dev/null
+++ b/docs/examples/kotlin/messaging/create-smtp-provider.md
@@ -0,0 +1,27 @@
+import io.appwrite.Client
+import io.appwrite.coroutines.CoroutineCallback
+import io.appwrite.services.Messaging
+
+val client = Client()
+ .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("5df5acd0d48c2") // Your project ID
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
+
+val messaging = Messaging(client)
+
+val response = messaging.createSmtpProvider(
+ providerId = "[PROVIDER_ID]",
+ name = "[NAME]",
+ host = "[HOST]",
+ port = 1, // optional
+ username = "[USERNAME]", // optional
+ password = "[PASSWORD]", // optional
+ encryption = "none", // optional
+ autoTLS = false, // optional
+ mailer = "[MAILER]", // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "email@example.com", // optional
+ enabled = false // optional
+)
diff --git a/docs/examples/kotlin/messaging/create-telesign-provider.md b/docs/examples/kotlin/messaging/create-telesign-provider.md
index 932c13c..fb5c5bf 100644
--- a/docs/examples/kotlin/messaging/create-telesign-provider.md
+++ b/docs/examples/kotlin/messaging/create-telesign-provider.md
@@ -12,4 +12,8 @@ val messaging = Messaging(client)
val response = messaging.createTelesignProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ from = "+12065550100", // optional
+ customerId = "[CUSTOMER_ID]", // optional
+ apiKey = "[API_KEY]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-textmagic-provider.md b/docs/examples/kotlin/messaging/create-textmagic-provider.md
index 5c1f659..6b74e03 100644
--- a/docs/examples/kotlin/messaging/create-textmagic-provider.md
+++ b/docs/examples/kotlin/messaging/create-textmagic-provider.md
@@ -12,4 +12,8 @@ val messaging = Messaging(client)
val response = messaging.createTextmagicProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ from = "+12065550100", // optional
+ username = "[USERNAME]", // optional
+ apiKey = "[API_KEY]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-topic.md b/docs/examples/kotlin/messaging/create-topic.md
index 1c08800..ccb3960 100644
--- a/docs/examples/kotlin/messaging/create-topic.md
+++ b/docs/examples/kotlin/messaging/create-topic.md
@@ -12,4 +12,5 @@ val messaging = Messaging(client)
val response = messaging.createTopic(
topicId = "[TOPIC_ID]",
name = "[NAME]",
+ subscribe = listOf("any") // optional
)
diff --git a/docs/examples/kotlin/messaging/create-twilio-provider.md b/docs/examples/kotlin/messaging/create-twilio-provider.md
index 43a5978..1b38617 100644
--- a/docs/examples/kotlin/messaging/create-twilio-provider.md
+++ b/docs/examples/kotlin/messaging/create-twilio-provider.md
@@ -12,4 +12,8 @@ val messaging = Messaging(client)
val response = messaging.createTwilioProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ from = "+12065550100", // optional
+ accountSid = "[ACCOUNT_SID]", // optional
+ authToken = "[AUTH_TOKEN]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/create-vonage-provider.md b/docs/examples/kotlin/messaging/create-vonage-provider.md
index 5e2944d..7ece517 100644
--- a/docs/examples/kotlin/messaging/create-vonage-provider.md
+++ b/docs/examples/kotlin/messaging/create-vonage-provider.md
@@ -12,4 +12,8 @@ val messaging = Messaging(client)
val response = messaging.createVonageProvider(
providerId = "[PROVIDER_ID]",
name = "[NAME]",
+ from = "+12065550100", // optional
+ apiKey = "[API_KEY]", // optional
+ apiSecret = "[API_SECRET]", // optional
+ enabled = false // optional
)
diff --git a/docs/examples/kotlin/messaging/list-message-logs.md b/docs/examples/kotlin/messaging/list-message-logs.md
index 6aab8c9..f38ec8f 100644
--- a/docs/examples/kotlin/messaging/list-message-logs.md
+++ b/docs/examples/kotlin/messaging/list-message-logs.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.listMessageLogs(
messageId = "[MESSAGE_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/messaging/list-messages.md b/docs/examples/kotlin/messaging/list-messages.md
index 2cefdb9..de6456c 100644
--- a/docs/examples/kotlin/messaging/list-messages.md
+++ b/docs/examples/kotlin/messaging/list-messages.md
@@ -10,4 +10,6 @@ val client = Client()
val messaging = Messaging(client)
val response = messaging.listMessages(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/messaging/list-provider-logs.md b/docs/examples/kotlin/messaging/list-provider-logs.md
index e6b8123..9b1ed3f 100644
--- a/docs/examples/kotlin/messaging/list-provider-logs.md
+++ b/docs/examples/kotlin/messaging/list-provider-logs.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.listProviderLogs(
providerId = "[PROVIDER_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/messaging/list-providers.md b/docs/examples/kotlin/messaging/list-providers.md
index 5a267cd..25e9dfd 100644
--- a/docs/examples/kotlin/messaging/list-providers.md
+++ b/docs/examples/kotlin/messaging/list-providers.md
@@ -10,4 +10,6 @@ val client = Client()
val messaging = Messaging(client)
val response = messaging.listProviders(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/messaging/list-subscriber-logs.md b/docs/examples/kotlin/messaging/list-subscriber-logs.md
index 7cc78e3..1e3ffca 100644
--- a/docs/examples/kotlin/messaging/list-subscriber-logs.md
+++ b/docs/examples/kotlin/messaging/list-subscriber-logs.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.listSubscriberLogs(
subscriberId = "[SUBSCRIBER_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/messaging/list-subscribers.md b/docs/examples/kotlin/messaging/list-subscribers.md
index e225a4c..8fb0bea 100644
--- a/docs/examples/kotlin/messaging/list-subscribers.md
+++ b/docs/examples/kotlin/messaging/list-subscribers.md
@@ -11,4 +11,6 @@ val messaging = Messaging(client)
val response = messaging.listSubscribers(
topicId = "[TOPIC_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/messaging/list-targets.md b/docs/examples/kotlin/messaging/list-targets.md
index c47a1c0..4e649d1 100644
--- a/docs/examples/kotlin/messaging/list-targets.md
+++ b/docs/examples/kotlin/messaging/list-targets.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.listTargets(
messageId = "[MESSAGE_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/messaging/list-topic-logs.md b/docs/examples/kotlin/messaging/list-topic-logs.md
index ca27de6..d2e90bd 100644
--- a/docs/examples/kotlin/messaging/list-topic-logs.md
+++ b/docs/examples/kotlin/messaging/list-topic-logs.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.listTopicLogs(
topicId = "[TOPIC_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/messaging/list-topics.md b/docs/examples/kotlin/messaging/list-topics.md
index 543676f..8a427d8 100644
--- a/docs/examples/kotlin/messaging/list-topics.md
+++ b/docs/examples/kotlin/messaging/list-topics.md
@@ -10,4 +10,6 @@ val client = Client()
val messaging = Messaging(client)
val response = messaging.listTopics(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-a-p-n-s-provider.md b/docs/examples/kotlin/messaging/update-a-p-n-s-provider.md
index bf36b5a..f14c171 100644
--- a/docs/examples/kotlin/messaging/update-a-p-n-s-provider.md
+++ b/docs/examples/kotlin/messaging/update-a-p-n-s-provider.md
@@ -11,4 +11,10 @@ val messaging = Messaging(client)
val response = messaging.updateAPNSProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ authKey = "[AUTH_KEY]", // optional
+ authKeyId = "[AUTH_KEY_ID]", // optional
+ teamId = "[TEAM_ID]", // optional
+ bundleId = "[BUNDLE_ID]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-email.md b/docs/examples/kotlin/messaging/update-email.md
index ade8afa..39b75f6 100644
--- a/docs/examples/kotlin/messaging/update-email.md
+++ b/docs/examples/kotlin/messaging/update-email.md
@@ -11,4 +11,14 @@ val messaging = Messaging(client)
val response = messaging.updateEmail(
messageId = "[MESSAGE_ID]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ subject = "[SUBJECT]", // optional
+ content = "[CONTENT]", // optional
+ status = "draft", // optional
+ html = false, // optional
+ cc = listOf(), // optional
+ bcc = listOf(), // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-f-c-m-provider.md b/docs/examples/kotlin/messaging/update-f-c-m-provider.md
index 98b6665..d80a715 100644
--- a/docs/examples/kotlin/messaging/update-f-c-m-provider.md
+++ b/docs/examples/kotlin/messaging/update-f-c-m-provider.md
@@ -11,4 +11,7 @@ val messaging = Messaging(client)
val response = messaging.updateFCMProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ serviceAccountJSON = mapOf( "a" to "b" ) // optional
)
diff --git a/docs/examples/kotlin/messaging/update-mailgun-provider.md b/docs/examples/kotlin/messaging/update-mailgun-provider.md
index 8913367..ce0e3a3 100644
--- a/docs/examples/kotlin/messaging/update-mailgun-provider.md
+++ b/docs/examples/kotlin/messaging/update-mailgun-provider.md
@@ -11,4 +11,13 @@ val messaging = Messaging(client)
val response = messaging.updateMailgunProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ apiKey = "[API_KEY]", // optional
+ domain = "[DOMAIN]", // optional
+ isEuRegion = false, // optional
+ enabled = false, // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "[REPLY_TO_EMAIL]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-msg91provider.md b/docs/examples/kotlin/messaging/update-msg91provider.md
index f7c2947..eadce45 100644
--- a/docs/examples/kotlin/messaging/update-msg91provider.md
+++ b/docs/examples/kotlin/messaging/update-msg91provider.md
@@ -11,4 +11,9 @@ val messaging = Messaging(client)
val response = messaging.updateMsg91Provider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ senderId = "[SENDER_ID]", // optional
+ authKey = "[AUTH_KEY]", // optional
+ from = "[FROM]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-push.md b/docs/examples/kotlin/messaging/update-push.md
index 1302f4f..e7688ba 100644
--- a/docs/examples/kotlin/messaging/update-push.md
+++ b/docs/examples/kotlin/messaging/update-push.md
@@ -11,4 +11,19 @@ val messaging = Messaging(client)
val response = messaging.updatePush(
messageId = "[MESSAGE_ID]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ title = "[TITLE]", // optional
+ body = "[BODY]", // optional
+ data = mapOf( "a" to "b" ), // optional
+ action = "[ACTION]", // optional
+ image = "[ID1:ID2]", // optional
+ icon = "[ICON]", // optional
+ sound = "[SOUND]", // optional
+ color = "[COLOR]", // optional
+ tag = "[TAG]", // optional
+ badge = 0, // optional
+ status = "draft", // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-s-m-t-p-provider.md b/docs/examples/kotlin/messaging/update-s-m-t-p-provider.md
deleted file mode 100644
index 1c0ef7f..0000000
--- a/docs/examples/kotlin/messaging/update-s-m-t-p-provider.md
+++ /dev/null
@@ -1,14 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.coroutines.CoroutineCallback
-import io.appwrite.services.Messaging
-
-val client = Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("5df5acd0d48c2") // Your project ID
- .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
-
-val messaging = Messaging(client)
-
-val response = messaging.updateSMTPProvider(
- providerId = "[PROVIDER_ID]",
-)
diff --git a/docs/examples/kotlin/messaging/update-sendgrid-provider.md b/docs/examples/kotlin/messaging/update-sendgrid-provider.md
index 85ecb22..c832fc4 100644
--- a/docs/examples/kotlin/messaging/update-sendgrid-provider.md
+++ b/docs/examples/kotlin/messaging/update-sendgrid-provider.md
@@ -11,4 +11,11 @@ val messaging = Messaging(client)
val response = messaging.updateSendgridProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ apiKey = "[API_KEY]", // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "[REPLY_TO_EMAIL]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-s-m-s.md b/docs/examples/kotlin/messaging/update-sms.md
similarity index 61%
rename from docs/examples/kotlin/messaging/update-s-m-s.md
rename to docs/examples/kotlin/messaging/update-sms.md
index f13dc22..aef45a9 100644
--- a/docs/examples/kotlin/messaging/update-s-m-s.md
+++ b/docs/examples/kotlin/messaging/update-sms.md
@@ -9,6 +9,12 @@ val client = Client()
val messaging = Messaging(client)
-val response = messaging.updateSMS(
+val response = messaging.updateSms(
messageId = "[MESSAGE_ID]",
+ topics = listOf(), // optional
+ users = listOf(), // optional
+ targets = listOf(), // optional
+ content = "[CONTENT]", // optional
+ status = "draft", // optional
+ scheduledAt = "" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-smtp-provider.md b/docs/examples/kotlin/messaging/update-smtp-provider.md
new file mode 100644
index 0000000..28d7314
--- /dev/null
+++ b/docs/examples/kotlin/messaging/update-smtp-provider.md
@@ -0,0 +1,27 @@
+import io.appwrite.Client
+import io.appwrite.coroutines.CoroutineCallback
+import io.appwrite.services.Messaging
+
+val client = Client()
+ .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
+ .setProject("5df5acd0d48c2") // Your project ID
+ .setKey("919c2d18fb5d4...a2ae413da83346ad2") // Your secret API key
+
+val messaging = Messaging(client)
+
+val response = messaging.updateSmtpProvider(
+ providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ host = "[HOST]", // optional
+ port = 1, // optional
+ username = "[USERNAME]", // optional
+ password = "[PASSWORD]", // optional
+ encryption = "none", // optional
+ autoTLS = false, // optional
+ mailer = "[MAILER]", // optional
+ fromName = "[FROM_NAME]", // optional
+ fromEmail = "email@example.com", // optional
+ replyToName = "[REPLY_TO_NAME]", // optional
+ replyToEmail = "[REPLY_TO_EMAIL]", // optional
+ enabled = false // optional
+)
diff --git a/docs/examples/kotlin/messaging/update-telesign-provider.md b/docs/examples/kotlin/messaging/update-telesign-provider.md
index 1d9a899..411b663 100644
--- a/docs/examples/kotlin/messaging/update-telesign-provider.md
+++ b/docs/examples/kotlin/messaging/update-telesign-provider.md
@@ -11,4 +11,9 @@ val messaging = Messaging(client)
val response = messaging.updateTelesignProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ customerId = "[CUSTOMER_ID]", // optional
+ apiKey = "[API_KEY]", // optional
+ from = "[FROM]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-textmagic-provider.md b/docs/examples/kotlin/messaging/update-textmagic-provider.md
index ff7af47..0d0d0e8 100644
--- a/docs/examples/kotlin/messaging/update-textmagic-provider.md
+++ b/docs/examples/kotlin/messaging/update-textmagic-provider.md
@@ -11,4 +11,9 @@ val messaging = Messaging(client)
val response = messaging.updateTextmagicProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ username = "[USERNAME]", // optional
+ apiKey = "[API_KEY]", // optional
+ from = "[FROM]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-topic.md b/docs/examples/kotlin/messaging/update-topic.md
index cb151a1..a5c8c3c 100644
--- a/docs/examples/kotlin/messaging/update-topic.md
+++ b/docs/examples/kotlin/messaging/update-topic.md
@@ -11,4 +11,5 @@ val messaging = Messaging(client)
val response = messaging.updateTopic(
topicId = "[TOPIC_ID]",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-twilio-provider.md b/docs/examples/kotlin/messaging/update-twilio-provider.md
index f86e5d8..6d39179 100644
--- a/docs/examples/kotlin/messaging/update-twilio-provider.md
+++ b/docs/examples/kotlin/messaging/update-twilio-provider.md
@@ -11,4 +11,9 @@ val messaging = Messaging(client)
val response = messaging.updateTwilioProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ accountSid = "[ACCOUNT_SID]", // optional
+ authToken = "[AUTH_TOKEN]", // optional
+ from = "[FROM]" // optional
)
diff --git a/docs/examples/kotlin/messaging/update-vonage-provider.md b/docs/examples/kotlin/messaging/update-vonage-provider.md
index d27dad6..936bafe 100644
--- a/docs/examples/kotlin/messaging/update-vonage-provider.md
+++ b/docs/examples/kotlin/messaging/update-vonage-provider.md
@@ -11,4 +11,9 @@ val messaging = Messaging(client)
val response = messaging.updateVonageProvider(
providerId = "[PROVIDER_ID]",
+ name = "[NAME]", // optional
+ enabled = false, // optional
+ apiKey = "[API_KEY]", // optional
+ apiSecret = "[API_SECRET]", // optional
+ from = "[FROM]" // optional
)
diff --git a/docs/examples/kotlin/storage/create-bucket.md b/docs/examples/kotlin/storage/create-bucket.md
index f4d44f4..afc652c 100644
--- a/docs/examples/kotlin/storage/create-bucket.md
+++ b/docs/examples/kotlin/storage/create-bucket.md
@@ -12,4 +12,12 @@ val storage = Storage(client)
val response = storage.createBucket(
bucketId = "[BUCKET_ID]",
name = "[NAME]",
+ permissions = listOf("read("any")"), // optional
+ fileSecurity = false, // optional
+ enabled = false, // optional
+ maximumFileSize = 1, // optional
+ allowedFileExtensions = listOf(), // optional
+ compression = "none", // optional
+ encryption = false, // optional
+ antivirus = false // optional
)
diff --git a/docs/examples/kotlin/storage/create-file.md b/docs/examples/kotlin/storage/create-file.md
index d4f6a62..d285807 100644
--- a/docs/examples/kotlin/storage/create-file.md
+++ b/docs/examples/kotlin/storage/create-file.md
@@ -14,4 +14,5 @@ val response = storage.createFile(
bucketId = "[BUCKET_ID]",
fileId = "[FILE_ID]",
file = InputFile.fromPath("file.png"),
+ permissions = listOf("read("any")") // optional
)
diff --git a/docs/examples/kotlin/storage/get-file-preview.md b/docs/examples/kotlin/storage/get-file-preview.md
index ded9cb0..20dd047 100644
--- a/docs/examples/kotlin/storage/get-file-preview.md
+++ b/docs/examples/kotlin/storage/get-file-preview.md
@@ -12,4 +12,15 @@ val storage = Storage(client)
val result = storage.getFilePreview(
bucketId = "[BUCKET_ID]",
fileId = "[FILE_ID]",
+ width = 0, // optional
+ height = 0, // optional
+ gravity = "center", // optional
+ quality = 0, // optional
+ borderWidth = 0, // optional
+ borderColor = "", // optional
+ borderRadius = 0, // optional
+ opacity = 0, // optional
+ rotation = -360, // optional
+ background = "", // optional
+ output = "jpg" // optional
)
diff --git a/docs/examples/kotlin/storage/list-buckets.md b/docs/examples/kotlin/storage/list-buckets.md
index 03123db..a48f5fc 100644
--- a/docs/examples/kotlin/storage/list-buckets.md
+++ b/docs/examples/kotlin/storage/list-buckets.md
@@ -10,4 +10,6 @@ val client = Client()
val storage = Storage(client)
val response = storage.listBuckets(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/storage/list-files.md b/docs/examples/kotlin/storage/list-files.md
index ab78fea..eb9c8b7 100644
--- a/docs/examples/kotlin/storage/list-files.md
+++ b/docs/examples/kotlin/storage/list-files.md
@@ -11,4 +11,6 @@ val storage = Storage(client)
val response = storage.listFiles(
bucketId = "[BUCKET_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/storage/update-bucket.md b/docs/examples/kotlin/storage/update-bucket.md
index 79c8c38..1159343 100644
--- a/docs/examples/kotlin/storage/update-bucket.md
+++ b/docs/examples/kotlin/storage/update-bucket.md
@@ -12,4 +12,12 @@ val storage = Storage(client)
val response = storage.updateBucket(
bucketId = "[BUCKET_ID]",
name = "[NAME]",
+ permissions = listOf("read("any")"), // optional
+ fileSecurity = false, // optional
+ enabled = false, // optional
+ maximumFileSize = 1, // optional
+ allowedFileExtensions = listOf(), // optional
+ compression = "none", // optional
+ encryption = false, // optional
+ antivirus = false // optional
)
diff --git a/docs/examples/kotlin/storage/update-file.md b/docs/examples/kotlin/storage/update-file.md
index 2397079..41c3c86 100644
--- a/docs/examples/kotlin/storage/update-file.md
+++ b/docs/examples/kotlin/storage/update-file.md
@@ -12,4 +12,6 @@ val storage = Storage(client)
val response = storage.updateFile(
bucketId = "[BUCKET_ID]",
fileId = "[FILE_ID]",
+ name = "[NAME]", // optional
+ permissions = listOf("read("any")") // optional
)
diff --git a/docs/examples/kotlin/teams/create-membership.md b/docs/examples/kotlin/teams/create-membership.md
index 42f4a70..3577064 100644
--- a/docs/examples/kotlin/teams/create-membership.md
+++ b/docs/examples/kotlin/teams/create-membership.md
@@ -12,4 +12,9 @@ val teams = Teams(client)
val response = teams.createMembership(
teamId = "[TEAM_ID]",
roles = listOf(),
+ email = "email@example.com", // optional
+ userId = "[USER_ID]", // optional
+ phone = "+12065550100", // optional
+ url = "https://example.com", // optional
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/teams/create.md b/docs/examples/kotlin/teams/create.md
index 486c910..47d6365 100644
--- a/docs/examples/kotlin/teams/create.md
+++ b/docs/examples/kotlin/teams/create.md
@@ -12,4 +12,5 @@ val teams = Teams(client)
val response = teams.create(
teamId = "[TEAM_ID]",
name = "[NAME]",
+ roles = listOf() // optional
)
diff --git a/docs/examples/kotlin/teams/list-memberships.md b/docs/examples/kotlin/teams/list-memberships.md
index 516337d..0797eb9 100644
--- a/docs/examples/kotlin/teams/list-memberships.md
+++ b/docs/examples/kotlin/teams/list-memberships.md
@@ -11,4 +11,6 @@ val teams = Teams(client)
val response = teams.listMemberships(
teamId = "[TEAM_ID]",
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/teams/list.md b/docs/examples/kotlin/teams/list.md
index 8a3096e..7c0267c 100644
--- a/docs/examples/kotlin/teams/list.md
+++ b/docs/examples/kotlin/teams/list.md
@@ -10,4 +10,6 @@ val client = Client()
val teams = Teams(client)
val response = teams.list(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/users/create-argon2user.md b/docs/examples/kotlin/users/create-argon2user.md
index b673a2f..16649cf 100644
--- a/docs/examples/kotlin/users/create-argon2user.md
+++ b/docs/examples/kotlin/users/create-argon2user.md
@@ -13,4 +13,5 @@ val response = users.createArgon2User(
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-bcrypt-user.md b/docs/examples/kotlin/users/create-bcrypt-user.md
index 0dc01b8..9a82816 100644
--- a/docs/examples/kotlin/users/create-bcrypt-user.md
+++ b/docs/examples/kotlin/users/create-bcrypt-user.md
@@ -13,4 +13,5 @@ val response = users.createBcryptUser(
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-m-d5user.md b/docs/examples/kotlin/users/create-m-d5user.md
index 110fbd5..211206c 100644
--- a/docs/examples/kotlin/users/create-m-d5user.md
+++ b/docs/examples/kotlin/users/create-m-d5user.md
@@ -13,4 +13,5 @@ val response = users.createMD5User(
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-p-h-pass-user.md b/docs/examples/kotlin/users/create-p-h-pass-user.md
index 7b2d28f..41efbae 100644
--- a/docs/examples/kotlin/users/create-p-h-pass-user.md
+++ b/docs/examples/kotlin/users/create-p-h-pass-user.md
@@ -13,4 +13,5 @@ val response = users.createPHPassUser(
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-s-h-a-user.md b/docs/examples/kotlin/users/create-s-h-a-user.md
index 2ac8fd4..6646df3 100644
--- a/docs/examples/kotlin/users/create-s-h-a-user.md
+++ b/docs/examples/kotlin/users/create-s-h-a-user.md
@@ -13,4 +13,6 @@ val response = users.createSHAUser(
userId = "[USER_ID]",
email = "email@example.com",
password = "password",
+ passwordVersion = "sha1", // optional
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-scrypt-modified-user.md b/docs/examples/kotlin/users/create-scrypt-modified-user.md
index 7a45c72..44a54db 100644
--- a/docs/examples/kotlin/users/create-scrypt-modified-user.md
+++ b/docs/examples/kotlin/users/create-scrypt-modified-user.md
@@ -16,4 +16,5 @@ val response = users.createScryptModifiedUser(
passwordSalt = "[PASSWORD_SALT]",
passwordSaltSeparator = "[PASSWORD_SALT_SEPARATOR]",
passwordSignerKey = "[PASSWORD_SIGNER_KEY]",
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-scrypt-user.md b/docs/examples/kotlin/users/create-scrypt-user.md
index 5fa8d4b..1ef9d7e 100644
--- a/docs/examples/kotlin/users/create-scrypt-user.md
+++ b/docs/examples/kotlin/users/create-scrypt-user.md
@@ -18,4 +18,5 @@ val response = users.createScryptUser(
passwordMemory = 0,
passwordParallel = 0,
passwordLength = 0,
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-target.md b/docs/examples/kotlin/users/create-target.md
index 3cb5d21..fbd5729 100644
--- a/docs/examples/kotlin/users/create-target.md
+++ b/docs/examples/kotlin/users/create-target.md
@@ -15,4 +15,6 @@ val response = users.createTarget(
targetId = "[TARGET_ID]",
providerType = MessagingProviderType.EMAIL,
identifier = "[IDENTIFIER]",
+ providerId = "[PROVIDER_ID]", // optional
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/create-token.md b/docs/examples/kotlin/users/create-token.md
index 0e1fc97..d0f80c9 100644
--- a/docs/examples/kotlin/users/create-token.md
+++ b/docs/examples/kotlin/users/create-token.md
@@ -11,4 +11,6 @@ val users = Users(client)
val response = users.createToken(
userId = "[USER_ID]",
+ length = 4, // optional
+ expire = 60 // optional
)
diff --git a/docs/examples/kotlin/users/create.md b/docs/examples/kotlin/users/create.md
index ac880de..044d9dc 100644
--- a/docs/examples/kotlin/users/create.md
+++ b/docs/examples/kotlin/users/create.md
@@ -11,4 +11,8 @@ val users = Users(client)
val response = users.create(
userId = "[USER_ID]",
+ email = "email@example.com", // optional
+ phone = "+12065550100", // optional
+ password = "", // optional
+ name = "[NAME]" // optional
)
diff --git a/docs/examples/kotlin/users/list-identities.md b/docs/examples/kotlin/users/list-identities.md
index cd96efd..19a98b7 100644
--- a/docs/examples/kotlin/users/list-identities.md
+++ b/docs/examples/kotlin/users/list-identities.md
@@ -10,4 +10,6 @@ val client = Client()
val users = Users(client)
val response = users.listIdentities(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/users/list-logs.md b/docs/examples/kotlin/users/list-logs.md
index 20b6605..02074cd 100644
--- a/docs/examples/kotlin/users/list-logs.md
+++ b/docs/examples/kotlin/users/list-logs.md
@@ -11,4 +11,5 @@ val users = Users(client)
val response = users.listLogs(
userId = "[USER_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/users/list-targets.md b/docs/examples/kotlin/users/list-targets.md
index 8b2cc72..a9ed3bc 100644
--- a/docs/examples/kotlin/users/list-targets.md
+++ b/docs/examples/kotlin/users/list-targets.md
@@ -11,4 +11,5 @@ val users = Users(client)
val response = users.listTargets(
userId = "[USER_ID]",
+ queries = listOf() // optional
)
diff --git a/docs/examples/kotlin/users/list.md b/docs/examples/kotlin/users/list.md
index dbec2dc..55b832b 100644
--- a/docs/examples/kotlin/users/list.md
+++ b/docs/examples/kotlin/users/list.md
@@ -10,4 +10,6 @@ val client = Client()
val users = Users(client)
val response = users.list(
+ queries = listOf(), // optional
+ search = "[SEARCH]" // optional
)
diff --git a/docs/examples/kotlin/users/update-target.md b/docs/examples/kotlin/users/update-target.md
index ae319cb..cd175ce 100644
--- a/docs/examples/kotlin/users/update-target.md
+++ b/docs/examples/kotlin/users/update-target.md
@@ -12,4 +12,7 @@ val users = Users(client)
val response = users.updateTarget(
userId = "[USER_ID]",
targetId = "[TARGET_ID]",
+ identifier = "[IDENTIFIER]", // optional
+ providerId = "[PROVIDER_ID]", // optional
+ name = "[NAME]" // optional
)
diff --git a/src/main/kotlin/io/appwrite/Client.kt b/src/main/kotlin/io/appwrite/Client.kt
index 615a58e..34a343d 100644
--- a/src/main/kotlin/io/appwrite/Client.kt
+++ b/src/main/kotlin/io/appwrite/Client.kt
@@ -55,11 +55,11 @@ class Client @JvmOverloads constructor(
init {
headers = mutableMapOf(
"content-type" to "application/json",
- "user-agent" to "AppwriteKotlinSDK/5.0.0-rc.3 ${System.getProperty("http.agent")}",
+ "user-agent" to "AppwriteKotlinSDK/5.0.0-rc.4 ${System.getProperty("http.agent")}",
"x-sdk-name" to "Kotlin",
"x-sdk-platform" to "server",
"x-sdk-language" to "kotlin",
- "x-sdk-version" to "5.0.0-rc.3", "x-appwrite-response-format" to "1.5.0"
+ "x-sdk-version" to "5.0.0-rc.4", "x-appwrite-response-format" to "1.5.0"
)
config = mutableMapOf()
diff --git a/src/main/kotlin/io/appwrite/enums/SMTPEncryption.kt b/src/main/kotlin/io/appwrite/enums/Encryption.kt
similarity index 70%
rename from src/main/kotlin/io/appwrite/enums/SMTPEncryption.kt
rename to src/main/kotlin/io/appwrite/enums/Encryption.kt
index 2769ec0..195bad3 100644
--- a/src/main/kotlin/io/appwrite/enums/SMTPEncryption.kt
+++ b/src/main/kotlin/io/appwrite/enums/Encryption.kt
@@ -1,6 +1,6 @@
package io.appwrite.enums
-enum class SMTPEncryption(val value: String) {
+enum class Encryption(val value: String) {
NONE("none"),
SSL("ssl"),
TLS("tls");
diff --git a/src/main/kotlin/io/appwrite/enums/Runtime.kt b/src/main/kotlin/io/appwrite/enums/Runtime.kt
index b0a2413..06a21c9 100644
--- a/src/main/kotlin/io/appwrite/enums/Runtime.kt
+++ b/src/main/kotlin/io/appwrite/enums/Runtime.kt
@@ -1,10 +1,42 @@
package io.appwrite.enums
enum class Runtime(val value: String) {
+ NODE145("node-14.5"),
+ NODE160("node-16.0"),
NODE180("node-18.0"),
+ NODE190("node-19.0"),
+ NODE200("node-20.0"),
PHP80("php-8.0"),
+ PHP81("php-8.1"),
+ PHP82("php-8.2"),
+ RUBY30("ruby-3.0"),
RUBY31("ruby-3.1"),
- PYTHON39("python-3.9");
+ RUBY32("ruby-3.2"),
+ PYTHON38("python-3.8"),
+ PYTHON39("python-3.9"),
+ PYTHON310("python-3.10"),
+ PYTHON311("python-3.11"),
+ PYTHON312("python-3.12"),
+ DART215("dart-2.15"),
+ DART216("dart-2.16"),
+ DART217("dart-2.17"),
+ DART218("dart-2.18"),
+ DART30("dart-3.0"),
+ DART31("dart-3.1"),
+ DOTNET31("dotnet-3.1"),
+ DOTNET60("dotnet-6.0"),
+ DOTNET70("dotnet-7.0"),
+ JAVA80("java-8.0"),
+ JAVA110("java-11.0"),
+ JAVA170("java-17.0"),
+ JAVA180("java-18.0"),
+ SWIFT55("swift-5.5"),
+ SWIFT58("swift-5.8"),
+ KOTLIN16("kotlin-1.6"),
+ KOTLIN18("kotlin-1.8"),
+ CPP17("cpp-17"),
+ CPP20("cpp-20"),
+ BUN10("bun-1.0");
override fun toString() = value
}
\ No newline at end of file
diff --git a/src/main/kotlin/io/appwrite/services/Messaging.kt b/src/main/kotlin/io/appwrite/services/Messaging.kt
index 474c9c0..0ce5a25 100644
--- a/src/main/kotlin/io/appwrite/services/Messaging.kt
+++ b/src/main/kotlin/io/appwrite/services/Messaging.kt
@@ -16,7 +16,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List messages
*
- *
+ * Get a list of all messages from the current Appwrite project.
*
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType
* @param search Search term to filter your list results. Max length: 256 chars.
@@ -51,9 +51,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create an email.
+ * Create an email
*
- *
+ * Create a new email message.
*
* @param messageId Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param subject Email Subject.
@@ -63,6 +63,7 @@ class Messaging(client: Client) : Service(client) {
* @param targets List of Targets IDs.
* @param cc Array of target IDs to be added as CC.
* @param bcc Array of target IDs to be added as BCC.
+ * @param attachments Array of compound bucket IDs to file IDs to be attached to the email.
* @param status Message Status. Value must be one of: draft, scheduled, processing.
* @param html Is content of type HTML
* @param scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
@@ -79,6 +80,7 @@ class Messaging(client: Client) : Service(client) {
targets: List? = null,
cc: List? = null,
bcc: List? = null,
+ attachments: List? = null,
status: MessageStatus? = null,
html: Boolean? = null,
scheduledAt: String? = null,
@@ -94,6 +96,7 @@ class Messaging(client: Client) : Service(client) {
"targets" to targets,
"cc" to cc,
"bcc" to bcc,
+ "attachments" to attachments,
"status" to status,
"html" to html,
"scheduledAt" to scheduledAt,
@@ -115,9 +118,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update an email.
+ * Update an email
*
- *
+ * Update an email message by its unique ID.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -179,9 +182,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create a push notification.
+ * Create a push notification
*
- *
+ * Create a new push notification.
*
* @param messageId Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param title Title for push notification.
@@ -191,6 +194,7 @@ class Messaging(client: Client) : Service(client) {
* @param targets List of Targets IDs.
* @param data Additional Data for push notification.
* @param action Action for push notification.
+ * @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
* @param icon Icon for push notification. Available only for Android and Web Platform.
* @param sound Sound for push notification. Available only for Android and IOS Platform.
* @param color Color for push notification. Available only for Android Platform.
@@ -211,6 +215,7 @@ class Messaging(client: Client) : Service(client) {
targets: List? = null,
data: Any? = null,
action: String? = null,
+ image: String? = null,
icon: String? = null,
sound: String? = null,
color: String? = null,
@@ -230,6 +235,7 @@ class Messaging(client: Client) : Service(client) {
"targets" to targets,
"data" to data,
"action" to action,
+ "image" to image,
"icon" to icon,
"sound" to sound,
"color" to color,
@@ -255,9 +261,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update a push notification.
+ * Update a push notification
*
- *
+ * Update a push notification by its unique ID.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -267,6 +273,7 @@ class Messaging(client: Client) : Service(client) {
* @param body Body for push notification.
* @param data Additional Data for push notification.
* @param action Action for push notification.
+ * @param image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
* @param icon Icon for push notification. Available only for Android and Web platforms.
* @param sound Sound for push notification. Available only for Android and iOS platforms.
* @param color Color for push notification. Available only for Android platforms.
@@ -287,6 +294,7 @@ class Messaging(client: Client) : Service(client) {
body: String? = null,
data: Any? = null,
action: String? = null,
+ image: String? = null,
icon: String? = null,
sound: String? = null,
color: String? = null,
@@ -306,6 +314,7 @@ class Messaging(client: Client) : Service(client) {
"body" to body,
"data" to data,
"action" to action,
+ "image" to image,
"icon" to icon,
"sound" to sound,
"color" to color,
@@ -331,9 +340,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create an SMS.
+ * Create an SMS
*
- *
+ * Create a new SMS message.
*
* @param messageId Message ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param content SMS Content.
@@ -346,7 +355,7 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun createSMS(
+ suspend fun createSms(
messageId: String,
content: String,
topics: List? = null,
@@ -383,9 +392,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update an SMS.
+ * Update an SMS
*
- *
+ * Update an email message by its unique ID.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -398,7 +407,7 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun updateSMS(
+ suspend fun updateSms(
messageId: String,
topics: List? = null,
users: List? = null,
@@ -437,7 +446,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Get a message
*
- *
+ * Get a message by its unique ID.
*
* @param messageId Message ID.
* @return [io.appwrite.models.Message]
@@ -499,7 +508,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List message logs
*
- *
+ * Get the message activity logs listed by its unique ID.
*
* @param messageId Message ID.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
@@ -536,7 +545,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List message targets
*
- * List the targets associated with a message as set via the targets attribute.
+ * Get a list of the targets associated with a message.
*
* @param messageId Message ID.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
@@ -573,7 +582,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List providers
*
- *
+ * Get a list of all providers from the current Appwrite project.
*
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
* @param search Search term to filter your list results. Max length: 256 chars.
@@ -610,7 +619,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create APNS provider
*
- *
+ * Create a new Apple Push Notification service provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -623,7 +632,7 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun createAPNSProvider(
+ suspend fun createApnsProvider(
providerId: String,
name: String,
authKey: String? = null,
@@ -662,7 +671,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update APNS provider
*
- *
+ * Update a Apple Push Notification service provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -714,7 +723,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create FCM provider
*
- *
+ * Create a new Firebase Cloud Messaging provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -724,7 +733,7 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun createFCMProvider(
+ suspend fun createFcmProvider(
providerId: String,
name: String,
serviceAccountJSON: Any? = null,
@@ -757,7 +766,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update FCM provider
*
- *
+ * Update a Firebase Cloud Messaging provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -800,7 +809,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Mailgun provider
*
- *
+ * Create a new Mailgun provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -861,7 +870,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Mailgun provider
*
- *
+ * Update a Mailgun provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -922,7 +931,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Msg91 provider
*
- *
+ * Create a new MSG91 provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -971,7 +980,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Msg91 provider
*
- *
+ * Update a MSG91 provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1075,7 +1084,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Sendgrid provider
*
- *
+ * Update a Sendgrid provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1130,11 +1139,11 @@ class Messaging(client: Client) : Service(client) {
/**
* Create SMTP provider
*
- *
+ * Create a new SMTP provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
- * @param host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host by using this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com"). You can also specify encryption type, for example: (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465"). Hosts will be tried in order.
+ * @param host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
* @param port The default SMTP server port.
* @param username Authentication username.
* @param password Authentication password.
@@ -1150,14 +1159,14 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun createSMTPProvider(
+ suspend fun createSmtpProvider(
providerId: String,
name: String,
host: String,
port: Long? = null,
username: String? = null,
password: String? = null,
- encryption: SMTPEncryption? = null,
+ encryption: Encryption? = null,
autoTLS: Boolean? = null,
mailer: String? = null,
fromName: String? = null,
@@ -1203,11 +1212,11 @@ class Messaging(client: Client) : Service(client) {
/**
* Update SMTP provider
*
- *
+ * Update a SMTP provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
- * @param host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host by using this format: [hostname:port] (e.g. "smtp1.example.com:25;smtp2.example.com"). You can also specify encryption type, for example: (e.g. "tls://smtp1.example.com:587;ssl://smtp2.example.com:465"). Hosts will be tried in order.
+ * @param host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as `smtp1.example.com:25;smtp2.example.com`. You can also specify encryption type, for example: `tls://smtp1.example.com:587;ssl://smtp2.example.com:465"`. Hosts will be tried in order.
* @param port SMTP port.
* @param username Authentication username.
* @param password Authentication password.
@@ -1223,14 +1232,14 @@ class Messaging(client: Client) : Service(client) {
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun updateSMTPProvider(
+ suspend fun updateSmtpProvider(
providerId: String,
name: String? = null,
host: String? = null,
port: Long? = null,
username: String? = null,
password: String? = null,
- encryption: SMTPEncryption? = null,
+ encryption: Encryption? = null,
autoTLS: Boolean? = null,
mailer: String? = null,
fromName: String? = null,
@@ -1276,7 +1285,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Telesign provider
*
- *
+ * Create a new Telesign provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -1325,7 +1334,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Telesign provider
*
- *
+ * Update a Telesign provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1374,7 +1383,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Textmagic provider
*
- *
+ * Create a new Textmagic provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -1423,7 +1432,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Textmagic provider
*
- *
+ * Update a Textmagic provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1472,7 +1481,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Twilio provider
*
- *
+ * Create a new Twilio provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -1521,7 +1530,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Twilio provider
*
- *
+ * Update a Twilio provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1570,7 +1579,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Create Vonage provider
*
- *
+ * Create a new Vonage provider.
*
* @param providerId Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
* @param name Provider name.
@@ -1619,7 +1628,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Update Vonage provider
*
- *
+ * Update a Vonage provider by its unique ID.
*
* @param providerId Provider ID.
* @param name Provider name.
@@ -1668,7 +1677,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Get provider
*
- *
+ * Get a provider by its unique ID.
*
* @param providerId Provider ID.
* @return [io.appwrite.models.Provider]
@@ -1701,7 +1710,7 @@ class Messaging(client: Client) : Service(client) {
/**
* Delete provider
*
- *
+ * Delete a provider by its unique ID.
*
* @param providerId Provider ID.
* @return [Any]
@@ -1730,7 +1739,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List provider logs
*
- *
+ * Get the provider activity logs listed by its unique ID.
*
* @param providerId Provider ID.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
@@ -1767,7 +1776,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List subscriber logs
*
- *
+ * Get the subscriber activity logs listed by its unique ID.
*
* @param subscriberId Subscriber ID.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
@@ -1802,9 +1811,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List topics.
+ * List topics
*
- *
+ * Get a list of all topics from the current Appwrite project.
*
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
* @param search Search term to filter your list results. Max length: 256 chars.
@@ -1839,9 +1848,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create a topic.
+ * Create a topic
*
- *
+ * Create a new topic.
*
* @param topicId Topic ID. Choose a custom Topic ID or a new Topic ID.
* @param name Topic Name.
@@ -1879,9 +1888,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get a topic.
+ * Get a topic
*
- *
+ * Get a topic by its unique ID.
*
* @param topicId Topic ID.
* @return [io.appwrite.models.Topic]
@@ -1912,9 +1921,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update a topic.
+ * Update a topic
*
- *
+ * Update a topic by its unique ID.
*
* @param topicId Topic ID.
* @param name Topic Name.
@@ -1949,9 +1958,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete a topic.
+ * Delete a topic
*
- *
+ * Delete a topic by its unique ID.
*
* @param topicId Topic ID.
* @return [Any]
@@ -1980,7 +1989,7 @@ class Messaging(client: Client) : Service(client) {
/**
* List topic logs
*
- *
+ * Get the topic activity logs listed by its unique ID.
*
* @param topicId Topic ID.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
@@ -2015,9 +2024,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List subscribers.
+ * List subscribers
*
- *
+ * Get a list of all subscribers from the current Appwrite project.
*
* @param topicId Topic ID. The topic ID subscribed to.
* @param queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
@@ -2055,9 +2064,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create a subscriber.
+ * Create a subscriber
*
- *
+ * Create a new subscriber.
*
* @param topicId Topic ID. The topic ID to subscribe to.
* @param subscriberId Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.
@@ -2094,9 +2103,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get a subscriber.
+ * Get a subscriber
*
- *
+ * Get a subscriber by its unique ID.
*
* @param topicId Topic ID. The topic ID subscribed to.
* @param subscriberId Subscriber ID.
@@ -2130,9 +2139,9 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete a subscriber.
+ * Delete a subscriber
*
- *
+ * Delete a subscriber by its unique ID.
*
* @param topicId Topic ID. The topic ID subscribed to.
* @param subscriberId Subscriber ID.