Skip to content

Commit 71cf3e0

Browse files
committed
chore: regenerate sdks
1 parent 1496a84 commit 71cf3e0

12 files changed

+92
-8
lines changed

appwrite/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ def __init__(self):
1414
self._endpoint = 'https://cloud.appwrite.io/v1'
1515
self._global_headers = {
1616
'content-type': '',
17-
'user-agent' : f'AppwritePythonSDK/13.1.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
17+
'user-agent' : f'AppwritePythonSDK/13.2.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
1818
'x-sdk-name': 'Python',
1919
'x-sdk-platform': 'server',
2020
'x-sdk-language': 'python',
21-
'x-sdk-version': '13.1.0',
21+
'x-sdk-version': '13.2.0',
2222
'X-Appwrite-Response-Format' : '1.8.0',
2323
}
2424

appwrite/encoders/value_class_encoder.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323
from ..enums.image_format import ImageFormat
2424
from ..enums.password_hash import PasswordHash
2525
from ..enums.messaging_provider_type import MessagingProviderType
26+
from ..enums.attribute_status import AttributeStatus
27+
from ..enums.index_status import IndexStatus
28+
from ..enums.deployment_status import DeploymentStatus
29+
from ..enums.execution_trigger import ExecutionTrigger
30+
from ..enums.execution_status import ExecutionStatus
31+
from ..enums.health_antivirus_status import HealthAntivirusStatus
32+
from ..enums.health_check_status import HealthCheckStatus
33+
from ..enums.message_status import MessageStatus
2634

2735
class ValueClassEncoder(json.JSONEncoder):
2836
def default(self, o):
@@ -98,4 +106,28 @@ def default(self, o):
98106
if isinstance(o, MessagingProviderType):
99107
return o.value
100108

109+
if isinstance(o, AttributeStatus):
110+
return o.value
111+
112+
if isinstance(o, IndexStatus):
113+
return o.value
114+
115+
if isinstance(o, DeploymentStatus):
116+
return o.value
117+
118+
if isinstance(o, ExecutionTrigger):
119+
return o.value
120+
121+
if isinstance(o, ExecutionStatus):
122+
return o.value
123+
124+
if isinstance(o, HealthAntivirusStatus):
125+
return o.value
126+
127+
if isinstance(o, HealthCheckStatus):
128+
return o.value
129+
130+
if isinstance(o, MessageStatus):
131+
return o.value
132+
101133
return super().default(o)

appwrite/enums/attribute_status.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 AttributeStatus(Enum):
4+
AVAILABLE = "available"
5+
PROCESSING = "processing"
6+
DELETING = "deleting"
7+
STUCK = "stuck"
8+
FAILED = "failed"
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 DeploymentStatus(Enum):
4+
WAITING = "waiting"
5+
PROCESSING = "processing"
6+
BUILDING = "building"
7+
READY = "ready"
8+
FAILED = "failed"

appwrite/enums/execution_status.py

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+
class ExecutionStatus(Enum):
4+
WAITING = "waiting"
5+
PROCESSING = "processing"
6+
COMPLETED = "completed"
7+
FAILED = "failed"
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 ExecutionTrigger(Enum):
4+
HTTP = "http"
5+
SCHEDULE = "schedule"
6+
EVENT = "event"
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 HealthAntivirusStatus(Enum):
4+
DISABLED = "disabled"
5+
OFFLINE = "offline"
6+
ONLINE = "online"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from enum import Enum
2+
3+
class HealthCheckStatus(Enum):
4+
PASS = "pass"
5+
FAIL = "fail"

appwrite/enums/index_status.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 IndexStatus(Enum):
4+
AVAILABLE = "available"
5+
PROCESSING = "processing"
6+
DELETING = "deleting"
7+
STUCK = "stuck"
8+
FAILED = "failed"

appwrite/enums/message_status.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 MessageStatus(Enum):
4+
DRAFT = "draft"
5+
PROCESSING = "processing"
6+
SCHEDULED = "scheduled"
7+
SENT = "sent"
8+
FAILED = "failed"

0 commit comments

Comments
 (0)