appwrite 22.0.0__tar.gz → 22.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {appwrite-22.0.0 → appwrite-22.2.0}/PKG-INFO +2 -2
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/client.py +2 -2
- appwrite-22.2.0/appwrite/enums/database_status.py +17 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/database_type.py +3 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/organization_key_scopes.py +2 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_key_scopes.py +3 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/__init__.py +40 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/activity_event.py +33 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/app.py +6 -0
- appwrite-22.2.0/appwrite/models/app_installation.py +42 -0
- appwrite-22.2.0/appwrite/models/app_installation_list.py +19 -0
- appwrite-22.2.0/appwrite/models/app_key.py +39 -0
- appwrite-22.2.0/appwrite/models/app_key_list.py +19 -0
- appwrite-22.2.0/appwrite/models/app_scope.py +27 -0
- appwrite-22.2.0/appwrite/models/app_scope_list.py +19 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/app_secret.py +1 -1
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/app_secret_plaintext.py +1 -1
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan.py +3 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/database.py +14 -5
- appwrite-22.2.0/appwrite/models/database_status.py +39 -0
- appwrite-22.2.0/appwrite/models/database_status_connections.py +18 -0
- appwrite-22.2.0/appwrite/models/database_status_replica.py +24 -0
- appwrite-22.2.0/appwrite/models/database_status_volume.py +24 -0
- appwrite-22.2.0/appwrite/models/dedicated_database.py +159 -0
- appwrite-22.2.0/appwrite/models/dedicated_database_member.py +24 -0
- appwrite-22.2.0/appwrite/models/dedicated_database_replicas.py +22 -0
- appwrite-22.2.0/appwrite/models/dedicated_database_specification.py +39 -0
- appwrite-22.2.0/appwrite/models/dedicated_database_specification_list.py +23 -0
- appwrite-22.2.0/appwrite/models/dedicated_database_specification_pricing.py +27 -0
- appwrite-22.2.0/appwrite/models/oauth2_consent.py +42 -0
- appwrite-22.2.0/appwrite/models/oauth2_consent_list.py +19 -0
- appwrite-22.2.0/appwrite/models/oauth2_consent_token.py +45 -0
- appwrite-22.2.0/appwrite/models/oauth2_consent_token_list.py +19 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/project.py +6 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/account.py +267 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/apps.py +402 -6
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/backups.py +9 -8
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/oauth2.py +108 -5
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/organization.py +213 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/project.py +5 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/sites.py +6 -1
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/tables_db.py +167 -2
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/teams.py +248 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite.egg-info/PKG-INFO +2 -2
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite.egg-info/SOURCES.txt +20 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/pyproject.toml +1 -1
- {appwrite-22.0.0 → appwrite-22.2.0}/setup.py +2 -2
- appwrite-22.0.0/appwrite/enums/database_status.py +0 -6
- {appwrite-22.0.0 → appwrite-22.2.0}/LICENSE +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/README.md +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/encoders/value_class_encoder.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/authentication_factor.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/billing_plan_group.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/browser.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/build_runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/compression.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/flag.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/framework.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/o_auth_provider.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_o_auth_provider_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_policy_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/region.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/exception.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/input_file.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/additional_resource.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/base_model.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan_addon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan_addon_details.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan_dedicated_database_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan_limits.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/billing_plan_supported_addons.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/block.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/bucket.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/collection.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_float.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_index.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_line.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_point.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_string.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_text.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_url.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/continent.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/country.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/country_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/currency.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/database_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/deployment.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/document.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/document_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/email_template.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/execution.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/file.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/file_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/framework.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/function.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/function_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/headers.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/identity.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/index.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/index_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/insight.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/jwt.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/key.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/key_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/language.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/language_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/log.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/log_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/membership.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/message.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/message_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mfa_factors.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_appwrite.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_oidc.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_provider_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_grant.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_organization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_organization_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_par.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_project.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_project_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/organization.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/phone.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/preferences.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/presence.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/program.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/project_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/project_service.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/provider.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/report.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/report_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/row.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/row_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/runtime.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/session.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/session_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/site.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/site_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/specification.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/table.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/table_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/target.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/target_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/team.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/team_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/token.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/topic.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/transaction.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/usage_billing_plan.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/user.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/user_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/variable.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/webhook.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/operator.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/query.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/role.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/service.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/activities.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/advisor.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/avatars.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/databases.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/functions.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/graphql.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/locale.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/messaging.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/presences.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/proxy.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/storage.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/tokens.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/users.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/services/webhooks.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/setup.cfg +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/test/test_id.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/test/test_operator.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/test/test_permission.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/test/test_query.py +0 -0
- {appwrite-22.0.0 → appwrite-22.2.0}/test/test_role.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: appwrite
|
|
3
|
-
Version: 22.
|
|
3
|
+
Version: 22.2.0
|
|
4
4
|
Summary: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
|
|
5
5
|
Home-page: https://appwrite.io/support
|
|
6
|
-
Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.
|
|
6
|
+
Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.2.0.tar.gz
|
|
7
7
|
Author: Appwrite Team
|
|
8
8
|
Author-email: Appwrite Team <team@appwrite.io>
|
|
9
9
|
Maintainer: Appwrite Team
|
|
@@ -17,11 +17,11 @@ class Client:
|
|
|
17
17
|
self._endpoint = 'https://cloud.appwrite.io/v1'
|
|
18
18
|
self._global_headers = {
|
|
19
19
|
'content-type': '',
|
|
20
|
-
'user-agent' : f'AppwritePythonSDK/22.
|
|
20
|
+
'user-agent' : f'AppwritePythonSDK/22.2.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
|
|
21
21
|
'x-sdk-name': 'Python',
|
|
22
22
|
'x-sdk-platform': 'server',
|
|
23
23
|
'x-sdk-language': 'python',
|
|
24
|
-
'x-sdk-version': '22.
|
|
24
|
+
'x-sdk-version': '22.2.0',
|
|
25
25
|
'X-Appwrite-Response-Format' : '1.9.5',
|
|
26
26
|
}
|
|
27
27
|
self._config = {}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
class DatabaseStatus(Enum):
|
|
4
|
+
PROVISIONING = "provisioning"
|
|
5
|
+
READY = "ready"
|
|
6
|
+
INACTIVE = "inactive"
|
|
7
|
+
PAUSED = "paused"
|
|
8
|
+
FAILED = "failed"
|
|
9
|
+
DELETING = "deleting"
|
|
10
|
+
DELETED = "deleted"
|
|
11
|
+
RESTORING = "restoring"
|
|
12
|
+
SCALING = "scaling"
|
|
13
|
+
UPGRADING = "upgrading"
|
|
14
|
+
MIGRATING = "migrating"
|
|
15
|
+
PAUSING = "pausing"
|
|
16
|
+
RESUMING = "resuming"
|
|
17
|
+
FAILING_OVER = "failing-over"
|
|
@@ -7,6 +7,8 @@ class OrganizationKeyScopes(Enum):
|
|
|
7
7
|
DEVKEYS_WRITE = "devKeys.write"
|
|
8
8
|
ORGANIZATION_KEYS_READ = "organization.keys.read"
|
|
9
9
|
ORGANIZATION_KEYS_WRITE = "organization.keys.write"
|
|
10
|
+
ORGANIZATION_INSTALLATIONS_READ = "organization.installations.read"
|
|
11
|
+
ORGANIZATION_INSTALLATIONS_WRITE = "organization.installations.write"
|
|
10
12
|
ORGANIZATION_MEMBERSHIPS_READ = "organization.memberships.read"
|
|
11
13
|
ORGANIZATION_MEMBERSHIPS_WRITE = "organization.memberships.write"
|
|
12
14
|
ORGANIZATION_READ = "organization.read"
|
|
@@ -96,9 +96,12 @@ class ProjectKeyScopes(Enum):
|
|
|
96
96
|
DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
|
|
97
97
|
DOMAINS_READ = "domains.read"
|
|
98
98
|
DOMAINS_WRITE = "domains.write"
|
|
99
|
+
WAFRULES_READ = "wafRules.read"
|
|
100
|
+
WAFRULES_WRITE = "wafRules.write"
|
|
99
101
|
EVENTS_READ = "events.read"
|
|
100
102
|
APPS_READ = "apps.read"
|
|
101
103
|
APPS_WRITE = "apps.write"
|
|
102
104
|
OAUTH2_READ = "oauth2.read"
|
|
103
105
|
OAUTH2_WRITE = "oauth2.write"
|
|
106
|
+
OAUTH2_INTROSPECT = "oauth2.introspect"
|
|
104
107
|
USAGE_READ = "usage.read"
|
|
@@ -220,6 +220,10 @@ from .billing_plan_limits import BillingPlanLimits
|
|
|
220
220
|
from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
|
|
221
221
|
from .billing_plan_supported_addons import BillingPlanSupportedAddons
|
|
222
222
|
from .block import Block
|
|
223
|
+
from .dedicated_database import DedicatedDatabase
|
|
224
|
+
from .database_status import DatabaseStatus
|
|
225
|
+
from .dedicated_database_member import DedicatedDatabaseMember
|
|
226
|
+
from .dedicated_database_replicas import DedicatedDatabaseReplicas
|
|
223
227
|
from .organization import Organization
|
|
224
228
|
from .backup_policy import BackupPolicy
|
|
225
229
|
from .policy_deny_aliased_email import PolicyDenyAliasedEmail
|
|
@@ -228,10 +232,19 @@ from .policy_deny_free_email import PolicyDenyFreeEmail
|
|
|
228
232
|
from .policy_deny_corporate_email import PolicyDenyCorporateEmail
|
|
229
233
|
from .program import Program
|
|
230
234
|
from .backup_restoration import BackupRestoration
|
|
235
|
+
from .dedicated_database_specification import DedicatedDatabaseSpecification
|
|
236
|
+
from .dedicated_database_specification_list import DedicatedDatabaseSpecificationList
|
|
237
|
+
from .dedicated_database_specification_pricing import DedicatedDatabaseSpecificationPricing
|
|
238
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
239
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
240
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
231
241
|
from .usage_billing_plan import UsageBillingPlan
|
|
232
242
|
from .app import App
|
|
233
243
|
from .app_secret import AppSecret
|
|
234
244
|
from .app_secret_plaintext import AppSecretPlaintext
|
|
245
|
+
from .app_scope import AppScope
|
|
246
|
+
from .app_installation import AppInstallation
|
|
247
|
+
from .app_key import AppKey
|
|
235
248
|
from .oauth2_authorize import Oauth2Authorize
|
|
236
249
|
from .oauth2_approve import Oauth2Approve
|
|
237
250
|
from .oauth2_reject import Oauth2Reject
|
|
@@ -239,16 +252,23 @@ from .oauth2_grant import Oauth2Grant
|
|
|
239
252
|
from .oauth2_device_authorization import Oauth2DeviceAuthorization
|
|
240
253
|
from .oauth2_par import Oauth2PAR
|
|
241
254
|
from .oauth2_token import Oauth2Token
|
|
255
|
+
from .oauth2_consent import Oauth2Consent
|
|
256
|
+
from .oauth2_consent_token import Oauth2ConsentToken
|
|
242
257
|
from .oauth2_project import Oauth2Project
|
|
243
258
|
from .oauth2_organization import Oauth2Organization
|
|
244
259
|
from .oauth2_project_list import Oauth2ProjectList
|
|
245
260
|
from .oauth2_organization_list import Oauth2OrganizationList
|
|
261
|
+
from .oauth2_consent_list import Oauth2ConsentList
|
|
262
|
+
from .oauth2_consent_token_list import Oauth2ConsentTokenList
|
|
246
263
|
from .activity_event_list import ActivityEventList
|
|
247
264
|
from .backup_archive_list import BackupArchiveList
|
|
248
265
|
from .backup_policy_list import BackupPolicyList
|
|
249
266
|
from .backup_restoration_list import BackupRestorationList
|
|
250
267
|
from .apps_list import AppsList
|
|
251
268
|
from .app_secret_list import AppSecretList
|
|
269
|
+
from .app_scope_list import AppScopeList
|
|
270
|
+
from .app_installation_list import AppInstallationList
|
|
271
|
+
from .app_key_list import AppKeyList
|
|
252
272
|
|
|
253
273
|
__all__ = [
|
|
254
274
|
'AppwriteModel',
|
|
@@ -473,6 +493,10 @@ __all__ = [
|
|
|
473
493
|
'BillingPlanDedicatedDatabaseLimits',
|
|
474
494
|
'BillingPlanSupportedAddons',
|
|
475
495
|
'Block',
|
|
496
|
+
'DedicatedDatabase',
|
|
497
|
+
'DatabaseStatus',
|
|
498
|
+
'DedicatedDatabaseMember',
|
|
499
|
+
'DedicatedDatabaseReplicas',
|
|
476
500
|
'Organization',
|
|
477
501
|
'BackupPolicy',
|
|
478
502
|
'PolicyDenyAliasedEmail',
|
|
@@ -481,10 +505,19 @@ __all__ = [
|
|
|
481
505
|
'PolicyDenyCorporateEmail',
|
|
482
506
|
'Program',
|
|
483
507
|
'BackupRestoration',
|
|
508
|
+
'DedicatedDatabaseSpecification',
|
|
509
|
+
'DedicatedDatabaseSpecificationList',
|
|
510
|
+
'DedicatedDatabaseSpecificationPricing',
|
|
511
|
+
'DatabaseStatusConnections',
|
|
512
|
+
'DatabaseStatusReplica',
|
|
513
|
+
'DatabaseStatusVolume',
|
|
484
514
|
'UsageBillingPlan',
|
|
485
515
|
'App',
|
|
486
516
|
'AppSecret',
|
|
487
517
|
'AppSecretPlaintext',
|
|
518
|
+
'AppScope',
|
|
519
|
+
'AppInstallation',
|
|
520
|
+
'AppKey',
|
|
488
521
|
'Oauth2Authorize',
|
|
489
522
|
'Oauth2Approve',
|
|
490
523
|
'Oauth2Reject',
|
|
@@ -492,14 +525,21 @@ __all__ = [
|
|
|
492
525
|
'Oauth2DeviceAuthorization',
|
|
493
526
|
'Oauth2PAR',
|
|
494
527
|
'Oauth2Token',
|
|
528
|
+
'Oauth2Consent',
|
|
529
|
+
'Oauth2ConsentToken',
|
|
495
530
|
'Oauth2Project',
|
|
496
531
|
'Oauth2Organization',
|
|
497
532
|
'Oauth2ProjectList',
|
|
498
533
|
'Oauth2OrganizationList',
|
|
534
|
+
'Oauth2ConsentList',
|
|
535
|
+
'Oauth2ConsentTokenList',
|
|
499
536
|
'ActivityEventList',
|
|
500
537
|
'BackupArchiveList',
|
|
501
538
|
'BackupPolicyList',
|
|
502
539
|
'BackupRestorationList',
|
|
503
540
|
'AppsList',
|
|
504
541
|
'AppSecretList',
|
|
542
|
+
'AppScopeList',
|
|
543
|
+
'AppInstallationList',
|
|
544
|
+
'AppKeyList',
|
|
505
545
|
]
|
|
@@ -37,6 +37,24 @@ class ActivityEvent(AppwriteModel):
|
|
|
37
37
|
API mode when event triggered.
|
|
38
38
|
country : str
|
|
39
39
|
Location.
|
|
40
|
+
continentcode : str
|
|
41
|
+
Continent code.
|
|
42
|
+
city : str
|
|
43
|
+
City name.
|
|
44
|
+
subdivisions : str
|
|
45
|
+
Region/state chain.
|
|
46
|
+
isp : str
|
|
47
|
+
Internet service provider.
|
|
48
|
+
autonomoussystemnumber : str
|
|
49
|
+
Autonomous System Number (ASN).
|
|
50
|
+
autonomoussystemorganization : str
|
|
51
|
+
Organization that owns the ASN.
|
|
52
|
+
connectiontype : str
|
|
53
|
+
Connection type (e.g. cable, cellular, corporate).
|
|
54
|
+
connectionusagetype : str
|
|
55
|
+
User type (e.g. residential, business, hosting).
|
|
56
|
+
connectionorganization : str
|
|
57
|
+
Registered organization of the IP.
|
|
40
58
|
time : str
|
|
41
59
|
Log creation date in ISO 8601 format.
|
|
42
60
|
projectid : str
|
|
@@ -45,6 +63,10 @@ class ActivityEvent(AppwriteModel):
|
|
|
45
63
|
Team ID.
|
|
46
64
|
hostname : str
|
|
47
65
|
Hostname.
|
|
66
|
+
sdk : str
|
|
67
|
+
Name of the SDK that triggered the event.
|
|
68
|
+
sdkversion : str
|
|
69
|
+
Version of the SDK that triggered the event.
|
|
48
70
|
"""
|
|
49
71
|
id: str = Field(..., alias='$id')
|
|
50
72
|
actortype: str = Field(..., alias='actorType')
|
|
@@ -60,7 +82,18 @@ class ActivityEvent(AppwriteModel):
|
|
|
60
82
|
ip: str = Field(..., alias='ip')
|
|
61
83
|
mode: str = Field(..., alias='mode')
|
|
62
84
|
country: str = Field(..., alias='country')
|
|
85
|
+
continentcode: str = Field(..., alias='continentCode')
|
|
86
|
+
city: str = Field(..., alias='city')
|
|
87
|
+
subdivisions: str = Field(..., alias='subdivisions')
|
|
88
|
+
isp: str = Field(..., alias='isp')
|
|
89
|
+
autonomoussystemnumber: str = Field(..., alias='autonomousSystemNumber')
|
|
90
|
+
autonomoussystemorganization: str = Field(..., alias='autonomousSystemOrganization')
|
|
91
|
+
connectiontype: str = Field(..., alias='connectionType')
|
|
92
|
+
connectionusagetype: str = Field(..., alias='connectionUsageType')
|
|
93
|
+
connectionorganization: str = Field(..., alias='connectionOrganization')
|
|
63
94
|
time: str = Field(..., alias='time')
|
|
64
95
|
projectid: str = Field(..., alias='projectId')
|
|
65
96
|
teamid: str = Field(..., alias='teamId')
|
|
66
97
|
hostname: str = Field(..., alias='hostname')
|
|
98
|
+
sdk: str = Field(..., alias='sdk')
|
|
99
|
+
sdkversion: str = Field(..., alias='sdkVersion')
|
|
@@ -56,6 +56,10 @@ class App(AppwriteModel):
|
|
|
56
56
|
ID of team that owns the application, if owned by team. Otherwise, user ID will be used.
|
|
57
57
|
userid : str
|
|
58
58
|
ID of user who owns the application, if owned by user. Otherwise, team ID will be used.
|
|
59
|
+
installationscopes : List[Any]
|
|
60
|
+
Scopes the application requests when installed on a team. Organization-level and project-level scopes only.
|
|
61
|
+
installationredirecturl : str
|
|
62
|
+
URL users are redirected to after creating or updating an installation of this application. Empty for no redirect.
|
|
59
63
|
secrets : List[AppSecret]
|
|
60
64
|
List of application secrets.
|
|
61
65
|
"""
|
|
@@ -82,4 +86,6 @@ class App(AppwriteModel):
|
|
|
82
86
|
deviceflow: bool = Field(..., alias='deviceFlow')
|
|
83
87
|
teamid: str = Field(..., alias='teamId')
|
|
84
88
|
userid: str = Field(..., alias='userId')
|
|
89
|
+
installationscopes: List[Any] = Field(..., alias='installationScopes')
|
|
90
|
+
installationredirecturl: str = Field(..., alias='installationRedirectUrl')
|
|
85
91
|
secrets: List[AppSecret] = Field(..., alias='secrets')
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class AppInstallation(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AppInstallation
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Installation ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Installation creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Installation update time in ISO 8601 format.
|
|
18
|
+
appid : str
|
|
19
|
+
ID of the installed application.
|
|
20
|
+
teamid : str
|
|
21
|
+
ID of the team the application is installed on.
|
|
22
|
+
scopes : List[Any]
|
|
23
|
+
Scopes granted to the application. Snapshot of the application's installation scopes taken when the installation was created or last updated.
|
|
24
|
+
authorizationdetails : Dict[str, Any]
|
|
25
|
+
Authorization details granted to the application. Rich authorization request (RFC 9396) style entries; the Appwrite Console stores authorized project IDs here.
|
|
26
|
+
createdbyid : str
|
|
27
|
+
ID of the user who created the installation.
|
|
28
|
+
createdbyname : str
|
|
29
|
+
Name of the user who created the installation.
|
|
30
|
+
lastaccessedat : Optional[str]
|
|
31
|
+
Time an access token was last issued for the installation in ISO 8601 format. Null if never used.
|
|
32
|
+
"""
|
|
33
|
+
id: str = Field(..., alias='$id')
|
|
34
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
35
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
36
|
+
appid: str = Field(..., alias='appId')
|
|
37
|
+
teamid: str = Field(..., alias='teamId')
|
|
38
|
+
scopes: List[Any] = Field(..., alias='scopes')
|
|
39
|
+
authorizationdetails: Dict[str, Any] = Field(..., alias='authorizationDetails')
|
|
40
|
+
createdbyid: str = Field(..., alias='createdById')
|
|
41
|
+
createdbyname: str = Field(..., alias='createdByName')
|
|
42
|
+
lastaccessedat: Optional[str] = Field(default=None, alias='lastAccessedAt')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .app_installation import AppInstallation
|
|
6
|
+
|
|
7
|
+
class AppInstallationList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
App installations list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of installations that matched your query.
|
|
15
|
+
installations : List[AppInstallation]
|
|
16
|
+
List of installations.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
installations: List[AppInstallation] = Field(..., alias='installations')
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class AppKey(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AppKey
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
App key ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
App key creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
App key update time in ISO 8601 format.
|
|
18
|
+
appid : str
|
|
19
|
+
Application ID this app key belongs to.
|
|
20
|
+
secret : str
|
|
21
|
+
App key secret.
|
|
22
|
+
hint : str
|
|
23
|
+
Last few characters of the app key secret, used to help identify it.
|
|
24
|
+
createdbyid : str
|
|
25
|
+
ID of the user who created the app key.
|
|
26
|
+
createdbyname : str
|
|
27
|
+
Name of the user who created the app key.
|
|
28
|
+
lastaccessedat : Optional[str]
|
|
29
|
+
Time the app key was last used for authentication in ISO 8601 format. Null if never used.
|
|
30
|
+
"""
|
|
31
|
+
id: str = Field(..., alias='$id')
|
|
32
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
33
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
34
|
+
appid: str = Field(..., alias='appId')
|
|
35
|
+
secret: str = Field(..., alias='secret')
|
|
36
|
+
hint: str = Field(..., alias='hint')
|
|
37
|
+
createdbyid: str = Field(..., alias='createdById')
|
|
38
|
+
createdbyname: str = Field(..., alias='createdByName')
|
|
39
|
+
lastaccessedat: Optional[str] = Field(default=None, alias='lastAccessedAt')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .app_key import AppKey
|
|
6
|
+
|
|
7
|
+
class AppKeyList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
App keys list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of keys that matched your query.
|
|
15
|
+
keys : List[AppKey]
|
|
16
|
+
List of keys.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
keys: List[AppKey] = Field(..., alias='keys')
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class AppScope(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AppScope
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
value : str
|
|
13
|
+
Scope value as requested by apps.
|
|
14
|
+
description : str
|
|
15
|
+
Human-readable description of what the scope grants.
|
|
16
|
+
type : str
|
|
17
|
+
What the scope grants access to. One of `account`, `project`, or `organization`. Only `project` and `organization` scopes are installable.
|
|
18
|
+
category : str
|
|
19
|
+
Scope category, used to group scopes on consent and installation screens.
|
|
20
|
+
deprecated : bool
|
|
21
|
+
Whether the scope is deprecated. Deprecated scopes can still be requested but should not be offered for new grants.
|
|
22
|
+
"""
|
|
23
|
+
value: str = Field(..., alias='value')
|
|
24
|
+
description: str = Field(..., alias='description')
|
|
25
|
+
type: str = Field(..., alias='type')
|
|
26
|
+
category: str = Field(..., alias='category')
|
|
27
|
+
deprecated: bool = Field(..., alias='deprecated')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .app_scope import AppScope
|
|
6
|
+
|
|
7
|
+
class AppScopeList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
App scopes list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of scopes that matched your query.
|
|
15
|
+
scopes : List[AppScope]
|
|
16
|
+
List of scopes.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
scopes: List[AppScope] = Field(..., alias='scopes')
|
|
@@ -18,7 +18,7 @@ class AppSecret(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
|
|
21
|
+
Always empty. The application client secret is returned only once, in the response of the createSecret method.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|
|
@@ -18,7 +18,7 @@ class AppSecretPlaintext(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
Application client secret. Returned
|
|
21
|
+
Application client secret. Returned only when the secret is created; subsequent reads always return an empty value.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|
|
@@ -40,6 +40,8 @@ class BillingPlan(AppwriteModel):
|
|
|
40
40
|
Members
|
|
41
41
|
webhooks : float
|
|
42
42
|
Webhooks
|
|
43
|
+
wafrules : float
|
|
44
|
+
Maximum WAF rules per project
|
|
43
45
|
projects : float
|
|
44
46
|
Projects
|
|
45
47
|
platforms : float
|
|
@@ -165,6 +167,7 @@ class BillingPlan(AppwriteModel):
|
|
|
165
167
|
screenshotsgenerated: float = Field(..., alias='screenshotsGenerated')
|
|
166
168
|
members: float = Field(..., alias='members')
|
|
167
169
|
webhooks: float = Field(..., alias='webhooks')
|
|
170
|
+
wafrules: float = Field(..., alias='wafRules')
|
|
168
171
|
projects: float = Field(..., alias='projects')
|
|
169
172
|
platforms: float = Field(..., alias='platforms')
|
|
170
173
|
users: float = Field(..., alias='users')
|
|
@@ -26,10 +26,16 @@ class Database(AppwriteModel):
|
|
|
26
26
|
type : DatabaseType
|
|
27
27
|
Database type.
|
|
28
28
|
status : Optional[DatabaseStatus]
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Dedicated database lifecycle status. Null when the database has no valid dedicated backing.
|
|
30
|
+
engine : Optional[str]
|
|
31
|
+
Underlying engine of the dedicated backing: postgresql, mysql, mariadb, or mongodb. A managed product (tablesdb, documentsdb, vectorsdb) reports the engine it runs on, so its type and engine can differ. Null when the database has no dedicated backing.
|
|
32
|
+
specification : Optional[str]
|
|
33
|
+
Compute specification identifier of the dedicated backing, e.g. s-2vcpu-2gb. Null when the database has no dedicated backing.
|
|
34
|
+
replicas : Optional[float]
|
|
35
|
+
Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
|
|
36
|
+
policies : Optional[List[BackupPolicy]]
|
|
31
37
|
Database backup policies.
|
|
32
|
-
archives : List[BackupArchive]
|
|
38
|
+
archives : Optional[List[BackupArchive]]
|
|
33
39
|
Database backup archives.
|
|
34
40
|
"""
|
|
35
41
|
id: str = Field(..., alias='$id')
|
|
@@ -39,5 +45,8 @@ class Database(AppwriteModel):
|
|
|
39
45
|
enabled: bool = Field(..., alias='enabled')
|
|
40
46
|
type: DatabaseType = Field(..., alias='type')
|
|
41
47
|
status: Optional[DatabaseStatus] = Field(default=None, alias='status')
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
engine: Optional[str] = Field(default=None, alias='engine')
|
|
49
|
+
specification: Optional[str] = Field(default=None, alias='specification')
|
|
50
|
+
replicas: Optional[float] = Field(default=None, alias='replicas')
|
|
51
|
+
policies: Optional[List[BackupPolicy]] = Field(default=None, alias='policies')
|
|
52
|
+
archives: Optional[List[BackupArchive]] = Field(default=None, alias='archives')
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
6
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
7
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
8
|
+
|
|
9
|
+
class DatabaseStatus(AppwriteModel):
|
|
10
|
+
"""
|
|
11
|
+
Status
|
|
12
|
+
|
|
13
|
+
Attributes
|
|
14
|
+
----------
|
|
15
|
+
health : str
|
|
16
|
+
Overall health status: healthy, degraded, or unhealthy.
|
|
17
|
+
ready : bool
|
|
18
|
+
Whether the database is ready to accept connections.
|
|
19
|
+
engine : str
|
|
20
|
+
Database engine: postgresql, mysql, mariadb, or mongodb.
|
|
21
|
+
version : str
|
|
22
|
+
Database engine version.
|
|
23
|
+
uptime : float
|
|
24
|
+
Database uptime in seconds.
|
|
25
|
+
connections : DatabaseStatusConnections
|
|
26
|
+
Connection statistics.
|
|
27
|
+
replicas : List[DatabaseStatusReplica]
|
|
28
|
+
List of database replicas and their status.
|
|
29
|
+
volumes : List[DatabaseStatusVolume]
|
|
30
|
+
Storage volume information.
|
|
31
|
+
"""
|
|
32
|
+
health: str = Field(..., alias='health')
|
|
33
|
+
ready: bool = Field(..., alias='ready')
|
|
34
|
+
engine: str = Field(..., alias='engine')
|
|
35
|
+
version: str = Field(..., alias='version')
|
|
36
|
+
uptime: float = Field(..., alias='uptime')
|
|
37
|
+
connections: DatabaseStatusConnections = Field(..., alias='connections')
|
|
38
|
+
replicas: List[DatabaseStatusReplica] = Field(..., alias='replicas')
|
|
39
|
+
volumes: List[DatabaseStatusVolume] = Field(..., alias='volumes')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusConnections(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Connections
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
current : float
|
|
13
|
+
Current number of active connections.
|
|
14
|
+
max : float
|
|
15
|
+
Maximum allowed connections.
|
|
16
|
+
"""
|
|
17
|
+
current: float = Field(..., alias='current')
|
|
18
|
+
max: float = Field(..., alias='max')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusReplica(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Replica
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
index : float
|
|
13
|
+
StatefulSet pod index (0 = primary, 1+ = replicas).
|
|
14
|
+
role : str
|
|
15
|
+
Replica role: primary or replica.
|
|
16
|
+
healthy : bool
|
|
17
|
+
Whether the replica is healthy.
|
|
18
|
+
lagseconds : Optional[float]
|
|
19
|
+
Replication lag in seconds (null for primary).
|
|
20
|
+
"""
|
|
21
|
+
index: float = Field(..., alias='index')
|
|
22
|
+
role: str = Field(..., alias='role')
|
|
23
|
+
healthy: bool = Field(..., alias='healthy')
|
|
24
|
+
lagseconds: Optional[float] = Field(default=None, alias='lagSeconds')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusVolume(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Volume
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
path : str
|
|
13
|
+
Mount path of the volume.
|
|
14
|
+
usedpercent : str
|
|
15
|
+
Percentage of storage used.
|
|
16
|
+
available : str
|
|
17
|
+
Available storage space.
|
|
18
|
+
mounted : bool
|
|
19
|
+
Whether the volume is mounted.
|
|
20
|
+
"""
|
|
21
|
+
path: str = Field(..., alias='path')
|
|
22
|
+
usedpercent: str = Field(..., alias='usedPercent')
|
|
23
|
+
available: str = Field(..., alias='available')
|
|
24
|
+
mounted: bool = Field(..., alias='mounted')
|