appwrite 22.1.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.1.0 → appwrite-23.0.0}/PKG-INFO +3 -3
- {appwrite-22.1.0 → appwrite-23.0.0}/README.md +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/client.py +10 -3
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/encoders/value_class_encoder.py +8 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/authentication_factor.py +1 -0
- {appwrite-22.1.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.1.0 → appwrite-23.0.0}/appwrite/enums/organization_key_scopes.py +2 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_key_scopes.py +2 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_policy_id.py +1 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/runtime.py +1 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/__init__.py +26 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app.py +6 -0
- appwrite-23.0.0/appwrite/models/app_installation.py +42 -0
- appwrite-23.0.0/appwrite/models/app_installation_list.py +19 -0
- appwrite-23.0.0/appwrite/models/app_key.py +39 -0
- appwrite-23.0.0/appwrite/models/app_key_list.py +19 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan.py +8 -8
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan_addon.py +4 -4
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan_addon_details.py +2 -2
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/database.py +6 -0
- 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.1.0 → appwrite-23.0.0}/appwrite/models/database_status_connections.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/database_status_replica.py +2 -2
- {appwrite-22.1.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.1.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.1.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.1.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.1.0 → appwrite-23.0.0}/appwrite/models/mfa_factors.py +3 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/organization.py +25 -25
- {appwrite-22.1.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.1.0 → appwrite-23.0.0}/appwrite/models/project.py +6 -0
- appwrite-23.0.0/appwrite/models/proxy_invalidation.py +24 -0
- appwrite-23.0.0/appwrite/models/row.py +121 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/row_list.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/team_list.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/usage_billing_plan.py +6 -6
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/user_list.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/service.py +2 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/account.py +1 -40
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/activities.py +2 -2
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/apps.py +416 -2
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/backups.py +3 -3
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/databases.py +4 -4
- appwrite-23.0.0/appwrite/services/embeddings.py +58 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/functions.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/organization.py +213 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/project.py +81 -72
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/proxy.py +56 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/sites.py +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/storage.py +6 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/tables_db.py +310 -7
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/teams.py +248 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/users.py +47 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite.egg-info/PKG-INFO +3 -3
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite.egg-info/SOURCES.txt +16 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/pyproject.toml +1 -1
- {appwrite-22.1.0 → appwrite-23.0.0}/setup.py +2 -2
- appwrite-22.1.0/appwrite/models/database_status.py +0 -39
- appwrite-22.1.0/appwrite/models/dedicated_database_member.py +0 -24
- appwrite-22.1.0/appwrite/models/dedicated_database_replicas.py +0 -22
- appwrite-22.1.0/appwrite/models/document.py +0 -80
- appwrite-22.1.0/appwrite/models/preferences.py +0 -52
- appwrite-22.1.0/appwrite/models/row.py +0 -80
- {appwrite-22.1.0 → appwrite-23.0.0}/LICENSE +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/__init__.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/billing_plan_group.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/browser.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/compression.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/database_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/database_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/flag.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/framework.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/o_auth_provider.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth2_oidc_prompt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_o_auth_provider_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/region.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/exception.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/input_file.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/activity_event.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/additional_resource.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app_scope.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app_scope_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app_secret.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/app_secret_plaintext.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/base_model.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan_dedicated_database_limits.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan_limits.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/billing_plan_supported_addons.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/block.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/bucket.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/collection.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_float.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_index.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_line.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_point.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_string.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_text.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_url.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/continent.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/country.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/country_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/currency.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/database_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/database_status_volume.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/dedicated_database_specification.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/dedicated_database_specification_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/deployment.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/email_template.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/execution.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/file_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/framework.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/function.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/function_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/headers.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/identity.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/index.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/index_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/insight.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/jwt.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/key.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/key_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/language.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/language_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/locale.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/log.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/log_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/membership.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/message.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/message_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_appwrite.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_oidc.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_provider_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_token.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_consent_token_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_grant.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_organization.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_organization_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_par.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_project.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_project_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/phone.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/presence.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/program.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/project_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/project_service.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/provider.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/report.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/report_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/runtime.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/session.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/session_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/site.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/site_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/specification.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/table.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/table_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/target.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/target_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/team.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/token.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/topic.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/transaction.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/user.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/variable.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/webhook.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/operator.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/permission.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/query.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/role.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/__init__.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/advisor.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/avatars.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/graphql.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/locale.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/messaging.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/oauth2.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/presences.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/tokens.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/services/webhooks.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/setup.cfg +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/test/test_id.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/test/test_operator.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/test/test_permission.py +0 -0
- {appwrite-22.1.0 → appwrite-23.0.0}/test/test_query.py +0 -0
- {appwrite-22.1.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
|
|
|
@@ -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"
|
|
@@ -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
|
|
@@ -243,6 +251,8 @@ from .app import App
|
|
|
243
251
|
from .app_secret import AppSecret
|
|
244
252
|
from .app_secret_plaintext import AppSecretPlaintext
|
|
245
253
|
from .app_scope import AppScope
|
|
254
|
+
from .app_installation import AppInstallation
|
|
255
|
+
from .app_key import AppKey
|
|
246
256
|
from .oauth2_authorize import Oauth2Authorize
|
|
247
257
|
from .oauth2_approve import Oauth2Approve
|
|
248
258
|
from .oauth2_reject import Oauth2Reject
|
|
@@ -262,9 +272,12 @@ from .activity_event_list import ActivityEventList
|
|
|
262
272
|
from .backup_archive_list import BackupArchiveList
|
|
263
273
|
from .backup_policy_list import BackupPolicyList
|
|
264
274
|
from .backup_restoration_list import BackupRestorationList
|
|
275
|
+
from .database_migration_list import DatabaseMigrationList
|
|
265
276
|
from .apps_list import AppsList
|
|
266
277
|
from .app_secret_list import AppSecretList
|
|
267
278
|
from .app_scope_list import AppScopeList
|
|
279
|
+
from .app_installation_list import AppInstallationList
|
|
280
|
+
from .app_key_list import AppKeyList
|
|
268
281
|
|
|
269
282
|
__all__ = [
|
|
270
283
|
'AppwriteModel',
|
|
@@ -312,9 +325,11 @@ __all__ = [
|
|
|
312
325
|
'TargetList',
|
|
313
326
|
'TransactionList',
|
|
314
327
|
'SpecificationList',
|
|
328
|
+
'EmbeddingList',
|
|
315
329
|
'InsightList',
|
|
316
330
|
'ReportList',
|
|
317
331
|
'Database',
|
|
332
|
+
'Embedding',
|
|
318
333
|
'Collection',
|
|
319
334
|
'AttributeList',
|
|
320
335
|
'AttributeString',
|
|
@@ -449,6 +464,7 @@ __all__ = [
|
|
|
449
464
|
'PolicySessionLimit',
|
|
450
465
|
'PolicyUserLimit',
|
|
451
466
|
'PolicyMembershipPrivacy',
|
|
467
|
+
'PolicyMfaFactors',
|
|
452
468
|
'PlatformWeb',
|
|
453
469
|
'PlatformApple',
|
|
454
470
|
'PlatformAndroid',
|
|
@@ -466,6 +482,7 @@ __all__ = [
|
|
|
466
482
|
'ProxyRule',
|
|
467
483
|
'EmailTemplate',
|
|
468
484
|
'MfaChallenge',
|
|
485
|
+
'MfaChallengeSecret',
|
|
469
486
|
'MfaRecoveryCodes',
|
|
470
487
|
'MfaType',
|
|
471
488
|
'MfaFactors',
|
|
@@ -489,10 +506,14 @@ __all__ = [
|
|
|
489
506
|
'BillingPlanDedicatedDatabaseLimits',
|
|
490
507
|
'BillingPlanSupportedAddons',
|
|
491
508
|
'Block',
|
|
509
|
+
'DatabaseMigration',
|
|
492
510
|
'DedicatedDatabase',
|
|
493
511
|
'DatabaseStatus',
|
|
494
512
|
'DedicatedDatabaseMember',
|
|
513
|
+
'DedicatedDatabaseOperation',
|
|
514
|
+
'DedicatedDatabaseOperationList',
|
|
495
515
|
'DedicatedDatabaseReplicas',
|
|
516
|
+
'ProxyInvalidation',
|
|
496
517
|
'Organization',
|
|
497
518
|
'BackupPolicy',
|
|
498
519
|
'PolicyDenyAliasedEmail',
|
|
@@ -512,6 +533,8 @@ __all__ = [
|
|
|
512
533
|
'AppSecret',
|
|
513
534
|
'AppSecretPlaintext',
|
|
514
535
|
'AppScope',
|
|
536
|
+
'AppInstallation',
|
|
537
|
+
'AppKey',
|
|
515
538
|
'Oauth2Authorize',
|
|
516
539
|
'Oauth2Approve',
|
|
517
540
|
'Oauth2Reject',
|
|
@@ -531,7 +554,10 @@ __all__ = [
|
|
|
531
554
|
'BackupArchiveList',
|
|
532
555
|
'BackupPolicyList',
|
|
533
556
|
'BackupRestorationList',
|
|
557
|
+
'DatabaseMigrationList',
|
|
534
558
|
'AppsList',
|
|
535
559
|
'AppSecretList',
|
|
536
560
|
'AppScopeList',
|
|
561
|
+
'AppInstallationList',
|
|
562
|
+
'AppKeyList',
|
|
537
563
|
]
|
|
@@ -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')
|
|
@@ -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')
|
|
@@ -27,6 +27,10 @@ class Database(AppwriteModel):
|
|
|
27
27
|
Database type.
|
|
28
28
|
status : Optional[DatabaseStatus]
|
|
29
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, 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.
|
|
30
34
|
replicas : Optional[float]
|
|
31
35
|
Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
|
|
32
36
|
policies : Optional[List[BackupPolicy]]
|
|
@@ -41,6 +45,8 @@ class Database(AppwriteModel):
|
|
|
41
45
|
enabled: bool = Field(..., alias='enabled')
|
|
42
46
|
type: DatabaseType = Field(..., alias='type')
|
|
43
47
|
status: Optional[DatabaseStatus] = Field(default=None, alias='status')
|
|
48
|
+
engine: Optional[str] = Field(default=None, alias='engine')
|
|
49
|
+
specification: Optional[str] = Field(default=None, alias='specification')
|
|
44
50
|
replicas: Optional[float] = Field(default=None, alias='replicas')
|
|
45
51
|
policies: Optional[List[BackupPolicy]] = Field(default=None, alias='policies')
|
|
46
52
|
archives: Optional[List[BackupArchive]] = Field(default=None, alias='archives')
|
|
@@ -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')
|