Skip to content

Commit 0542a8a

Browse files
committed
Add 1.8.x support
1 parent 07bf470 commit 0542a8a

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

library/src/main/java/io/appwrite/models/Execution.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ data class Execution(
3737
@SerializedName("functionId")
3838
val functionId: String,
3939

40+
/**
41+
* Function's deployment ID used to create the execution.
42+
*/
43+
@SerializedName("deploymentId")
44+
val deploymentId: String,
45+
4046
/**
4147
* The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
4248
*/
@@ -116,6 +122,7 @@ data class Execution(
116122
"\$updatedAt" to updatedAt as Any,
117123
"\$permissions" to permissions as Any,
118124
"functionId" to functionId as Any,
125+
"deploymentId" to deploymentId as Any,
119126
"trigger" to trigger as Any,
120127
"status" to status as Any,
121128
"requestMethod" to requestMethod as Any,
@@ -141,6 +148,7 @@ data class Execution(
141148
updatedAt = map["\$updatedAt"] as String,
142149
permissions = map["\$permissions"] as List<String>,
143150
functionId = map["functionId"] as String,
151+
deploymentId = map["deploymentId"] as String,
144152
trigger = map["trigger"] as String,
145153
status = map["status"] as String,
146154
requestMethod = map["requestMethod"] as String,

library/src/main/java/io/appwrite/services/Account.kt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,11 +1828,12 @@ class Account(client: Client) : Service(client) {
18281828

18291829

18301830
/**
1831-
* 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.
1831+
* 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.
18321832
*
18331833
* 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).
1834+
*
18341835
*
1835-
* @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.
1836+
* @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.
18361837
* @param email User email.
18371838
* @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.
18381839
* @return [io.appwrite.models.Token]
@@ -1874,7 +1875,7 @@ class Account(client: Client) : Service(client) {
18741875
* 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).
18751876
*
18761877
*
1877-
* @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.
1878+
* @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.
18781879
* @param email User email.
18791880
* @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.
18801881
* @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) {
19941995
*
19951996
* 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).
19961997
*
1997-
* @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.
1998+
* @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.
19981999
* @param phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
19992000
* @return [io.appwrite.models.Token]
20002001
*/

0 commit comments

Comments
 (0)