appwrite 21.0.0__tar.gz → 22.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-21.0.0 → appwrite-22.0.0}/PKG-INFO +2 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/client.py +11 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/encoders/value_class_encoder.py +15 -11
- appwrite-22.0.0/appwrite/enums/billing_plan_group.py +6 -0
- appwrite-22.0.0/appwrite/enums/database_status.py +6 -0
- appwrite-22.0.0/appwrite/enums/o_auth2_oidc_prompt.py +7 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/o_auth_provider.py +1 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/organization_key_scopes.py +4 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_key_scopes.py +6 -2
- appwrite-22.0.0/appwrite/enums/project_o_auth2_oidc_prompt.py +7 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_o_auth_provider_id.py +1 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/__init__.py +32 -20
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/activity_event.py +0 -6
- appwrite-22.0.0/appwrite/models/additional_resource.py +30 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/app.py +3 -0
- appwrite-22.0.0/appwrite/models/billing_plan.py +223 -0
- appwrite-22.0.0/appwrite/models/billing_plan_addon.py +19 -0
- appwrite-22.0.0/appwrite/models/billing_plan_addon_details.py +36 -0
- appwrite-22.0.0/appwrite/models/billing_plan_dedicated_database_limits.py +69 -0
- appwrite-22.0.0/appwrite/models/billing_plan_limits.py +18 -0
- appwrite-22.0.0/appwrite/models/billing_plan_supported_addons.py +21 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/block.py +3 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/database.py +4 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/document.py +11 -0
- appwrite-22.0.0/appwrite/models/locale.py +66 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/log.py +1 -1
- appwrite-22.0.0/appwrite/models/o_auth2_appwrite.py +24 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_oidc.py +7 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_provider_list.py +3 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_grant.py +3 -0
- appwrite-22.0.0/appwrite/models/oauth2_organization.py +15 -0
- appwrite-22.0.0/appwrite/models/oauth2_organization_list.py +19 -0
- appwrite-22.0.0/appwrite/models/oauth2_par.py +18 -0
- appwrite-22.0.0/appwrite/models/oauth2_project.py +21 -0
- appwrite-22.0.0/appwrite/models/oauth2_project_list.py +19 -0
- appwrite-22.0.0/appwrite/models/organization.py +132 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/preferences.py +11 -0
- appwrite-22.0.0/appwrite/models/program.py +39 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/project.py +6 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/row.py +11 -0
- appwrite-22.0.0/appwrite/models/usage_billing_plan.py +46 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/query.py +12 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/account.py +1 -1
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/apps.py +47 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/backups.py +19 -6
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/databases.py +138 -69
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/functions.py +32 -11
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/messaging.py +144 -269
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/oauth2.py +262 -29
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/organization.py +357 -6
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/project.py +409 -174
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/sites.py +20 -6
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/storage.py +6 -3
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/tables_db.py +145 -75
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/tokens.py +4 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/users.py +5 -3
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/webhooks.py +4 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite.egg-info/PKG-INFO +2 -2
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite.egg-info/SOURCES.txt +20 -15
- {appwrite-21.0.0 → appwrite-22.0.0}/pyproject.toml +1 -1
- {appwrite-21.0.0 → appwrite-22.0.0}/setup.py +2 -2
- appwrite-21.0.0/appwrite/enums/health_antivirus_status.py +0 -6
- appwrite-21.0.0/appwrite/enums/health_check_status.py +0 -5
- appwrite-21.0.0/appwrite/enums/health_queue_name.py +0 -16
- appwrite-21.0.0/appwrite/models/health_antivirus.py +0 -19
- appwrite-21.0.0/appwrite/models/health_certificate.py +0 -30
- appwrite-21.0.0/appwrite/models/health_queue.py +0 -15
- appwrite-21.0.0/appwrite/models/health_status.py +0 -22
- appwrite-21.0.0/appwrite/models/health_status_list.py +0 -19
- appwrite-21.0.0/appwrite/models/health_time.py +0 -21
- appwrite-21.0.0/appwrite/models/locale.py +0 -33
- appwrite-21.0.0/appwrite/models/usage_data_point.py +0 -60
- appwrite-21.0.0/appwrite/models/usage_event_list.py +0 -19
- appwrite-21.0.0/appwrite/models/usage_gauge_list.py +0 -19
- appwrite-21.0.0/appwrite/models/usage_metric.py +0 -19
- appwrite-21.0.0/appwrite/services/health.py +0 -882
- appwrite-21.0.0/appwrite/services/usage.py +0 -202
- {appwrite-21.0.0 → appwrite-22.0.0}/LICENSE +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/README.md +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/authentication_factor.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/browser.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/build_runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/compression.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/database_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/flag.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/framework.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_policy_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/region.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/exception.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/input_file.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/app_secret.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/app_secret_plaintext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/base_model.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/bucket.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/collection.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_float.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_index.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_line.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_point.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_string.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_text.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_url.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/continent.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/country.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/country_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/currency.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/database_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/deployment.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/document_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/email_template.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/execution.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/file.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/file_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/framework.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/function.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/function_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/headers.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/identity.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/index.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/index_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/insight.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/jwt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/key_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/language.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/language_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/log_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/membership.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/message.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/message_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mfa_factors.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/phone.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/presence.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/project_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/project_service.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/provider.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/report.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/report_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/row_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/session.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/session_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/site.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/site_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/specification.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/table.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/table_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/target.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/target_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/team.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/team_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/topic.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/transaction.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/user.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/user_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/variable.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/webhook.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/operator.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/role.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/service.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/activities.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/advisor.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/avatars.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/graphql.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/locale.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/presences.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/proxy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/services/teams.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/setup.cfg +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/test/test_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/test/test_operator.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/test/test_permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.0.0}/test/test_query.py +0 -0
- {appwrite-21.0.0 → appwrite-22.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: 22.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/22.0.0.tar.gz
|
|
7
7
|
Author: Appwrite Team
|
|
8
8
|
Author-email: Appwrite Team <team@appwrite.io>
|
|
9
9
|
Maintainer: Appwrite Team
|
|
@@ -17,11 +17,11 @@ class Client:
|
|
|
17
17
|
self._endpoint = 'https://cloud.appwrite.io/v1'
|
|
18
18
|
self._global_headers = {
|
|
19
19
|
'content-type': '',
|
|
20
|
-
'user-agent' : f'AppwritePythonSDK/
|
|
20
|
+
'user-agent' : f'AppwritePythonSDK/22.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': '
|
|
24
|
+
'x-sdk-version': '22.0.0',
|
|
25
25
|
'X-Appwrite-Response-Format' : '1.9.5',
|
|
26
26
|
}
|
|
27
27
|
self._config = {}
|
|
@@ -67,6 +67,13 @@ class Client:
|
|
|
67
67
|
self._config['jwt'] = value
|
|
68
68
|
return self
|
|
69
69
|
|
|
70
|
+
def set_bearer(self, value):
|
|
71
|
+
"""The OAuth access token to authenticate with"""
|
|
72
|
+
|
|
73
|
+
self._global_headers['authorization'] = 'Bearer ' + value
|
|
74
|
+
self._config['bearer'] = value
|
|
75
|
+
return self
|
|
76
|
+
|
|
70
77
|
def set_locale(self, value):
|
|
71
78
|
self._global_headers['x-appwrite-locale'] = value
|
|
72
79
|
self._config['locale'] = value
|
|
@@ -341,6 +348,8 @@ class Client:
|
|
|
341
348
|
|
|
342
349
|
if isinstance(value, list) or isinstance(value, dict):
|
|
343
350
|
output = {**output, **self.flatten(value, finalKey, stringify)}
|
|
351
|
+
elif isinstance(value, bool):
|
|
352
|
+
output[finalKey] = 'true' if value else 'false'
|
|
344
353
|
else:
|
|
345
354
|
if stringify:
|
|
346
355
|
output[finalKey] = str(value)
|
|
@@ -21,13 +21,13 @@ from ..enums.template_reference_type import TemplateReferenceType
|
|
|
21
21
|
from ..enums.vcs_reference_type import VCSReferenceType
|
|
22
22
|
from ..enums.deployment_download_type import DeploymentDownloadType
|
|
23
23
|
from ..enums.execution_method import ExecutionMethod
|
|
24
|
-
from ..enums.health_queue_name import HealthQueueName
|
|
25
24
|
from ..enums.message_priority import MessagePriority
|
|
26
25
|
from ..enums.smtp_encryption import SmtpEncryption
|
|
27
26
|
from ..enums.organization_key_scopes import OrganizationKeyScopes
|
|
28
27
|
from ..enums.region import Region
|
|
29
28
|
from ..enums.project_auth_method_id import ProjectAuthMethodId
|
|
30
29
|
from ..enums.project_o_auth2_google_prompt import ProjectOAuth2GooglePrompt
|
|
30
|
+
from ..enums.project_o_auth2_oidc_prompt import ProjectOAuth2OidcPrompt
|
|
31
31
|
from ..enums.project_o_auth_provider_id import ProjectOAuthProviderId
|
|
32
32
|
from ..enums.project_policy_id import ProjectPolicyId
|
|
33
33
|
from ..enums.project_protocol_id import ProjectProtocolId
|
|
@@ -46,6 +46,7 @@ from ..enums.tables_db_index_type import TablesDBIndexType
|
|
|
46
46
|
from ..enums.password_hash import PasswordHash
|
|
47
47
|
from ..enums.messaging_provider_type import MessagingProviderType
|
|
48
48
|
from ..enums.database_type import DatabaseType
|
|
49
|
+
from ..enums.database_status import DatabaseStatus
|
|
49
50
|
from ..enums.attribute_status import AttributeStatus
|
|
50
51
|
from ..enums.column_status import ColumnStatus
|
|
51
52
|
from ..enums.index_status import IndexStatus
|
|
@@ -53,12 +54,12 @@ from ..enums.deployment_status import DeploymentStatus
|
|
|
53
54
|
from ..enums.execution_trigger import ExecutionTrigger
|
|
54
55
|
from ..enums.execution_status import ExecutionStatus
|
|
55
56
|
from ..enums.o_auth2_google_prompt import OAuth2GooglePrompt
|
|
57
|
+
from ..enums.o_auth2_oidc_prompt import OAuth2OidcPrompt
|
|
56
58
|
from ..enums.platform_type import PlatformType
|
|
57
|
-
from ..enums.health_antivirus_status import HealthAntivirusStatus
|
|
58
|
-
from ..enums.health_check_status import HealthCheckStatus
|
|
59
59
|
from ..enums.proxy_rule_deployment_resource_type import ProxyRuleDeploymentResourceType
|
|
60
60
|
from ..enums.proxy_rule_status import ProxyRuleStatus
|
|
61
61
|
from ..enums.message_status import MessageStatus
|
|
62
|
+
from ..enums.billing_plan_group import BillingPlanGroup
|
|
62
63
|
|
|
63
64
|
class ValueClassEncoder(json.JSONEncoder):
|
|
64
65
|
def default(self, o):
|
|
@@ -128,9 +129,6 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
128
129
|
if isinstance(o, ExecutionMethod):
|
|
129
130
|
return o.value
|
|
130
131
|
|
|
131
|
-
if isinstance(o, HealthQueueName):
|
|
132
|
-
return o.value
|
|
133
|
-
|
|
134
132
|
if isinstance(o, MessagePriority):
|
|
135
133
|
return o.value
|
|
136
134
|
|
|
@@ -149,6 +147,9 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
149
147
|
if isinstance(o, ProjectOAuth2GooglePrompt):
|
|
150
148
|
return o.value
|
|
151
149
|
|
|
150
|
+
if isinstance(o, ProjectOAuth2OidcPrompt):
|
|
151
|
+
return o.value
|
|
152
|
+
|
|
152
153
|
if isinstance(o, ProjectOAuthProviderId):
|
|
153
154
|
return o.value
|
|
154
155
|
|
|
@@ -203,6 +204,9 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
203
204
|
if isinstance(o, DatabaseType):
|
|
204
205
|
return o.value
|
|
205
206
|
|
|
207
|
+
if isinstance(o, DatabaseStatus):
|
|
208
|
+
return o.value
|
|
209
|
+
|
|
206
210
|
if isinstance(o, AttributeStatus):
|
|
207
211
|
return o.value
|
|
208
212
|
|
|
@@ -224,13 +228,10 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
224
228
|
if isinstance(o, OAuth2GooglePrompt):
|
|
225
229
|
return o.value
|
|
226
230
|
|
|
227
|
-
if isinstance(o,
|
|
228
|
-
return o.value
|
|
229
|
-
|
|
230
|
-
if isinstance(o, HealthAntivirusStatus):
|
|
231
|
+
if isinstance(o, OAuth2OidcPrompt):
|
|
231
232
|
return o.value
|
|
232
233
|
|
|
233
|
-
if isinstance(o,
|
|
234
|
+
if isinstance(o, PlatformType):
|
|
234
235
|
return o.value
|
|
235
236
|
|
|
236
237
|
if isinstance(o, ProxyRuleDeploymentResourceType):
|
|
@@ -242,4 +243,7 @@ class ValueClassEncoder(json.JSONEncoder):
|
|
|
242
243
|
if isinstance(o, MessageStatus):
|
|
243
244
|
return o.value
|
|
244
245
|
|
|
246
|
+
if isinstance(o, BillingPlanGroup):
|
|
247
|
+
return o.value
|
|
248
|
+
|
|
245
249
|
return super().default(o)
|
|
@@ -7,6 +7,10 @@ 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_MEMBERSHIPS_READ = "organization.memberships.read"
|
|
11
|
+
ORGANIZATION_MEMBERSHIPS_WRITE = "organization.memberships.write"
|
|
12
|
+
ORGANIZATION_READ = "organization.read"
|
|
13
|
+
ORGANIZATION_WRITE = "organization.write"
|
|
10
14
|
DOMAINS_READ = "domains.read"
|
|
11
15
|
DOMAINS_WRITE = "domains.write"
|
|
12
16
|
KEYS_READ = "keys.read"
|
|
@@ -13,10 +13,12 @@ class ProjectKeyScopes(Enum):
|
|
|
13
13
|
POLICIES_WRITE = "policies.write"
|
|
14
14
|
PROJECT_POLICIES_READ = "project.policies.read"
|
|
15
15
|
PROJECT_POLICIES_WRITE = "project.policies.write"
|
|
16
|
+
PROJECT_OAUTH2_READ = "project.oauth2.read"
|
|
17
|
+
PROJECT_OAUTH2_WRITE = "project.oauth2.write"
|
|
16
18
|
TEMPLATES_READ = "templates.read"
|
|
17
19
|
TEMPLATES_WRITE = "templates.write"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
STAGES_READ = "stages.read"
|
|
21
|
+
STAGES_WRITE = "stages.write"
|
|
20
22
|
USERS_READ = "users.read"
|
|
21
23
|
USERS_WRITE = "users.write"
|
|
22
24
|
SESSIONS_READ = "sessions.read"
|
|
@@ -97,4 +99,6 @@ class ProjectKeyScopes(Enum):
|
|
|
97
99
|
EVENTS_READ = "events.read"
|
|
98
100
|
APPS_READ = "apps.read"
|
|
99
101
|
APPS_WRITE = "apps.write"
|
|
102
|
+
OAUTH2_READ = "oauth2.read"
|
|
103
|
+
OAUTH2_WRITE = "oauth2.write"
|
|
100
104
|
USAGE_READ = "usage.read"
|
|
@@ -34,7 +34,6 @@ from .variable_list import VariableList
|
|
|
34
34
|
from .mock_number_list import MockNumberList
|
|
35
35
|
from .policy_list import PolicyList
|
|
36
36
|
from .email_template_list import EmailTemplateList
|
|
37
|
-
from .health_status_list import HealthStatusList
|
|
38
37
|
from .proxy_rule_list import ProxyRuleList
|
|
39
38
|
from .locale_code_list import LocaleCodeList
|
|
40
39
|
from .provider_list import ProviderList
|
|
@@ -160,6 +159,7 @@ from .o_auth2_facebook import OAuth2Facebook
|
|
|
160
159
|
from .o_auth2_tradeshift import OAuth2Tradeshift
|
|
161
160
|
from .o_auth2_paypal import OAuth2Paypal
|
|
162
161
|
from .o_auth2_gitlab import OAuth2Gitlab
|
|
162
|
+
from .o_auth2_appwrite import OAuth2Appwrite
|
|
163
163
|
from .o_auth2_authentik import OAuth2Authentik
|
|
164
164
|
from .o_auth2_auth0 import OAuth2Auth0
|
|
165
165
|
from .o_auth2_fusion_auth import OAuth2FusionAuth
|
|
@@ -192,11 +192,6 @@ from .continent import Continent
|
|
|
192
192
|
from .language import Language
|
|
193
193
|
from .currency import Currency
|
|
194
194
|
from .phone import Phone
|
|
195
|
-
from .health_antivirus import HealthAntivirus
|
|
196
|
-
from .health_queue import HealthQueue
|
|
197
|
-
from .health_status import HealthStatus
|
|
198
|
-
from .health_certificate import HealthCertificate
|
|
199
|
-
from .health_time import HealthTime
|
|
200
195
|
from .headers import Headers
|
|
201
196
|
from .specification import Specification
|
|
202
197
|
from .proxy_rule import ProxyRule
|
|
@@ -215,19 +210,25 @@ from .insight import Insight
|
|
|
215
210
|
from .insight_cta import InsightCTA
|
|
216
211
|
from .report import Report
|
|
217
212
|
from .activity_event import ActivityEvent
|
|
213
|
+
from .additional_resource import AdditionalResource
|
|
218
214
|
from .backup_archive import BackupArchive
|
|
219
215
|
from .billing_limits import BillingLimits
|
|
216
|
+
from .billing_plan import BillingPlan
|
|
217
|
+
from .billing_plan_addon import BillingPlanAddon
|
|
218
|
+
from .billing_plan_addon_details import BillingPlanAddonDetails
|
|
219
|
+
from .billing_plan_limits import BillingPlanLimits
|
|
220
|
+
from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
|
|
221
|
+
from .billing_plan_supported_addons import BillingPlanSupportedAddons
|
|
220
222
|
from .block import Block
|
|
223
|
+
from .organization import Organization
|
|
221
224
|
from .backup_policy import BackupPolicy
|
|
222
225
|
from .policy_deny_aliased_email import PolicyDenyAliasedEmail
|
|
223
226
|
from .policy_deny_disposable_email import PolicyDenyDisposableEmail
|
|
224
227
|
from .policy_deny_free_email import PolicyDenyFreeEmail
|
|
225
228
|
from .policy_deny_corporate_email import PolicyDenyCorporateEmail
|
|
229
|
+
from .program import Program
|
|
226
230
|
from .backup_restoration import BackupRestoration
|
|
227
|
-
from .
|
|
228
|
-
from .usage_event_list import UsageEventList
|
|
229
|
-
from .usage_gauge_list import UsageGaugeList
|
|
230
|
-
from .usage_metric import UsageMetric
|
|
231
|
+
from .usage_billing_plan import UsageBillingPlan
|
|
231
232
|
from .app import App
|
|
232
233
|
from .app_secret import AppSecret
|
|
233
234
|
from .app_secret_plaintext import AppSecretPlaintext
|
|
@@ -236,7 +237,12 @@ from .oauth2_approve import Oauth2Approve
|
|
|
236
237
|
from .oauth2_reject import Oauth2Reject
|
|
237
238
|
from .oauth2_grant import Oauth2Grant
|
|
238
239
|
from .oauth2_device_authorization import Oauth2DeviceAuthorization
|
|
240
|
+
from .oauth2_par import Oauth2PAR
|
|
239
241
|
from .oauth2_token import Oauth2Token
|
|
242
|
+
from .oauth2_project import Oauth2Project
|
|
243
|
+
from .oauth2_organization import Oauth2Organization
|
|
244
|
+
from .oauth2_project_list import Oauth2ProjectList
|
|
245
|
+
from .oauth2_organization_list import Oauth2OrganizationList
|
|
240
246
|
from .activity_event_list import ActivityEventList
|
|
241
247
|
from .backup_archive_list import BackupArchiveList
|
|
242
248
|
from .backup_policy_list import BackupPolicyList
|
|
@@ -281,7 +287,6 @@ __all__ = [
|
|
|
281
287
|
'MockNumberList',
|
|
282
288
|
'PolicyList',
|
|
283
289
|
'EmailTemplateList',
|
|
284
|
-
'HealthStatusList',
|
|
285
290
|
'ProxyRuleList',
|
|
286
291
|
'LocaleCodeList',
|
|
287
292
|
'ProviderList',
|
|
@@ -407,6 +412,7 @@ __all__ = [
|
|
|
407
412
|
'OAuth2Tradeshift',
|
|
408
413
|
'OAuth2Paypal',
|
|
409
414
|
'OAuth2Gitlab',
|
|
415
|
+
'OAuth2Appwrite',
|
|
410
416
|
'OAuth2Authentik',
|
|
411
417
|
'OAuth2Auth0',
|
|
412
418
|
'OAuth2FusionAuth',
|
|
@@ -439,11 +445,6 @@ __all__ = [
|
|
|
439
445
|
'Language',
|
|
440
446
|
'Currency',
|
|
441
447
|
'Phone',
|
|
442
|
-
'HealthAntivirus',
|
|
443
|
-
'HealthQueue',
|
|
444
|
-
'HealthStatus',
|
|
445
|
-
'HealthCertificate',
|
|
446
|
-
'HealthTime',
|
|
447
448
|
'Headers',
|
|
448
449
|
'Specification',
|
|
449
450
|
'ProxyRule',
|
|
@@ -462,19 +463,25 @@ __all__ = [
|
|
|
462
463
|
'InsightCTA',
|
|
463
464
|
'Report',
|
|
464
465
|
'ActivityEvent',
|
|
466
|
+
'AdditionalResource',
|
|
465
467
|
'BackupArchive',
|
|
466
468
|
'BillingLimits',
|
|
469
|
+
'BillingPlan',
|
|
470
|
+
'BillingPlanAddon',
|
|
471
|
+
'BillingPlanAddonDetails',
|
|
472
|
+
'BillingPlanLimits',
|
|
473
|
+
'BillingPlanDedicatedDatabaseLimits',
|
|
474
|
+
'BillingPlanSupportedAddons',
|
|
467
475
|
'Block',
|
|
476
|
+
'Organization',
|
|
468
477
|
'BackupPolicy',
|
|
469
478
|
'PolicyDenyAliasedEmail',
|
|
470
479
|
'PolicyDenyDisposableEmail',
|
|
471
480
|
'PolicyDenyFreeEmail',
|
|
472
481
|
'PolicyDenyCorporateEmail',
|
|
482
|
+
'Program',
|
|
473
483
|
'BackupRestoration',
|
|
474
|
-
'
|
|
475
|
-
'UsageEventList',
|
|
476
|
-
'UsageGaugeList',
|
|
477
|
-
'UsageMetric',
|
|
484
|
+
'UsageBillingPlan',
|
|
478
485
|
'App',
|
|
479
486
|
'AppSecret',
|
|
480
487
|
'AppSecretPlaintext',
|
|
@@ -483,7 +490,12 @@ __all__ = [
|
|
|
483
490
|
'Oauth2Reject',
|
|
484
491
|
'Oauth2Grant',
|
|
485
492
|
'Oauth2DeviceAuthorization',
|
|
493
|
+
'Oauth2PAR',
|
|
486
494
|
'Oauth2Token',
|
|
495
|
+
'Oauth2Project',
|
|
496
|
+
'Oauth2Organization',
|
|
497
|
+
'Oauth2ProjectList',
|
|
498
|
+
'Oauth2OrganizationList',
|
|
487
499
|
'ActivityEventList',
|
|
488
500
|
'BackupArchiveList',
|
|
489
501
|
'BackupPolicyList',
|
|
@@ -45,10 +45,6 @@ class ActivityEvent(AppwriteModel):
|
|
|
45
45
|
Team ID.
|
|
46
46
|
hostname : str
|
|
47
47
|
Hostname.
|
|
48
|
-
countrycode : str
|
|
49
|
-
Country two-character ISO 3166-1 alpha code.
|
|
50
|
-
countryname : str
|
|
51
|
-
Country name.
|
|
52
48
|
"""
|
|
53
49
|
id: str = Field(..., alias='$id')
|
|
54
50
|
actortype: str = Field(..., alias='actorType')
|
|
@@ -68,5 +64,3 @@ class ActivityEvent(AppwriteModel):
|
|
|
68
64
|
projectid: str = Field(..., alias='projectId')
|
|
69
65
|
teamid: str = Field(..., alias='teamId')
|
|
70
66
|
hostname: str = Field(..., alias='hostname')
|
|
71
|
-
countrycode: str = Field(..., alias='countryCode')
|
|
72
|
-
countryname: str = Field(..., alias='countryName')
|
|
@@ -0,0 +1,30 @@
|
|
|
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 AdditionalResource(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AdditionalResource
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
name : str
|
|
13
|
+
Resource name
|
|
14
|
+
unit : str
|
|
15
|
+
Resource unit
|
|
16
|
+
currency : str
|
|
17
|
+
Price currency
|
|
18
|
+
price : float
|
|
19
|
+
Price
|
|
20
|
+
value : float
|
|
21
|
+
Resource value
|
|
22
|
+
invoicedesc : str
|
|
23
|
+
Description on invoice
|
|
24
|
+
"""
|
|
25
|
+
name: str = Field(..., alias='name')
|
|
26
|
+
unit: str = Field(..., alias='unit')
|
|
27
|
+
currency: str = Field(..., alias='currency')
|
|
28
|
+
price: float = Field(..., alias='price')
|
|
29
|
+
value: float = Field(..., alias='value')
|
|
30
|
+
invoicedesc: str = Field(..., alias='invoiceDesc')
|
|
@@ -34,6 +34,8 @@ class App(AppwriteModel):
|
|
|
34
34
|
Application tagline shown to users during OAuth2 consent.
|
|
35
35
|
tags : List[Any]
|
|
36
36
|
Application tags shown to users during OAuth2 consent.
|
|
37
|
+
labels : List[Any]
|
|
38
|
+
Application labels. Read-only for clients; only a server SDK using a project API key can update them.
|
|
37
39
|
images : List[Any]
|
|
38
40
|
Application image URLs shown to users during OAuth2 consent.
|
|
39
41
|
supporturl : str
|
|
@@ -69,6 +71,7 @@ class App(AppwriteModel):
|
|
|
69
71
|
contacts: List[Any] = Field(..., alias='contacts')
|
|
70
72
|
tagline: str = Field(..., alias='tagline')
|
|
71
73
|
tags: List[Any] = Field(..., alias='tags')
|
|
74
|
+
labels: List[Any] = Field(..., alias='labels')
|
|
72
75
|
images: List[Any] = Field(..., alias='images')
|
|
73
76
|
supporturl: str = Field(..., alias='supportUrl')
|
|
74
77
|
datadeletionurl: str = Field(..., alias='dataDeletionUrl')
|
|
@@ -0,0 +1,223 @@
|
|
|
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 .usage_billing_plan import UsageBillingPlan
|
|
6
|
+
from .billing_plan_addon import BillingPlanAddon
|
|
7
|
+
from .billing_plan_supported_addons import BillingPlanSupportedAddons
|
|
8
|
+
from .billing_plan_limits import BillingPlanLimits
|
|
9
|
+
from ..enums.billing_plan_group import BillingPlanGroup
|
|
10
|
+
from .program import Program
|
|
11
|
+
from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
|
|
12
|
+
|
|
13
|
+
class BillingPlan(AppwriteModel):
|
|
14
|
+
"""
|
|
15
|
+
billingPlan
|
|
16
|
+
|
|
17
|
+
Attributes
|
|
18
|
+
----------
|
|
19
|
+
id : str
|
|
20
|
+
Plan ID.
|
|
21
|
+
name : str
|
|
22
|
+
Plan name
|
|
23
|
+
desc : str
|
|
24
|
+
Plan description
|
|
25
|
+
order : float
|
|
26
|
+
Plan order
|
|
27
|
+
price : float
|
|
28
|
+
Price
|
|
29
|
+
trial : float
|
|
30
|
+
Trial days
|
|
31
|
+
bandwidth : float
|
|
32
|
+
Bandwidth
|
|
33
|
+
storage : float
|
|
34
|
+
Storage
|
|
35
|
+
imagetransformations : float
|
|
36
|
+
Image Transformations
|
|
37
|
+
screenshotsgenerated : float
|
|
38
|
+
Screenshots generated
|
|
39
|
+
members : float
|
|
40
|
+
Members
|
|
41
|
+
webhooks : float
|
|
42
|
+
Webhooks
|
|
43
|
+
projects : float
|
|
44
|
+
Projects
|
|
45
|
+
platforms : float
|
|
46
|
+
Platforms
|
|
47
|
+
users : float
|
|
48
|
+
Users
|
|
49
|
+
teams : float
|
|
50
|
+
Teams
|
|
51
|
+
databases : float
|
|
52
|
+
Databases
|
|
53
|
+
databasesreads : float
|
|
54
|
+
Database reads per month
|
|
55
|
+
databaseswrites : float
|
|
56
|
+
Database writes per month
|
|
57
|
+
databasesbatchsize : float
|
|
58
|
+
Database batch size limit
|
|
59
|
+
buckets : float
|
|
60
|
+
Buckets
|
|
61
|
+
filesize : float
|
|
62
|
+
File size
|
|
63
|
+
functions : float
|
|
64
|
+
Functions
|
|
65
|
+
sites : float
|
|
66
|
+
Sites
|
|
67
|
+
executions : float
|
|
68
|
+
Function executions
|
|
69
|
+
executionsretentioncount : float
|
|
70
|
+
Rolling max executions retained per function/site
|
|
71
|
+
gbhours : float
|
|
72
|
+
GB hours for functions
|
|
73
|
+
realtime : float
|
|
74
|
+
Realtime connections
|
|
75
|
+
realtimemessages : float
|
|
76
|
+
Realtime messages
|
|
77
|
+
messages : float
|
|
78
|
+
Messages per month
|
|
79
|
+
topics : float
|
|
80
|
+
Topics for messaging
|
|
81
|
+
authphone : float
|
|
82
|
+
SMS authentications per month
|
|
83
|
+
domains : float
|
|
84
|
+
Custom domains
|
|
85
|
+
activitylogs : float
|
|
86
|
+
Activity log days
|
|
87
|
+
usagelogs : float
|
|
88
|
+
Usage history days
|
|
89
|
+
usagelogsintervals : Optional[List[Any]]
|
|
90
|
+
Usage log time intervals allowed for this plan (e.g. 15m, 1h, 1d).
|
|
91
|
+
projectinactivitydays : float
|
|
92
|
+
Number of days of console inactivity before a project is paused. 0 means pausing is disabled.
|
|
93
|
+
alertlimit : float
|
|
94
|
+
Alert threshold percentage
|
|
95
|
+
usage : UsageBillingPlan
|
|
96
|
+
Additional resources
|
|
97
|
+
addons : BillingPlanAddon
|
|
98
|
+
Addons
|
|
99
|
+
budgetcapenabled : bool
|
|
100
|
+
Budget cap enabled or disabled.
|
|
101
|
+
customsmtp : bool
|
|
102
|
+
Custom SMTP
|
|
103
|
+
emailbranding : bool
|
|
104
|
+
Appwrite branding in email
|
|
105
|
+
requirespaymentmethod : bool
|
|
106
|
+
Does plan require payment method
|
|
107
|
+
requiresbillingaddress : bool
|
|
108
|
+
Does plan require billing address
|
|
109
|
+
isavailable : bool
|
|
110
|
+
Is the billing plan available
|
|
111
|
+
selfservice : bool
|
|
112
|
+
Can user change the plan themselves
|
|
113
|
+
premiumsupport : bool
|
|
114
|
+
Does plan enable premium support
|
|
115
|
+
budgeting : bool
|
|
116
|
+
Does plan support budget cap
|
|
117
|
+
supportsmocknumbers : bool
|
|
118
|
+
Does plan support mock numbers
|
|
119
|
+
supportsorganizationroles : bool
|
|
120
|
+
Does plan support organization roles
|
|
121
|
+
supportscredits : bool
|
|
122
|
+
Does plan support credit
|
|
123
|
+
supportsdisposableemailvalidation : bool
|
|
124
|
+
Does plan support blocking disposable email addresses.
|
|
125
|
+
supportscanonicalemailvalidation : bool
|
|
126
|
+
Does plan support requiring canonical email addresses.
|
|
127
|
+
supportsfreeemailvalidation : bool
|
|
128
|
+
Does plan support blocking free email addresses.
|
|
129
|
+
supportscorporateemailvalidation : bool
|
|
130
|
+
Does plan support restricting sign-ups to corporate email addresses only.
|
|
131
|
+
supportsprojectspecificroles : bool
|
|
132
|
+
Does plan support project-specific member roles.
|
|
133
|
+
backupsenabled : bool
|
|
134
|
+
Does plan support backup policies.
|
|
135
|
+
usageperproject : bool
|
|
136
|
+
Whether usage addons are calculated per project.
|
|
137
|
+
supportedaddons : BillingPlanSupportedAddons
|
|
138
|
+
Supported addons for this plan
|
|
139
|
+
backuppolicies : float
|
|
140
|
+
How many policies does plan support
|
|
141
|
+
deploymentsize : float
|
|
142
|
+
Maximum function and site deployment size in MB
|
|
143
|
+
buildsize : float
|
|
144
|
+
Maximum function and site deployment size in MB
|
|
145
|
+
databasesallowencrypt : bool
|
|
146
|
+
Does the plan support encrypted string attributes or not.
|
|
147
|
+
limits : Optional[BillingPlanLimits]
|
|
148
|
+
Plan specific limits
|
|
149
|
+
group : BillingPlanGroup
|
|
150
|
+
Group of this billing plan for variants
|
|
151
|
+
program : Optional[Program]
|
|
152
|
+
Details of the program this plan is a part of.
|
|
153
|
+
dedicateddatabases : Optional[BillingPlanDedicatedDatabaseLimits]
|
|
154
|
+
Dedicated database limits available to this plan.
|
|
155
|
+
"""
|
|
156
|
+
id: str = Field(..., alias='$id')
|
|
157
|
+
name: str = Field(..., alias='name')
|
|
158
|
+
desc: str = Field(..., alias='desc')
|
|
159
|
+
order: float = Field(..., alias='order')
|
|
160
|
+
price: float = Field(..., alias='price')
|
|
161
|
+
trial: float = Field(..., alias='trial')
|
|
162
|
+
bandwidth: float = Field(..., alias='bandwidth')
|
|
163
|
+
storage: float = Field(..., alias='storage')
|
|
164
|
+
imagetransformations: float = Field(..., alias='imageTransformations')
|
|
165
|
+
screenshotsgenerated: float = Field(..., alias='screenshotsGenerated')
|
|
166
|
+
members: float = Field(..., alias='members')
|
|
167
|
+
webhooks: float = Field(..., alias='webhooks')
|
|
168
|
+
projects: float = Field(..., alias='projects')
|
|
169
|
+
platforms: float = Field(..., alias='platforms')
|
|
170
|
+
users: float = Field(..., alias='users')
|
|
171
|
+
teams: float = Field(..., alias='teams')
|
|
172
|
+
databases: float = Field(..., alias='databases')
|
|
173
|
+
databasesreads: float = Field(..., alias='databasesReads')
|
|
174
|
+
databaseswrites: float = Field(..., alias='databasesWrites')
|
|
175
|
+
databasesbatchsize: float = Field(..., alias='databasesBatchSize')
|
|
176
|
+
buckets: float = Field(..., alias='buckets')
|
|
177
|
+
filesize: float = Field(..., alias='fileSize')
|
|
178
|
+
functions: float = Field(..., alias='functions')
|
|
179
|
+
sites: float = Field(..., alias='sites')
|
|
180
|
+
executions: float = Field(..., alias='executions')
|
|
181
|
+
executionsretentioncount: float = Field(..., alias='executionsRetentionCount')
|
|
182
|
+
gbhours: float = Field(..., alias='GBHours')
|
|
183
|
+
realtime: float = Field(..., alias='realtime')
|
|
184
|
+
realtimemessages: float = Field(..., alias='realtimeMessages')
|
|
185
|
+
messages: float = Field(..., alias='messages')
|
|
186
|
+
topics: float = Field(..., alias='topics')
|
|
187
|
+
authphone: float = Field(..., alias='authPhone')
|
|
188
|
+
domains: float = Field(..., alias='domains')
|
|
189
|
+
activitylogs: float = Field(..., alias='activityLogs')
|
|
190
|
+
usagelogs: float = Field(..., alias='usageLogs')
|
|
191
|
+
usagelogsintervals: Optional[List[Any]] = Field(default=None, alias='usageLogsIntervals')
|
|
192
|
+
projectinactivitydays: float = Field(..., alias='projectInactivityDays')
|
|
193
|
+
alertlimit: float = Field(..., alias='alertLimit')
|
|
194
|
+
usage: UsageBillingPlan = Field(..., alias='usage')
|
|
195
|
+
addons: BillingPlanAddon = Field(..., alias='addons')
|
|
196
|
+
budgetcapenabled: bool = Field(..., alias='budgetCapEnabled')
|
|
197
|
+
customsmtp: bool = Field(..., alias='customSmtp')
|
|
198
|
+
emailbranding: bool = Field(..., alias='emailBranding')
|
|
199
|
+
requirespaymentmethod: bool = Field(..., alias='requiresPaymentMethod')
|
|
200
|
+
requiresbillingaddress: bool = Field(..., alias='requiresBillingAddress')
|
|
201
|
+
isavailable: bool = Field(..., alias='isAvailable')
|
|
202
|
+
selfservice: bool = Field(..., alias='selfService')
|
|
203
|
+
premiumsupport: bool = Field(..., alias='premiumSupport')
|
|
204
|
+
budgeting: bool = Field(..., alias='budgeting')
|
|
205
|
+
supportsmocknumbers: bool = Field(..., alias='supportsMockNumbers')
|
|
206
|
+
supportsorganizationroles: bool = Field(..., alias='supportsOrganizationRoles')
|
|
207
|
+
supportscredits: bool = Field(..., alias='supportsCredits')
|
|
208
|
+
supportsdisposableemailvalidation: bool = Field(..., alias='supportsDisposableEmailValidation')
|
|
209
|
+
supportscanonicalemailvalidation: bool = Field(..., alias='supportsCanonicalEmailValidation')
|
|
210
|
+
supportsfreeemailvalidation: bool = Field(..., alias='supportsFreeEmailValidation')
|
|
211
|
+
supportscorporateemailvalidation: bool = Field(..., alias='supportsCorporateEmailValidation')
|
|
212
|
+
supportsprojectspecificroles: bool = Field(..., alias='supportsProjectSpecificRoles')
|
|
213
|
+
backupsenabled: bool = Field(..., alias='backupsEnabled')
|
|
214
|
+
usageperproject: bool = Field(..., alias='usagePerProject')
|
|
215
|
+
supportedaddons: BillingPlanSupportedAddons = Field(..., alias='supportedAddons')
|
|
216
|
+
backuppolicies: float = Field(..., alias='backupPolicies')
|
|
217
|
+
deploymentsize: float = Field(..., alias='deploymentSize')
|
|
218
|
+
buildsize: float = Field(..., alias='buildSize')
|
|
219
|
+
databasesallowencrypt: bool = Field(..., alias='databasesAllowEncrypt')
|
|
220
|
+
limits: Optional[BillingPlanLimits] = Field(default=None, alias='limits')
|
|
221
|
+
group: BillingPlanGroup = Field(..., alias='group')
|
|
222
|
+
program: Optional[Program] = Field(default=None, alias='program')
|
|
223
|
+
dedicateddatabases: Optional[BillingPlanDedicatedDatabaseLimits] = Field(default=None, alias='dedicatedDatabases')
|
|
@@ -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 .billing_plan_addon_details import BillingPlanAddonDetails
|
|
6
|
+
|
|
7
|
+
class BillingPlanAddon(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Addon
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
seats : BillingPlanAddonDetails
|
|
14
|
+
Addon seats
|
|
15
|
+
projects : BillingPlanAddonDetails
|
|
16
|
+
Addon projects
|
|
17
|
+
"""
|
|
18
|
+
seats: BillingPlanAddonDetails = Field(..., alias='seats')
|
|
19
|
+
projects: BillingPlanAddonDetails = Field(..., alias='projects')
|