appwrite 22.2.0__tar.gz → 23.0.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.2.0 → appwrite-23.0.0}/PKG-INFO +3 -3
- {appwrite-22.2.0 → appwrite-23.0.0}/README.md +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/client.py +10 -3
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/encoders/value_class_encoder.py +8 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/authentication_factor.py +1 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/build_runtime.py +1 -0
- appwrite-23.0.0/appwrite/enums/embedding_model.py +7 -0
- appwrite-23.0.0/appwrite/enums/invalidation_type.py +6 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_key_scopes.py +2 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_policy_id.py +1 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/runtime.py +1 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/__init__.py +18 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan.py +8 -8
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan_addon.py +4 -4
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan_addon_details.py +2 -2
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/database.py +1 -1
- appwrite-23.0.0/appwrite/models/database_migration.py +60 -0
- appwrite-23.0.0/appwrite/models/database_migration_list.py +19 -0
- appwrite-23.0.0/appwrite/models/database_status.py +57 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/database_status_connections.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/database_status_replica.py +2 -2
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/dedicated_database.py +3 -6
- appwrite-23.0.0/appwrite/models/dedicated_database_member.py +24 -0
- appwrite-23.0.0/appwrite/models/dedicated_database_operation.py +45 -0
- appwrite-23.0.0/appwrite/models/dedicated_database_operation_list.py +19 -0
- appwrite-23.0.0/appwrite/models/dedicated_database_replicas.py +37 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/dedicated_database_specification_pricing.py +0 -3
- appwrite-23.0.0/appwrite/models/document.py +121 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/document_list.py +1 -1
- appwrite-23.0.0/appwrite/models/embedding.py +24 -0
- appwrite-23.0.0/appwrite/models/embedding_list.py +19 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/file.py +6 -0
- appwrite-23.0.0/appwrite/models/mfa_challenge_secret.py +27 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mfa_factors.py +3 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/organization.py +25 -25
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_list.py +3 -2
- appwrite-23.0.0/appwrite/models/policy_mfa_factors.py +27 -0
- appwrite-23.0.0/appwrite/models/preferences.py +67 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/project.py +3 -0
- appwrite-23.0.0/appwrite/models/proxy_invalidation.py +24 -0
- appwrite-23.0.0/appwrite/models/row.py +121 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/row_list.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/team_list.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/usage_billing_plan.py +6 -6
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/user_list.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/service.py +2 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/account.py +1 -40
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/activities.py +2 -2
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/apps.py +52 -5
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/backups.py +3 -3
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/databases.py +4 -4
- appwrite-23.0.0/appwrite/services/embeddings.py +58 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/functions.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/project.py +76 -72
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/proxy.py +56 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/sites.py +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/storage.py +6 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/tables_db.py +310 -7
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/users.py +47 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite.egg-info/PKG-INFO +3 -3
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite.egg-info/SOURCES.txt +12 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/pyproject.toml +1 -1
- {appwrite-22.2.0 → appwrite-23.0.0}/setup.py +2 -2
- appwrite-22.2.0/appwrite/models/database_status.py +0 -39
- appwrite-22.2.0/appwrite/models/dedicated_database_member.py +0 -24
- appwrite-22.2.0/appwrite/models/dedicated_database_replicas.py +0 -22
- appwrite-22.2.0/appwrite/models/document.py +0 -80
- appwrite-22.2.0/appwrite/models/preferences.py +0 -52
- appwrite-22.2.0/appwrite/models/row.py +0 -80
- {appwrite-22.2.0 → appwrite-23.0.0}/LICENSE +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/billing_plan_group.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/browser.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/compression.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/database_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/database_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/flag.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/framework.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/o_auth_provider.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/organization_key_scopes.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth_provider_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/region.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/exception.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/input_file.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/activity_event.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/additional_resource.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_installation.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_installation_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_key.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_key_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_scope.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_scope_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_secret.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/app_secret_plaintext.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/base_model.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan_dedicated_database_limits.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan_limits.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/billing_plan_supported_addons.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/block.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/bucket.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/collection.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_float.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_index.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_line.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_point.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_string.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_text.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_url.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/continent.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/country.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/country_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/currency.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/database_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/database_status_volume.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/dedicated_database_specification.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/dedicated_database_specification_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/deployment.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/email_template.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/execution.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/file_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/framework.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/function.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/function_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/headers.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/identity.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/index.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/index_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/insight.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/jwt.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/key.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/key_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/language.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/language_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/locale.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/log.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/log_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/membership.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/message.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/message_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_appwrite.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_oidc.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_provider_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_token.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_token_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_grant.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_organization.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_organization_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_par.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_project.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_project_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/phone.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/presence.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/program.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/project_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/project_service.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/provider.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/report.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/report_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/runtime.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/session.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/session_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/site.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/site_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/specification.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/table.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/table_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/target.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/target_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/team.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/token.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/topic.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/transaction.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/user.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/variable.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/webhook.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/operator.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/permission.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/query.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/role.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/advisor.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/avatars.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/graphql.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/locale.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/messaging.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/oauth2.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/organization.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/presences.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/teams.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/tokens.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/services/webhooks.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/setup.cfg +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/test/test_id.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/test/test_operator.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/test/test_permission.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/test/test_query.py +0 -0
- {appwrite-22.2.0 → appwrite-23.0.0}/test/test_role.py +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: appwrite
|
|
3
|
-
Version:
|
|
3
|
+
Version: 23.0.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/
|
|
6
|
+
Download-URL: https://github.com/appwrite/sdk-for-python/archive/23.0.0.tar.gz
|
|
7
7
|
Author: Appwrite Team
|
|
8
8
|
Author-email: Appwrite Team <team@appwrite.io>
|
|
9
9
|
Maintainer: Appwrite Team
|
|
@@ -38,7 +38,7 @@ Dynamic: requires-python
|
|
|
38
38
|
# Appwrite Python SDK
|
|
39
39
|
|
|
40
40
|

|
|
41
|
-

|
|
42
42
|
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
43
43
|
[](https://twitter.com/appwrite)
|
|
44
44
|
[](https://appwrite.io/discord)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Appwrite Python SDK
|
|
2
2
|
|
|
3
3
|

|
|
4
|
-

|
|
5
5
|
[](https://travis-ci.com/appwrite/sdk-generator)
|
|
6
6
|
[](https://twitter.com/appwrite)
|
|
7
7
|
[](https://appwrite.io/discord)
|
|
@@ -17,12 +17,12 @@ 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/
|
|
20
|
+
'user-agent' : f'AppwritePythonSDK/23.0.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': '
|
|
25
|
-
'X-Appwrite-Response-Format' : '1.9.
|
|
24
|
+
'x-sdk-version': '23.0.0',
|
|
25
|
+
'X-Appwrite-Response-Format' : '1.9.6',
|
|
26
26
|
}
|
|
27
27
|
self._config = {}
|
|
28
28
|
|
|
@@ -60,6 +60,13 @@ class Client:
|
|
|
60
60
|
self._config['key'] = value
|
|
61
61
|
return self
|
|
62
62
|
|
|
63
|
+
def set_organization(self, value):
|
|
64
|
+
"""Your organization ID"""
|
|
65
|
+
|
|
66
|
+
self._global_headers['x-appwrite-organization'] = value
|
|
67
|
+
self._config['organization'] = value
|
|
68
|
+
return self
|
|
69
|
+
|
|
63
70
|
def set_jwt(self, value):
|
|
64
71
|
"""Your secret JSON Web Token"""
|
|
65
72
|
|
|
@@ -15,6 +15,7 @@ from ..enums.relationship_type import RelationshipType
|
|
|
15
15
|
from ..enums.relation_mutate import RelationMutate
|
|
16
16
|
from ..enums.databases_index_type import DatabasesIndexType
|
|
17
17
|
from ..enums.order_by import OrderBy
|
|
18
|
+
from ..enums.embedding_model import EmbeddingModel
|
|
18
19
|
from ..enums.runtime import Runtime
|
|
19
20
|
from ..enums.project_key_scopes import ProjectKeyScopes
|
|
20
21
|
from ..enums.template_reference_type import TemplateReferenceType
|
|
@@ -35,6 +36,7 @@ from ..enums.project_service_id import ProjectServiceId
|
|
|
35
36
|
from ..enums.project_smtp_secure import ProjectSMTPSecure
|
|
36
37
|
from ..enums.project_email_template_id import ProjectEmailTemplateId
|
|
37
38
|
from ..enums.project_email_template_locale import ProjectEmailTemplateLocale
|
|
39
|
+
from ..enums.invalidation_type import InvalidationType
|
|
38
40
|
from ..enums.status_code import StatusCode
|
|
39
41
|
from ..enums.proxy_resource_type import ProxyResourceType
|
|
40
42
|
from ..enums.framework import Framework
|
|
@@ -111,6 +113,9 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
111
113
|
if isinstance(o, OrderBy):
|
|
112
114
|
return o.value
|
|
113
115
|
|
|
116
|
+
if isinstance(o, EmbeddingModel):
|
|
117
|
+
return o.value
|
|
118
|
+
|
|
114
119
|
if isinstance(o, Runtime):
|
|
115
120
|
return o.value
|
|
116
121
|
|
|
@@ -171,6 +176,9 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
171
176
|
if isinstance(o, ProjectEmailTemplateLocale):
|
|
172
177
|
return o.value
|
|
173
178
|
|
|
179
|
+
if isinstance(o, InvalidationType):
|
|
180
|
+
return o.value
|
|
181
|
+
|
|
174
182
|
if isinstance(o, StatusCode):
|
|
175
183
|
return o.value
|
|
176
184
|
|
|
@@ -35,6 +35,7 @@ class ProjectKeyScopes(Enum):
|
|
|
35
35
|
INDEXES_WRITE = "indexes.write"
|
|
36
36
|
ROWS_READ = "rows.read"
|
|
37
37
|
ROWS_WRITE = "rows.write"
|
|
38
|
+
EMBEDDINGS_WRITE = "embeddings.write"
|
|
38
39
|
COLLECTIONS_READ = "collections.read"
|
|
39
40
|
COLLECTIONS_WRITE = "collections.write"
|
|
40
41
|
ATTRIBUTES_READ = "attributes.read"
|
|
@@ -99,6 +100,7 @@ class ProjectKeyScopes(Enum):
|
|
|
99
100
|
WAFRULES_READ = "wafRules.read"
|
|
100
101
|
WAFRULES_WRITE = "wafRules.write"
|
|
101
102
|
EVENTS_READ = "events.read"
|
|
103
|
+
PROXY_INVALIDATIONS_WRITE = "proxy.invalidations.write"
|
|
102
104
|
APPS_READ = "apps.read"
|
|
103
105
|
APPS_WRITE = "apps.write"
|
|
104
106
|
OAUTH2_READ = "oauth2.read"
|
|
@@ -11,6 +11,7 @@ class ProjectPolicyId(Enum):
|
|
|
11
11
|
SESSION_LIMIT = "session-limit"
|
|
12
12
|
USER_LIMIT = "user-limit"
|
|
13
13
|
MEMBERSHIP_PRIVACY = "membership-privacy"
|
|
14
|
+
MFA_FACTORS = "mfa-factors"
|
|
14
15
|
DENY_ALIASED_EMAIL = "deny-aliased-email"
|
|
15
16
|
DENY_DISPOSABLE_EMAIL = "deny-disposable-email"
|
|
16
17
|
DENY_FREE_EMAIL = "deny-free-email"
|
|
@@ -43,9 +43,11 @@ from .subscriber_list import SubscriberList
|
|
|
43
43
|
from .target_list import TargetList
|
|
44
44
|
from .transaction_list import TransactionList
|
|
45
45
|
from .specification_list import SpecificationList
|
|
46
|
+
from .embedding_list import EmbeddingList
|
|
46
47
|
from .insight_list import InsightList
|
|
47
48
|
from .report_list import ReportList
|
|
48
49
|
from .database import Database
|
|
50
|
+
from .embedding import Embedding
|
|
49
51
|
from .collection import Collection
|
|
50
52
|
from .attribute_list import AttributeList
|
|
51
53
|
from .attribute_string import AttributeString
|
|
@@ -180,6 +182,7 @@ from .policy_session_invalidation import PolicySessionInvalidation
|
|
|
180
182
|
from .policy_session_limit import PolicySessionLimit
|
|
181
183
|
from .policy_user_limit import PolicyUserLimit
|
|
182
184
|
from .policy_membership_privacy import PolicyMembershipPrivacy
|
|
185
|
+
from .policy_mfa_factors import PolicyMfaFactors
|
|
183
186
|
from .platform_web import PlatformWeb
|
|
184
187
|
from .platform_apple import PlatformApple
|
|
185
188
|
from .platform_android import PlatformAndroid
|
|
@@ -197,6 +200,7 @@ from .specification import Specification
|
|
|
197
200
|
from .proxy_rule import ProxyRule
|
|
198
201
|
from .email_template import EmailTemplate
|
|
199
202
|
from .mfa_challenge import MfaChallenge
|
|
203
|
+
from .mfa_challenge_secret import MfaChallengeSecret
|
|
200
204
|
from .mfa_recovery_codes import MfaRecoveryCodes
|
|
201
205
|
from .mfa_type import MfaType
|
|
202
206
|
from .mfa_factors import MfaFactors
|
|
@@ -220,10 +224,14 @@ from .billing_plan_limits import BillingPlanLimits
|
|
|
220
224
|
from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
|
|
221
225
|
from .billing_plan_supported_addons import BillingPlanSupportedAddons
|
|
222
226
|
from .block import Block
|
|
227
|
+
from .database_migration import DatabaseMigration
|
|
223
228
|
from .dedicated_database import DedicatedDatabase
|
|
224
229
|
from .database_status import DatabaseStatus
|
|
225
230
|
from .dedicated_database_member import DedicatedDatabaseMember
|
|
231
|
+
from .dedicated_database_operation import DedicatedDatabaseOperation
|
|
232
|
+
from .dedicated_database_operation_list import DedicatedDatabaseOperationList
|
|
226
233
|
from .dedicated_database_replicas import DedicatedDatabaseReplicas
|
|
234
|
+
from .proxy_invalidation import ProxyInvalidation
|
|
227
235
|
from .organization import Organization
|
|
228
236
|
from .backup_policy import BackupPolicy
|
|
229
237
|
from .policy_deny_aliased_email import PolicyDenyAliasedEmail
|
|
@@ -264,6 +272,7 @@ from .activity_event_list import ActivityEventList
|
|
|
264
272
|
from .backup_archive_list import BackupArchiveList
|
|
265
273
|
from .backup_policy_list import BackupPolicyList
|
|
266
274
|
from .backup_restoration_list import BackupRestorationList
|
|
275
|
+
from .database_migration_list import DatabaseMigrationList
|
|
267
276
|
from .apps_list import AppsList
|
|
268
277
|
from .app_secret_list import AppSecretList
|
|
269
278
|
from .app_scope_list import AppScopeList
|
|
@@ -316,9 +325,11 @@ __all__ = [
|
|
|
316
325
|
'TargetList',
|
|
317
326
|
'TransactionList',
|
|
318
327
|
'SpecificationList',
|
|
328
|
+
'EmbeddingList',
|
|
319
329
|
'InsightList',
|
|
320
330
|
'ReportList',
|
|
321
331
|
'Database',
|
|
332
|
+
'Embedding',
|
|
322
333
|
'Collection',
|
|
323
334
|
'AttributeList',
|
|
324
335
|
'AttributeString',
|
|
@@ -453,6 +464,7 @@ __all__ = [
|
|
|
453
464
|
'PolicySessionLimit',
|
|
454
465
|
'PolicyUserLimit',
|
|
455
466
|
'PolicyMembershipPrivacy',
|
|
467
|
+
'PolicyMfaFactors',
|
|
456
468
|
'PlatformWeb',
|
|
457
469
|
'PlatformApple',
|
|
458
470
|
'PlatformAndroid',
|
|
@@ -470,6 +482,7 @@ __all__ = [
|
|
|
470
482
|
'ProxyRule',
|
|
471
483
|
'EmailTemplate',
|
|
472
484
|
'MfaChallenge',
|
|
485
|
+
'MfaChallengeSecret',
|
|
473
486
|
'MfaRecoveryCodes',
|
|
474
487
|
'MfaType',
|
|
475
488
|
'MfaFactors',
|
|
@@ -493,10 +506,14 @@ __all__ = [
|
|
|
493
506
|
'BillingPlanDedicatedDatabaseLimits',
|
|
494
507
|
'BillingPlanSupportedAddons',
|
|
495
508
|
'Block',
|
|
509
|
+
'DatabaseMigration',
|
|
496
510
|
'DedicatedDatabase',
|
|
497
511
|
'DatabaseStatus',
|
|
498
512
|
'DedicatedDatabaseMember',
|
|
513
|
+
'DedicatedDatabaseOperation',
|
|
514
|
+
'DedicatedDatabaseOperationList',
|
|
499
515
|
'DedicatedDatabaseReplicas',
|
|
516
|
+
'ProxyInvalidation',
|
|
500
517
|
'Organization',
|
|
501
518
|
'BackupPolicy',
|
|
502
519
|
'PolicyDenyAliasedEmail',
|
|
@@ -537,6 +554,7 @@ __all__ = [
|
|
|
537
554
|
'BackupArchiveList',
|
|
538
555
|
'BackupPolicyList',
|
|
539
556
|
'BackupRestorationList',
|
|
557
|
+
'DatabaseMigrationList',
|
|
540
558
|
'AppsList',
|
|
541
559
|
'AppSecretList',
|
|
542
560
|
'AppScopeList',
|
|
@@ -36,7 +36,7 @@ class BillingPlan(AppwriteModel):
|
|
|
36
36
|
Image Transformations
|
|
37
37
|
screenshotsgenerated : float
|
|
38
38
|
Screenshots generated
|
|
39
|
-
members : float
|
|
39
|
+
members : Optional[float]
|
|
40
40
|
Members
|
|
41
41
|
webhooks : float
|
|
42
42
|
Webhooks
|
|
@@ -84,7 +84,7 @@ class BillingPlan(AppwriteModel):
|
|
|
84
84
|
SMS authentications per month
|
|
85
85
|
domains : float
|
|
86
86
|
Custom domains
|
|
87
|
-
activitylogs : float
|
|
87
|
+
activitylogs : Optional[float]
|
|
88
88
|
Activity log days
|
|
89
89
|
usagelogs : float
|
|
90
90
|
Usage history days
|
|
@@ -132,13 +132,13 @@ class BillingPlan(AppwriteModel):
|
|
|
132
132
|
Does plan support restricting sign-ups to corporate email addresses only.
|
|
133
133
|
supportsprojectspecificroles : bool
|
|
134
134
|
Does plan support project-specific member roles.
|
|
135
|
-
backupsenabled : bool
|
|
135
|
+
backupsenabled : Optional[bool]
|
|
136
136
|
Does plan support backup policies.
|
|
137
137
|
usageperproject : bool
|
|
138
138
|
Whether usage addons are calculated per project.
|
|
139
139
|
supportedaddons : BillingPlanSupportedAddons
|
|
140
140
|
Supported addons for this plan
|
|
141
|
-
backuppolicies : float
|
|
141
|
+
backuppolicies : Optional[float]
|
|
142
142
|
How many policies does plan support
|
|
143
143
|
deploymentsize : float
|
|
144
144
|
Maximum function and site deployment size in MB
|
|
@@ -165,7 +165,7 @@ class BillingPlan(AppwriteModel):
|
|
|
165
165
|
storage: float = Field(..., alias='storage')
|
|
166
166
|
imagetransformations: float = Field(..., alias='imageTransformations')
|
|
167
167
|
screenshotsgenerated: float = Field(..., alias='screenshotsGenerated')
|
|
168
|
-
members: float = Field(
|
|
168
|
+
members: Optional[float] = Field(default=None, alias='members')
|
|
169
169
|
webhooks: float = Field(..., alias='webhooks')
|
|
170
170
|
wafrules: float = Field(..., alias='wafRules')
|
|
171
171
|
projects: float = Field(..., alias='projects')
|
|
@@ -189,7 +189,7 @@ class BillingPlan(AppwriteModel):
|
|
|
189
189
|
topics: float = Field(..., alias='topics')
|
|
190
190
|
authphone: float = Field(..., alias='authPhone')
|
|
191
191
|
domains: float = Field(..., alias='domains')
|
|
192
|
-
activitylogs: float = Field(
|
|
192
|
+
activitylogs: Optional[float] = Field(default=None, alias='activityLogs')
|
|
193
193
|
usagelogs: float = Field(..., alias='usageLogs')
|
|
194
194
|
usagelogsintervals: Optional[List[Any]] = Field(default=None, alias='usageLogsIntervals')
|
|
195
195
|
projectinactivitydays: float = Field(..., alias='projectInactivityDays')
|
|
@@ -213,10 +213,10 @@ class BillingPlan(AppwriteModel):
|
|
|
213
213
|
supportsfreeemailvalidation: bool = Field(..., alias='supportsFreeEmailValidation')
|
|
214
214
|
supportscorporateemailvalidation: bool = Field(..., alias='supportsCorporateEmailValidation')
|
|
215
215
|
supportsprojectspecificroles: bool = Field(..., alias='supportsProjectSpecificRoles')
|
|
216
|
-
backupsenabled: bool = Field(
|
|
216
|
+
backupsenabled: Optional[bool] = Field(default=None, alias='backupsEnabled')
|
|
217
217
|
usageperproject: bool = Field(..., alias='usagePerProject')
|
|
218
218
|
supportedaddons: BillingPlanSupportedAddons = Field(..., alias='supportedAddons')
|
|
219
|
-
backuppolicies: float = Field(
|
|
219
|
+
backuppolicies: Optional[float] = Field(default=None, alias='backupPolicies')
|
|
220
220
|
deploymentsize: float = Field(..., alias='deploymentSize')
|
|
221
221
|
buildsize: float = Field(..., alias='buildSize')
|
|
222
222
|
databasesallowencrypt: bool = Field(..., alias='databasesAllowEncrypt')
|
|
@@ -10,10 +10,10 @@ class BillingPlanAddon(AppwriteModel):
|
|
|
10
10
|
|
|
11
11
|
Attributes
|
|
12
12
|
----------
|
|
13
|
-
seats : BillingPlanAddonDetails
|
|
13
|
+
seats : Optional[BillingPlanAddonDetails]
|
|
14
14
|
Addon seats
|
|
15
|
-
projects : BillingPlanAddonDetails
|
|
15
|
+
projects : Optional[BillingPlanAddonDetails]
|
|
16
16
|
Addon projects
|
|
17
17
|
"""
|
|
18
|
-
seats: BillingPlanAddonDetails = Field(
|
|
19
|
-
projects: BillingPlanAddonDetails = Field(
|
|
18
|
+
seats: Optional[BillingPlanAddonDetails] = Field(default=None, alias='seats')
|
|
19
|
+
projects: Optional[BillingPlanAddonDetails] = Field(default=None, alias='projects')
|
|
@@ -17,7 +17,7 @@ class BillingPlanAddonDetails(AppwriteModel):
|
|
|
17
17
|
Addon limit
|
|
18
18
|
type : str
|
|
19
19
|
Addon type
|
|
20
|
-
currency : str
|
|
20
|
+
currency : Optional[str]
|
|
21
21
|
Price currency
|
|
22
22
|
price : float
|
|
23
23
|
Price
|
|
@@ -30,7 +30,7 @@ class BillingPlanAddonDetails(AppwriteModel):
|
|
|
30
30
|
planincluded: float = Field(..., alias='planIncluded')
|
|
31
31
|
limit: float = Field(..., alias='limit')
|
|
32
32
|
type: str = Field(..., alias='type')
|
|
33
|
-
currency: str = Field(
|
|
33
|
+
currency: Optional[str] = Field(default=None, alias='currency')
|
|
34
34
|
price: float = Field(..., alias='price')
|
|
35
35
|
value: float = Field(..., alias='value')
|
|
36
36
|
invoicedesc: str = Field(..., alias='invoiceDesc')
|
|
@@ -28,7 +28,7 @@ class Database(AppwriteModel):
|
|
|
28
28
|
status : Optional[DatabaseStatus]
|
|
29
29
|
Dedicated database lifecycle status. Null when the database has no valid dedicated backing.
|
|
30
30
|
engine : Optional[str]
|
|
31
|
-
Underlying engine of the dedicated backing: postgresql, mysql,
|
|
31
|
+
Underlying engine of the dedicated backing: postgresql, mysql, 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
32
|
specification : Optional[str]
|
|
33
33
|
Compute specification identifier of the dedicated backing, e.g. s-2vcpu-2gb. Null when the database has no dedicated backing.
|
|
34
34
|
replicas : Optional[float]
|
|
@@ -0,0 +1,60 @@
|
|
|
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 DatabaseMigration(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Database Migration
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Database migration ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Migration creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Migration update time in ISO 8601 format.
|
|
18
|
+
projectid : str
|
|
19
|
+
Project ID that owns the migrating database.
|
|
20
|
+
databaseid : str
|
|
21
|
+
Logical database ID being migrated.
|
|
22
|
+
specification : str
|
|
23
|
+
Dedicated compute specification provisioned for the migration target.
|
|
24
|
+
phase : str
|
|
25
|
+
Migration phase. Possible values: pending, provisioned, capturing, backfilling, catching_up, verifying, ready_to_cutover, cutover, soaking, done, failed, rolled_back.
|
|
26
|
+
attempt : float
|
|
27
|
+
Number of times a migration step has failed and been recorded.
|
|
28
|
+
lasterror : str
|
|
29
|
+
Reason the most recent migration step failed, empty while none has.
|
|
30
|
+
lagdocuments : float
|
|
31
|
+
Number of documents still pending replication to the target.
|
|
32
|
+
verifiedat : str
|
|
33
|
+
Time the migrated data was verified against the source in ISO 8601 format.
|
|
34
|
+
cutoverat : str
|
|
35
|
+
Time routing was flipped to the target in ISO 8601 format.
|
|
36
|
+
soakuntil : str
|
|
37
|
+
Time the post-cutover soak window ends in ISO 8601 format.
|
|
38
|
+
autocutover : bool
|
|
39
|
+
Whether the migration cuts over automatically once ready. Set when the migration is created and never changed afterwards, so it always reports what was asked for.
|
|
40
|
+
cutoverrequested : bool
|
|
41
|
+
Whether a cutover has been requested and not yet attempted. Set by the cutover endpoint and cleared when the attempt is made, so a cutover that fails a check parks the migration again rather than retrying on its own.
|
|
42
|
+
paused : bool
|
|
43
|
+
Whether the migration is paused.
|
|
44
|
+
"""
|
|
45
|
+
id: str = Field(..., alias='$id')
|
|
46
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
47
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
48
|
+
projectid: str = Field(..., alias='projectId')
|
|
49
|
+
databaseid: str = Field(..., alias='databaseId')
|
|
50
|
+
specification: str = Field(..., alias='specification')
|
|
51
|
+
phase: str = Field(..., alias='phase')
|
|
52
|
+
attempt: float = Field(..., alias='attempt')
|
|
53
|
+
lasterror: str = Field(..., alias='lastError')
|
|
54
|
+
lagdocuments: float = Field(..., alias='lagDocuments')
|
|
55
|
+
verifiedat: str = Field(..., alias='verifiedAt')
|
|
56
|
+
cutoverat: str = Field(..., alias='cutoverAt')
|
|
57
|
+
soakuntil: str = Field(..., alias='soakUntil')
|
|
58
|
+
autocutover: bool = Field(..., alias='autoCutover')
|
|
59
|
+
cutoverrequested: bool = Field(..., alias='cutoverRequested')
|
|
60
|
+
paused: bool = Field(..., alias='paused')
|
|
@@ -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 .database_migration import DatabaseMigration
|
|
6
|
+
|
|
7
|
+
class DatabaseMigrationList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Database Migrations List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of migrations that matched your query.
|
|
15
|
+
migrations : List[DatabaseMigration]
|
|
16
|
+
List of migrations.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
migrations: List[DatabaseMigration] = Field(..., alias='migrations')
|
|
@@ -0,0 +1,57 @@
|
|
|
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, unhealthy, or unknown when nothing could be measured.
|
|
17
|
+
ready : bool
|
|
18
|
+
Whether the database is ready to accept connections.
|
|
19
|
+
engine : str
|
|
20
|
+
Database engine: postgresql, mysql, or mongodb.
|
|
21
|
+
version : str
|
|
22
|
+
Database engine version.
|
|
23
|
+
uptime : float
|
|
24
|
+
Database uptime in seconds.
|
|
25
|
+
connections : DatabaseStatusConnections
|
|
26
|
+
Connection statistics.
|
|
27
|
+
syncmode : str
|
|
28
|
+
Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
|
|
29
|
+
effectivesyncmode : Optional[str]
|
|
30
|
+
Replication sync mode the primary is actually enforcing. Null when high availability is disabled or the state could not be read.
|
|
31
|
+
syncdegraded : bool
|
|
32
|
+
Whether the enforced replication is weaker than the requested syncMode.
|
|
33
|
+
syncacknowledgements : float
|
|
34
|
+
Number of standby acknowledgements the primary waits for before a write is committed.
|
|
35
|
+
syncstandbycount : float
|
|
36
|
+
Number of standbys registered with the primary for synchronous replication.
|
|
37
|
+
syncstateconfirmed : Optional[bool]
|
|
38
|
+
Whether the other sync fields are an engine reading rather than a recorded estimate. True when the primary answered what it is enforcing, including when that answer contradicted the record, in which case the contradicted values are replaced by the ones the engine reports. False when the reading could not be taken: the probe did not answer, there was no engine to ask, or the values describe a configuration change just applied rather than anything measured. Absent when no engine was asked at all, so an unprobed database is distinguishable from an unconfirmed one. False never means a standby was found lagging, because it is the absence of a reading rather than a negative one, so draw no conclusion about replication health from it or from a response that omits it.
|
|
39
|
+
replicas : List[DatabaseStatusReplica]
|
|
40
|
+
List of database replicas and their status. Every configured member appears, including one the backend has not brought up, which is reported as not healthy.
|
|
41
|
+
volumes : List[DatabaseStatusVolume]
|
|
42
|
+
Storage volume information.
|
|
43
|
+
"""
|
|
44
|
+
health: str = Field(..., alias='health')
|
|
45
|
+
ready: bool = Field(..., alias='ready')
|
|
46
|
+
engine: str = Field(..., alias='engine')
|
|
47
|
+
version: str = Field(..., alias='version')
|
|
48
|
+
uptime: float = Field(..., alias='uptime')
|
|
49
|
+
connections: DatabaseStatusConnections = Field(..., alias='connections')
|
|
50
|
+
syncmode: str = Field(..., alias='syncMode')
|
|
51
|
+
effectivesyncmode: Optional[str] = Field(default=None, alias='effectiveSyncMode')
|
|
52
|
+
syncdegraded: bool = Field(..., alias='syncDegraded')
|
|
53
|
+
syncacknowledgements: float = Field(..., alias='syncAcknowledgements')
|
|
54
|
+
syncstandbycount: float = Field(..., alias='syncStandbyCount')
|
|
55
|
+
syncstateconfirmed: Optional[bool] = Field(default=None, alias='syncStateConfirmed')
|
|
56
|
+
replicas: List[DatabaseStatusReplica] = Field(..., alias='replicas')
|
|
57
|
+
volumes: List[DatabaseStatusVolume] = Field(..., alias='volumes')
|
|
@@ -12,7 +12,7 @@ class DatabaseStatusConnections(AppwriteModel):
|
|
|
12
12
|
current : float
|
|
13
13
|
Current number of active connections.
|
|
14
14
|
max : float
|
|
15
|
-
|
|
15
|
+
The engine's own max_connections. On a pooled database this is the backend limit the pooler multiplexes onto, not the ceiling a client pool may reach — that is networkMaxConnections on the database resource.
|
|
16
16
|
"""
|
|
17
17
|
current: float = Field(..., alias='current')
|
|
18
18
|
max: float = Field(..., alias='max')
|
|
@@ -10,9 +10,9 @@ class DatabaseStatusReplica(AppwriteModel):
|
|
|
10
10
|
Attributes
|
|
11
11
|
----------
|
|
12
12
|
index : float
|
|
13
|
-
|
|
13
|
+
Member index within the database. Read `role` for which member accepts writes: a failover moves the primary without renumbering the indexes.
|
|
14
14
|
role : str
|
|
15
|
-
|
|
15
|
+
Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology, so no member can be named the write target).
|
|
16
16
|
healthy : bool
|
|
17
17
|
Whether the replica is healthy.
|
|
18
18
|
lagseconds : Optional[float]
|
|
@@ -22,7 +22,7 @@ class DedicatedDatabase(AppwriteModel):
|
|
|
22
22
|
api : str
|
|
23
23
|
Product API that owns this database: tablesdb, documentsdb, vectorsdb, mysql, postgresql, or mongodb.
|
|
24
24
|
engine : str
|
|
25
|
-
Database engine: postgresql, mysql,
|
|
25
|
+
Database engine: postgresql, mysql, or mongodb. Null until the backing reports one.
|
|
26
26
|
version : str
|
|
27
27
|
Database engine version.
|
|
28
28
|
specification : str
|
|
@@ -32,7 +32,7 @@ class DedicatedDatabase(AppwriteModel):
|
|
|
32
32
|
hostname : str
|
|
33
33
|
Database hostname for connections.
|
|
34
34
|
connectionport : float
|
|
35
|
-
Database port for connections.
|
|
35
|
+
Database port for connections. Derived from the engine when the backing has not reported one yet.
|
|
36
36
|
connectionuser : str
|
|
37
37
|
Database username for connections.
|
|
38
38
|
connectionpassword : str
|
|
@@ -69,10 +69,8 @@ class DedicatedDatabase(AppwriteModel):
|
|
|
69
69
|
Number of high availability replicas. High availability is enabled when greater than 0.
|
|
70
70
|
syncmode : str
|
|
71
71
|
Replication sync mode: async, sync, or quorum.
|
|
72
|
-
crossregionreplicas : float
|
|
73
|
-
Number of cross-region replicas. Cross-region availability is enabled when greater than 0.
|
|
74
72
|
networkmaxconnections : float
|
|
75
|
-
Maximum concurrent connections.
|
|
73
|
+
Maximum concurrent client connections. This is the limit a client pool may reach; the engine's own max_connections reported by the status endpoint is a smaller backend limit the pooler multiplexes onto and does not constrain a client pool.
|
|
76
74
|
networkidletimeoutseconds : float
|
|
77
75
|
Connection idle timeout in seconds.
|
|
78
76
|
networkipallowlist : List[Any]
|
|
@@ -138,7 +136,6 @@ class DedicatedDatabase(AppwriteModel):
|
|
|
138
136
|
nodepool: str = Field(..., alias='nodePool')
|
|
139
137
|
replicas: float = Field(..., alias='replicas')
|
|
140
138
|
syncmode: str = Field(..., alias='syncMode')
|
|
141
|
-
crossregionreplicas: float = Field(..., alias='crossRegionReplicas')
|
|
142
139
|
networkmaxconnections: float = Field(..., alias='networkMaxConnections')
|
|
143
140
|
networkidletimeoutseconds: float = Field(..., alias='networkIdleTimeoutSeconds')
|
|
144
141
|
networkipallowlist: List[Any] = Field(..., alias='networkIPAllowlist')
|
|
@@ -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 DedicatedDatabaseMember(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Member
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Member identifier.
|
|
14
|
+
role : str
|
|
15
|
+
Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology and this member has not been probed, so no member can be named the write target).
|
|
16
|
+
status : str
|
|
17
|
+
Member pod status. Possible values: pending (configured but absent from the backend topology, so nothing is bringing it up), provisioning (pod missing or Pending), starting (Running but not Ready), active (Running and Ready), failed (Failed phase or CrashLoopBackOff container), or the lowercased pod phase reported by the cluster.
|
|
18
|
+
lagseconds : Optional[float]
|
|
19
|
+
Replication lag in seconds. Null when the lag is not known: a primary has none to report, and a member the backend has not probed has none yet.
|
|
20
|
+
"""
|
|
21
|
+
id: str = Field(..., alias='$id')
|
|
22
|
+
role: str = Field(..., alias='role')
|
|
23
|
+
status: str = Field(..., alias='status')
|
|
24
|
+
lagseconds: Optional[float] = Field(default=None, alias='lagSeconds')
|
|
@@ -0,0 +1,45 @@
|
|
|
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 DedicatedDatabaseOperation(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Operation
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Operation ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Operation creation time in ISO 8601 format.
|
|
16
|
+
databaseid : str
|
|
17
|
+
Database ID the operation ran against.
|
|
18
|
+
type : str
|
|
19
|
+
Operation type, such as provision, update, restore, pausing, resuming, failover, backup-create or cross-region-enable.
|
|
20
|
+
status : str
|
|
21
|
+
Operation status. Possible values: running (in progress), completed (finished successfully), failed (ended in an error).
|
|
22
|
+
attempts : float
|
|
23
|
+
Number of times this operation has been attempted.
|
|
24
|
+
requestedat : Optional[str]
|
|
25
|
+
Time the operation was requested, in ISO 8601 format.
|
|
26
|
+
startedat : Optional[str]
|
|
27
|
+
Time the operation started, in ISO 8601 format.
|
|
28
|
+
completedat : Optional[str]
|
|
29
|
+
Time the operation reached a terminal state, in ISO 8601 format.
|
|
30
|
+
errorcode : str
|
|
31
|
+
Machine-readable failure code. `Interrupted` marks an attempt that ended before its outcome could be confirmed.
|
|
32
|
+
errormessage : str
|
|
33
|
+
Failure message if the operation failed.
|
|
34
|
+
"""
|
|
35
|
+
id: str = Field(..., alias='$id')
|
|
36
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
37
|
+
databaseid: str = Field(..., alias='databaseId')
|
|
38
|
+
type: str = Field(..., alias='type')
|
|
39
|
+
status: str = Field(..., alias='status')
|
|
40
|
+
attempts: float = Field(..., alias='attempts')
|
|
41
|
+
requestedat: Optional[str] = Field(default=None, alias='requestedAt')
|
|
42
|
+
startedat: Optional[str] = Field(default=None, alias='startedAt')
|
|
43
|
+
completedat: Optional[str] = Field(default=None, alias='completedAt')
|
|
44
|
+
errorcode: str = Field(..., alias='errorCode')
|
|
45
|
+
errormessage: str = Field(..., alias='errorMessage')
|