Skip to content

Commit 8f8fa17

Browse files
committed
Add 1.8.x support
1 parent dc73f87 commit 8f8fa17

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

appwrite/services/account.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def create_mfa_authenticator(self, type: AuthenticatorType) -> Dict[str, Any]:
265265
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.
266266
267267
.. deprecated::1.8.0
268-
This API has been deprecated since 1.8.0. Please use `create_mfa_authenticator` instead.
268+
This API has been deprecated since 1.8.0. Please use `account.create_mfa_authenticator` instead.
269269
Parameters
270270
----------
271271
type : AuthenticatorType
@@ -331,7 +331,7 @@ def update_mfa_authenticator(self, type: AuthenticatorType, otp: str) -> Dict[st
331331
Verify an authenticator app after adding it using the [add authenticator](/docs/references/cloud/client-web/account#createMfaAuthenticator) method.
332332
333333
.. deprecated::1.8.0
334-
This API has been deprecated since 1.8.0. Please use `update_mfa_authenticator` instead.
334+
This API has been deprecated since 1.8.0. Please use `account.update_mfa_authenticator` instead.
335335
Parameters
336336
----------
337337
type : AuthenticatorType
@@ -409,7 +409,7 @@ def delete_mfa_authenticator(self, type: AuthenticatorType) -> Dict[str, Any]:
409409
Delete an authenticator for a user by ID.
410410
411411
.. deprecated::1.8.0
412-
This API has been deprecated since 1.8.0. Please use `delete_mfa_authenticator` instead.
412+
This API has been deprecated since 1.8.0. Please use `account.delete_mfa_authenticator` instead.
413413
Parameters
414414
----------
415415
type : AuthenticatorType
@@ -475,7 +475,7 @@ def create_mfa_challenge(self, factor: AuthenticationFactor) -> Dict[str, Any]:
475475
Begin the process of MFA verification after sign-in. Finish the flow with [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge) method.
476476
477477
.. deprecated::1.8.0
478-
This API has been deprecated since 1.8.0. Please use `create_mfa_challenge` instead.
478+
This API has been deprecated since 1.8.0. Please use `account.create_mfa_challenge` instead.
479479
Parameters
480480
----------
481481
factor : AuthenticationFactor
@@ -541,7 +541,7 @@ def update_mfa_challenge(self, challenge_id: str, otp: str) -> Dict[str, Any]:
541541
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.
542542
543543
.. deprecated::1.8.0
544-
This API has been deprecated since 1.8.0. Please use `update_mfa_challenge` instead.
544+
This API has been deprecated since 1.8.0. Please use `account.update_mfa_challenge` instead.
545545
Parameters
546546
----------
547547
challenge_id : str

appwrite/services/messaging.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def create_sms(self, message_id: str, content: str, topics: List[str] = None, us
355355
Create a new SMS message.
356356
357357
.. deprecated::1.8.0
358-
This API has been deprecated since 1.8.0. Please use `create_sms` instead.
358+
This API has been deprecated since 1.8.0. Please use `messaging.create_sms` instead.
359359
Parameters
360360
----------
361361
message_id : str
@@ -464,7 +464,7 @@ def update_sms(self, message_id: str, topics: List[str] = None, users: List[str]
464464
465465
466466
.. deprecated::1.8.0
467-
This API has been deprecated since 1.8.0. Please use `update_sms` instead.
467+
This API has been deprecated since 1.8.0. Please use `messaging.update_sms` instead.
468468
Parameters
469469
----------
470470
message_id : str
@@ -730,7 +730,7 @@ def create_apns_provider(self, provider_id: str, name: str, auth_key: str = None
730730
Create a new Apple Push Notification service provider.
731731
732732
.. deprecated::1.8.0
733-
This API has been deprecated since 1.8.0. Please use `create_apns_provider` instead.
733+
This API has been deprecated since 1.8.0. Please use `messaging.create_apns_provider` instead.
734734
Parameters
735735
----------
736736
provider_id : str
@@ -844,7 +844,7 @@ def update_apns_provider(self, provider_id: str, name: str = None, enabled: bool
844844
Update a Apple Push Notification service provider by its unique ID.
845845
846846
.. deprecated::1.8.0
847-
This API has been deprecated since 1.8.0. Please use `update_apns_provider` instead.
847+
This API has been deprecated since 1.8.0. Please use `messaging.update_apns_provider` instead.
848848
Parameters
849849
----------
850850
provider_id : str
@@ -952,7 +952,7 @@ def create_fcm_provider(self, provider_id: str, name: str, service_account_json:
952952
Create a new Firebase Cloud Messaging provider.
953953
954954
.. deprecated::1.8.0
955-
This API has been deprecated since 1.8.0. Please use `create_fcm_provider` instead.
955+
This API has been deprecated since 1.8.0. Please use `messaging.create_fcm_provider` instead.
956956
Parameters
957957
----------
958958
provider_id : str
@@ -1042,7 +1042,7 @@ def update_fcm_provider(self, provider_id: str, name: str = None, enabled: bool
10421042
Update a Firebase Cloud Messaging provider by its unique ID.
10431043
10441044
.. deprecated::1.8.0
1045-
This API has been deprecated since 1.8.0. Please use `update_fcm_provider` instead.
1045+
This API has been deprecated since 1.8.0. Please use `messaging.update_fcm_provider` instead.
10461046
Parameters
10471047
----------
10481048
provider_id : str
@@ -1453,7 +1453,7 @@ def create_smtp_provider(self, provider_id: str, name: str, host: str, port: flo
14531453
Create a new SMTP provider.
14541454
14551455
.. deprecated::1.8.0
1456-
This API has been deprecated since 1.8.0. Please use `create_smtp_provider` instead.
1456+
This API has been deprecated since 1.8.0. Please use `messaging.create_smtp_provider` instead.
14571457
Parameters
14581458
----------
14591459
provider_id : str
@@ -1609,7 +1609,7 @@ def update_smtp_provider(self, provider_id: str, name: str = None, host: str = N
16091609
Update a SMTP provider by its unique ID.
16101610
16111611
.. deprecated::1.8.0
1612-
This API has been deprecated since 1.8.0. Please use `update_smtp_provider` instead.
1612+
This API has been deprecated since 1.8.0. Please use `messaging.update_smtp_provider` instead.
16131613
Parameters
16141614
----------
16151615
provider_id : str

appwrite/services/tables_db.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def list(self, queries: List[str] = None, search: str = None) -> Dict[str, Any]:
1717
Parameters
1818
----------
1919
queries : List[str]
20-
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
20+
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 columns: name
2121
search : str
2222
Search term to filter your list results. Max length: 256 chars.
2323
@@ -196,7 +196,7 @@ def list_tables(self, database_id: str, queries: List[str] = None, search: str =
196196
database_id : str
197197
Database ID.
198198
queries : List[str]
199-
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, rowSecurity
199+
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 columns: name, enabled, rowSecurity
200200
search : str
201201
Search term to filter your list results. Max length: 256 chars.
202202
@@ -416,7 +416,7 @@ def list_columns(self, database_id: str, table_id: str, queries: List[str] = Non
416416
table_id : str
417417
Table ID.
418418
queries : List[str]
419-
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: key, type, size, required, array, status, error
419+
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 columns: key, type, size, required, array, status, error
420420
421421
Returns
422422
-------
@@ -1352,7 +1352,7 @@ def create_string_column(self, database_id: str, table_id: str, key: str, size:
13521352
key : str
13531353
Column Key.
13541354
size : float
1355-
Attribute size for text attributes, in number of characters.
1355+
Column size for text columns, in number of characters.
13561356
required : bool
13571357
Is column required?
13581358
default : str
@@ -1727,7 +1727,7 @@ def list_indexes(self, database_id: str, table_id: str, queries: List[str] = Non
17271727
table_id : str
17281728
Table ID. You can create a new table using the Database service [server integration](https://appwrite.io/docs/server/tablesdb#tablesDBCreate).
17291729
queries : List[str]
1730-
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: key, type, status, attributes, error
1730+
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 columns: key, type, status, attributes, error
17311731
17321732
Returns
17331733
-------

appwrite/services/users.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,7 @@ def update_mfa(self, user_id: str, mfa: bool) -> Dict[str, Any]:
783783
Enable or disable MFA on a user account.
784784
785785
.. deprecated::1.8.0
786-
This API has been deprecated since 1.8.0. Please use `update_mfa` instead.
786+
This API has been deprecated since 1.8.0. Please use `users.update_mfa` instead.
787787
Parameters
788788
----------
789789
user_id : str
@@ -861,7 +861,7 @@ def delete_mfa_authenticator(self, user_id: str, type: AuthenticatorType) -> Dic
861861
Delete an authenticator app.
862862
863863
.. deprecated::1.8.0
864-
This API has been deprecated since 1.8.0. Please use `delete_mfa_authenticator` instead.
864+
This API has been deprecated since 1.8.0. Please use `users.delete_mfa_authenticator` instead.
865865
Parameters
866866
----------
867867
user_id : str
@@ -939,7 +939,7 @@ def list_mfa_factors(self, user_id: str) -> Dict[str, Any]:
939939
List the factors available on the account to be used as a MFA challange.
940940
941941
.. deprecated::1.8.0
942-
This API has been deprecated since 1.8.0. Please use `list_mfa_factors` instead.
942+
This API has been deprecated since 1.8.0. Please use `users.list_mfa_factors` instead.
943943
Parameters
944944
----------
945945
user_id : str
@@ -1003,7 +1003,7 @@ def get_mfa_recovery_codes(self, user_id: str) -> Dict[str, Any]:
10031003
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.
10041004
10051005
.. deprecated::1.8.0
1006-
This API has been deprecated since 1.8.0. Please use `get_mfa_recovery_codes` instead.
1006+
This API has been deprecated since 1.8.0. Please use `users.get_mfa_recovery_codes` instead.
10071007
Parameters
10081008
----------
10091009
user_id : str
@@ -1067,7 +1067,7 @@ def update_mfa_recovery_codes(self, user_id: str) -> Dict[str, Any]:
10671067
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.
10681068
10691069
.. deprecated::1.8.0
1070-
This API has been deprecated since 1.8.0. Please use `update_mfa_recovery_codes` instead.
1070+
This API has been deprecated since 1.8.0. Please use `users.update_mfa_recovery_codes` instead.
10711071
Parameters
10721072
----------
10731073
user_id : str
@@ -1133,7 +1133,7 @@ def create_mfa_recovery_codes(self, user_id: str) -> Dict[str, Any]:
11331133
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.
11341134
11351135
.. deprecated::1.8.0
1136-
This API has been deprecated since 1.8.0. Please use `create_mfa_recovery_codes` instead.
1136+
This API has been deprecated since 1.8.0. Please use `users.create_mfa_recovery_codes` instead.
11371137
Parameters
11381138
----------
11391139
user_id : str

0 commit comments

Comments
 (0)