Add 1.8.x support

This commit is contained in:
Jake Barnby
2025-08-23 20:09:11 +12:00
parent 07bf470d9c
commit 0542a8a638
2 changed files with 13 additions and 4 deletions
@@ -37,6 +37,12 @@ data class Execution(
@SerializedName("functionId")
val functionId: String,
/**
* Function's deployment ID used to create the execution.
*/
@SerializedName("deploymentId")
val deploymentId: String,
/**
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
*/
@@ -116,6 +122,7 @@ data class Execution(
"\$updatedAt" to updatedAt as Any,
"\$permissions" to permissions as Any,
"functionId" to functionId as Any,
"deploymentId" to deploymentId as Any,
"trigger" to trigger as Any,
"status" to status as Any,
"requestMethod" to requestMethod as Any,
@@ -141,6 +148,7 @@ data class Execution(
updatedAt = map["\$updatedAt"] as String,
permissions = map["\$permissions"] as List<String>,
functionId = map["functionId"] as String,
deploymentId = map["deploymentId"] as String,
trigger = map["trigger"] as String,
status = map["status"] as String,
requestMethod = map["requestMethod"] as String,
@@ -1828,11 +1828,12 @@ class Account(client: Client) : Service(client) {
/**
* 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.
* Sends the user an email with a secret key for creating a session. If the email address has never been used, a **new account is created** using the provided `userId`. Otherwise, if the email address is already attached to an account, the **user ID is ignored**. Then, the user will receive an email with the one-time password. 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.
* @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. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.
* @param email User email.
* @param phrase Toggle for security phrase. If enabled, email will be send with a randomly generated phrase and the phrase will also be included in the response. Confirming phrases match increases the security of your authentication flow.
* @return [io.appwrite.models.Token]
@@ -1874,7 +1875,7 @@ class Account(client: Client) : Service(client) {
* 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.
* @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. If the email address has never been used, a new account is created using the provided userId. Otherwise, if the email address is already attached to an account, the user ID is ignored.
* @param email User email.
* @param url URL to redirect the user back to your app from the magic URL login. 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.
* @param phrase Toggle for security phrase. If enabled, email will be send with a randomly generated phrase and the phrase will also be included in the response. Confirming phrases match increases the security of your authentication flow.
@@ -1994,7 +1995,7 @@ class Account(client: Client) : Service(client) {
*
* 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.
* @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. If the phone number has never been used, a new account is created using the provided userId. Otherwise, if the phone number is already attached to an account, the user ID is ignored.
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
* @return [io.appwrite.models.Token]
*/