Skip to content

Commit ee5e20d

Browse files
authored
Merge pull request #180 from appwrite/dev
feat: SDK update for version 27.3.0
2 parents 71021d9 + 6d02f03 commit ee5e20d

105 files changed

Lines changed: 1541 additions & 100 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Change Log
22

3+
## 27.3.0
4+
5+
* Added: `account.create_ldap_session` for LDAP sign-in
6+
* Added: `project.update_ldap` and `project.create_ldap_test` to configure and test a project's LDAP directory, the `ProjectLDAPEncryption` enum and `ldap*` fields on `Project`
7+
* Added: `project.update_o_auth2_naver`, the `OAuth2Naver` model and `OAuthProvider.NAVER`
8+
* Added: `project.delete_passwords` to force every user to reset their password
9+
* Added: `sites.update_analytics` and `analyticsEnabled` and `analyticsPropertyId` on `Site`
10+
* Added: `reason` on `DomainPrice`, set when a domain was not priced for the requested registration type
11+
* Added: `ImageFormat.AUTO` on `Storage.getFilePreview` and the avatar endpoints, serving avif or webp when the `Accept` header supports it
12+
* Added: response fields that hold secrets carry `format: password`, readable from `Model.model_fields[name].json_schema_extra`, so callers can keep them out of logs
13+
* Updated: requests send `X-Appwrite-Response-Format: 2.7.2`
14+
315
## 27.2.0
416

517
* Updated: `project.list_environments`, `project.create_environment`, `project.get_environment`, `project.update_environment` return `Environment` models instead of `Project`

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appwrite Python SDK
22

33
![License](https://img.shields.io/badge/license-BSD--3--Clause-blue.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-2.7.1-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-2.7.2-blue.svg?style=flat-square)
55
[![X Account](https://img.shields.io/badge/follow-%40appwrite-000000?logo=x&style=flat-square)](https://x.com/appwrite)
66
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)
77

‎appwrite/client.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ def __init__(self):
2020
self._endpoint = 'https://cloud.appwrite.io/v1'
2121
self._global_headers = {
2222
'content-type': '',
23-
'user-agent': f'AppwritePythonSDK/27.2.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
23+
'user-agent': f'AppwritePythonSDK/27.3.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
2424
'x-sdk-name': 'Python',
2525
'x-sdk-platform': 'server',
2626
'x-sdk-language': 'python',
27-
'x-sdk-version': '27.2.0',
28-
'X-Appwrite-Response-Format': '2.7.1',
27+
'x-sdk-version': '27.3.0',
28+
'X-Appwrite-Response-Format': '2.7.2',
2929
}
3030
self._config = {}
3131

‎appwrite/encoders/value_class_encoder.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
from ..enums.region import Region
3636
from ..enums.project_auth_method_id import ProjectAuthMethodId
3737
from ..enums.environment_resource import EnvironmentResource
38+
from ..enums.project_ldap_encryption import ProjectLDAPEncryption
3839
from ..enums.project_o_auth2_auth0_prompt import ProjectOAuth2Auth0Prompt
3940
from ..enums.project_o_auth2_discord_prompt import ProjectOAuth2DiscordPrompt
4041
from ..enums.project_o_auth2_git_hub_prompt import ProjectOAuth2GitHubPrompt
@@ -203,6 +204,9 @@ def default(self, o):
203204
if isinstance(o, EnvironmentResource):
204205
return o.value
205206

207+
if isinstance(o, ProjectLDAPEncryption):
208+
return o.value
209+
206210
if isinstance(o, ProjectOAuth2Auth0Prompt):
207211
return o.value
208212

‎appwrite/enums/image_format.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ class ImageFormat(Enum):
99
HEIC = "heic"
1010
AVIF = "avif"
1111
GIF = "gif"
12+
AUTO = "auto"

‎appwrite/enums/o_auth_provider.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class OAuthProvider(Enum):
2929
KICK = "kick"
3030
LINKEDIN = "linkedin"
3131
MICROSOFT = "microsoft"
32+
NAVER = "naver"
3233
NOTION = "notion"
3334
OIDC = "oidc"
3435
OKTA = "okta"

‎appwrite/enums/project_auth_method_id.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ class ProjectAuthMethodId(Enum):
1010
JWT = "jwt"
1111
PHONE = "phone"
1212
PASSKEY = "passkey"
13+
LDAP = "ldap"

‎appwrite/enums/project_key_scopes.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ class ProjectKeyScopes(Enum):
1515
POLICIES_WRITE = "policies.write"
1616
PROJECT_POLICIES_READ = "project.policies.read"
1717
PROJECT_POLICIES_WRITE = "project.policies.write"
18+
PROJECT_VIDEOS_PROFILES_READ = "project.videos.profiles.read"
19+
PROJECT_VIDEOS_PROFILES_WRITE = "project.videos.profiles.write"
1820
PROJECT_OAUTH2_READ = "project.oauth2.read"
1921
PROJECT_OAUTH2_WRITE = "project.oauth2.write"
22+
PROJECT_LDAP_WRITE = "project.ldap.write"
2023
TEMPLATES_READ = "templates.read"
2124
TEMPLATES_WRITE = "templates.write"
2225
STAGES_READ = "stages.read"
@@ -113,6 +116,9 @@ class ProjectKeyScopes(Enum):
113116
REVIEWS_WRITE = "reviews.write"
114117
PRESENCES_READ = "presences.read"
115118
PRESENCES_WRITE = "presences.write"
119+
VIDEOS_PLAY = "videos.play"
120+
VIDEOS_READ = "videos.read"
121+
VIDEOS_WRITE = "videos.write"
116122
DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
117123
BACKUPS_POLICIES_READ = "backups.policies.read"
118124
BACKUPS_POLICIES_WRITE = "backups.policies.write"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from enum import Enum
2+
3+
4+
class ProjectLDAPEncryption(Enum):
5+
NONE = "none"
6+
LDAPS = "ldaps"
7+
STARTTLS = "starttls"

‎appwrite/enums/project_o_auth_provider_id.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ class ProjectOAuthProviderId(Enum):
2929
KICK = "kick"
3030
LINKEDIN = "linkedin"
3131
MICROSOFT = "microsoft"
32+
NAVER = "naver"
3233
NOTION = "notion"
3334
OIDC = "oidc"
3435
OKTA = "okta"

0 commit comments

Comments
 (0)