Skip to content

Commit 8fb955e

Browse files
committed
chore: regenerate SDK with sdk-generator 1.19.0
1 parent 67e6781 commit 8fb955e

Some content is hidden

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

75 files changed

+2262
-94
lines changed

CHANGELOG.md

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

3+
## 18.0.0
4+
5+
* [BREAKING] Renamed Webhook model fields: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`, `signatureKey``secret`
6+
* [BREAKING] Renamed Webhook service parameters to match: `security``tls`, `httpUser``authUsername`, `httpPass``authPassword`
7+
* Added `secret` parameter to Webhook create and update methods
8+
* Added `x` OAuth provider to `OAuthProvider` enum
9+
* Added `userType` field to `Log` model
10+
* Added `purge` parameter to `updateCollection` and `updateTable` for cache invalidation
11+
* Added Project service: platform CRUD, key CRUD, protocol/service status management
12+
* Added new models: `Key`, `KeyList`, `PlatformAndroid`, `PlatformApple`, `PlatformLinux`, `PlatformList`, and others
13+
* Added new enums: `PlatformType`, `ProtocolId`, `ServiceId`
14+
* Updated `BuildRuntime`, `Runtime`, `Scopes` enums with new values
15+
* Updated `X-Appwrite-Response-Format` header to `1.9.1`
16+
* Updated TTL description for list caching in Databases and TablesDB
17+
318
## 17.0.0
419

520
* [BREAKING] Changed `$sequence` type from `float` to `str` for `Row` and `Document` models

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/github/license/appwrite/sdk-for-python.svg?style=flat-square)
4-
![Version](https://img.shields.io/badge/api%20version-1.9.0-blue.svg?style=flat-square)
4+
![Version](https://img.shields.io/badge/api%20version-1.9.1-blue.svg?style=flat-square)
55
[![Build Status](https://img.shields.io/travis/com/appwrite/sdk-generator?style=flat-square)](https://travis-ci.com/appwrite/sdk-generator)
66
[![Twitter Account](https://img.shields.io/twitter/follow/appwrite?color=00acee&label=twitter&style=flat-square)](https://twitter.com/appwrite)
77
[![Discord](https://img.shields.io/discord/564160730845151244?label=discord&style=flat-square)](https://appwrite.io/discord)

appwrite/client.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ def __init__(self):
1515
self._endpoint = 'https://cloud.appwrite.io/v1'
1616
self._global_headers = {
1717
'content-type': '',
18-
'user-agent' : f'AppwritePythonSDK/17.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
18+
'user-agent' : f'AppwritePythonSDK/18.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
1919
'x-sdk-name': 'Python',
2020
'x-sdk-platform': 'server',
2121
'x-sdk-language': 'python',
22-
'x-sdk-version': '17.0.0',
23-
'X-Appwrite-Response-Format' : '1.9.0',
22+
'x-sdk-version': '18.0.0',
23+
'X-Appwrite-Response-Format' : '1.9.1',
2424
}
2525

2626
def set_self_signed(self, status=True):
@@ -38,6 +38,9 @@ def add_header(self, key, value):
3838
self._global_headers[key.lower()] = value
3939
return self
4040

41+
def get_headers(self):
42+
return dict(self._global_headers)
43+
4144
def set_project(self, value):
4245
"""Your project ID"""
4346

appwrite/encoders/value_class_encoder.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
from ..enums.name import Name
2525
from ..enums.message_priority import MessagePriority
2626
from ..enums.smtp_encryption import SmtpEncryption
27+
from ..enums.protocol_id import ProtocolId
28+
from ..enums.service_id import ServiceId
2729
from ..enums.framework import Framework
2830
from ..enums.build_runtime import BuildRuntime
2931
from ..enums.adapter import Adapter
@@ -39,6 +41,7 @@
3941
from ..enums.deployment_status import DeploymentStatus
4042
from ..enums.execution_trigger import ExecutionTrigger
4143
from ..enums.execution_status import ExecutionStatus
44+
from ..enums.platform_type import PlatformType
4245
from ..enums.health_antivirus_status import HealthAntivirusStatus
4346
from ..enums.health_check_status import HealthCheckStatus
4447
from ..enums.message_status import MessageStatus
@@ -120,6 +123,12 @@ def default(self, o):
120123
if isinstance(o, SmtpEncryption):
121124
return o.value
122125

126+
if isinstance(o, ProtocolId):
127+
return o.value
128+
129+
if isinstance(o, ServiceId):
130+
return o.value
131+
123132
if isinstance(o, Framework):
124133
return o.value
125134

@@ -165,6 +174,9 @@ def default(self, o):
165174
if isinstance(o, ExecutionStatus):
166175
return o.value
167176

177+
if isinstance(o, PlatformType):
178+
return o.value
179+
168180
if isinstance(o, HealthAntivirusStatus):
169181
return o.value
170182

appwrite/enums/build_runtime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class BuildRuntime(Enum):
4949
DART_3_8 = "dart-3.8"
5050
DART_3_9 = "dart-3.9"
5151
DART_3_10 = "dart-3.10"
52+
DART_3_11 = "dart-3.11"
5253
DOTNET_6_0 = "dotnet-6.0"
5354
DOTNET_7_0 = "dotnet-7.0"
5455
DOTNET_8_0 = "dotnet-8.0"
@@ -87,3 +88,4 @@ class BuildRuntime(Enum):
8788
FLUTTER_3_32 = "flutter-3.32"
8889
FLUTTER_3_35 = "flutter-3.35"
8990
FLUTTER_3_38 = "flutter-3.38"
91+
FLUTTER_3_41 = "flutter-3.41"

appwrite/enums/o_auth_provider.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class OAuthProvider(Enum):
3535
TRADESHIFTBOX = "tradeshiftBox"
3636
TWITCH = "twitch"
3737
WORDPRESS = "wordpress"
38+
X = "x"
3839
YAHOO = "yahoo"
3940
YAMMER = "yammer"
4041
YANDEX = "yandex"

appwrite/enums/platform_type.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from enum import Enum
2+
3+
class PlatformType(Enum):
4+
WINDOWS = "windows"
5+
APPLE = "apple"
6+
ANDROID = "android"
7+
LINUX = "linux"
8+
WEB = "web"

appwrite/enums/protocol_id.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
from enum import Enum
2+
3+
class ProtocolId(Enum):
4+
REST = "rest"
5+
GRAPHQL = "graphql"
6+
WEBSOCKET = "websocket"

appwrite/enums/runtime.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ class Runtime(Enum):
4949
DART_3_8 = "dart-3.8"
5050
DART_3_9 = "dart-3.9"
5151
DART_3_10 = "dart-3.10"
52+
DART_3_11 = "dart-3.11"
5253
DOTNET_6_0 = "dotnet-6.0"
5354
DOTNET_7_0 = "dotnet-7.0"
5455
DOTNET_8_0 = "dotnet-8.0"
@@ -87,3 +88,4 @@ class Runtime(Enum):
8788
FLUTTER_3_32 = "flutter-3.32"
8889
FLUTTER_3_35 = "flutter-3.35"
8990
FLUTTER_3_38 = "flutter-3.38"
91+
FLUTTER_3_41 = "flutter-3.41"

appwrite/enums/scopes.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ class Scopes(Enum):
6262
WEBHOOKS_WRITE = "webhooks.write"
6363
PROJECT_READ = "project.read"
6464
PROJECT_WRITE = "project.write"
65+
KEYS_READ = "keys.read"
66+
KEYS_WRITE = "keys.write"
67+
PLATFORMS_READ = "platforms.read"
68+
PLATFORMS_WRITE = "platforms.write"
6569
POLICIES_WRITE = "policies.write"
6670
POLICIES_READ = "policies.read"
6771
ARCHIVES_READ = "archives.read"

0 commit comments

Comments
 (0)