Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## 27.3.0

* Added: `account.create_ldap_session` for LDAP sign-in
* 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`
* Added: `project.update_o_auth2_naver`, the `OAuth2Naver` model and `OAuthProvider.NAVER`
* Added: `project.delete_passwords` to force every user to reset their password
* Added: `sites.update_analytics` and `analyticsEnabled` and `analyticsPropertyId` on `Site`
* Added: `reason` on `DomainPrice`, set when a domain was not priced for the requested registration type
* Added: `ImageFormat.AUTO` on `Storage.getFilePreview` and the avatar endpoints, serving avif or webp when the `Accept` header supports it
* 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
* Updated: requests send `X-Appwrite-Response-Format: 2.7.2`

## 27.2.0

* Updated: `project.list_environments`, `project.create_environment`, `project.get_environment`, `project.update_environment` return `Environment` models instead of `Project`
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Appwrite Python SDK

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

Expand Down
6 changes: 3 additions & 3 deletions appwrite/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ def __init__(self):
self._endpoint = 'https://cloud.appwrite.io/v1'
self._global_headers = {
'content-type': '',
'user-agent': f'AppwritePythonSDK/27.2.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
'user-agent': f'AppwritePythonSDK/27.3.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
'x-sdk-name': 'Python',
'x-sdk-platform': 'server',
'x-sdk-language': 'python',
'x-sdk-version': '27.2.0',
'X-Appwrite-Response-Format': '2.7.1',
'x-sdk-version': '27.3.0',
'X-Appwrite-Response-Format': '2.7.2',
}
self._config = {}

Expand Down
4 changes: 4 additions & 0 deletions appwrite/encoders/value_class_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
from ..enums.region import Region
from ..enums.project_auth_method_id import ProjectAuthMethodId
from ..enums.environment_resource import EnvironmentResource
from ..enums.project_ldap_encryption import ProjectLDAPEncryption
from ..enums.project_o_auth2_auth0_prompt import ProjectOAuth2Auth0Prompt
from ..enums.project_o_auth2_discord_prompt import ProjectOAuth2DiscordPrompt
from ..enums.project_o_auth2_git_hub_prompt import ProjectOAuth2GitHubPrompt
Expand Down Expand Up @@ -203,6 +204,9 @@ def default(self, o):
if isinstance(o, EnvironmentResource):
return o.value

if isinstance(o, ProjectLDAPEncryption):
return o.value

if isinstance(o, ProjectOAuth2Auth0Prompt):
return o.value

Expand Down
1 change: 1 addition & 0 deletions appwrite/enums/image_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ class ImageFormat(Enum):
HEIC = "heic"
AVIF = "avif"
GIF = "gif"
AUTO = "auto"
1 change: 1 addition & 0 deletions appwrite/enums/o_auth_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class OAuthProvider(Enum):
KICK = "kick"
LINKEDIN = "linkedin"
MICROSOFT = "microsoft"
NAVER = "naver"
NOTION = "notion"
OIDC = "oidc"
OKTA = "okta"
Expand Down
1 change: 1 addition & 0 deletions appwrite/enums/project_auth_method_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ class ProjectAuthMethodId(Enum):
JWT = "jwt"
PHONE = "phone"
PASSKEY = "passkey"
LDAP = "ldap"
6 changes: 6 additions & 0 deletions appwrite/enums/project_key_scopes.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ class ProjectKeyScopes(Enum):
POLICIES_WRITE = "policies.write"
PROJECT_POLICIES_READ = "project.policies.read"
PROJECT_POLICIES_WRITE = "project.policies.write"
PROJECT_VIDEOS_PROFILES_READ = "project.videos.profiles.read"
PROJECT_VIDEOS_PROFILES_WRITE = "project.videos.profiles.write"
PROJECT_OAUTH2_READ = "project.oauth2.read"
PROJECT_OAUTH2_WRITE = "project.oauth2.write"
PROJECT_LDAP_WRITE = "project.ldap.write"
TEMPLATES_READ = "templates.read"
TEMPLATES_WRITE = "templates.write"
STAGES_READ = "stages.read"
Expand Down Expand Up @@ -113,6 +116,9 @@ class ProjectKeyScopes(Enum):
REVIEWS_WRITE = "reviews.write"
PRESENCES_READ = "presences.read"
PRESENCES_WRITE = "presences.write"
VIDEOS_PLAY = "videos.play"
VIDEOS_READ = "videos.read"
VIDEOS_WRITE = "videos.write"
DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
BACKUPS_POLICIES_READ = "backups.policies.read"
BACKUPS_POLICIES_WRITE = "backups.policies.write"
Expand Down
7 changes: 7 additions & 0 deletions appwrite/enums/project_ldap_encryption.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from enum import Enum


class ProjectLDAPEncryption(Enum):
NONE = "none"
LDAPS = "ldaps"
STARTTLS = "starttls"
1 change: 1 addition & 0 deletions appwrite/enums/project_o_auth_provider_id.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class ProjectOAuthProviderId(Enum):
KICK = "kick"
LINKEDIN = "linkedin"
MICROSOFT = "microsoft"
NAVER = "naver"
NOTION = "notion"
OIDC = "oidc"
OKTA = "okta"
Expand Down
2 changes: 2 additions & 0 deletions appwrite/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@
from .o_auth2_resend import OAuth2Resend
from .o_auth2_tik_tok import OAuth2TikTok
from .o_auth2_kakao import OAuth2Kakao
from .o_auth2_naver import OAuth2Naver
from .o_auth2_provider_list import OAuth2ProviderList
from .policy_password_dictionary import PolicyPasswordDictionary
from .policy_password_history import PolicyPasswordHistory
Expand Down Expand Up @@ -514,6 +515,7 @@
'OAuth2Resend',
'OAuth2TikTok',
'OAuth2Kakao',
'OAuth2Naver',
'OAuth2ProviderList',
'PolicyPasswordDictionary',
'PolicyPasswordHistory',
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/algo_scrypt_modified.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AlgoScryptModified(AppwriteModel):
type: str = Field(..., alias='type')
salt: str = Field(..., alias='salt')
saltseparator: str = Field(..., alias='saltSeparator')
signerkey: str = Field(..., alias='signerKey')
signerkey: str = Field(..., alias='signerKey', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/app_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppKey(AppwriteModel):
createdat: str = Field(..., alias='$createdAt')
updatedat: str = Field(..., alias='$updatedAt')
appid: str = Field(..., alias='appId')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
hint: str = Field(..., alias='hint')
createdbyid: str = Field(..., alias='createdById')
createdbyname: str = Field(..., alias='createdByName')
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/app_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppSecret(AppwriteModel):
createdat: str = Field(..., alias='$createdAt')
updatedat: str = Field(..., alias='$updatedAt')
appid: str = Field(..., alias='appId')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
hint: str = Field(..., alias='hint')
createdbyid: str = Field(..., alias='createdById')
createdbyname: str = Field(..., alias='createdByName')
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/app_secret_plaintext.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class AppSecretPlaintext(AppwriteModel):
createdat: str = Field(..., alias='$createdAt')
updatedat: str = Field(..., alias='$updatedAt')
appid: str = Field(..., alias='appId')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
hint: str = Field(..., alias='hint')
createdbyid: str = Field(..., alias='createdById')
createdbyname: str = Field(..., alias='createdByName')
Expand Down
4 changes: 2 additions & 2 deletions appwrite/models/dedicated_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ class DedicatedDatabase(AppwriteModel):
hostname: str = Field(..., alias='hostname')
connectionport: Optional[float] = Field(default=None, alias='connectionPort')
connectionuser: str = Field(..., alias='connectionUser')
connectionpassword: str = Field(..., alias='connectionPassword')
connectionpassword: str = Field(..., alias='connectionPassword', json_schema_extra={'format': 'password'})
credentialgeneration: Optional[float] = Field(default=None, alias='credentialGeneration')
connectionstring: str = Field(..., alias='connectionString')
connectionstring: str = Field(..., alias='connectionString', json_schema_extra={'format': 'password'})
ssl: bool = Field(..., alias='ssl')
status: str = Field(..., alias='status')
containerstatus: str = Field(..., alias='containerStatus')
Expand Down
4 changes: 2 additions & 2 deletions appwrite/models/dedicated_database_branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ class DedicatedDatabaseBranch(AppwriteModel):
port: Optional[float] = Field(default=None, alias='port')
database: str = Field(..., alias='database')
username: str = Field(..., alias='username')
password: str = Field(..., alias='password')
password: str = Field(..., alias='password', json_schema_extra={'format': 'password'})
ssl: bool = Field(..., alias='ssl')
engine: str = Field(..., alias='engine')
connectionstring: str = Field(..., alias='connectionString')
connectionstring: str = Field(..., alias='connectionString', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Device(AppwriteModel):
expire: str = Field(..., alias='expire')
activesessionid: str = Field(..., alias='activeSessionId')
sessions: List[Session] = Field(..., alias='sessions')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
3 changes: 3 additions & 0 deletions appwrite/models/domain_price.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ class DomainPrice(AppwriteModel):
Domain renewal price for the same period. Null when the domain was not priced or the registrar has no renewal price for it.
renewalperiodyears : float
Renewal price period in years.
reason : Optional[str]
Why the domain was not priced for the requested registration type, for example a transfer of an unregistered domain. Empty otherwise.
"""

domain: str = Field(..., alias='domain')
Expand All @@ -36,6 +38,7 @@ class DomainPrice(AppwriteModel):
premium: bool = Field(..., alias='premium')
renewalprice: Optional[float] = Field(default=None, alias='renewalPrice')
renewalperiodyears: float = Field(..., alias='renewalPeriodYears')
reason: Optional[str] = Field(default=None, alias='reason')

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/ephemeral_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class EphemeralKey(AppwriteModel):
description: str = Field(..., alias='description')
expire: str = Field(..., alias='expire')
scopes: List[Any] = Field(..., alias='scopes')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
accessedat: str = Field(..., alias='accessedAt')
sdks: List[Any] = Field(..., alias='sdks')

Expand Down
6 changes: 3 additions & 3 deletions appwrite/models/identity.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ class Identity(AppwriteModel):
provider: str = Field(..., alias='provider')
provideruid: str = Field(..., alias='providerUid')
provideremail: str = Field(..., alias='providerEmail')
provideraccesstoken: str = Field(..., alias='providerAccessToken')
provideraccesstoken: str = Field(..., alias='providerAccessToken', json_schema_extra={'format': 'password'})
provideraccesstokenexpiry: str = Field(..., alias='providerAccessTokenExpiry')
providerrefreshtoken: str = Field(..., alias='providerRefreshToken')
provideridtoken: str = Field(..., alias='providerIdToken')
providerrefreshtoken: str = Field(..., alias='providerRefreshToken', json_schema_extra={'format': 'password'})
provideridtoken: str = Field(..., alias='providerIdToken', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Jwt(AppwriteModel):
JWT encoded string.
"""

jwt: str = Field(..., alias='jwt')
jwt: str = Field(..., alias='jwt', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Key(AppwriteModel):
description: str = Field(..., alias='description')
expire: str = Field(..., alias='expire')
scopes: List[Any] = Field(..., alias='scopes')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
accessedat: str = Field(..., alias='accessedAt')
sdks: List[Any] = Field(..., alias='sdks')

Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/mfa_challenge_secret.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class MfaChallengeSecret(AppwriteModel):
createdat: str = Field(..., alias='$createdAt')
userid: str = Field(..., alias='userId')
expire: str = Field(..., alias='expire')
code: str = Field(..., alias='code')
code: str = Field(..., alias='code', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/mfa_recovery_codes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class MfaRecoveryCodes(AppwriteModel):
Recovery codes.
"""

recoverycodes: List[Any] = Field(..., alias='recoveryCodes')
recoverycodes: List[Any] = Field(..., alias='recoveryCodes', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
4 changes: 2 additions & 2 deletions appwrite/models/mfa_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ class MfaType(AppwriteModel):
URI for authenticator apps.
"""

secret: str = Field(..., alias='secret')
uri: str = Field(..., alias='uri')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})
uri: str = Field(..., alias='uri', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_amazon.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Amazon(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_apple.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class OAuth2Apple(AppwriteModel):
serviceid: str = Field(..., alias='serviceId')
keyid: str = Field(..., alias='keyId')
teamid: str = Field(..., alias='teamId')
p8file: str = Field(..., alias='p8File')
p8file: str = Field(..., alias='p8File', json_schema_extra={'format': 'password'})
nativeenabled: bool = Field(..., alias='nativeEnabled')
nativeclientids: List[Any] = Field(..., alias='nativeClientIds')

Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_appwrite.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Appwrite(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_auth0.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OAuth2Auth0(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})
prompt: List[OAuth2Auth0Prompt] = Field(..., alias='prompt')
endpoint: str = Field(..., alias='endpoint')

Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_authentik.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class OAuth2Authentik(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})
endpoint: str = Field(..., alias='endpoint')

@model_validator(mode='before')
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_autodesk.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Autodesk(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_bitbucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Bitbucket(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
key: str = Field(..., alias='key')
secret: str = Field(..., alias='secret')
secret: str = Field(..., alias='secret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_bitly.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Bitly(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Box(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_cloudflare.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Cloudflare(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_dailymotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class OAuth2Dailymotion(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
apikey: str = Field(..., alias='apiKey')
apisecret: str = Field(..., alias='apiSecret')
apisecret: str = Field(..., alias='apiSecret', json_schema_extra={'format': 'password'})

@model_validator(mode='before')
@classmethod
Expand Down
2 changes: 1 addition & 1 deletion appwrite/models/o_auth2_discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class OAuth2Discord(AppwriteModel):
id: str = Field(..., alias='$id')
enabled: bool = Field(..., alias='enabled')
clientid: str = Field(..., alias='clientId')
clientsecret: str = Field(..., alias='clientSecret')
clientsecret: str = Field(..., alias='clientSecret', json_schema_extra={'format': 'password'})
prompt: List[OAuth2DiscordPrompt] = Field(..., alias='prompt')

@model_validator(mode='before')
Expand Down
Loading
Loading