diff --git a/README.md b/README.md
index be83985..e0b45f4 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@


-
+
[](https://twitter.com/appwrite)
[](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:7.0.0")
+implementation("io.appwrite:sdk-for-kotlin:8.0.0")
```
### Maven
@@ -50,7 +50,7 @@ Add this to your project's `pom.xml` file:
io.appwrite
sdk-for-kotlin
- 7.0.0
+ 8.0.0
```
diff --git a/docs/examples/java/databases/update-float-attribute.md b/docs/examples/java/databases/update-float-attribute.md
index 071bd48..061e2a9 100644
--- a/docs/examples/java/databases/update-float-attribute.md
+++ b/docs/examples/java/databases/update-float-attribute.md
@@ -14,9 +14,9 @@ databases.updateFloatAttribute(
"", // collectionId
"", // key
false, // required
- 0, // min
- 0, // max
0, // default
+ 0, // min (optional)
+ 0, // max (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/databases/update-integer-attribute.md b/docs/examples/java/databases/update-integer-attribute.md
index b6c1e44..24a26eb 100644
--- a/docs/examples/java/databases/update-integer-attribute.md
+++ b/docs/examples/java/databases/update-integer-attribute.md
@@ -14,9 +14,9 @@ databases.updateIntegerAttribute(
"", // collectionId
"", // key
false, // required
- 0, // min
- 0, // max
0, // default
+ 0, // min (optional)
+ 0, // max (optional)
"", // newKey (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/health/get-queue-usage-dump.md b/docs/examples/java/health/get-queue-stats-resources.md
similarity index 94%
rename from docs/examples/java/health/get-queue-usage-dump.md
rename to docs/examples/java/health/get-queue-stats-resources.md
index 59bd406..5a6db4a 100644
--- a/docs/examples/java/health/get-queue-usage-dump.md
+++ b/docs/examples/java/health/get-queue-stats-resources.md
@@ -9,7 +9,7 @@ Client client = new Client()
Health health = new Health(client);
-health.getQueueUsageDump(
+health.getQueueStatsResources(
0, // threshold (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
diff --git a/docs/examples/java/health/get-queue.md b/docs/examples/java/health/get-queue.md
deleted file mode 100644
index 55937b7..0000000
--- a/docs/examples/java/health/get-queue.md
+++ /dev/null
@@ -1,19 +0,0 @@
-import io.appwrite.Client;
-import io.appwrite.coroutines.CoroutineCallback;
-import io.appwrite.services.Health;
-
-Client client = new Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("") // Your project ID
- .setKey(""); // Your secret API key
-
-Health health = new Health(client);
-
-health.getQueue(new CoroutineCallback<>((result, error) -> {
- if (error != null) {
- error.printStackTrace();
- return;
- }
-
- System.out.println(result);
-}));
diff --git a/docs/examples/kotlin/databases/update-float-attribute.md b/docs/examples/kotlin/databases/update-float-attribute.md
index 4701530..3d0485f 100644
--- a/docs/examples/kotlin/databases/update-float-attribute.md
+++ b/docs/examples/kotlin/databases/update-float-attribute.md
@@ -14,8 +14,8 @@ val response = databases.updateFloatAttribute(
collectionId = "",
key = "",
required = false,
- min = 0,
- max = 0,
default = 0,
+ min = 0, // optional
+ max = 0, // optional
newKey = "" // optional
)
diff --git a/docs/examples/kotlin/databases/update-integer-attribute.md b/docs/examples/kotlin/databases/update-integer-attribute.md
index e5742a5..249972d 100644
--- a/docs/examples/kotlin/databases/update-integer-attribute.md
+++ b/docs/examples/kotlin/databases/update-integer-attribute.md
@@ -14,8 +14,8 @@ val response = databases.updateIntegerAttribute(
collectionId = "",
key = "",
required = false,
- min = 0,
- max = 0,
default = 0,
+ min = 0, // optional
+ max = 0, // optional
newKey = "" // optional
)
diff --git a/docs/examples/kotlin/health/get-queue-usage-dump.md b/docs/examples/kotlin/health/get-queue-stats-resources.md
similarity index 89%
rename from docs/examples/kotlin/health/get-queue-usage-dump.md
rename to docs/examples/kotlin/health/get-queue-stats-resources.md
index a1b1a30..ac95abc 100644
--- a/docs/examples/kotlin/health/get-queue-usage-dump.md
+++ b/docs/examples/kotlin/health/get-queue-stats-resources.md
@@ -9,6 +9,6 @@ val client = Client()
val health = Health(client)
-val response = health.getQueueUsageDump(
+val response = health.getQueueStatsResources(
threshold = 0 // optional
)
diff --git a/docs/examples/kotlin/health/get-queue.md b/docs/examples/kotlin/health/get-queue.md
deleted file mode 100644
index d24e8c4..0000000
--- a/docs/examples/kotlin/health/get-queue.md
+++ /dev/null
@@ -1,12 +0,0 @@
-import io.appwrite.Client
-import io.appwrite.coroutines.CoroutineCallback
-import io.appwrite.services.Health
-
-val client = Client()
- .setEndpoint("https://cloud.appwrite.io/v1") // Your API Endpoint
- .setProject("") // Your project ID
- .setKey("") // Your secret API key
-
-val health = Health(client)
-
-val response = health.getQueue()
diff --git a/src/main/kotlin/io/appwrite/Client.kt b/src/main/kotlin/io/appwrite/Client.kt
index cf5e7c4..2f5a476 100644
--- a/src/main/kotlin/io/appwrite/Client.kt
+++ b/src/main/kotlin/io/appwrite/Client.kt
@@ -21,6 +21,7 @@ import java.io.BufferedReader
import java.io.File
import java.io.RandomAccessFile
import java.io.IOException
+import java.lang.IllegalArgumentException
import java.security.SecureRandom
import java.security.cert.X509Certificate
import javax.net.ssl.HostnameVerifier
@@ -57,11 +58,11 @@ class Client @JvmOverloads constructor(
init {
headers = mutableMapOf(
"content-type" to "application/json",
- "user-agent" to "AppwriteKotlinSDK/7.0.0 ${System.getProperty("http.agent")}",
+ "user-agent" to "AppwriteKotlinSDK/8.0.0 ${System.getProperty("http.agent")}",
"x-sdk-name" to "Kotlin",
"x-sdk-platform" to "server",
"x-sdk-language" to "kotlin",
- "x-sdk-version" to "7.0.0",
+ "x-sdk-version" to "8.0.0",
"x-appwrite-response-format" to "1.6.0",
)
@@ -217,7 +218,12 @@ class Client @JvmOverloads constructor(
*
* @return this
*/
+ @Throws(IllegalArgumentException::class)
fun setEndpoint(endPoint: String): Client {
+ require(endPoint.startsWith("http://") || endPoint.startsWith("https://")) {
+ "Invalid endpoint URL: $endPoint"
+ }
+
this.endPoint = endPoint
return this
}
@@ -551,7 +557,7 @@ class Client @JvmOverloads constructor(
body
)
} else {
- AppwriteException(body, response.code)
+ AppwriteException(body, response.code, "", body)
}
it.cancel(error)
return
@@ -602,7 +608,7 @@ class Client @JvmOverloads constructor(
body
)
} else {
- AppwriteException(body, response.code)
+ AppwriteException(body, response.code, "", body)
}
it.cancel(error)
return
diff --git a/src/main/kotlin/io/appwrite/enums/CreditCard.kt b/src/main/kotlin/io/appwrite/enums/CreditCard.kt
index 063de61..1826304 100644
--- a/src/main/kotlin/io/appwrite/enums/CreditCard.kt
+++ b/src/main/kotlin/io/appwrite/enums/CreditCard.kt
@@ -34,7 +34,9 @@ enum class CreditCard(val value: String) {
@SerializedName("mir")
MIR("mir"),
@SerializedName("maestro")
- MAESTRO("maestro");
+ MAESTRO("maestro"),
+ @SerializedName("rupay")
+ RUPAY("rupay");
override fun toString() = value
}
\ No newline at end of file
diff --git a/src/main/kotlin/io/appwrite/enums/Name.kt b/src/main/kotlin/io/appwrite/enums/Name.kt
index 2b6f863..0ef4251 100644
--- a/src/main/kotlin/io/appwrite/enums/Name.kt
+++ b/src/main/kotlin/io/appwrite/enums/Name.kt
@@ -13,10 +13,10 @@ enum class Name(val value: String) {
V1_MAILS("v1-mails"),
@SerializedName("v1-functions")
V1_FUNCTIONS("v1-functions"),
- @SerializedName("v1-usage")
- V1_USAGE("v1-usage"),
- @SerializedName("v1-usage-dump")
- V1_USAGE_DUMP("v1-usage-dump"),
+ @SerializedName("v1-stats-resources")
+ V1_STATS_RESOURCES("v1-stats-resources"),
+ @SerializedName("v1-stats-usage")
+ V1_STATS_USAGE("v1-stats-usage"),
@SerializedName("v1-webhooks")
V1_WEBHOOKS("v1-webhooks"),
@SerializedName("v1-certificates")
diff --git a/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt b/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt
index dc1b9b3..b0cff85 100644
--- a/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt
+++ b/src/main/kotlin/io/appwrite/enums/OAuthProvider.kt
@@ -31,6 +31,8 @@ enum class OAuthProvider(val value: String) {
ETSY("etsy"),
@SerializedName("facebook")
FACEBOOK("facebook"),
+ @SerializedName("figma")
+ FIGMA("figma"),
@SerializedName("github")
GITHUB("github"),
@SerializedName("gitlab")
diff --git a/src/main/kotlin/io/appwrite/services/Account.kt b/src/main/kotlin/io/appwrite/services/Account.kt
index a06e99f..e631719 100644
--- a/src/main/kotlin/io/appwrite/services/Account.kt
+++ b/src/main/kotlin/io/appwrite/services/Account.kt
@@ -14,8 +14,6 @@ import java.io.File
class Account(client: Client) : Service(client) {
/**
- * Get account
- *
* Get the currently logged in user.
*
* @return [io.appwrite.models.User]
@@ -29,7 +27,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.User = {
io.appwrite.models.User.from(map = it as Map, nestedType)
@@ -45,8 +42,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Get account
- *
* Get the currently logged in user.
*
* @return [io.appwrite.models.User]
@@ -58,8 +53,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Create account
- *
* Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).
*
* @param userId User 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.
@@ -102,8 +95,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create account
- *
* Use this endpoint to allow a new user to register a new account in your project. After the user registration completes successfully, you can use the [/account/verfication](https://appwrite.io/docs/references/cloud/client-web/account#createVerification) route to start verifying the user email address. To allow the new user to login to their new account, you need to create a new [account session](https://appwrite.io/docs/references/cloud/client-web/account#createEmailSession).
*
* @param userId User 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.
@@ -128,8 +119,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Update email
- *
* Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
*
* @param email User email.
@@ -165,8 +154,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update email
- *
* Update currently logged in user account email address. After changing user address, the user confirmation status will get reset. A new confirmation email is not sent automatically however you can use the send confirmation email endpoint again to send the confirmation email. For security measures, user password is required to complete this request.This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
*
* @param email User email.
@@ -184,8 +171,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * List identities
- *
* Get the list of identities for the currently logged in user.
*
* @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, provider, providerUid, providerEmail, providerAccessTokenExpiry
@@ -202,7 +187,6 @@ class Account(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.IdentityList = {
io.appwrite.models.IdentityList.from(map = it as Map)
@@ -218,8 +202,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Delete identity
- *
* Delete an identity by its unique ID.
*
* @param identityId Identity ID.
@@ -247,8 +229,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create JWT
- *
* Use this endpoint to create a JSON Web Token. You can use the resulting JWT to authenticate on behalf of the current user when working with the Appwrite server-side API and SDKs. The JWT secret is valid for 15 minutes from its creation and will be invalid if the user will logout in that time frame.
*
* @return [io.appwrite.models.Jwt]
@@ -277,8 +257,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * List logs
- *
* Get the list of latest security activity logs for the currently logged in user. Each log returns user IP address, location and date and time of log.
*
* @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
@@ -295,7 +273,6 @@ class Account(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -311,8 +288,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update MFA
- *
* Enable or disable MFA on an account.
*
* @param mfa Enable or disable MFA.
@@ -345,8 +320,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update MFA
- *
* Enable or disable MFA on an account.
*
* @param mfa Enable or disable MFA.
@@ -361,8 +334,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Create authenticator
- *
* Add an authenticator app to be used as an MFA factor. Verify the authenticator using the [verify authenticator](/docs/references/cloud/client-web/account#updateMfaAuthenticator) method.
*
* @param type Type of authenticator. Must be `totp`
@@ -394,8 +365,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Verify authenticator
- *
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
*
* @param type Type of authenticator.
@@ -431,8 +400,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Verify authenticator
- *
* Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
*
* @param type Type of authenticator.
@@ -450,8 +417,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Delete authenticator
- *
* Delete an authenticator for a user by ID.
*
* @param type Type of authenticator.
@@ -479,8 +444,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create MFA challenge
- *
* Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
*
* @param factor Factor used for verification. Must be one of following: `email`, `phone`, `totp`, `recoveryCode`.
@@ -512,8 +475,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create MFA challenge (confirmation)
- *
* Complete the MFA challenge by providing the one-time password. Finish the process of MFA verification by providing the one-time password. To begin the flow, use [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
*
* @param challengeId ID of the challenge.
@@ -548,8 +509,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * List factors
- *
* List the factors available on the account to be used as a MFA challange.
*
* @return [io.appwrite.models.MfaFactors]
@@ -562,7 +521,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MfaFactors = {
io.appwrite.models.MfaFactors.from(map = it as Map)
@@ -578,8 +536,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Get MFA recovery codes
- *
* Get recovery codes that can be used as backup for MFA flow. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to read recovery codes.
*
* @return [io.appwrite.models.MfaRecoveryCodes]
@@ -592,7 +548,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MfaRecoveryCodes = {
io.appwrite.models.MfaRecoveryCodes.from(map = it as Map)
@@ -608,8 +563,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create MFA recovery codes
- *
* Generate recovery codes as backup for MFA flow. It's recommended to generate and show then immediately after user successfully adds their authehticator. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method.
*
* @return [io.appwrite.models.MfaRecoveryCodes]
@@ -638,8 +591,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Regenerate MFA recovery codes
- *
* Regenerate recovery codes that can be used as backup for MFA flow. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method. An OTP challenge is required to regenreate recovery codes.
*
* @return [io.appwrite.models.MfaRecoveryCodes]
@@ -668,8 +619,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update name
- *
* Update currently logged in user account name.
*
* @param name User name. Max length: 128 chars.
@@ -702,8 +651,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update name
- *
* Update currently logged in user account name.
*
* @param name User name. Max length: 128 chars.
@@ -718,8 +665,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Update password
- *
* Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
*
* @param password New user password. Must be at least 8 chars.
@@ -756,8 +701,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update password
- *
* Update currently logged in user password. For validation, user is required to pass in the new password, and the old password. For users created with OAuth, Team Invites and Magic URL, oldPassword is optional.
*
* @param password New user password. Must be at least 8 chars.
@@ -776,8 +719,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Update phone
- *
* Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.
*
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -813,8 +754,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update phone
- *
* Update the currently logged in user's phone number. After updating the phone number, the phone verification status will be reset. A confirmation SMS is not sent automatically, however you can use the [POST /account/verification/phone](https://appwrite.io/docs/references/cloud/client-web/account#createPhoneVerification) endpoint to send a confirmation SMS.
*
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -832,8 +771,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Get account preferences
- *
* Get the preferences as a key-value object for the currently logged in user.
*
* @return [io.appwrite.models.Preferences]
@@ -847,7 +784,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Preferences = {
io.appwrite.models.Preferences.from(map = it as Map, nestedType)
@@ -863,8 +799,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Get account preferences
- *
* Get the preferences as a key-value object for the currently logged in user.
*
* @return [io.appwrite.models.Preferences]
@@ -876,8 +810,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Update preferences
- *
* Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
*
* @param prefs Prefs key-value JSON object.
@@ -910,8 +842,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update preferences
- *
* Update currently logged in user account preferences. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
*
* @param prefs Prefs key-value JSON object.
@@ -926,8 +856,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Create password recovery
- *
* Sends the user an email with a temporary secret key for password reset. When the user clicks the confirmation link he is redirected back to your app password reset URL with the secret key and email address values attached to the URL query string. Use the query string params to submit a request to the [PUT /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#updateRecovery) endpoint to complete the process. The verification link sent to the user's email address is valid for 1 hour.
*
* @param email User email.
@@ -962,8 +890,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create password recovery (confirmation)
- *
* Use this endpoint to complete the user account password reset. Both the **userId** and **secret** arguments will be passed as query parameters to the redirect URL you have provided when sending your request to the [POST /account/recovery](https://appwrite.io/docs/references/cloud/client-web/account#createRecovery) endpoint.Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
*
* @param userId User ID.
@@ -1001,8 +927,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * List sessions
- *
* Get the list of active sessions across different devices for the currently logged in user.
*
* @return [io.appwrite.models.SessionList]
@@ -1015,7 +939,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.SessionList = {
io.appwrite.models.SessionList.from(map = it as Map)
@@ -1031,8 +954,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Delete sessions
- *
* Delete all sessions from the user account and remove any sessions cookies from the end client.
*
* @return [Any]
@@ -1057,8 +978,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create anonymous session
- *
* Use this endpoint to allow a new user to register an anonymous account in your project. This route will also create a new session for the user. To allow the new user to convert an anonymous account to a normal account, you need to update its [email and password](https://appwrite.io/docs/references/cloud/client-web/account#updateEmail) or create an [OAuth2 session](https://appwrite.io/docs/references/cloud/client-web/account#CreateOAuth2Session).
*
* @return [io.appwrite.models.Session]
@@ -1087,8 +1006,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create email password session
- *
* Allow the user to login into their account by providing a valid email and password combination. This route will create a new session for the user.A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
*
* @param email User email.
@@ -1123,8 +1040,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update magic URL session
- *
* Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
*
* @param userId User 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.
@@ -1159,8 +1074,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update phone session
- *
* Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
*
* @param userId User 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.
@@ -1195,8 +1108,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create session
- *
* Use this endpoint to create a session from token. Provide the **userId** and **secret** parameters from the successful response of authentication flows initiated by token creation. For example, magic URL and phone login.
*
* @param userId User 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.
@@ -1231,8 +1142,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Get session
- *
* Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
*
* @param sessionId Session ID. Use the string 'current' to get the current device session.
@@ -1248,7 +1157,6 @@ class Account(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Session = {
io.appwrite.models.Session.from(map = it as Map)
@@ -1264,8 +1172,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update session
- *
* Use this endpoint to extend a session's length. Extending a session is useful when session expiry is short. If the session was created using an OAuth provider, this endpoint refreshes the access token from the provider.
*
* @param sessionId Session ID. Use the string 'current' to update the current device session.
@@ -1297,8 +1203,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Delete session
- *
* Logout the user. Use 'current' as the session ID to logout on this device, use a session ID to logout on another device. If you're looking to logout the user on all devices, use [Delete Sessions](https://appwrite.io/docs/references/cloud/client-web/account#deleteSessions) instead.
*
* @param sessionId Session ID. Use the string 'current' to delete the current device session.
@@ -1326,8 +1230,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update status
- *
* Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.
*
* @return [io.appwrite.models.User]
@@ -1357,8 +1259,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update status
- *
* Block the currently logged in user account. Behind the scene, the user record is not deleted but permanently blocked from any access. To completely delete a user, use the Users API instead.
*
* @return [io.appwrite.models.User]
@@ -1370,8 +1270,6 @@ class Account(client: Client) : Service(client) {
)
/**
- * Create email token (OTP)
- *
* Sends the user an email with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user's email is valid for 15 minutes.A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
*
* @param userId User 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.
@@ -1410,8 +1308,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create magic URL token
- *
* Sends the user an email with a secret key for creating a session. If the provided user ID has not been registered, a new user will be created. When the user clicks the link in the email, the user is redirected back to the URL you provided with the secret key and userId values attached to the URL query string. Use the query string parameters to submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The link sent to the user's email address is valid for 1 hour.A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
*
* @param userId Unique 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.
@@ -1453,11 +1349,9 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create OAuth2 token
- *
* Allow the user to login to their account using the OAuth2 provider of their choice. Each OAuth2 provider should be enabled from the Appwrite console first. Use the success and failure arguments to provide a redirect URL's back to your app when login is completed. If authentication succeeds, `userId` and `secret` of a token will be appended to the success URL as query parameters. These can be used to create a new session using the [Create session](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint.A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
*
- * @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
+ * @param provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, github, gitlab, google, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, yahoo, yammer, yandex, zoho, zoom.
* @param success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
* @param failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
* @param scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
@@ -1480,7 +1374,6 @@ class Account(client: Client) : Service(client) {
"scopes" to scopes,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.redirect(
"GET",
@@ -1491,8 +1384,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create phone token
- *
* Sends the user an SMS with a secret key for creating a session. If the provided user ID has not be registered, a new user will be created. Use the returned user ID and secret and submit a request to the [POST /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process. The secret sent to the user's phone is valid for 15 minutes.A user is limited to 10 active sessions at a time by default. [Learn more about session limits](https://appwrite.io/docs/authentication-security#limits).
*
* @param userId Unique 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.
@@ -1527,8 +1418,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create email verification
- *
* Use this endpoint to send a verification message to your user email address to confirm they are the valid owners of that address. Both the **userId** and **secret** arguments will be passed as query parameters to the URL you have provided to be attached to the verification email. The provided URL should redirect the user back to your app and allow you to complete the verification process by verifying both the **userId** and **secret** parameters. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updateVerification). The verification link sent to the user's email address is valid for 7 days.Please note that in order to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md), the only valid redirect URLs are the ones from domains you have set when adding your platforms in the console interface.
*
* @param url URL to redirect the user back to your app from the verification email. Only URLs from hostnames in your project platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
@@ -1560,8 +1449,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create email verification (confirmation)
- *
* Use this endpoint to complete the user email verification process. Use both the **userId** and **secret** parameters that were attached to your app URL to verify the user email ownership. If confirmed this route will return a 200 status code.
*
* @param userId User ID.
@@ -1596,8 +1483,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Create phone verification
- *
* Use this endpoint to send a verification SMS to the currently logged in user. This endpoint is meant for use after updating a user's phone number using the [accountUpdatePhone](https://appwrite.io/docs/references/cloud/client-web/account#updatePhone) endpoint. Learn more about how to [complete the verification process](https://appwrite.io/docs/references/cloud/client-web/account#updatePhoneVerification). The verification code sent to the user's phone number is valid for 15 minutes.
*
* @return [io.appwrite.models.Token]
@@ -1626,8 +1511,6 @@ class Account(client: Client) : Service(client) {
}
/**
- * Update phone verification (confirmation)
- *
* Use this endpoint to complete the user phone verification process. Use the **userId** and **secret** that were sent to your user's phone number to verify the user email ownership. If confirmed this route will return a 200 status code.
*
* @param userId User ID.
diff --git a/src/main/kotlin/io/appwrite/services/Avatars.kt b/src/main/kotlin/io/appwrite/services/Avatars.kt
index 46c9d8e..7427e65 100644
--- a/src/main/kotlin/io/appwrite/services/Avatars.kt
+++ b/src/main/kotlin/io/appwrite/services/Avatars.kt
@@ -16,8 +16,6 @@ import java.io.File
class Avatars(client: Client) : Service(client) {
/**
- * Get browser icon
- *
* You can use this endpoint to show different browser icons to your users. The code argument receives the browser code as it appears in your user [GET /account/sessions](https://appwrite.io/docs/references/cloud/client-web/account#getSessions) endpoint. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
* @param code Browser Code.
@@ -43,7 +41,6 @@ class Avatars(client: Client) : Service(client) {
"quality" to quality,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -54,11 +51,9 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get credit card icon
- *
* The credit card endpoint will return you the icon of the credit card provider you need. Use width, height and quality arguments to change the output settings.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
- * @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro.
+ * @param code Credit Card Code. Possible values: amex, argencard, cabal, cencosud, diners, discover, elo, hipercard, jcb, mastercard, naranja, targeta-shopping, union-china-pay, visa, mir, maestro, rupay.
* @param width Image width. Pass an integer between 0 to 2000. Defaults to 100.
* @param height Image height. Pass an integer between 0 to 2000. Defaults to 100.
* @param quality Image quality. Pass an integer between 0 to 100. Defaults to 100.
@@ -81,7 +76,6 @@ class Avatars(client: Client) : Service(client) {
"quality" to quality,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -92,8 +86,6 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get favicon
- *
* Use this endpoint to fetch the favorite icon (AKA favicon) of any remote website URL.This endpoint does not follow HTTP redirects.
*
* @param url Website URL which you want to fetch the favicon from.
@@ -109,7 +101,6 @@ class Avatars(client: Client) : Service(client) {
"url" to url,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -120,8 +111,6 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get country flag
- *
* You can use this endpoint to show different country flags icons to your users. The code argument receives the 2 letter country code. Use width, height and quality arguments to change the output settings. Country codes follow the [ISO 3166-1](https://en.wikipedia.org/wiki/ISO_3166-1) standard.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
* @param code Country Code. ISO Alpha-2 country code format.
@@ -147,7 +136,6 @@ class Avatars(client: Client) : Service(client) {
"quality" to quality,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -158,8 +146,6 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get image from URL
- *
* Use this endpoint to fetch a remote image URL and crop it to any image size you want. This endpoint is very useful if you need to crop and display remote images in your app or in case you want to make sure a 3rd party image is properly served using a TLS protocol.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 400x400px.This endpoint does not follow HTTP redirects.
*
* @param url Image URL which you want to crop.
@@ -182,7 +168,6 @@ class Avatars(client: Client) : Service(client) {
"height" to height,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -193,8 +178,6 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get user initials
- *
* Use this endpoint to show your user initials avatar icon on your website or app. By default, this route will try to print your logged-in user name or email initials. You can also overwrite the user name if you pass the 'name' parameter. If no name is given and no user is logged, an empty avatar will be returned.You can use the color and background params to change the avatar colors. By default, a random theme will be selected. The random theme will persist for the user's initials when reloading the same theme will always return for the same initials.When one dimension is specified and the other is 0, the image is scaled with preserved aspect ratio. If both dimensions are 0, the API provides an image at source quality. If dimensions are not specified, the default size of image returned is 100x100px.
*
* @param name Full Name. When empty, current user name or email will be used. Max length: 128 chars.
@@ -220,7 +203,6 @@ class Avatars(client: Client) : Service(client) {
"background" to background,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -231,8 +213,6 @@ class Avatars(client: Client) : Service(client) {
}
/**
- * Get QR code
- *
* Converts a given plain text to a QR code image. You can use the query parameters to change the size and style of the resulting image.
*
* @param text Plain text to be converted to QR code image.
@@ -258,7 +238,6 @@ class Avatars(client: Client) : Service(client) {
"download" to download,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
diff --git a/src/main/kotlin/io/appwrite/services/Databases.kt b/src/main/kotlin/io/appwrite/services/Databases.kt
index 770412a..d24e014 100644
--- a/src/main/kotlin/io/appwrite/services/Databases.kt
+++ b/src/main/kotlin/io/appwrite/services/Databases.kt
@@ -14,8 +14,6 @@ import java.io.File
class Databases(client: Client) : Service(client) {
/**
- * List databases
- *
* Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
*
* @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
@@ -35,7 +33,6 @@ class Databases(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.DatabaseList = {
io.appwrite.models.DatabaseList.from(map = it as Map)
@@ -51,8 +48,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create database
- *
* Create a new Database.
*
* @param databaseId Unique 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.
@@ -91,8 +86,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Get database
- *
* Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
*
* @param databaseId Database ID.
@@ -108,7 +101,6 @@ class Databases(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Database = {
io.appwrite.models.Database.from(map = it as Map)
@@ -124,8 +116,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update database
- *
* Update a database by its unique ID.
*
* @param databaseId Database ID.
@@ -164,8 +154,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Delete database
- *
* Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
*
* @param databaseId Database ID.
@@ -193,8 +181,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * List collections
- *
* Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.
*
* @param databaseId Database ID.
@@ -217,7 +203,6 @@ class Databases(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.CollectionList = {
io.appwrite.models.CollectionList.from(map = it as Map)
@@ -233,8 +218,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create collection
- *
* Create a new Collection. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*
* @param databaseId Database ID.
@@ -282,8 +265,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Get collection
- *
* Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
*
* @param databaseId Database ID.
@@ -302,7 +283,6 @@ class Databases(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Collection = {
io.appwrite.models.Collection.from(map = it as Map)
@@ -318,8 +298,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update collection
- *
* Update a collection by its unique ID.
*
* @param databaseId Database ID.
@@ -367,8 +345,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Delete collection
- *
* Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.
*
* @param databaseId Database ID.
@@ -399,8 +375,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * List attributes
- *
* List attributes in the collection.
*
* @param databaseId Database ID.
@@ -423,7 +397,6 @@ class Databases(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.AttributeList = {
io.appwrite.models.AttributeList.from(map = it as Map)
@@ -439,8 +412,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create boolean attribute
- *
* Create a boolean attribute.
*
* @param databaseId Database ID.
@@ -488,8 +459,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update boolean attribute
- *
* Update a boolean attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -537,8 +506,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create datetime attribute
- *
* Create a date time attribute according to the ISO 8601 standard.
*
* @param databaseId Database ID.
@@ -586,8 +553,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update dateTime attribute
- *
* Update a date time attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -635,8 +600,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create email attribute
- *
* Create an email attribute.
*
* @param databaseId Database ID.
@@ -684,8 +647,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update email attribute
- *
* Update an email attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -733,8 +694,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create enum attribute
- *
* Create an enumeration attribute. The `elements` param acts as a white-list of accepted values for this attribute.
*
* @param databaseId Database ID.
@@ -785,8 +744,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update enum attribute
- *
* Update an enum attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -837,8 +794,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create float attribute
- *
* Create a float attribute. Optionally, minimum and maximum values can be provided.
*
* @param databaseId Database ID.
@@ -892,17 +847,15 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update float attribute
- *
* Update a float attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
* @param key Attribute Key.
* @param required Is attribute required?
+ * @param default Default value for attribute when not provided. Cannot be set when attribute is required.
* @param min Minimum value to enforce on new documents
* @param max Maximum value to enforce on new documents
- * @param default Default value for attribute when not provided. Cannot be set when attribute is required.
* @param newKey New attribute key.
* @return [io.appwrite.models.AttributeFloat]
*/
@@ -913,9 +866,9 @@ class Databases(client: Client) : Service(client) {
collectionId: String,
key: String,
required: Boolean,
- min: Double,
- max: Double,
default: Double? = null,
+ min: Double? = null,
+ max: Double? = null,
newKey: String? = null,
): io.appwrite.models.AttributeFloat {
val apiPath = "/databases/{databaseId}/collections/{collectionId}/attributes/float/{key}"
@@ -947,8 +900,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create integer attribute
- *
* Create an integer attribute. Optionally, minimum and maximum values can be provided.
*
* @param databaseId Database ID.
@@ -1002,17 +953,15 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update integer attribute
- *
* Update an integer attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
* @param collectionId Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).
* @param key Attribute Key.
* @param required Is attribute required?
+ * @param default Default value for attribute when not provided. Cannot be set when attribute is required.
* @param min Minimum value to enforce on new documents
* @param max Maximum value to enforce on new documents
- * @param default Default value for attribute when not provided. Cannot be set when attribute is required.
* @param newKey New attribute key.
* @return [io.appwrite.models.AttributeInteger]
*/
@@ -1023,9 +972,9 @@ class Databases(client: Client) : Service(client) {
collectionId: String,
key: String,
required: Boolean,
- min: Long,
- max: Long,
default: Long? = null,
+ min: Long? = null,
+ max: Long? = null,
newKey: String? = null,
): io.appwrite.models.AttributeInteger {
val apiPath = "/databases/{databaseId}/collections/{collectionId}/attributes/integer/{key}"
@@ -1057,8 +1006,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create IP address attribute
- *
* Create IP address attribute.
*
* @param databaseId Database ID.
@@ -1106,8 +1053,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update IP address attribute
- *
* Update an ip attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -1155,8 +1100,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create relationship attribute
- *
* Create relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
*
* @param databaseId Database ID.
@@ -1210,8 +1153,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create string attribute
- *
* Create a string attribute.
*
* @param databaseId Database ID.
@@ -1265,8 +1206,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update string attribute
- *
* Update a string attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -1317,8 +1256,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create URL attribute
- *
* Create a URL attribute.
*
* @param databaseId Database ID.
@@ -1366,8 +1303,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update URL attribute
- *
* Update an url attribute. Changing the `default` value will not update already existing documents.
*
* @param databaseId Database ID.
@@ -1415,8 +1350,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Get attribute
- *
* Get attribute by ID.
*
* @param databaseId Database ID.
@@ -1438,7 +1371,6 @@ class Databases(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -1450,8 +1382,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Delete attribute
- *
* Deletes an attribute.
*
* @param databaseId Database ID.
@@ -1485,8 +1415,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update relationship attribute
- *
* Update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
*
* @param databaseId Database ID.
@@ -1531,8 +1459,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * List documents
- *
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
*
* @param databaseId Database ID.
@@ -1556,7 +1482,6 @@ class Databases(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.DocumentList = {
io.appwrite.models.DocumentList.from(map = it as Map, nestedType)
@@ -1572,8 +1497,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * List documents
- *
* Get a list of all the user's documents in a given collection. You can use the query params to filter your results.
*
* @param databaseId Database ID.
@@ -1595,8 +1518,6 @@ class Databases(client: Client) : Service(client) {
)
/**
- * Create document
- *
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*
* @param databaseId Database ID.
@@ -1642,8 +1563,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create document
- *
* Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
*
* @param databaseId Database ID.
@@ -1671,8 +1590,6 @@ class Databases(client: Client) : Service(client) {
)
/**
- * Get document
- *
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
*
* @param databaseId Database ID.
@@ -1699,7 +1616,6 @@ class Databases(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Document = {
io.appwrite.models.Document.from(map = it as Map, nestedType)
@@ -1715,8 +1631,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Get document
- *
* Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
*
* @param databaseId Database ID.
@@ -1741,8 +1655,6 @@ class Databases(client: Client) : Service(client) {
)
/**
- * Update document
- *
* Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
*
* @param databaseId Database ID.
@@ -1788,8 +1700,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Update document
- *
* Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
*
* @param databaseId Database ID.
@@ -1817,8 +1727,6 @@ class Databases(client: Client) : Service(client) {
)
/**
- * Delete document
- *
* Delete a document by its unique ID.
*
* @param databaseId Database ID.
@@ -1852,8 +1760,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * List indexes
- *
* List indexes in the collection.
*
* @param databaseId Database ID.
@@ -1876,7 +1782,6 @@ class Databases(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.IndexList = {
io.appwrite.models.IndexList.from(map = it as Map)
@@ -1892,8 +1797,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Create index
- *
* Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.Attributes can be `key`, `fulltext`, and `unique`.
*
* @param databaseId Database ID.
@@ -1941,8 +1844,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Get index
- *
* Get index by ID.
*
* @param databaseId Database ID.
@@ -1964,7 +1865,6 @@ class Databases(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Index = {
io.appwrite.models.Index.from(map = it as Map)
@@ -1980,8 +1880,6 @@ class Databases(client: Client) : Service(client) {
}
/**
- * Delete index
- *
* Delete an index.
*
* @param databaseId Database ID.
diff --git a/src/main/kotlin/io/appwrite/services/Functions.kt b/src/main/kotlin/io/appwrite/services/Functions.kt
index df94e53..e445cbe 100644
--- a/src/main/kotlin/io/appwrite/services/Functions.kt
+++ b/src/main/kotlin/io/appwrite/services/Functions.kt
@@ -16,8 +16,6 @@ import java.io.File
class Functions(client: Client) : Service(client) {
/**
- * List functions
- *
* Get a list of all the project's functions. You can use the query params to filter your results.
*
* @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, enabled, runtime, deployment, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
@@ -37,7 +35,6 @@ class Functions(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.FunctionList = {
io.appwrite.models.FunctionList.from(map = it as Map)
@@ -53,8 +50,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Create function
- *
* Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
*
* @param functionId Function 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.
@@ -150,8 +145,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * List runtimes
- *
* Get a list of all runtimes that are currently active on your instance.
*
* @return [io.appwrite.models.RuntimeList]
@@ -164,7 +157,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.RuntimeList = {
io.appwrite.models.RuntimeList.from(map = it as Map)
@@ -180,8 +172,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * List available function runtime specifications
- *
* List allowed function specifications for this instance.
*
* @return [io.appwrite.models.SpecificationList]
@@ -194,7 +184,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.SpecificationList = {
io.appwrite.models.SpecificationList.from(map = it as Map)
@@ -210,8 +199,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Get function
- *
* Get a function by its unique ID.
*
* @param functionId Function ID.
@@ -227,7 +214,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Function = {
io.appwrite.models.Function.from(map = it as Map)
@@ -243,8 +229,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Update function
- *
* Update function by its unique ID.
*
* @param functionId Function ID.
@@ -328,8 +312,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Delete function
- *
* Delete a function by its unique ID.
*
* @param functionId Function ID.
@@ -357,8 +339,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * List deployments
- *
* Get a list of all the project's code deployments. You can use the query params to filter your results.
*
* @param functionId Function ID.
@@ -381,7 +361,6 @@ class Functions(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.DeploymentList = {
io.appwrite.models.DeploymentList.from(map = it as Map)
@@ -397,8 +376,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Create deployment
- *
* Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).Use the "command" param to set the entrypoint used to execute your code.
*
* @param functionId Function ID.
@@ -448,8 +425,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Get deployment
- *
* Get a code deployment by its unique ID.
*
* @param functionId Function ID.
@@ -468,7 +443,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Deployment = {
io.appwrite.models.Deployment.from(map = it as Map)
@@ -484,8 +458,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Update deployment
- *
* Update the function code deployment ID using the unique function ID. Use this endpoint to switch the code deployment that should be executed by the execution endpoint.
*
* @param functionId Function ID.
@@ -520,8 +492,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Delete deployment
- *
* Delete a code deployment by its unique ID.
*
* @param functionId Function ID.
@@ -552,8 +522,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Rebuild deployment
- *
* Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
*
* @param functionId Function ID.
@@ -588,8 +556,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Cancel deployment
- *
* Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
*
* @param functionId Function ID.
@@ -624,8 +590,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Download deployment
- *
* Get a Deployment's contents by its unique ID. This endpoint supports range requests for partial or streaming file download.
*
* @param functionId Function ID.
@@ -644,7 +608,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -655,8 +618,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * List executions
- *
* Get a list of all the current user function execution logs. You can use the query params to filter your results.
*
* @param functionId Function ID.
@@ -679,7 +640,6 @@ class Functions(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.ExecutionList = {
io.appwrite.models.ExecutionList.from(map = it as Map)
@@ -695,8 +655,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Create execution
- *
* Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
*
* @param functionId Function ID.
@@ -747,8 +705,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Get execution
- *
* Get a function execution log by its unique ID.
*
* @param functionId Function ID.
@@ -767,7 +723,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Execution = {
io.appwrite.models.Execution.from(map = it as Map)
@@ -783,8 +738,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Delete execution
- *
* Delete a function execution by its unique ID.
*
* @param functionId Function ID.
@@ -815,8 +768,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * List variables
- *
* Get a list of all variables of a specific function.
*
* @param functionId Function unique ID.
@@ -832,7 +783,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.VariableList = {
io.appwrite.models.VariableList.from(map = it as Map)
@@ -848,8 +798,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Create variable
- *
* Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
*
* @param functionId Function unique ID.
@@ -887,8 +835,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Get variable
- *
* Get a variable by its unique ID.
*
* @param functionId Function unique ID.
@@ -907,7 +853,6 @@ class Functions(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Variable = {
io.appwrite.models.Variable.from(map = it as Map)
@@ -923,8 +868,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Update variable
- *
* Update variable by its unique ID.
*
* @param functionId Function unique ID.
@@ -966,8 +909,6 @@ class Functions(client: Client) : Service(client) {
}
/**
- * Delete variable
- *
* Delete a variable by its unique ID.
*
* @param functionId Function unique ID.
diff --git a/src/main/kotlin/io/appwrite/services/Graphql.kt b/src/main/kotlin/io/appwrite/services/Graphql.kt
index d8a676c..1e72cd4 100644
--- a/src/main/kotlin/io/appwrite/services/Graphql.kt
+++ b/src/main/kotlin/io/appwrite/services/Graphql.kt
@@ -14,8 +14,6 @@ import java.io.File
class Graphql(client: Client) : Service(client) {
/**
- * GraphQL endpoint
- *
* Execute a GraphQL mutation.
*
* @param query The query or queries to execute.
@@ -48,8 +46,6 @@ class Graphql(client: Client) : Service(client) {
}
/**
- * GraphQL endpoint
- *
* Execute a GraphQL mutation.
*
* @param query The query or queries to execute.
diff --git a/src/main/kotlin/io/appwrite/services/Health.kt b/src/main/kotlin/io/appwrite/services/Health.kt
index a566692..9302782 100644
--- a/src/main/kotlin/io/appwrite/services/Health.kt
+++ b/src/main/kotlin/io/appwrite/services/Health.kt
@@ -14,8 +14,6 @@ import java.io.File
class Health(client: Client) : Service(client) {
/**
- * Get HTTP
- *
* Check the Appwrite HTTP server is up and responsive.
*
* @return [io.appwrite.models.HealthStatus]
@@ -28,7 +26,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -44,8 +41,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get antivirus
- *
* Check the Appwrite Antivirus server is up and connection is successful.
*
* @return [io.appwrite.models.HealthAntivirus]
@@ -58,7 +53,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthAntivirus = {
io.appwrite.models.HealthAntivirus.from(map = it as Map)
@@ -74,8 +68,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get cache
- *
* Check the Appwrite in-memory cache servers are up and connection is successful.
*
* @return [io.appwrite.models.HealthStatus]
@@ -88,7 +80,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -104,8 +95,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get the SSL certificate for a domain
- *
* Get the SSL certificate for a domain
*
* @param domain string
@@ -122,7 +111,6 @@ class Health(client: Client) : Service(client) {
"domain" to domain,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthCertificate = {
io.appwrite.models.HealthCertificate.from(map = it as Map)
@@ -138,8 +126,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get DB
- *
* Check the Appwrite database servers are up and connection is successful.
*
* @return [io.appwrite.models.HealthStatus]
@@ -152,7 +138,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -168,8 +153,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get pubsub
- *
* Check the Appwrite pub-sub servers are up and connection is successful.
*
* @return [io.appwrite.models.HealthStatus]
@@ -182,37 +165,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
- )
- val converter: (Any) -> io.appwrite.models.HealthStatus = {
- io.appwrite.models.HealthStatus.from(map = it as Map)
- }
- return client.call(
- "GET",
- apiPath,
- apiHeaders,
- apiParams,
- responseType = io.appwrite.models.HealthStatus::class.java,
- converter,
- )
- }
-
- /**
- * Get queue
- *
- * Check the Appwrite queue messaging servers are up and connection is successful.
- *
- * @return [io.appwrite.models.HealthStatus]
- */
- @Throws(AppwriteException::class)
- suspend fun getQueue(
- ): io.appwrite.models.HealthStatus {
- val apiPath = "/health/queue"
-
- val apiParams = mutableMapOf(
- )
- val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -228,8 +180,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get builds queue
- *
* Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -246,7 +196,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -262,8 +211,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get certificates queue
- *
* Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -280,7 +227,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -296,8 +242,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get databases queue
- *
* Get the number of database changes that are waiting to be processed in the Appwrite internal queue server.
*
* @param name Queue name for which to check the queue size
@@ -317,7 +261,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -333,8 +276,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get deletes queue
- *
* Get the number of background destructive changes that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -351,7 +292,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -367,8 +307,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get number of failed queue jobs
- *
* Returns the amount of failed jobs in a given queue.
*
* @param name The name of the queue
@@ -388,7 +326,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -404,8 +341,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get functions queue
- *
* Get the number of function executions that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -422,7 +357,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -438,8 +372,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get logs queue
- *
* Get the number of logs that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -456,7 +388,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -472,8 +403,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get mails queue
- *
* Get the number of mails that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -490,7 +419,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -506,8 +434,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get messaging queue
- *
* Get the number of messages that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -524,7 +450,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -540,8 +465,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get migrations queue
- *
* Get the number of migrations that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -558,7 +481,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -574,25 +496,22 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get usage queue
- *
- * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
+ * Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
* @return [io.appwrite.models.HealthQueue]
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun getQueueUsage(
+ suspend fun getQueueStatsResources(
threshold: Long? = null,
): io.appwrite.models.HealthQueue {
- val apiPath = "/health/queue/usage"
+ val apiPath = "/health/queue/stats-resources"
val apiParams = mutableMapOf(
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -608,25 +527,22 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get usage dump queue
- *
- * Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.
+ * Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
* @return [io.appwrite.models.HealthQueue]
*/
@JvmOverloads
@Throws(AppwriteException::class)
- suspend fun getQueueUsageDump(
+ suspend fun getQueueUsage(
threshold: Long? = null,
): io.appwrite.models.HealthQueue {
- val apiPath = "/health/queue/usage-dump"
+ val apiPath = "/health/queue/stats-usage"
val apiParams = mutableMapOf(
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -642,8 +558,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get webhooks queue
- *
* Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.
*
* @param threshold Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
@@ -660,7 +574,6 @@ class Health(client: Client) : Service(client) {
"threshold" to threshold,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthQueue = {
io.appwrite.models.HealthQueue.from(map = it as Map)
@@ -676,8 +589,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get storage
- *
* Check the Appwrite storage device is up and connection is successful.
*
* @return [io.appwrite.models.HealthStatus]
@@ -690,7 +601,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -706,8 +616,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get local storage
- *
* Check the Appwrite local storage device is up and connection is successful.
*
* @return [io.appwrite.models.HealthStatus]
@@ -720,7 +628,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthStatus = {
io.appwrite.models.HealthStatus.from(map = it as Map)
@@ -736,8 +643,6 @@ class Health(client: Client) : Service(client) {
}
/**
- * Get time
- *
* Check the Appwrite server time is synced with Google remote NTP server. We use this technology to smoothly handle leap seconds with no disruptive events. The [Network Time Protocol](https://en.wikipedia.org/wiki/Network_Time_Protocol) (NTP) is used by hundreds of millions of computers and devices to synchronize their clocks over the Internet. If your computer sets its own clock, it likely uses NTP.
*
* @return [io.appwrite.models.HealthTime]
@@ -750,7 +655,6 @@ class Health(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.HealthTime = {
io.appwrite.models.HealthTime.from(map = it as Map)
diff --git a/src/main/kotlin/io/appwrite/services/Locale.kt b/src/main/kotlin/io/appwrite/services/Locale.kt
index 170fd8b..28049e4 100644
--- a/src/main/kotlin/io/appwrite/services/Locale.kt
+++ b/src/main/kotlin/io/appwrite/services/Locale.kt
@@ -14,8 +14,6 @@ import java.io.File
class Locale(client: Client) : Service(client) {
/**
- * Get user locale
- *
* Get the current user location based on IP. Returns an object with user country code, country name, continent name, continent code, ip address and suggested currency. You can use the locale header to get the data in a supported language.([IP Geolocation by DB-IP](https://db-ip.com))
*
* @return [io.appwrite.models.Locale]
@@ -28,7 +26,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Locale = {
io.appwrite.models.Locale.from(map = it as Map)
@@ -44,8 +41,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List locale codes
- *
* List of all locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
*
* @return [io.appwrite.models.LocaleCodeList]
@@ -58,7 +53,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LocaleCodeList = {
io.appwrite.models.LocaleCodeList.from(map = it as Map)
@@ -74,8 +68,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List continents
- *
* List of all continents. You can use the locale header to get the data in a supported language.
*
* @return [io.appwrite.models.ContinentList]
@@ -88,7 +80,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.ContinentList = {
io.appwrite.models.ContinentList.from(map = it as Map)
@@ -104,8 +95,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List countries
- *
* List of all countries. You can use the locale header to get the data in a supported language.
*
* @return [io.appwrite.models.CountryList]
@@ -118,7 +107,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.CountryList = {
io.appwrite.models.CountryList.from(map = it as Map)
@@ -134,8 +122,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List EU countries
- *
* List of all countries that are currently members of the EU. You can use the locale header to get the data in a supported language.
*
* @return [io.appwrite.models.CountryList]
@@ -148,7 +134,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.CountryList = {
io.appwrite.models.CountryList.from(map = it as Map)
@@ -164,8 +149,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List countries phone codes
- *
* List of all countries phone codes. You can use the locale header to get the data in a supported language.
*
* @return [io.appwrite.models.PhoneList]
@@ -178,7 +161,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.PhoneList = {
io.appwrite.models.PhoneList.from(map = it as Map)
@@ -194,8 +176,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List currencies
- *
* List of all currencies, including currency symbol, name, plural, and decimal digits for all major and minor currencies. You can use the locale header to get the data in a supported language.
*
* @return [io.appwrite.models.CurrencyList]
@@ -208,7 +188,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.CurrencyList = {
io.appwrite.models.CurrencyList.from(map = it as Map)
@@ -224,8 +203,6 @@ class Locale(client: Client) : Service(client) {
}
/**
- * List languages
- *
* List of all languages classified by ISO 639-1 including 2-letter code, name in English, and name in the respective language.
*
* @return [io.appwrite.models.LanguageList]
@@ -238,7 +215,6 @@ class Locale(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LanguageList = {
io.appwrite.models.LanguageList.from(map = it as Map)
diff --git a/src/main/kotlin/io/appwrite/services/Messaging.kt b/src/main/kotlin/io/appwrite/services/Messaging.kt
index b1eac2a..f8e19d5 100644
--- a/src/main/kotlin/io/appwrite/services/Messaging.kt
+++ b/src/main/kotlin/io/appwrite/services/Messaging.kt
@@ -14,8 +14,6 @@ import java.io.File
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
@@ -35,7 +33,6 @@ class Messaging(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MessageList = {
io.appwrite.models.MessageList.from(map = it as Map)
@@ -51,8 +48,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create 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.
@@ -118,9 +113,7 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update email
- *
- * Update an email message by its unique ID.
+ * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -185,8 +178,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create 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.
@@ -273,9 +264,7 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update push notification
- *
- * Update a push notification by its unique ID.
+ * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -361,8 +350,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create 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.
@@ -413,9 +400,7 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update SMS
- *
- * Update an SMS message by its unique ID.
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
*
* @param messageId Message ID.
* @param topics List of Topic IDs.
@@ -465,8 +450,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get message
- *
* Get a message by its unique ID.
*
* @param messageId Message ID.
@@ -482,7 +465,6 @@ class Messaging(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Message = {
io.appwrite.models.Message.from(map = it as Map)
@@ -498,8 +480,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete message
- *
* Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
*
* @param messageId Message ID.
@@ -527,8 +507,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List message logs
- *
* Get the message activity logs listed by its unique ID.
*
* @param messageId Message ID.
@@ -548,7 +526,6 @@ class Messaging(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -564,8 +541,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List message targets
- *
* Get a list of the targets associated with a message.
*
* @param messageId Message ID.
@@ -585,7 +560,6 @@ class Messaging(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.TargetList = {
io.appwrite.models.TargetList.from(map = it as Map)
@@ -601,8 +575,6 @@ 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
@@ -622,7 +594,6 @@ class Messaging(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.ProviderList = {
io.appwrite.models.ProviderList.from(map = it as Map)
@@ -638,8 +609,6 @@ 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.
@@ -693,8 +662,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update APNS provider
- *
* Update a Apple Push Notification service provider by its unique ID.
*
* @param providerId Provider ID.
@@ -748,8 +715,6 @@ 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.
@@ -791,8 +756,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update FCM provider
- *
* Update a Firebase Cloud Messaging provider by its unique ID.
*
* @param providerId Provider ID.
@@ -834,8 +797,6 @@ 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.
@@ -895,8 +856,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Mailgun provider
- *
* Update a Mailgun provider by its unique ID.
*
* @param providerId Provider ID.
@@ -956,8 +915,6 @@ 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.
@@ -1005,8 +962,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Msg91 provider
- *
* Update a MSG91 provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1054,8 +1009,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create Sendgrid provider
- *
* Create a new Sendgrid 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.
@@ -1109,8 +1062,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Sendgrid provider
- *
* Update a Sendgrid provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1164,8 +1115,6 @@ 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.
@@ -1237,8 +1186,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update SMTP provider
- *
* Update a SMTP provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1310,8 +1257,6 @@ 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.
@@ -1359,8 +1304,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Telesign provider
- *
* Update a Telesign provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1408,8 +1351,6 @@ 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.
@@ -1457,8 +1398,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Textmagic provider
- *
* Update a Textmagic provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1506,8 +1445,6 @@ 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.
@@ -1555,8 +1492,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Twilio provider
- *
* Update a Twilio provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1604,8 +1539,6 @@ 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.
@@ -1653,8 +1586,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update Vonage provider
- *
* Update a Vonage provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1702,8 +1633,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get provider
- *
* Get a provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1719,7 +1648,6 @@ class Messaging(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Provider = {
io.appwrite.models.Provider.from(map = it as Map)
@@ -1735,8 +1663,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete provider
- *
* Delete a provider by its unique ID.
*
* @param providerId Provider ID.
@@ -1764,8 +1690,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List provider logs
- *
* Get the provider activity logs listed by its unique ID.
*
* @param providerId Provider ID.
@@ -1785,7 +1709,6 @@ class Messaging(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -1801,8 +1724,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List subscriber logs
- *
* Get the subscriber activity logs listed by its unique ID.
*
* @param subscriberId Subscriber ID.
@@ -1822,7 +1743,6 @@ class Messaging(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -1838,8 +1758,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * 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
@@ -1859,7 +1777,6 @@ class Messaging(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.TopicList = {
io.appwrite.models.TopicList.from(map = it as Map)
@@ -1875,8 +1792,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create topic
- *
* Create a new topic.
*
* @param topicId Topic ID. Choose a custom Topic ID or a new Topic ID.
@@ -1915,8 +1830,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get topic
- *
* Get a topic by its unique ID.
*
* @param topicId Topic ID.
@@ -1932,7 +1845,6 @@ class Messaging(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Topic = {
io.appwrite.models.Topic.from(map = it as Map)
@@ -1948,8 +1860,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Update topic
- *
* Update a topic by its unique ID.
*
* @param topicId Topic ID.
@@ -1988,8 +1898,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete topic
- *
* Delete a topic by its unique ID.
*
* @param topicId Topic ID.
@@ -2017,8 +1925,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List topic logs
- *
* Get the topic activity logs listed by its unique ID.
*
* @param topicId Topic ID.
@@ -2038,7 +1944,6 @@ class Messaging(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -2054,8 +1959,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * List subscribers
- *
* Get a list of all subscribers from the current Appwrite project.
*
* @param topicId Topic ID. The topic ID subscribed to.
@@ -2078,7 +1981,6 @@ class Messaging(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.SubscriberList = {
io.appwrite.models.SubscriberList.from(map = it as Map)
@@ -2094,8 +1996,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Create subscriber
- *
* Create a new subscriber.
*
* @param topicId Topic ID. The topic ID to subscribe to.
@@ -2133,8 +2033,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Get subscriber
- *
* Get a subscriber by its unique ID.
*
* @param topicId Topic ID. The topic ID subscribed to.
@@ -2153,7 +2051,6 @@ class Messaging(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Subscriber = {
io.appwrite.models.Subscriber.from(map = it as Map)
@@ -2169,8 +2066,6 @@ class Messaging(client: Client) : Service(client) {
}
/**
- * Delete subscriber
- *
* Delete a subscriber by its unique ID.
*
* @param topicId Topic ID. The topic ID subscribed to.
diff --git a/src/main/kotlin/io/appwrite/services/Storage.kt b/src/main/kotlin/io/appwrite/services/Storage.kt
index 5a10935..560378a 100644
--- a/src/main/kotlin/io/appwrite/services/Storage.kt
+++ b/src/main/kotlin/io/appwrite/services/Storage.kt
@@ -16,8 +16,6 @@ import java.io.File
class Storage(client: Client) : Service(client) {
/**
- * List buckets
- *
* Get a list of all the storage buckets. You can use the query params to filter your results.
*
* @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: enabled, name, fileSecurity, maximumFileSize, encryption, antivirus
@@ -37,7 +35,6 @@ class Storage(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.BucketList = {
io.appwrite.models.BucketList.from(map = it as Map)
@@ -53,8 +50,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Create bucket
- *
* Create a new storage bucket.
*
* @param bucketId Unique 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.
@@ -114,8 +109,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Get bucket
- *
* Get a storage bucket by its unique ID. This endpoint response returns a JSON object with the storage bucket metadata.
*
* @param bucketId Bucket unique ID.
@@ -131,7 +124,6 @@ class Storage(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Bucket = {
io.appwrite.models.Bucket.from(map = it as Map)
@@ -147,8 +139,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Update bucket
- *
* Update a storage bucket by its unique ID.
*
* @param bucketId Bucket unique ID.
@@ -208,8 +198,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Delete bucket
- *
* Delete a storage bucket by its unique ID.
*
* @param bucketId Bucket unique ID.
@@ -237,8 +225,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * List files
- *
* Get a list of all the user files. You can use the query params to filter your results.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -261,7 +247,6 @@ class Storage(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.FileList = {
io.appwrite.models.FileList.from(map = it as Map)
@@ -277,8 +262,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Create file
- *
* Create a new file. Before using this route, you should create a new bucket resource using either a [server integration](https://appwrite.io/docs/server/storage#storageCreateBucket) API or directly from your Appwrite console.Larger files should be uploaded using multiple requests with the [content-range](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Range) header to send a partial request with a maximum supported chunk of `5MB`. The `content-range` header values should always be in bytes.When the first request is sent, the server will return the **File** object, and the subsequent part request must include the file's **id** in `x-appwrite-id` header to allow the server to know that the partial upload is for the existing file and not for a new one.If you're creating a new file using one of the Appwrite SDKs, all the chunking logic will be managed by the SDK internally.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -325,8 +308,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Get file
- *
* Get a file by its unique ID. This endpoint response returns a JSON object with the file metadata.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -345,7 +326,6 @@ class Storage(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.File = {
io.appwrite.models.File.from(map = it as Map)
@@ -361,8 +341,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Update file
- *
* Update a file by its unique ID. Only users with write permissions have access to update this resource.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -404,8 +382,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Delete file
- *
* Delete a file by its unique ID. Only users with write permissions have access to delete this resource.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -436,8 +412,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Get file for download
- *
* Get a file content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
*
* @param bucketId Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -456,7 +430,6 @@ class Storage(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -467,8 +440,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Get file preview
- *
* Get a file preview image. Currently, this method supports preview for image files (jpg, png, and gif), other supported formats, like pdf, docs, slides, and spreadsheets, will return the file icon image. You can also pass query string arguments for cutting and resizing your preview image. Preview is supported only for image files smaller than 10MB.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -521,7 +492,6 @@ class Storage(client: Client) : Service(client) {
"output" to output,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
@@ -532,8 +502,6 @@ class Storage(client: Client) : Service(client) {
}
/**
- * Get file for view
- *
* Get a file content by its unique ID. This endpoint is similar to the download method but returns with no 'Content-Disposition: attachment' header.
*
* @param bucketId Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).
@@ -552,7 +520,6 @@ class Storage(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
return client.call(
"GET",
diff --git a/src/main/kotlin/io/appwrite/services/Teams.kt b/src/main/kotlin/io/appwrite/services/Teams.kt
index aa355dc..6349dcb 100644
--- a/src/main/kotlin/io/appwrite/services/Teams.kt
+++ b/src/main/kotlin/io/appwrite/services/Teams.kt
@@ -14,8 +14,6 @@ import java.io.File
class Teams(client: Client) : Service(client) {
/**
- * List teams
- *
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
*
* @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, total, billingPlan
@@ -36,7 +34,6 @@ class Teams(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.TeamList = {
io.appwrite.models.TeamList.from(map = it as Map, nestedType)
@@ -52,8 +49,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * List teams
- *
* Get a list of all the teams in which the current user is a member. You can use the parameters to filter your results.
*
* @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, total, billingPlan
@@ -72,8 +67,6 @@ class Teams(client: Client) : Service(client) {
)
/**
- * Create team
- *
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
*
* @param teamId Team 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.
@@ -113,8 +106,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Create team
- *
* Create a new team. The user who creates the team will automatically be assigned as the owner of the team. Only the users with the owner role can invite new members, add new owners and delete or update the team.
*
* @param teamId Team 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.
@@ -136,8 +127,6 @@ class Teams(client: Client) : Service(client) {
)
/**
- * Get team
- *
* Get a team by its ID. All team members have read access for this resource.
*
* @param teamId Team ID.
@@ -154,7 +143,6 @@ class Teams(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Team = {
io.appwrite.models.Team.from(map = it as Map, nestedType)
@@ -170,8 +158,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Get team
- *
* Get a team by its ID. All team members have read access for this resource.
*
* @param teamId Team ID.
@@ -186,8 +172,6 @@ class Teams(client: Client) : Service(client) {
)
/**
- * Update name
- *
* Update the team's name by its unique ID.
*
* @param teamId Team ID.
@@ -223,8 +207,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Update name
- *
* Update the team's name by its unique ID.
*
* @param teamId Team ID.
@@ -242,8 +224,6 @@ class Teams(client: Client) : Service(client) {
)
/**
- * Delete team
- *
* Delete a team using its ID. Only team members with the owner role can delete the team.
*
* @param teamId Team ID.
@@ -271,8 +251,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * List team memberships
- *
* Use this endpoint to list a team's members using the team's ID. All team members have read access to this endpoint. Hide sensitive attributes from the response by toggling membership privacy in the Console.
*
* @param teamId Team ID.
@@ -295,7 +273,6 @@ class Teams(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MembershipList = {
io.appwrite.models.MembershipList.from(map = it as Map)
@@ -311,8 +288,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Create team membership
- *
* Invite a new member to join your team. Provide an ID for existing users, or invite unregistered users using an email or phone number. If initiated from a Client SDK, Appwrite will send an email or sms with a link to join the team to the invited user, and an account will be created for them if one doesn't exist. If initiated from a Server SDK, the new member will be added automatically to the team.You only need to provide one of a user ID, email, or phone number. Appwrite will prioritize accepting the user ID > email > phone number if you provide more than one of these parameters.Use the `url` parameter to redirect the user from the invitation email to your app. After the user is redirected, use the [Update Team Membership Status](https://appwrite.io/docs/references/cloud/client-web/teams#updateMembershipStatus) endpoint to allow the user to accept the invitation to the team. Please note that to avoid a [Redirect Attack](https://github.com/OWASP/CheatSheetSeries/blob/master/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.md) Appwrite will accept the only redirect URLs under the domains you have added as a platform on the Appwrite Console.
*
* @param teamId Team ID.
@@ -363,8 +338,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Get team membership
- *
* Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
*
* @param teamId Team ID.
@@ -383,7 +356,6 @@ class Teams(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Membership = {
io.appwrite.models.Membership.from(map = it as Map)
@@ -399,8 +371,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Update membership
- *
* Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appwrite.io/docs/permissions).
*
* @param teamId Team ID.
@@ -438,8 +408,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Delete team membership
- *
* This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
*
* @param teamId Team ID.
@@ -470,8 +438,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Update team membership status
- *
* Use this endpoint to allow a user to accept an invitation to join a team after being redirected back to your app from the invitation email received by the user.If the request is successful, a session for the user is automatically created.
*
* @param teamId Team ID.
@@ -512,8 +478,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Get team preferences
- *
* Get the team's shared preferences by its unique ID. If a preference doesn't need to be shared by all team members, prefer storing them in [user preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
*
* @param teamId Team ID.
@@ -530,7 +494,6 @@ class Teams(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Preferences = {
io.appwrite.models.Preferences.from(map = it as Map, nestedType)
@@ -546,8 +509,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Get team preferences
- *
* Get the team's shared preferences by its unique ID. If a preference doesn't need to be shared by all team members, prefer storing them in [user preferences](https://appwrite.io/docs/references/cloud/client-web/account#getPrefs).
*
* @param teamId Team ID.
@@ -562,8 +523,6 @@ class Teams(client: Client) : Service(client) {
)
/**
- * Update preferences
- *
* Update the team's preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
*
* @param teamId Team ID.
@@ -599,8 +558,6 @@ class Teams(client: Client) : Service(client) {
}
/**
- * Update preferences
- *
* Update the team's preferences by its unique ID. The object you pass is stored as is and replaces any previous value. The maximum allowed prefs size is 64kB and throws an error if exceeded.
*
* @param teamId Team ID.
diff --git a/src/main/kotlin/io/appwrite/services/Users.kt b/src/main/kotlin/io/appwrite/services/Users.kt
index 00d266b..600b182 100644
--- a/src/main/kotlin/io/appwrite/services/Users.kt
+++ b/src/main/kotlin/io/appwrite/services/Users.kt
@@ -14,8 +14,6 @@ import java.io.File
class Users(client: Client) : Service(client) {
/**
- * List users
- *
* Get a list of all the project's users. You can use the query params to filter your results.
*
* @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, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
@@ -36,7 +34,6 @@ class Users(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.UserList = {
io.appwrite.models.UserList.from(map = it as Map, nestedType)
@@ -52,8 +49,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * List users
- *
* Get a list of all the project's users. You can use the query params to filter your results.
*
* @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, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels
@@ -72,8 +67,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user
- *
* Create a new user.
*
* @param userId User 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.
@@ -119,8 +112,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user
- *
* Create a new user.
*
* @param userId User 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.
@@ -148,8 +139,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with Argon2 password
- *
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -192,8 +181,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with Argon2 password
- *
* Create a new user. Password provided must be hashed with the [Argon2](https://en.wikipedia.org/wiki/Argon2) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -218,8 +205,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with bcrypt password
- *
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -262,8 +247,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with bcrypt password
- *
* Create a new user. Password provided must be hashed with the [Bcrypt](https://en.wikipedia.org/wiki/Bcrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -288,8 +271,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * List identities
- *
* Get identities for all users.
*
* @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, provider, providerUid, providerEmail, providerAccessTokenExpiry
@@ -309,7 +290,6 @@ class Users(client: Client) : Service(client) {
"search" to search,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.IdentityList = {
io.appwrite.models.IdentityList.from(map = it as Map)
@@ -325,8 +305,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Delete identity
- *
* Delete an identity by its unique ID.
*
* @param identityId Identity ID.
@@ -354,8 +332,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with MD5 password
- *
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -398,8 +374,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with MD5 password
- *
* Create a new user. Password provided must be hashed with the [MD5](https://en.wikipedia.org/wiki/MD5) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -424,8 +398,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with PHPass password
- *
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User ID. Choose a custom ID or pass the string `ID.unique()`to auto generate it. 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.
@@ -468,8 +440,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with PHPass password
- *
* Create a new user. Password provided must be hashed with the [PHPass](https://www.openwall.com/phpass/) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User ID. Choose a custom ID or pass the string `ID.unique()`to auto generate it. 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.
@@ -494,8 +464,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with Scrypt password
- *
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -553,8 +521,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with Scrypt password
- *
* Create a new user. Password provided must be hashed with the [Scrypt](https://github.com/Tarsnap/scrypt) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -594,8 +560,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with Scrypt modified password
- *
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -647,8 +611,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with Scrypt modified password
- *
* Create a new user. Password provided must be hashed with the [Scrypt Modified](https://gist.github.com/Meldiron/eecf84a0225eccb5a378d45bb27462cc) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -682,8 +644,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user with SHA password
- *
* Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -729,8 +689,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user with SHA password
- *
* Create a new user. Password provided must be hashed with the [SHA](https://en.wikipedia.org/wiki/Secure_Hash_Algorithm) algorithm. Use the [POST /users](https://appwrite.io/docs/server/users#usersCreate) endpoint to create users with a plain text password.
*
* @param userId User 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.
@@ -758,8 +716,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Get user
- *
* Get a user by its unique ID.
*
* @param userId User ID.
@@ -776,7 +732,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.User = {
io.appwrite.models.User.from(map = it as Map, nestedType)
@@ -792,8 +747,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Get user
- *
* Get a user by its unique ID.
*
* @param userId User ID.
@@ -808,8 +761,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Delete user
- *
* Delete a user by its unique ID, thereby releasing it's ID. Since ID is released and can be reused, all user-related resources like documents or storage files should be deleted before user deletion. If you want to keep ID reserved, use the [updateStatus](https://appwrite.io/docs/server/users#usersUpdateStatus) endpoint instead.
*
* @param userId User ID.
@@ -837,8 +788,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update email
- *
* Update the user email by its unique ID.
*
* @param userId User ID.
@@ -874,8 +823,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update email
- *
* Update the user email by its unique ID.
*
* @param userId User ID.
@@ -893,8 +840,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Create user JWT
- *
* Use this endpoint to create a JSON Web Token for user by its unique ID. You can use the resulting JWT to authenticate on behalf of the user. The JWT secret will become invalid if the session it uses gets deleted.
*
* @param userId User ID.
@@ -933,8 +878,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user labels
- *
* Update the user labels by its unique ID. Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appwrite.io/docs/permissions) for more info.
*
* @param userId User ID.
@@ -970,8 +913,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user labels
- *
* Update the user labels by its unique ID. Labels can be used to grant access to resources. While teams are a way for user's to share access to a resource, labels can be defined by the developer to grant access without an invitation. See the [Permissions docs](https://appwrite.io/docs/permissions) for more info.
*
* @param userId User ID.
@@ -989,8 +930,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * List user logs
- *
* Get the user activity logs list by its unique ID.
*
* @param userId User ID.
@@ -1010,7 +949,6 @@ class Users(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.LogList = {
io.appwrite.models.LogList.from(map = it as Map)
@@ -1026,8 +964,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * List user memberships
- *
* Get the user membership list by its unique ID.
*
* @param userId User ID.
@@ -1043,7 +979,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MembershipList = {
io.appwrite.models.MembershipList.from(map = it as Map)
@@ -1059,8 +994,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update MFA
- *
* Enable or disable MFA on a user account.
*
* @param userId User ID.
@@ -1096,8 +1029,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update MFA
- *
* Enable or disable MFA on a user account.
*
* @param userId User ID.
@@ -1115,8 +1046,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Delete authenticator
- *
* Delete an authenticator app.
*
* @param userId User ID.
@@ -1147,8 +1076,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * List factors
- *
* List the factors available on the account to be used as a MFA challange.
*
* @param userId User ID.
@@ -1164,7 +1091,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MfaFactors = {
io.appwrite.models.MfaFactors.from(map = it as Map)
@@ -1180,8 +1106,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Get MFA recovery codes
- *
* Get recovery codes that can be used as backup for MFA flow by User ID. Before getting codes, they must be generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
*
* @param userId User ID.
@@ -1197,7 +1121,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.MfaRecoveryCodes = {
io.appwrite.models.MfaRecoveryCodes.from(map = it as Map)
@@ -1213,8 +1136,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Regenerate MFA recovery codes
- *
* Regenerate recovery codes that can be used as backup for MFA flow by User ID. Before regenerating codes, they must be first generated using [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes) method.
*
* @param userId User ID.
@@ -1246,8 +1167,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create MFA recovery codes
- *
* Generate recovery codes used as backup for MFA flow for User ID. Recovery codes can be used as a MFA verification type in [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge) method by client SDK.
*
* @param userId User ID.
@@ -1279,8 +1198,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update name
- *
* Update the user name by its unique ID.
*
* @param userId User ID.
@@ -1316,8 +1233,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update name
- *
* Update the user name by its unique ID.
*
* @param userId User ID.
@@ -1335,8 +1250,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Update password
- *
* Update the user password by its unique ID.
*
* @param userId User ID.
@@ -1372,8 +1285,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update password
- *
* Update the user password by its unique ID.
*
* @param userId User ID.
@@ -1391,8 +1302,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Update phone
- *
* Update the user phone by its unique ID.
*
* @param userId User ID.
@@ -1428,8 +1337,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update phone
- *
* Update the user phone by its unique ID.
*
* @param userId User ID.
@@ -1447,8 +1354,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Get user preferences
- *
* Get the user preferences by its unique ID.
*
* @param userId User ID.
@@ -1465,7 +1370,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Preferences = {
io.appwrite.models.Preferences.from(map = it as Map, nestedType)
@@ -1481,8 +1385,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Get user preferences
- *
* Get the user preferences by its unique ID.
*
* @param userId User ID.
@@ -1497,8 +1399,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Update user preferences
- *
* Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
*
* @param userId User ID.
@@ -1534,8 +1434,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user preferences
- *
* Update the user preferences by its unique ID. The object you pass is stored as is, and replaces any previous value. The maximum allowed prefs size is 64kB and throws error if exceeded.
*
* @param userId User ID.
@@ -1553,8 +1451,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * List user sessions
- *
* Get the user sessions list by its unique ID.
*
* @param userId User ID.
@@ -1570,7 +1466,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.SessionList = {
io.appwrite.models.SessionList.from(map = it as Map)
@@ -1586,8 +1481,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create session
- *
* Creates a session for a user. Returns an immediately usable session object.If you want to generate a token for a custom authentication flow, use the [POST /users/{userId}/tokens](https://appwrite.io/docs/server/users#createToken) endpoint.
*
* @param userId User 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.
@@ -1619,8 +1512,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Delete user sessions
- *
* Delete all user's sessions by using the user's unique ID.
*
* @param userId User ID.
@@ -1648,8 +1539,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Delete user session
- *
* Delete a user sessions by its unique ID.
*
* @param userId User ID.
@@ -1680,8 +1569,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user status
- *
* Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.
*
* @param userId User ID.
@@ -1717,8 +1604,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user status
- *
* Update the user status by its unique ID. Use this endpoint as an alternative to deleting a user if you want to keep user's ID reserved.
*
* @param userId User ID.
@@ -1736,8 +1621,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * List user targets
- *
* List the messaging targets that are associated with a user.
*
* @param userId User ID.
@@ -1757,7 +1640,6 @@ class Users(client: Client) : Service(client) {
"queries" to queries,
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.TargetList = {
io.appwrite.models.TargetList.from(map = it as Map)
@@ -1773,8 +1655,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create user target
- *
* Create a messaging target.
*
* @param userId User ID.
@@ -1822,8 +1702,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Get user target
- *
* Get a user's push notification target by ID.
*
* @param userId User ID.
@@ -1842,7 +1720,6 @@ class Users(client: Client) : Service(client) {
val apiParams = mutableMapOf(
)
val apiHeaders = mutableMapOf(
- "content-type" to "application/json",
)
val converter: (Any) -> io.appwrite.models.Target = {
io.appwrite.models.Target.from(map = it as Map)
@@ -1858,8 +1735,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update user target
- *
* Update a messaging target.
*
* @param userId User ID.
@@ -1904,8 +1779,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Delete user target
- *
* Delete a messaging target.
*
* @param userId User ID.
@@ -1936,8 +1809,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Create token
- *
* Returns a token with a secret key for creating a session. Use the user ID and secret and submit a request to the [PUT /account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession) endpoint to complete the login process.
*
* @param userId User ID.
@@ -1976,8 +1847,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update email verification
- *
* Update the user email verification status by its unique ID.
*
* @param userId User ID.
@@ -2013,8 +1882,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update email verification
- *
* Update the user email verification status by its unique ID.
*
* @param userId User ID.
@@ -2032,8 +1899,6 @@ class Users(client: Client) : Service(client) {
)
/**
- * Update phone verification
- *
* Update the user phone verification status by its unique ID.
*
* @param userId User ID.
@@ -2069,8 +1934,6 @@ class Users(client: Client) : Service(client) {
}
/**
- * Update phone verification
- *
* Update the user phone verification status by its unique ID.
*
* @param userId User ID.