Skip to content

Commit 077a539

Browse files
committed
Add 1.8.x support
1 parent 1c14340 commit 077a539

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

lib/appwrite/models/execution.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ class Execution
88
attr_reader :updated_at
99
attr_reader :permissions
1010
attr_reader :function_id
11+
attr_reader :deployment_id
1112
attr_reader :trigger
1213
attr_reader :status
1314
attr_reader :request_method
@@ -27,6 +28,7 @@ def initialize(
2728
updated_at:,
2829
permissions:,
2930
function_id:,
31+
deployment_id:,
3032
trigger:,
3133
status:,
3234
request_method:,
@@ -45,6 +47,7 @@ def initialize(
4547
@updated_at = updated_at
4648
@permissions = permissions
4749
@function_id = function_id
50+
@deployment_id = deployment_id
4851
@trigger = trigger
4952
@status = status
5053
@request_method = request_method
@@ -66,6 +69,7 @@ def self.from(map:)
6669
updated_at: map["$updatedAt"],
6770
permissions: map["$permissions"],
6871
function_id: map["functionId"],
72+
deployment_id: map["deploymentId"],
6973
trigger: map["trigger"],
7074
status: map["status"],
7175
request_method: map["requestMethod"],
@@ -88,6 +92,7 @@ def to_map
8892
"$updatedAt": @updated_at,
8993
"$permissions": @permissions,
9094
"functionId": @function_id,
95+
"deploymentId": @deployment_id,
9196
"trigger": @trigger,
9297
"status": @status,
9398
"requestMethod": @request_method,

lib/appwrite/services/account.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,17 +1454,21 @@ def update_status()
14541454

14551455

14561456
# Sends the user an email with a secret key for creating a session. If the
1457-
# provided user ID has not be registered, a new user will be created. Use the
1458-
# returned user ID and secret and submit a request to the [POST
1457+
# email address has never been used, a **new account is created** using the
1458+
# provided `userId`. Otherwise, if the email address is already attached to
1459+
# an account, the **user ID is ignored**. Then, the user will receive an
1460+
# email with the one-time password. Use the returned user ID and secret and
1461+
# submit a request to the [POST
14591462
# /v1/account/sessions/token](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
14601463
# endpoint to complete the login process. The secret sent to the user's email
14611464
# is valid for 15 minutes.
14621465
#
14631466
# A user is limited to 10 active sessions at a time by default. [Learn more
14641467
# about session
14651468
# limits](https://appwrite.io/docs/authentication-security#limits).
1469+
#
14661470
#
1467-
# @param [String] user_id 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.
1471+
# @param [String] user_id 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.
14681472
# @param [String] email User email.
14691473
# @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.
14701474
#
@@ -1515,7 +1519,7 @@ def create_email_token(user_id:, email:, phrase: nil)
15151519
# limits](https://appwrite.io/docs/authentication-security#limits).
15161520
#
15171521
#
1518-
# @param [String] user_id 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.
1522+
# @param [String] user_id 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.
15191523
# @param [String] email User email.
15201524
# @param [String] 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.
15211525
# @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.
@@ -1612,7 +1616,7 @@ def create_o_auth2_token(provider:, success: nil, failure: nil, scopes: nil)
16121616
# about session
16131617
# limits](https://appwrite.io/docs/authentication-security#limits).
16141618
#
1615-
# @param [String] user_id 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.
1619+
# @param [String] user_id 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.
16161620
# @param [String] phone Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
16171621
#
16181622
# @return [Token]

0 commit comments

Comments
 (0)