Skip to content

Commit d1111d5

Browse files
committed
chore: changelog
1 parent 8344f2d commit d1111d5

File tree

13 files changed

+7
-270
lines changed

13 files changed

+7
-270
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
# Change Log
1+
# Change Log
2+
3+
## 11.1.0
4+
5+
* Add `incrementDocumentAttribute` and `decrementDocumentAttribute` support to `Databases` service
6+
* Add `dart38` and `flutter332` support to runtime models
7+
* Add `gif` support to `ImageFormat` enum

appwrite/services/account.py

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def create(self, user_id: str, email: str, password: str, name: str = None) -> D
3535
"""
3636
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).
3737
38-
3938
Parameters
4039
----------
4140
user_id : str
@@ -85,7 +84,6 @@ def update_email(self, email: str, password: str) -> Dict[str, Any]:
8584
This endpoint can also be used to convert an anonymous account to a normal one, by passing an email address and a new password.
8685
8786
88-
8987
Parameters
9088
----------
9189
email : str
@@ -124,7 +122,6 @@ def list_identities(self, queries: List[str] = None) -> Dict[str, Any]:
124122
"""
125123
Get the list of identities for the currently logged in user.
126124
127-
128125
Parameters
129126
----------
130127
queries : List[str]
@@ -153,7 +150,6 @@ def delete_identity(self, identity_id: str) -> Dict[str, Any]:
153150
"""
154151
Delete an identity by its unique ID.
155152
156-
157153
Parameters
158154
----------
159155
identity_id : str
@@ -208,7 +204,6 @@ def list_logs(self, queries: List[str] = None) -> Dict[str, Any]:
208204
"""
209205
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.
210206
211-
212207
Parameters
213208
----------
214209
queries : List[str]
@@ -237,7 +232,6 @@ def update_mfa(self, mfa: bool) -> Dict[str, Any]:
237232
"""
238233
Enable or disable MFA on an account.
239234
240-
241235
Parameters
242236
----------
243237
mfa : bool
@@ -270,7 +264,6 @@ def create_mfa_authenticator(self, type: AuthenticatorType) -> Dict[str, Any]:
270264
"""
271265
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.
272266
273-
274267
Parameters
275268
----------
276269
type : AuthenticatorType
@@ -303,7 +296,6 @@ def update_mfa_authenticator(self, type: AuthenticatorType, otp: str) -> Dict[st
303296
"""
304297
Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
305298
306-
307299
Parameters
308300
----------
309301
type : AuthenticatorType
@@ -342,7 +334,6 @@ def delete_mfa_authenticator(self, type: AuthenticatorType) -> Dict[str, Any]:
342334
"""
343335
Delete an authenticator for a user by ID.
344336
345-
346337
Parameters
347338
----------
348339
type : AuthenticatorType
@@ -375,7 +366,6 @@ def create_mfa_challenge(self, factor: AuthenticationFactor) -> Dict[str, Any]:
375366
"""
376367
Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
377368
378-
379369
Parameters
380370
----------
381371
factor : AuthenticationFactor
@@ -408,7 +398,6 @@ def update_mfa_challenge(self, challenge_id: str, otp: str) -> Dict[str, Any]:
408398
"""
409399
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.
410400
411-
412401
Parameters
413402
----------
414403
challenge_id : str
@@ -533,7 +522,6 @@ def update_name(self, name: str) -> Dict[str, Any]:
533522
"""
534523
Update currently logged in user account name.
535524
536-
537525
Parameters
538526
----------
539527
name : str
@@ -566,7 +554,6 @@ def update_password(self, password: str, old_password: str = None) -> Dict[str,
566554
"""
567555
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.
568556
569-
570557
Parameters
571558
----------
572559
password : str
@@ -602,7 +589,6 @@ def update_phone(self, phone: str, password: str) -> Dict[str, Any]:
602589
"""
603590
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.
604591
605-
606592
Parameters
607593
----------
608594
phone : str
@@ -662,7 +648,6 @@ def update_prefs(self, prefs: dict) -> Dict[str, Any]:
662648
"""
663649
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.
664650
665-
666651
Parameters
667652
----------
668653
prefs : dict
@@ -695,7 +680,6 @@ def create_recovery(self, email: str, url: str) -> Dict[str, Any]:
695680
"""
696681
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.
697682
698-
699683
Parameters
700684
----------
701685
email : str
@@ -736,7 +720,6 @@ def update_recovery(self, user_id: str, secret: str, password: str) -> Dict[str,
736720
737721
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.
738722
739-
740723
Parameters
741724
----------
742725
user_id : str
@@ -848,7 +831,6 @@ def create_email_password_session(self, email: str, password: str) -> Dict[str,
848831
849832
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).
850833
851-
852834
Parameters
853835
----------
854836
email : str
@@ -887,7 +869,6 @@ def update_magic_url_session(self, user_id: str, secret: str) -> Dict[str, Any]:
887869
"""
888870
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.
889871
890-
891872
Parameters
892873
----------
893874
user_id : str
@@ -926,7 +907,6 @@ def update_phone_session(self, user_id: str, secret: str) -> Dict[str, Any]:
926907
"""
927908
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.
928909
929-
930910
Parameters
931911
----------
932912
user_id : str
@@ -965,7 +945,6 @@ def create_session(self, user_id: str, secret: str) -> Dict[str, Any]:
965945
"""
966946
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.
967947
968-
969948
Parameters
970949
----------
971950
user_id : str
@@ -1004,7 +983,6 @@ def get_session(self, session_id: str) -> Dict[str, Any]:
1004983
"""
1005984
Use this endpoint to get a logged in user's session using a Session ID. Inputting 'current' will return the current session being used.
1006985
1007-
1008986
Parameters
1009987
----------
1010988
session_id : str
@@ -1036,7 +1014,6 @@ def update_session(self, session_id: str) -> Dict[str, Any]:
10361014
"""
10371015
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.
10381016
1039-
10401017
Parameters
10411018
----------
10421019
session_id : str
@@ -1069,7 +1046,6 @@ def delete_session(self, session_id: str) -> Dict[str, Any]:
10691046
"""
10701047
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.
10711048
1072-
10731049
Parameters
10741050
----------
10751051
session_id : str
@@ -1126,7 +1102,6 @@ def create_email_token(self, user_id: str, email: str, phrase: bool = None) -> D
11261102
11271103
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).
11281104
1129-
11301105
Parameters
11311106
----------
11321107
user_id : str
@@ -1171,7 +1146,6 @@ def create_magic_url_token(self, user_id: str, email: str, url: str = None, phra
11711146
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).
11721147
11731148
1174-
11751149
Parameters
11761150
----------
11771151
user_id : str
@@ -1220,7 +1194,6 @@ def create_o_auth2_token(self, provider: OAuthProvider, success: str = None, fai
12201194
12211195
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).
12221196
1223-
12241197
Parameters
12251198
----------
12261199
provider : OAuthProvider
@@ -1263,7 +1236,6 @@ def create_phone_token(self, user_id: str, phone: str) -> Dict[str, Any]:
12631236
12641237
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).
12651238
1266-
12671239
Parameters
12681240
----------
12691241
user_id : str
@@ -1305,7 +1277,6 @@ def create_verification(self, url: str) -> Dict[str, Any]:
13051277
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.
13061278
13071279
1308-
13091280
Parameters
13101281
----------
13111282
url : str
@@ -1338,7 +1309,6 @@ def update_verification(self, user_id: str, secret: str) -> Dict[str, Any]:
13381309
"""
13391310
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.
13401311
1341-
13421312
Parameters
13431313
----------
13441314
user_id : str
@@ -1399,7 +1369,6 @@ def update_phone_verification(self, user_id: str, secret: str) -> Dict[str, Any]
13991369
"""
14001370
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.
14011371
1402-
14031372
Parameters
14041373
----------
14051374
user_id : str

appwrite/services/avatars.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def get_browser(self, code: Browser, width: float = None, height: float = None,
1616
1717
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.
1818
19-
2019
Parameters
2120
----------
2221
code : Browser
@@ -60,7 +59,6 @@ def get_credit_card(self, code: CreditCard, width: float = None, height: float =
6059
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.
6160
6261
63-
6462
Parameters
6563
----------
6664
code : CreditCard
@@ -103,7 +101,6 @@ def get_favicon(self, url: str) -> bytes:
103101
104102
This endpoint does not follow HTTP redirects.
105103
106-
107104
Parameters
108105
----------
109106
url : str
@@ -138,7 +135,6 @@ def get_flag(self, code: Flag, width: float = None, height: float = None, qualit
138135
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.
139136
140137
141-
142138
Parameters
143139
----------
144140
code : Flag
@@ -183,7 +179,6 @@ def get_image(self, url: str, width: float = None, height: float = None) -> byte
183179
184180
This endpoint does not follow HTTP redirects.
185181
186-
187182
Parameters
188183
----------
189184
url : str
@@ -226,7 +221,6 @@ def get_initials(self, name: str = None, width: float = None, height: float = No
226221
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.
227222
228223
229-
230224
Parameters
231225
----------
232226
name : str
@@ -265,7 +259,6 @@ def get_qr(self, text: str, size: float = None, margin: float = None, download:
265259
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.
266260
267261
268-
269262
Parameters
270263
----------
271264
text : str

0 commit comments

Comments
 (0)