appwrite 21.0.0__tar.gz → 22.1.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.1.0}/PKG-INFO +2 -2
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/client.py +11 -2
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/encoders/value_class_encoder.py +15 -11
- appwrite-22.1.0/appwrite/enums/billing_plan_group.py +6 -0
- appwrite-22.1.0/appwrite/enums/database_status.py +17 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/database_type.py +3 -0
- appwrite-22.1.0/appwrite/enums/o_auth2_oidc_prompt.py +7 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth_provider.py +1 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/organization_key_scopes.py +4 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_key_scopes.py +9 -2
- appwrite-22.1.0/appwrite/enums/project_o_auth2_oidc_prompt.py +7 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth_provider_id.py +1 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/__init__.py +64 -20
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/activity_event.py +33 -6
- appwrite-22.1.0/appwrite/models/additional_resource.py +30 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app.py +3 -0
- appwrite-22.1.0/appwrite/models/app_scope.py +27 -0
- appwrite-22.1.0/appwrite/models/app_scope_list.py +19 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret.py +1 -1
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_plaintext.py +1 -1
- appwrite-22.1.0/appwrite/models/billing_plan.py +226 -0
- appwrite-22.1.0/appwrite/models/billing_plan_addon.py +19 -0
- appwrite-22.1.0/appwrite/models/billing_plan_addon_details.py +36 -0
- appwrite-22.1.0/appwrite/models/billing_plan_dedicated_database_limits.py +69 -0
- appwrite-22.1.0/appwrite/models/billing_plan_limits.py +18 -0
- appwrite-22.1.0/appwrite/models/billing_plan_supported_addons.py +21 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/block.py +3 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/database.py +11 -4
- appwrite-22.1.0/appwrite/models/database_status.py +39 -0
- appwrite-22.1.0/appwrite/models/database_status_connections.py +18 -0
- appwrite-22.1.0/appwrite/models/database_status_replica.py +24 -0
- appwrite-22.1.0/appwrite/models/database_status_volume.py +24 -0
- appwrite-22.1.0/appwrite/models/dedicated_database.py +159 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_member.py +24 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_replicas.py +22 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification.py +39 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification_list.py +23 -0
- appwrite-22.1.0/appwrite/models/dedicated_database_specification_pricing.py +27 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/document.py +11 -0
- appwrite-22.1.0/appwrite/models/locale.py +66 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/log.py +1 -1
- appwrite-22.1.0/appwrite/models/o_auth2_appwrite.py +24 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_oidc.py +7 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_provider_list.py +3 -2
- appwrite-22.1.0/appwrite/models/oauth2_consent.py +42 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_list.py +19 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_token.py +45 -0
- appwrite-22.1.0/appwrite/models/oauth2_consent_token_list.py +19 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_grant.py +3 -0
- appwrite-22.1.0/appwrite/models/oauth2_organization.py +15 -0
- appwrite-22.1.0/appwrite/models/oauth2_organization_list.py +19 -0
- appwrite-22.1.0/appwrite/models/oauth2_par.py +18 -0
- appwrite-22.1.0/appwrite/models/oauth2_project.py +21 -0
- appwrite-22.1.0/appwrite/models/oauth2_project_list.py +19 -0
- appwrite-22.1.0/appwrite/models/organization.py +132 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/preferences.py +11 -0
- appwrite-22.1.0/appwrite/models/program.py +39 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project.py +9 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/row.py +11 -0
- appwrite-22.1.0/appwrite/models/usage_billing_plan.py +46 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/query.py +12 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/account.py +268 -1
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/apps.py +81 -5
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/backups.py +20 -6
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/databases.py +138 -69
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/functions.py +32 -11
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/messaging.py +144 -269
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/oauth2.py +366 -30
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/organization.py +357 -6
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/project.py +409 -174
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/sites.py +26 -7
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/storage.py +6 -3
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/tables_db.py +311 -76
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/tokens.py +4 -2
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/users.py +5 -3
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/webhooks.py +4 -2
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/PKG-INFO +2 -2
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/SOURCES.txt +36 -15
- {appwrite-21.0.0 → appwrite-22.1.0}/pyproject.toml +1 -1
- {appwrite-21.0.0 → appwrite-22.1.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.1.0}/LICENSE +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/README.md +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/encoders/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/adapter.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/attribute_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/authentication_factor.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/authenticator_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/backup_services.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser_permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser_theme.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/build_runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/column_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/compression.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/credit_card.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/databases_index_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_download_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_method.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_trigger.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/flag.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/framework.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/image_format.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/image_gravity.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/index_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/message_priority.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/message_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/messaging_provider_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/order_by.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/password_hash.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/platform_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_auth_method_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_locale.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_policy_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_protocol_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_service_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_smtp_secure.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_resource_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_status.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/region.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/relation_mutate.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/relationship_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/smtp_encryption.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/status_code.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/tables_db_index_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/template_reference_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/timezone.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/vcs_reference_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/exception.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/input_file.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/activity_event_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_argon2.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_bcrypt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_md5.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_phpass.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt_modified.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_sha.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/apps_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_bigint.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_boolean.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_datetime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_enum.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_float.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_integer.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_ip.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_line.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_longtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_mediumtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_point.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_polygon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_relationship.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_string.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_text.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_url.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_varchar.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/base_model.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/billing_limits.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/bucket.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/bucket_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/collection.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/collection_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_bigint.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_boolean.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_datetime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_enum.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_float.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_index.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_index_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_integer.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_ip.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_line.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_longtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_mediumtext.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_point.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_polygon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_relationship.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_string.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_text.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_url.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_varchar.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/continent.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/continent_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/country.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/country_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/currency.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/currency_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/database_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/deployment.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/deployment_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/dev_key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/document_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/email_template.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/email_template_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/ephemeral_key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/execution.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/execution_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/file.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/file_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework_adapter.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/function.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/function_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/headers.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/identity.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/identity_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/index.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/index_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight_cta.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/jwt.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/key.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/key_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/language.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/language_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/locale_code.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/locale_code_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/log_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/membership.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/membership_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/message.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/message_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_challenge.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_factors.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_recovery_codes.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_type.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mock_number.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mock_number_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_amazon.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_apple.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_auth0.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_authentik.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_autodesk.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitly.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_box.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_discord.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_disqus.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dropbox.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_etsy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_facebook.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_figma.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_github.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_gitlab.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_google.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_keycloak.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_kick.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_linkedin.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_microsoft.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_notion.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_okta.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_paypal.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_podio.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_salesforce.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_slack.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_spotify.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_stripe.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_twitch.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_word_press.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_x.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yahoo.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yandex.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoho.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoom.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_approve.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_authorize.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_device_authorization.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_reject.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/phone.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/phone_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_android.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_apple.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_linux.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_web.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_windows.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_free_email.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_membership_privacy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_dictionary.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_history.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_personal_data.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_strength.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_alert.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_duration.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_invalidation.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_limit.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_user_limit.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/presence.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/presence_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_auth_method.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_protocol.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_service.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/provider.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/provider_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/report.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/report_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/resource_token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/resource_token_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/row_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/runtime.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/runtime_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/session.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/session_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/site.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/site_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/specification.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/specification_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/subscriber.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/subscriber_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/table.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/table_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/target.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/target_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/team.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/team_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/token.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/topic.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/topic_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/transaction.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/transaction_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/user.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/user_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/variable.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/variable_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/webhook.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/webhook_list.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/operator.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/role.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/service.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/activities.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/advisor.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/avatars.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/graphql.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/locale.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/presences.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/proxy.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/teams.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/utils/__init__.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/utils/deprecated.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/dependency_links.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/requires.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/top_level.txt +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/setup.cfg +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/test/test_id.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/test/test_operator.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/test/test_permission.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.0}/test/test_query.py +0 -0
- {appwrite-21.0.0 → appwrite-22.1.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.1.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.1.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.1.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.1.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)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
from enum import Enum
|
|
2
|
+
|
|
3
|
+
class DatabaseStatus(Enum):
|
|
4
|
+
PROVISIONING = "provisioning"
|
|
5
|
+
READY = "ready"
|
|
6
|
+
INACTIVE = "inactive"
|
|
7
|
+
PAUSED = "paused"
|
|
8
|
+
FAILED = "failed"
|
|
9
|
+
DELETING = "deleting"
|
|
10
|
+
DELETED = "deleted"
|
|
11
|
+
RESTORING = "restoring"
|
|
12
|
+
SCALING = "scaling"
|
|
13
|
+
UPGRADING = "upgrading"
|
|
14
|
+
MIGRATING = "migrating"
|
|
15
|
+
PAUSING = "pausing"
|
|
16
|
+
RESUMING = "resuming"
|
|
17
|
+
FAILING_OVER = "failing-over"
|
|
@@ -7,6 +7,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"
|
|
@@ -94,7 +96,12 @@ class ProjectKeyScopes(Enum):
|
|
|
94
96
|
DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
|
|
95
97
|
DOMAINS_READ = "domains.read"
|
|
96
98
|
DOMAINS_WRITE = "domains.write"
|
|
99
|
+
WAFRULES_READ = "wafRules.read"
|
|
100
|
+
WAFRULES_WRITE = "wafRules.write"
|
|
97
101
|
EVENTS_READ = "events.read"
|
|
98
102
|
APPS_READ = "apps.read"
|
|
99
103
|
APPS_WRITE = "apps.write"
|
|
104
|
+
OAUTH2_READ = "oauth2.read"
|
|
105
|
+
OAUTH2_WRITE = "oauth2.write"
|
|
106
|
+
OAUTH2_INTROSPECT = "oauth2.introspect"
|
|
100
107
|
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,34 +210,61 @@ 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 .dedicated_database import DedicatedDatabase
|
|
224
|
+
from .database_status import DatabaseStatus
|
|
225
|
+
from .dedicated_database_member import DedicatedDatabaseMember
|
|
226
|
+
from .dedicated_database_replicas import DedicatedDatabaseReplicas
|
|
227
|
+
from .organization import Organization
|
|
221
228
|
from .backup_policy import BackupPolicy
|
|
222
229
|
from .policy_deny_aliased_email import PolicyDenyAliasedEmail
|
|
223
230
|
from .policy_deny_disposable_email import PolicyDenyDisposableEmail
|
|
224
231
|
from .policy_deny_free_email import PolicyDenyFreeEmail
|
|
225
232
|
from .policy_deny_corporate_email import PolicyDenyCorporateEmail
|
|
233
|
+
from .program import Program
|
|
226
234
|
from .backup_restoration import BackupRestoration
|
|
227
|
-
from .
|
|
228
|
-
from .
|
|
229
|
-
from .
|
|
230
|
-
from .
|
|
235
|
+
from .dedicated_database_specification import DedicatedDatabaseSpecification
|
|
236
|
+
from .dedicated_database_specification_list import DedicatedDatabaseSpecificationList
|
|
237
|
+
from .dedicated_database_specification_pricing import DedicatedDatabaseSpecificationPricing
|
|
238
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
239
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
240
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
241
|
+
from .usage_billing_plan import UsageBillingPlan
|
|
231
242
|
from .app import App
|
|
232
243
|
from .app_secret import AppSecret
|
|
233
244
|
from .app_secret_plaintext import AppSecretPlaintext
|
|
245
|
+
from .app_scope import AppScope
|
|
234
246
|
from .oauth2_authorize import Oauth2Authorize
|
|
235
247
|
from .oauth2_approve import Oauth2Approve
|
|
236
248
|
from .oauth2_reject import Oauth2Reject
|
|
237
249
|
from .oauth2_grant import Oauth2Grant
|
|
238
250
|
from .oauth2_device_authorization import Oauth2DeviceAuthorization
|
|
251
|
+
from .oauth2_par import Oauth2PAR
|
|
239
252
|
from .oauth2_token import Oauth2Token
|
|
253
|
+
from .oauth2_consent import Oauth2Consent
|
|
254
|
+
from .oauth2_consent_token import Oauth2ConsentToken
|
|
255
|
+
from .oauth2_project import Oauth2Project
|
|
256
|
+
from .oauth2_organization import Oauth2Organization
|
|
257
|
+
from .oauth2_project_list import Oauth2ProjectList
|
|
258
|
+
from .oauth2_organization_list import Oauth2OrganizationList
|
|
259
|
+
from .oauth2_consent_list import Oauth2ConsentList
|
|
260
|
+
from .oauth2_consent_token_list import Oauth2ConsentTokenList
|
|
240
261
|
from .activity_event_list import ActivityEventList
|
|
241
262
|
from .backup_archive_list import BackupArchiveList
|
|
242
263
|
from .backup_policy_list import BackupPolicyList
|
|
243
264
|
from .backup_restoration_list import BackupRestorationList
|
|
244
265
|
from .apps_list import AppsList
|
|
245
266
|
from .app_secret_list import AppSecretList
|
|
267
|
+
from .app_scope_list import AppScopeList
|
|
246
268
|
|
|
247
269
|
__all__ = [
|
|
248
270
|
'AppwriteModel',
|
|
@@ -281,7 +303,6 @@ __all__ = [
|
|
|
281
303
|
'MockNumberList',
|
|
282
304
|
'PolicyList',
|
|
283
305
|
'EmailTemplateList',
|
|
284
|
-
'HealthStatusList',
|
|
285
306
|
'ProxyRuleList',
|
|
286
307
|
'LocaleCodeList',
|
|
287
308
|
'ProviderList',
|
|
@@ -407,6 +428,7 @@ __all__ = [
|
|
|
407
428
|
'OAuth2Tradeshift',
|
|
408
429
|
'OAuth2Paypal',
|
|
409
430
|
'OAuth2Gitlab',
|
|
431
|
+
'OAuth2Appwrite',
|
|
410
432
|
'OAuth2Authentik',
|
|
411
433
|
'OAuth2Auth0',
|
|
412
434
|
'OAuth2FusionAuth',
|
|
@@ -439,11 +461,6 @@ __all__ = [
|
|
|
439
461
|
'Language',
|
|
440
462
|
'Currency',
|
|
441
463
|
'Phone',
|
|
442
|
-
'HealthAntivirus',
|
|
443
|
-
'HealthQueue',
|
|
444
|
-
'HealthStatus',
|
|
445
|
-
'HealthCertificate',
|
|
446
|
-
'HealthTime',
|
|
447
464
|
'Headers',
|
|
448
465
|
'Specification',
|
|
449
466
|
'ProxyRule',
|
|
@@ -462,32 +479,59 @@ __all__ = [
|
|
|
462
479
|
'InsightCTA',
|
|
463
480
|
'Report',
|
|
464
481
|
'ActivityEvent',
|
|
482
|
+
'AdditionalResource',
|
|
465
483
|
'BackupArchive',
|
|
466
484
|
'BillingLimits',
|
|
485
|
+
'BillingPlan',
|
|
486
|
+
'BillingPlanAddon',
|
|
487
|
+
'BillingPlanAddonDetails',
|
|
488
|
+
'BillingPlanLimits',
|
|
489
|
+
'BillingPlanDedicatedDatabaseLimits',
|
|
490
|
+
'BillingPlanSupportedAddons',
|
|
467
491
|
'Block',
|
|
492
|
+
'DedicatedDatabase',
|
|
493
|
+
'DatabaseStatus',
|
|
494
|
+
'DedicatedDatabaseMember',
|
|
495
|
+
'DedicatedDatabaseReplicas',
|
|
496
|
+
'Organization',
|
|
468
497
|
'BackupPolicy',
|
|
469
498
|
'PolicyDenyAliasedEmail',
|
|
470
499
|
'PolicyDenyDisposableEmail',
|
|
471
500
|
'PolicyDenyFreeEmail',
|
|
472
501
|
'PolicyDenyCorporateEmail',
|
|
502
|
+
'Program',
|
|
473
503
|
'BackupRestoration',
|
|
474
|
-
'
|
|
475
|
-
'
|
|
476
|
-
'
|
|
477
|
-
'
|
|
504
|
+
'DedicatedDatabaseSpecification',
|
|
505
|
+
'DedicatedDatabaseSpecificationList',
|
|
506
|
+
'DedicatedDatabaseSpecificationPricing',
|
|
507
|
+
'DatabaseStatusConnections',
|
|
508
|
+
'DatabaseStatusReplica',
|
|
509
|
+
'DatabaseStatusVolume',
|
|
510
|
+
'UsageBillingPlan',
|
|
478
511
|
'App',
|
|
479
512
|
'AppSecret',
|
|
480
513
|
'AppSecretPlaintext',
|
|
514
|
+
'AppScope',
|
|
481
515
|
'Oauth2Authorize',
|
|
482
516
|
'Oauth2Approve',
|
|
483
517
|
'Oauth2Reject',
|
|
484
518
|
'Oauth2Grant',
|
|
485
519
|
'Oauth2DeviceAuthorization',
|
|
520
|
+
'Oauth2PAR',
|
|
486
521
|
'Oauth2Token',
|
|
522
|
+
'Oauth2Consent',
|
|
523
|
+
'Oauth2ConsentToken',
|
|
524
|
+
'Oauth2Project',
|
|
525
|
+
'Oauth2Organization',
|
|
526
|
+
'Oauth2ProjectList',
|
|
527
|
+
'Oauth2OrganizationList',
|
|
528
|
+
'Oauth2ConsentList',
|
|
529
|
+
'Oauth2ConsentTokenList',
|
|
487
530
|
'ActivityEventList',
|
|
488
531
|
'BackupArchiveList',
|
|
489
532
|
'BackupPolicyList',
|
|
490
533
|
'BackupRestorationList',
|
|
491
534
|
'AppsList',
|
|
492
535
|
'AppSecretList',
|
|
536
|
+
'AppScopeList',
|
|
493
537
|
]
|
|
@@ -37,6 +37,24 @@ class ActivityEvent(AppwriteModel):
|
|
|
37
37
|
API mode when event triggered.
|
|
38
38
|
country : str
|
|
39
39
|
Location.
|
|
40
|
+
continentcode : str
|
|
41
|
+
Continent code.
|
|
42
|
+
city : str
|
|
43
|
+
City name.
|
|
44
|
+
subdivisions : str
|
|
45
|
+
Region/state chain.
|
|
46
|
+
isp : str
|
|
47
|
+
Internet service provider.
|
|
48
|
+
autonomoussystemnumber : str
|
|
49
|
+
Autonomous System Number (ASN).
|
|
50
|
+
autonomoussystemorganization : str
|
|
51
|
+
Organization that owns the ASN.
|
|
52
|
+
connectiontype : str
|
|
53
|
+
Connection type (e.g. cable, cellular, corporate).
|
|
54
|
+
connectionusagetype : str
|
|
55
|
+
User type (e.g. residential, business, hosting).
|
|
56
|
+
connectionorganization : str
|
|
57
|
+
Registered organization of the IP.
|
|
40
58
|
time : str
|
|
41
59
|
Log creation date in ISO 8601 format.
|
|
42
60
|
projectid : str
|
|
@@ -45,10 +63,10 @@ class ActivityEvent(AppwriteModel):
|
|
|
45
63
|
Team ID.
|
|
46
64
|
hostname : str
|
|
47
65
|
Hostname.
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
66
|
+
sdk : str
|
|
67
|
+
Name of the SDK that triggered the event.
|
|
68
|
+
sdkversion : str
|
|
69
|
+
Version of the SDK that triggered the event.
|
|
52
70
|
"""
|
|
53
71
|
id: str = Field(..., alias='$id')
|
|
54
72
|
actortype: str = Field(..., alias='actorType')
|
|
@@ -64,9 +82,18 @@ class ActivityEvent(AppwriteModel):
|
|
|
64
82
|
ip: str = Field(..., alias='ip')
|
|
65
83
|
mode: str = Field(..., alias='mode')
|
|
66
84
|
country: str = Field(..., alias='country')
|
|
85
|
+
continentcode: str = Field(..., alias='continentCode')
|
|
86
|
+
city: str = Field(..., alias='city')
|
|
87
|
+
subdivisions: str = Field(..., alias='subdivisions')
|
|
88
|
+
isp: str = Field(..., alias='isp')
|
|
89
|
+
autonomoussystemnumber: str = Field(..., alias='autonomousSystemNumber')
|
|
90
|
+
autonomoussystemorganization: str = Field(..., alias='autonomousSystemOrganization')
|
|
91
|
+
connectiontype: str = Field(..., alias='connectionType')
|
|
92
|
+
connectionusagetype: str = Field(..., alias='connectionUsageType')
|
|
93
|
+
connectionorganization: str = Field(..., alias='connectionOrganization')
|
|
67
94
|
time: str = Field(..., alias='time')
|
|
68
95
|
projectid: str = Field(..., alias='projectId')
|
|
69
96
|
teamid: str = Field(..., alias='teamId')
|
|
70
97
|
hostname: str = Field(..., alias='hostname')
|
|
71
|
-
|
|
72
|
-
|
|
98
|
+
sdk: str = Field(..., alias='sdk')
|
|
99
|
+
sdkversion: str = Field(..., alias='sdkVersion')
|
|
@@ -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,27 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class AppScope(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
AppScope
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
value : str
|
|
13
|
+
Scope value as requested by apps.
|
|
14
|
+
description : str
|
|
15
|
+
Human-readable description of what the scope grants.
|
|
16
|
+
type : str
|
|
17
|
+
What the scope grants access to. One of `account`, `project`, or `organization`. Only `project` and `organization` scopes are installable.
|
|
18
|
+
category : str
|
|
19
|
+
Scope category, used to group scopes on consent and installation screens.
|
|
20
|
+
deprecated : bool
|
|
21
|
+
Whether the scope is deprecated. Deprecated scopes can still be requested but should not be offered for new grants.
|
|
22
|
+
"""
|
|
23
|
+
value: str = Field(..., alias='value')
|
|
24
|
+
description: str = Field(..., alias='description')
|
|
25
|
+
type: str = Field(..., alias='type')
|
|
26
|
+
category: str = Field(..., alias='category')
|
|
27
|
+
deprecated: bool = Field(..., alias='deprecated')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .app_scope import AppScope
|
|
6
|
+
|
|
7
|
+
class AppScopeList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
App scopes list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of scopes that matched your query.
|
|
15
|
+
scopes : List[AppScope]
|
|
16
|
+
List of scopes.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
scopes: List[AppScope] = Field(..., alias='scopes')
|
|
@@ -18,7 +18,7 @@ class AppSecret(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
|
|
21
|
+
Always empty. The application client secret is returned only once, in the response of the createSecret method.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|
|
@@ -18,7 +18,7 @@ class AppSecretPlaintext(AppwriteModel):
|
|
|
18
18
|
appid : str
|
|
19
19
|
Application ID this secret belongs to.
|
|
20
20
|
secret : str
|
|
21
|
-
Application client secret. Returned
|
|
21
|
+
Application client secret. Returned only when the secret is created; subsequent reads always return an empty value.
|
|
22
22
|
hint : str
|
|
23
23
|
Last few characters of the client secret, used to help identify it.
|
|
24
24
|
createdbyid : str
|