-
Notifications
You must be signed in to change notification settings - Fork 67
feat: Python SDK update for version 19.0.0 #143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| from enum import Enum | ||
|
|
||
| class OAuth2GooglePrompt(Enum): | ||
| NONE = "none" | ||
| CONSENT = "consent" | ||
| SELECT_ACCOUNT = "select_account" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/auth_method.py → appwrite/enums/project_auth_method_id.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/email_template_type.py → appwrite/enums/project_email_template_id.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/email_template_locale.py → ...te/enums/project_email_template_locale.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,97 @@ | ||
| from enum import Enum | ||
|
|
||
| class ProjectKeyScopes(Enum): | ||
| PROJECT_READ = "project.read" | ||
| PROJECT_WRITE = "project.write" | ||
| KEYS_READ = "keys.read" | ||
| KEYS_WRITE = "keys.write" | ||
| PLATFORMS_READ = "platforms.read" | ||
| PLATFORMS_WRITE = "platforms.write" | ||
| MOCKS_READ = "mocks.read" | ||
| MOCKS_WRITE = "mocks.write" | ||
| POLICIES_READ = "policies.read" | ||
| POLICIES_WRITE = "policies.write" | ||
| PROJECT_POLICIES_READ = "project.policies.read" | ||
| PROJECT_POLICIES_WRITE = "project.policies.write" | ||
| TEMPLATES_READ = "templates.read" | ||
| TEMPLATES_WRITE = "templates.write" | ||
| OAUTH2_READ = "oauth2.read" | ||
| OAUTH2_WRITE = "oauth2.write" | ||
| USERS_READ = "users.read" | ||
| USERS_WRITE = "users.write" | ||
| SESSIONS_READ = "sessions.read" | ||
| SESSIONS_WRITE = "sessions.write" | ||
| TEAMS_READ = "teams.read" | ||
| TEAMS_WRITE = "teams.write" | ||
| DATABASES_READ = "databases.read" | ||
| DATABASES_WRITE = "databases.write" | ||
| TABLES_READ = "tables.read" | ||
| TABLES_WRITE = "tables.write" | ||
| COLUMNS_READ = "columns.read" | ||
| COLUMNS_WRITE = "columns.write" | ||
| INDEXES_READ = "indexes.read" | ||
| INDEXES_WRITE = "indexes.write" | ||
| ROWS_READ = "rows.read" | ||
| ROWS_WRITE = "rows.write" | ||
| COLLECTIONS_READ = "collections.read" | ||
| COLLECTIONS_WRITE = "collections.write" | ||
| ATTRIBUTES_READ = "attributes.read" | ||
| ATTRIBUTES_WRITE = "attributes.write" | ||
| DOCUMENTS_READ = "documents.read" | ||
| DOCUMENTS_WRITE = "documents.write" | ||
| BUCKETS_READ = "buckets.read" | ||
| BUCKETS_WRITE = "buckets.write" | ||
| FILES_READ = "files.read" | ||
| FILES_WRITE = "files.write" | ||
| TOKENS_READ = "tokens.read" | ||
| TOKENS_WRITE = "tokens.write" | ||
| FUNCTIONS_READ = "functions.read" | ||
| FUNCTIONS_WRITE = "functions.write" | ||
| EXECUTIONS_READ = "executions.read" | ||
| EXECUTIONS_WRITE = "executions.write" | ||
| EXECUTION_READ = "execution.read" | ||
| EXECUTION_WRITE = "execution.write" | ||
| SITES_READ = "sites.read" | ||
| SITES_WRITE = "sites.write" | ||
| LOG_READ = "log.read" | ||
| LOG_WRITE = "log.write" | ||
| PROVIDERS_READ = "providers.read" | ||
| PROVIDERS_WRITE = "providers.write" | ||
| TOPICS_READ = "topics.read" | ||
| TOPICS_WRITE = "topics.write" | ||
| SUBSCRIBERS_READ = "subscribers.read" | ||
| SUBSCRIBERS_WRITE = "subscribers.write" | ||
| TARGETS_READ = "targets.read" | ||
| TARGETS_WRITE = "targets.write" | ||
| MESSAGES_READ = "messages.read" | ||
| MESSAGES_WRITE = "messages.write" | ||
| RULES_READ = "rules.read" | ||
| RULES_WRITE = "rules.write" | ||
| WEBHOOKS_READ = "webhooks.read" | ||
| WEBHOOKS_WRITE = "webhooks.write" | ||
| LOCALE_READ = "locale.read" | ||
| AVATARS_READ = "avatars.read" | ||
| HEALTH_READ = "health.read" | ||
| ASSISTANT_READ = "assistant.read" | ||
| MIGRATIONS_READ = "migrations.read" | ||
| MIGRATIONS_WRITE = "migrations.write" | ||
| SCHEDULES_READ = "schedules.read" | ||
| SCHEDULES_WRITE = "schedules.write" | ||
| VCS_READ = "vcs.read" | ||
| VCS_WRITE = "vcs.write" | ||
| INSIGHTS_READ = "insights.read" | ||
| INSIGHTS_WRITE = "insights.write" | ||
| REPORTS_READ = "reports.read" | ||
| REPORTS_WRITE = "reports.write" | ||
| PRESENCES_READ = "presences.read" | ||
| PRESENCES_WRITE = "presences.write" | ||
| BACKUPS_POLICIES_READ = "backups.policies.read" | ||
| BACKUPS_POLICIES_WRITE = "backups.policies.write" | ||
| ARCHIVES_READ = "archives.read" | ||
| ARCHIVES_WRITE = "archives.write" | ||
| RESTORATIONS_READ = "restorations.read" | ||
| RESTORATIONS_WRITE = "restorations.write" | ||
| DOMAINS_READ = "domains.read" | ||
| DOMAINS_WRITE = "domains.write" | ||
| EVENTS_READ = "events.read" | ||
| USAGE_READ = "usage.read" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| from enum import Enum | ||
|
|
||
| class ProjectOAuth2GooglePrompt(Enum): | ||
| NONE = "none" | ||
| CONSENT = "consent" | ||
| SELECT_ACCOUNT = "select_account" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| from enum import Enum | ||
|
|
||
| class ProjectOAuthProviderId(Enum): | ||
| AMAZON = "amazon" | ||
| APPLE = "apple" | ||
| AUTH0 = "auth0" | ||
| AUTHENTIK = "authentik" | ||
| AUTODESK = "autodesk" | ||
| BITBUCKET = "bitbucket" | ||
| BITLY = "bitly" | ||
| BOX = "box" | ||
| DAILYMOTION = "dailymotion" | ||
| DISCORD = "discord" | ||
| DISQUS = "disqus" | ||
| DROPBOX = "dropbox" | ||
| ETSY = "etsy" | ||
| FACEBOOK = "facebook" | ||
| FIGMA = "figma" | ||
| FUSIONAUTH = "fusionauth" | ||
| GITHUB = "github" | ||
| GITLAB = "gitlab" | ||
| GOOGLE = "google" | ||
| KEYCLOAK = "keycloak" | ||
| KICK = "kick" | ||
| LINKEDIN = "linkedin" | ||
| MICROSOFT = "microsoft" | ||
| NOTION = "notion" | ||
| OIDC = "oidc" | ||
| OKTA = "okta" | ||
| PAYPAL = "paypal" | ||
| PAYPALSANDBOX = "paypalSandbox" | ||
| PODIO = "podio" | ||
| SALESFORCE = "salesforce" | ||
| SLACK = "slack" | ||
| SPOTIFY = "spotify" | ||
| STRIPE = "stripe" | ||
| TRADESHIFT = "tradeshift" | ||
| TRADESHIFTBOX = "tradeshiftBox" | ||
| TWITCH = "twitch" | ||
| WORDPRESS = "wordpress" | ||
| X = "x" | ||
| YAHOO = "yahoo" | ||
| YAMMER = "yammer" | ||
| YANDEX = "yandex" | ||
| ZOHO = "zoho" | ||
| ZOOM = "zoom" | ||
| GITHUBIMAGINE = "githubImagine" | ||
| GOOGLEIMAGINE = "googleImagine" |
2 changes: 1 addition & 1 deletion
2
appwrite/enums/project_policy.py → appwrite/enums/project_policy_id.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/protocol_id.py → appwrite/enums/project_protocol_id.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| from enum import Enum | ||
|
|
||
| class ProtocolId(Enum): | ||
| class ProjectProtocolId(Enum): | ||
| REST = "rest" | ||
| GRAPHQL = "graphql" | ||
| WEBSOCKET = "websocket" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
appwrite/enums/secure.py → appwrite/enums/project_smtp_secure.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| from enum import Enum | ||
|
|
||
| class Secure(Enum): | ||
| class ProjectSMTPSecure(Enum): | ||
| TLS = "tls" | ||
| SSL = "ssl" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ProjectOAuth2GooglePromptOAuth2GooglePrompt(this file) andProjectOAuth2GooglePrompt(appwrite/enums/project_o_auth2_google_prompt.py) define the exact same three values (none,consent,select_account). Both are imported and registered invalue_class_encoder.py. The encoder handlesOAuth2GooglePromptbut no service or model appears to accept it as a parameter — onlyProjectOAuth2GooglePromptis used inproject.py. IfOAuth2GooglePromptis a legacy shim it should be marked deprecated; if it is truly redundant it should be removed.