appwrite-console 0.1.0__py3-none-any.whl
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_console/__init__.py +1 -0
- appwrite_console/client.py +371 -0
- appwrite_console/encoders/__init__.py +1 -0
- appwrite_console/encoders/value_class_encoder.py +373 -0
- appwrite_console/enums/__init__.py +1 -0
- appwrite_console/enums/account_key_scopes.py +6 -0
- appwrite_console/enums/adapter.py +5 -0
- appwrite_console/enums/addon.py +7 -0
- appwrite_console/enums/appwrite_migration_resource.py +42 -0
- appwrite_console/enums/attribute_status.py +8 -0
- appwrite_console/enums/authentication_factor.py +7 -0
- appwrite_console/enums/authenticator_type.py +4 -0
- appwrite_console/enums/backup_services.py +10 -0
- appwrite_console/enums/billing_plan_group.py +6 -0
- appwrite_console/enums/block_mode.py +5 -0
- appwrite_console/enums/block_resource_type.py +12 -0
- appwrite_console/enums/browser.py +17 -0
- appwrite_console/enums/browser_permission.py +23 -0
- appwrite_console/enums/browser_theme.py +5 -0
- appwrite_console/enums/build_runtime.py +95 -0
- appwrite_console/enums/cache_database.py +6 -0
- appwrite_console/enums/cache_target.py +9 -0
- appwrite_console/enums/column_status.py +8 -0
- appwrite_console/enums/compression.py +6 -0
- appwrite_console/enums/console_resource_type.py +4 -0
- appwrite_console/enums/credit_card.py +20 -0
- appwrite_console/enums/database_status.py +17 -0
- appwrite_console/enums/database_type.py +10 -0
- appwrite_console/enums/databases_index_type.py +7 -0
- appwrite_console/enums/deployment_download_type.py +5 -0
- appwrite_console/enums/deployment_status.py +9 -0
- appwrite_console/enums/detection_framework_type.py +4 -0
- appwrite_console/enums/detection_runtime_type.py +4 -0
- appwrite_console/enums/documents_db_index_type.py +6 -0
- appwrite_console/enums/domain_purchase_status.py +7 -0
- appwrite_console/enums/domain_registration_type.py +7 -0
- appwrite_console/enums/domain_suggestion_type.py +5 -0
- appwrite_console/enums/domain_transfer_status_enum.py +11 -0
- appwrite_console/enums/embedding_model.py +7 -0
- appwrite_console/enums/execution_method.py +10 -0
- appwrite_console/enums/execution_status.py +8 -0
- appwrite_console/enums/execution_trigger.py +6 -0
- appwrite_console/enums/firebase_migration_resource.py +13 -0
- appwrite_console/enums/flag.py +198 -0
- appwrite_console/enums/framework.py +18 -0
- appwrite_console/enums/function_template_use_case.py +10 -0
- appwrite_console/enums/image_format.py +10 -0
- appwrite_console/enums/image_gravity.py +12 -0
- appwrite_console/enums/index_status.py +8 -0
- appwrite_console/enums/message_priority.py +5 -0
- appwrite_console/enums/message_status.py +8 -0
- appwrite_console/enums/messaging_provider_type.py +6 -0
- appwrite_console/enums/n_host_migration_resource.py +14 -0
- appwrite_console/enums/o_auth2_google_prompt.py +6 -0
- appwrite_console/enums/o_auth2_oidc_prompt.py +7 -0
- appwrite_console/enums/o_auth_provider.py +47 -0
- appwrite_console/enums/on_duplicate.py +6 -0
- appwrite_console/enums/order_by.py +5 -0
- appwrite_console/enums/organization_key_scopes.py +19 -0
- appwrite_console/enums/password_hash.py +14 -0
- appwrite_console/enums/platform.py +5 -0
- appwrite_console/enums/platform_type.py +8 -0
- appwrite_console/enums/project_auth_method_id.py +10 -0
- appwrite_console/enums/project_email_template_id.py +10 -0
- appwrite_console/enums/project_email_template_locale.py +134 -0
- appwrite_console/enums/project_key_scopes.py +107 -0
- appwrite_console/enums/project_o_auth2_google_prompt.py +6 -0
- appwrite_console/enums/project_o_auth2_oidc_prompt.py +7 -0
- appwrite_console/enums/project_o_auth_provider_id.py +47 -0
- appwrite_console/enums/project_policy_id.py +17 -0
- appwrite_console/enums/project_protocol_id.py +6 -0
- appwrite_console/enums/project_service_id.py +22 -0
- appwrite_console/enums/project_smtp_secure.py +5 -0
- appwrite_console/enums/project_usage_range.py +5 -0
- appwrite_console/enums/proxy_resource_type.py +5 -0
- appwrite_console/enums/proxy_rule_deployment_resource_type.py +5 -0
- appwrite_console/enums/proxy_rule_status.py +6 -0
- appwrite_console/enums/query_suggestion_resource.py +97 -0
- appwrite_console/enums/region.py +9 -0
- appwrite_console/enums/relation_mutate.py +6 -0
- appwrite_console/enums/relationship_type.py +7 -0
- appwrite_console/enums/runtime.py +95 -0
- appwrite_console/enums/schedule_resource_type.py +7 -0
- appwrite_console/enums/site_template_use_case.py +12 -0
- appwrite_console/enums/smtp_encryption.py +6 -0
- appwrite_console/enums/status.py +4 -0
- appwrite_console/enums/status_code.py +7 -0
- appwrite_console/enums/supabase_migration_resource.py +14 -0
- appwrite_console/enums/tables_db_index_type.py +7 -0
- appwrite_console/enums/template_reference_type.py +6 -0
- appwrite_console/enums/timezone.py +422 -0
- appwrite_console/enums/usage_range.py +6 -0
- appwrite_console/enums/vcs_detection_type.py +5 -0
- appwrite_console/enums/vcs_reference_type.py +6 -0
- appwrite_console/enums/vectors_db_index_type.py +9 -0
- appwrite_console/enums/waf_rule_action.py +8 -0
- appwrite_console/exception.py +7 -0
- appwrite_console/id.py +26 -0
- appwrite_console/input_file.py +21 -0
- appwrite_console/models/__init__.py +803 -0
- appwrite_console/models/activity_event.py +99 -0
- appwrite_console/models/activity_event_list.py +19 -0
- appwrite_console/models/additional_resource.py +30 -0
- appwrite_console/models/addon.py +42 -0
- appwrite_console/models/addon_list.py +19 -0
- appwrite_console/models/addon_price.py +36 -0
- appwrite_console/models/aggregation_breakdown.py +28 -0
- appwrite_console/models/aggregation_team.py +101 -0
- appwrite_console/models/aggregation_team_list.py +19 -0
- appwrite_console/models/algo_argon2.py +24 -0
- appwrite_console/models/algo_bcrypt.py +15 -0
- appwrite_console/models/algo_md5.py +15 -0
- appwrite_console/models/algo_phpass.py +15 -0
- appwrite_console/models/algo_scrypt.py +27 -0
- appwrite_console/models/algo_scrypt_modified.py +24 -0
- appwrite_console/models/algo_sha.py +15 -0
- appwrite_console/models/app.py +91 -0
- appwrite_console/models/app_installation.py +42 -0
- appwrite_console/models/app_installation_list.py +19 -0
- appwrite_console/models/app_key.py +39 -0
- appwrite_console/models/app_key_list.py +19 -0
- appwrite_console/models/app_scope.py +27 -0
- appwrite_console/models/app_scope_list.py +19 -0
- appwrite_console/models/app_secret.py +39 -0
- appwrite_console/models/app_secret_list.py +19 -0
- appwrite_console/models/app_secret_plaintext.py +39 -0
- appwrite_console/models/apps_list.py +19 -0
- appwrite_console/models/attribute_bigint.py +46 -0
- appwrite_console/models/attribute_boolean.py +40 -0
- appwrite_console/models/attribute_datetime.py +43 -0
- appwrite_console/models/attribute_email.py +43 -0
- appwrite_console/models/attribute_enum.py +46 -0
- appwrite_console/models/attribute_float.py +46 -0
- appwrite_console/models/attribute_integer.py +46 -0
- appwrite_console/models/attribute_ip.py +43 -0
- appwrite_console/models/attribute_line.py +40 -0
- appwrite_console/models/attribute_list.py +36 -0
- appwrite_console/models/attribute_longtext.py +43 -0
- appwrite_console/models/attribute_mediumtext.py +43 -0
- appwrite_console/models/attribute_object.py +37 -0
- appwrite_console/models/attribute_point.py +40 -0
- appwrite_console/models/attribute_polygon.py +40 -0
- appwrite_console/models/attribute_relationship.py +55 -0
- appwrite_console/models/attribute_string.py +46 -0
- appwrite_console/models/attribute_text.py +43 -0
- appwrite_console/models/attribute_url.py +43 -0
- appwrite_console/models/attribute_varchar.py +46 -0
- appwrite_console/models/attribute_vector.py +40 -0
- appwrite_console/models/backup_archive.py +48 -0
- appwrite_console/models/backup_archive_list.py +19 -0
- appwrite_console/models/backup_policy.py +48 -0
- appwrite_console/models/backup_policy_list.py +19 -0
- appwrite_console/models/backup_restoration.py +45 -0
- appwrite_console/models/backup_restoration_list.py +19 -0
- appwrite_console/models/base_model.py +27 -0
- appwrite_console/models/billing_address.py +36 -0
- appwrite_console/models/billing_address_list.py +19 -0
- appwrite_console/models/billing_limits.py +36 -0
- appwrite_console/models/billing_plan.py +226 -0
- appwrite_console/models/billing_plan_addon.py +19 -0
- appwrite_console/models/billing_plan_addon_details.py +36 -0
- appwrite_console/models/billing_plan_dedicated_database_limits.py +69 -0
- appwrite_console/models/billing_plan_limits.py +18 -0
- appwrite_console/models/billing_plan_list.py +19 -0
- appwrite_console/models/billing_plan_supported_addons.py +21 -0
- appwrite_console/models/block.py +45 -0
- appwrite_console/models/block_delete.py +19 -0
- appwrite_console/models/block_list.py +19 -0
- appwrite_console/models/branch.py +15 -0
- appwrite_console/models/branch_list.py +19 -0
- appwrite_console/models/bucket.py +54 -0
- appwrite_console/models/bucket_list.py +19 -0
- appwrite_console/models/campaign.py +49 -0
- appwrite_console/models/collection.py +67 -0
- appwrite_console/models/collection_list.py +19 -0
- appwrite_console/models/column_bigint.py +46 -0
- appwrite_console/models/column_boolean.py +40 -0
- appwrite_console/models/column_datetime.py +43 -0
- appwrite_console/models/column_email.py +43 -0
- appwrite_console/models/column_enum.py +46 -0
- appwrite_console/models/column_float.py +46 -0
- appwrite_console/models/column_index.py +42 -0
- appwrite_console/models/column_index_list.py +19 -0
- appwrite_console/models/column_integer.py +46 -0
- appwrite_console/models/column_ip.py +43 -0
- appwrite_console/models/column_line.py +40 -0
- appwrite_console/models/column_list.py +36 -0
- appwrite_console/models/column_longtext.py +43 -0
- appwrite_console/models/column_mediumtext.py +43 -0
- appwrite_console/models/column_point.py +40 -0
- appwrite_console/models/column_polygon.py +40 -0
- appwrite_console/models/column_relationship.py +55 -0
- appwrite_console/models/column_string.py +46 -0
- appwrite_console/models/column_text.py +43 -0
- appwrite_console/models/column_url.py +43 -0
- appwrite_console/models/column_varchar.py +46 -0
- appwrite_console/models/console_key_scope.py +24 -0
- appwrite_console/models/console_key_scope_list.py +19 -0
- appwrite_console/models/console_o_auth2_provider.py +19 -0
- appwrite_console/models/console_o_auth2_provider_list.py +19 -0
- appwrite_console/models/console_o_auth2_provider_parameter.py +24 -0
- appwrite_console/models/console_region.py +30 -0
- appwrite_console/models/console_region_list.py +19 -0
- appwrite_console/models/console_variables.py +96 -0
- appwrite_console/models/continent.py +18 -0
- appwrite_console/models/continent_list.py +19 -0
- appwrite_console/models/country.py +18 -0
- appwrite_console/models/country_list.py +19 -0
- appwrite_console/models/coupon.py +36 -0
- appwrite_console/models/credit.py +45 -0
- appwrite_console/models/credit_available.py +15 -0
- appwrite_console/models/credit_list.py +22 -0
- appwrite_console/models/currency.py +33 -0
- appwrite_console/models/currency_list.py +19 -0
- appwrite_console/models/database.py +52 -0
- appwrite_console/models/database_list.py +19 -0
- appwrite_console/models/database_migration.py +57 -0
- appwrite_console/models/database_migration_list.py +19 -0
- appwrite_console/models/database_status.py +57 -0
- appwrite_console/models/database_status_connections.py +18 -0
- appwrite_console/models/database_status_replica.py +24 -0
- appwrite_console/models/database_status_volume.py +24 -0
- appwrite_console/models/dedicated_database.py +159 -0
- appwrite_console/models/dedicated_database_backup.py +63 -0
- appwrite_console/models/dedicated_database_backup_list.py +19 -0
- appwrite_console/models/dedicated_database_backup_storage.py +27 -0
- appwrite_console/models/dedicated_database_branch.py +48 -0
- appwrite_console/models/dedicated_database_branch_list.py +16 -0
- appwrite_console/models/dedicated_database_execution.py +31 -0
- appwrite_console/models/dedicated_database_execution_column.py +18 -0
- appwrite_console/models/dedicated_database_extensions.py +22 -0
- appwrite_console/models/dedicated_database_list.py +19 -0
- appwrite_console/models/dedicated_database_member.py +24 -0
- appwrite_console/models/dedicated_database_operation.py +45 -0
- appwrite_console/models/dedicated_database_operation_list.py +19 -0
- appwrite_console/models/dedicated_database_pitr_windows.py +18 -0
- appwrite_console/models/dedicated_database_pooler.py +42 -0
- appwrite_console/models/dedicated_database_replicas.py +37 -0
- appwrite_console/models/dedicated_database_restoration.py +45 -0
- appwrite_console/models/dedicated_database_restoration_list.py +19 -0
- appwrite_console/models/dedicated_database_specification.py +39 -0
- appwrite_console/models/dedicated_database_specification_list.py +23 -0
- appwrite_console/models/dedicated_database_specification_pricing.py +27 -0
- appwrite_console/models/deployment.py +94 -0
- appwrite_console/models/deployment_list.py +19 -0
- appwrite_console/models/detection_framework.py +32 -0
- appwrite_console/models/detection_runtime.py +29 -0
- appwrite_console/models/detection_variable.py +18 -0
- appwrite_console/models/dev_key.py +36 -0
- appwrite_console/models/dev_key_list.py +19 -0
- appwrite_console/models/dns_record.py +48 -0
- appwrite_console/models/dns_records_list.py +19 -0
- appwrite_console/models/document.py +80 -0
- appwrite_console/models/document_list.py +32 -0
- appwrite_console/models/domain.py +53 -0
- appwrite_console/models/domain_price.py +30 -0
- appwrite_console/models/domain_purchase.py +43 -0
- appwrite_console/models/domain_suggestion.py +24 -0
- appwrite_console/models/domain_suggestions_list.py +19 -0
- appwrite_console/models/domain_transfer_out.py +15 -0
- appwrite_console/models/domain_transfer_status.py +22 -0
- appwrite_console/models/domains_list.py +19 -0
- appwrite_console/models/downgrade_feedback.py +42 -0
- appwrite_console/models/email_template.py +36 -0
- appwrite_console/models/email_template_list.py +19 -0
- appwrite_console/models/embedding.py +24 -0
- appwrite_console/models/embedding_list.py +19 -0
- appwrite_console/models/ephemeral_key.py +39 -0
- appwrite_console/models/estimation.py +37 -0
- appwrite_console/models/estimation_delete_organization.py +16 -0
- appwrite_console/models/estimation_item.py +18 -0
- appwrite_console/models/estimation_plan_change.py +29 -0
- appwrite_console/models/estimation_update_plan.py +40 -0
- appwrite_console/models/execution.py +69 -0
- appwrite_console/models/execution_list.py +19 -0
- appwrite_console/models/file.py +60 -0
- appwrite_console/models/file_list.py +19 -0
- appwrite_console/models/framework.py +28 -0
- appwrite_console/models/framework_adapter.py +27 -0
- appwrite_console/models/framework_list.py +19 -0
- appwrite_console/models/function.py +109 -0
- appwrite_console/models/function_list.py +19 -0
- appwrite_console/models/headers.py +18 -0
- appwrite_console/models/identity.py +42 -0
- appwrite_console/models/identity_list.py +19 -0
- appwrite_console/models/index.py +43 -0
- appwrite_console/models/index_list.py +19 -0
- appwrite_console/models/insight.py +64 -0
- appwrite_console/models/insight_cta.py +24 -0
- appwrite_console/models/insight_list.py +19 -0
- appwrite_console/models/installation.py +30 -0
- appwrite_console/models/installation_list.py +19 -0
- appwrite_console/models/invoice.py +82 -0
- appwrite_console/models/invoice_list.py +19 -0
- appwrite_console/models/jwt.py +15 -0
- appwrite_console/models/key.py +39 -0
- appwrite_console/models/key_list.py +19 -0
- appwrite_console/models/language.py +21 -0
- appwrite_console/models/language_list.py +19 -0
- appwrite_console/models/locale.py +66 -0
- appwrite_console/models/locale_code.py +18 -0
- appwrite_console/models/locale_code_list.py +19 -0
- appwrite_console/models/log.py +78 -0
- appwrite_console/models/log_list.py +19 -0
- appwrite_console/models/membership.py +57 -0
- appwrite_console/models/membership_list.py +19 -0
- appwrite_console/models/message.py +52 -0
- appwrite_console/models/message_list.py +19 -0
- appwrite_console/models/metric.py +18 -0
- appwrite_console/models/metric_breakdown.py +24 -0
- appwrite_console/models/mfa_challenge.py +24 -0
- appwrite_console/models/mfa_factors.py +24 -0
- appwrite_console/models/mfa_recovery_codes.py +15 -0
- appwrite_console/models/mfa_type.py +18 -0
- appwrite_console/models/migration.py +75 -0
- appwrite_console/models/migration_list.py +19 -0
- appwrite_console/models/migration_report.py +96 -0
- appwrite_console/models/mock_number.py +24 -0
- appwrite_console/models/mock_number_list.py +19 -0
- appwrite_console/models/notification.py +60 -0
- appwrite_console/models/notification_list.py +19 -0
- appwrite_console/models/o_auth2_amazon.py +24 -0
- appwrite_console/models/o_auth2_apple.py +30 -0
- appwrite_console/models/o_auth2_appwrite.py +24 -0
- appwrite_console/models/o_auth2_auth0.py +27 -0
- appwrite_console/models/o_auth2_authentik.py +27 -0
- appwrite_console/models/o_auth2_autodesk.py +24 -0
- appwrite_console/models/o_auth2_bitbucket.py +24 -0
- appwrite_console/models/o_auth2_bitly.py +24 -0
- appwrite_console/models/o_auth2_box.py +24 -0
- appwrite_console/models/o_auth2_dailymotion.py +24 -0
- appwrite_console/models/o_auth2_discord.py +24 -0
- appwrite_console/models/o_auth2_disqus.py +24 -0
- appwrite_console/models/o_auth2_dropbox.py +24 -0
- appwrite_console/models/o_auth2_etsy.py +24 -0
- appwrite_console/models/o_auth2_facebook.py +24 -0
- appwrite_console/models/o_auth2_figma.py +24 -0
- appwrite_console/models/o_auth2_fusion_auth.py +27 -0
- appwrite_console/models/o_auth2_github.py +24 -0
- appwrite_console/models/o_auth2_gitlab.py +27 -0
- appwrite_console/models/o_auth2_google.py +28 -0
- appwrite_console/models/o_auth2_keycloak.py +30 -0
- appwrite_console/models/o_auth2_kick.py +24 -0
- appwrite_console/models/o_auth2_linkedin.py +24 -0
- appwrite_console/models/o_auth2_microsoft.py +27 -0
- appwrite_console/models/o_auth2_notion.py +24 -0
- appwrite_console/models/o_auth2_oidc.py +43 -0
- appwrite_console/models/o_auth2_okta.py +30 -0
- appwrite_console/models/o_auth2_paypal.py +24 -0
- appwrite_console/models/o_auth2_podio.py +24 -0
- appwrite_console/models/o_auth2_provider_list.py +59 -0
- appwrite_console/models/o_auth2_salesforce.py +24 -0
- appwrite_console/models/o_auth2_slack.py +24 -0
- appwrite_console/models/o_auth2_spotify.py +24 -0
- appwrite_console/models/o_auth2_stripe.py +24 -0
- appwrite_console/models/o_auth2_tradeshift.py +24 -0
- appwrite_console/models/o_auth2_twitch.py +24 -0
- appwrite_console/models/o_auth2_word_press.py +24 -0
- appwrite_console/models/o_auth2_x.py +24 -0
- appwrite_console/models/o_auth2_yahoo.py +24 -0
- appwrite_console/models/o_auth2_yandex.py +24 -0
- appwrite_console/models/o_auth2_zoho.py +24 -0
- appwrite_console/models/o_auth2_zoom.py +24 -0
- appwrite_console/models/oauth2_approve.py +15 -0
- appwrite_console/models/oauth2_authorize.py +18 -0
- appwrite_console/models/oauth2_consent.py +42 -0
- appwrite_console/models/oauth2_consent_list.py +19 -0
- appwrite_console/models/oauth2_consent_token.py +45 -0
- appwrite_console/models/oauth2_consent_token_list.py +19 -0
- appwrite_console/models/oauth2_device_authorization.py +30 -0
- appwrite_console/models/oauth2_grant.py +48 -0
- appwrite_console/models/oauth2_organization.py +15 -0
- appwrite_console/models/oauth2_organization_list.py +19 -0
- appwrite_console/models/oauth2_par.py +18 -0
- appwrite_console/models/oauth2_project.py +21 -0
- appwrite_console/models/oauth2_project_list.py +19 -0
- appwrite_console/models/oauth2_reject.py +15 -0
- appwrite_console/models/oauth2_token.py +33 -0
- appwrite_console/models/organization.py +132 -0
- appwrite_console/models/organization_list.py +32 -0
- appwrite_console/models/payment_authentication.py +30 -0
- appwrite_console/models/payment_method.py +72 -0
- appwrite_console/models/payment_method_list.py +19 -0
- appwrite_console/models/phone.py +21 -0
- appwrite_console/models/phone_list.py +19 -0
- appwrite_console/models/plan_change_estimation_details.py +39 -0
- appwrite_console/models/plan_change_limits.py +28 -0
- appwrite_console/models/plan_change_project_compliance.py +28 -0
- appwrite_console/models/plan_change_resource_compliance.py +30 -0
- appwrite_console/models/platform_android.py +31 -0
- appwrite_console/models/platform_apple.py +31 -0
- appwrite_console/models/platform_linux.py +31 -0
- appwrite_console/models/platform_list.py +23 -0
- appwrite_console/models/platform_web.py +31 -0
- appwrite_console/models/platform_windows.py +31 -0
- appwrite_console/models/policy_deny_aliased_email.py +18 -0
- appwrite_console/models/policy_deny_corporate_email.py +18 -0
- appwrite_console/models/policy_deny_disposable_email.py +18 -0
- appwrite_console/models/policy_deny_free_email.py +18 -0
- appwrite_console/models/policy_list.py +32 -0
- appwrite_console/models/policy_membership_privacy.py +33 -0
- appwrite_console/models/policy_password_dictionary.py +18 -0
- appwrite_console/models/policy_password_history.py +18 -0
- appwrite_console/models/policy_password_personal_data.py +18 -0
- appwrite_console/models/policy_password_strength.py +30 -0
- appwrite_console/models/policy_session_alert.py +18 -0
- appwrite_console/models/policy_session_duration.py +18 -0
- appwrite_console/models/policy_session_invalidation.py +18 -0
- appwrite_console/models/policy_session_limit.py +18 -0
- appwrite_console/models/policy_user_limit.py +18 -0
- appwrite_console/models/postgres_extension.py +24 -0
- appwrite_console/models/postgres_extension_list.py +19 -0
- appwrite_console/models/preferences.py +52 -0
- appwrite_console/models/presence.py +39 -0
- appwrite_console/models/presence_list.py +19 -0
- appwrite_console/models/program.py +39 -0
- appwrite_console/models/project.py +153 -0
- appwrite_console/models/project_auth_method.py +19 -0
- appwrite_console/models/project_list.py +19 -0
- appwrite_console/models/project_protocol.py +19 -0
- appwrite_console/models/project_service.py +19 -0
- appwrite_console/models/provider.py +39 -0
- appwrite_console/models/provider_list.py +19 -0
- appwrite_console/models/provider_repository.py +42 -0
- appwrite_console/models/provider_repository_framework.py +45 -0
- appwrite_console/models/provider_repository_framework_list.py +22 -0
- appwrite_console/models/provider_repository_runtime.py +45 -0
- appwrite_console/models/provider_repository_runtime_list.py +22 -0
- appwrite_console/models/proxy_rule.py +59 -0
- appwrite_console/models/proxy_rule_list.py +19 -0
- appwrite_console/models/report.py +49 -0
- appwrite_console/models/report_list.py +19 -0
- appwrite_console/models/resource_token.py +33 -0
- appwrite_console/models/resource_token_list.py +19 -0
- appwrite_console/models/review.py +24 -0
- appwrite_console/models/roles.py +18 -0
- appwrite_console/models/row.py +80 -0
- appwrite_console/models/row_list.py +32 -0
- appwrite_console/models/runtime.py +36 -0
- appwrite_console/models/runtime_list.py +19 -0
- appwrite_console/models/schedule.py +45 -0
- appwrite_console/models/schedule_list.py +19 -0
- appwrite_console/models/session.py +99 -0
- appwrite_console/models/session_list.py +19 -0
- appwrite_console/models/site.py +115 -0
- appwrite_console/models/site_list.py +19 -0
- appwrite_console/models/specification.py +24 -0
- appwrite_console/models/specification_list.py +19 -0
- appwrite_console/models/stage.py +27 -0
- appwrite_console/models/stage_list.py +16 -0
- appwrite_console/models/subscriber.py +40 -0
- appwrite_console/models/subscriber_list.py +19 -0
- appwrite_console/models/table.py +67 -0
- appwrite_console/models/table_list.py +19 -0
- appwrite_console/models/target.py +39 -0
- appwrite_console/models/target_list.py +19 -0
- appwrite_console/models/team.py +43 -0
- appwrite_console/models/team_list.py +32 -0
- appwrite_console/models/template_framework.py +39 -0
- appwrite_console/models/template_function.py +65 -0
- appwrite_console/models/template_function_list.py +19 -0
- appwrite_console/models/template_runtime.py +24 -0
- appwrite_console/models/template_site.py +53 -0
- appwrite_console/models/template_site_list.py +19 -0
- appwrite_console/models/template_variable.py +33 -0
- appwrite_console/models/token.py +30 -0
- appwrite_console/models/topic.py +36 -0
- appwrite_console/models/topic_list.py +19 -0
- appwrite_console/models/transaction.py +30 -0
- appwrite_console/models/transaction_list.py +19 -0
- appwrite_console/models/usage_billing_plan.py +46 -0
- appwrite_console/models/usage_data_point.py +99 -0
- appwrite_console/models/usage_event_list.py +19 -0
- appwrite_console/models/usage_gauge_list.py +19 -0
- appwrite_console/models/usage_metric.py +19 -0
- appwrite_console/models/usage_organization.py +104 -0
- appwrite_console/models/usage_organization_project.py +73 -0
- appwrite_console/models/usage_presence.py +22 -0
- appwrite_console/models/usage_project.py +218 -0
- appwrite_console/models/usage_resources.py +36 -0
- appwrite_console/models/usage_users.py +28 -0
- appwrite_console/models/user.py +111 -0
- appwrite_console/models/user_list.py +32 -0
- appwrite_console/models/variable.py +36 -0
- appwrite_console/models/variable_list.py +19 -0
- appwrite_console/models/vcs_content.py +21 -0
- appwrite_console/models/vcs_content_list.py +19 -0
- appwrite_console/models/vcs_namespace.py +27 -0
- appwrite_console/models/vcs_namespace_list.py +19 -0
- appwrite_console/models/vectorsdb_collection.py +54 -0
- appwrite_console/models/vectorsdb_collection_list.py +19 -0
- appwrite_console/models/waf_rule.py +55 -0
- appwrite_console/models/waf_rule_bypass.py +55 -0
- appwrite_console/models/waf_rule_challenge.py +64 -0
- appwrite_console/models/waf_rule_deny.py +55 -0
- appwrite_console/models/waf_rule_list.py +19 -0
- appwrite_console/models/waf_rule_rate_limit.py +64 -0
- appwrite_console/models/waf_rule_redirect.py +61 -0
- appwrite_console/models/webhook.py +51 -0
- appwrite_console/models/webhook_list.py +19 -0
- appwrite_console/operator.py +150 -0
- appwrite_console/permission.py +21 -0
- appwrite_console/query.py +293 -0
- appwrite_console/role.py +111 -0
- appwrite_console/service.py +50 -0
- appwrite_console/services/__init__.py +1 -0
- appwrite_console/services/account.py +3328 -0
- appwrite_console/services/activities.py +89 -0
- appwrite_console/services/advisor.py +234 -0
- appwrite_console/services/apps.py +1156 -0
- appwrite_console/services/assistant.py +50 -0
- appwrite_console/services/avatars.py +531 -0
- appwrite_console/services/backups.py +572 -0
- appwrite_console/services/console.py +807 -0
- appwrite_console/services/databases.py +4976 -0
- appwrite_console/services/documents_db.py +2052 -0
- appwrite_console/services/domains.py +3047 -0
- appwrite_console/services/functions.py +1659 -0
- appwrite_console/services/graphql.py +92 -0
- appwrite_console/services/locale.py +243 -0
- appwrite_console/services/manager.py +301 -0
- appwrite_console/services/messaging.py +3137 -0
- appwrite_console/services/migrations.py +1036 -0
- appwrite_console/services/mongo.py +1683 -0
- appwrite_console/services/mysql.py +1861 -0
- appwrite_console/services/notifications.py +98 -0
- appwrite_console/services/oauth2.py +914 -0
- appwrite_console/services/organization.py +1039 -0
- appwrite_console/services/organizations.py +2245 -0
- appwrite_console/services/postgresql.py +1995 -0
- appwrite_console/services/presences.py +309 -0
- appwrite_console/services/project.py +5271 -0
- appwrite_console/services/projects.py +885 -0
- appwrite_console/services/proxy.py +394 -0
- appwrite_console/services/sites.py +1593 -0
- appwrite_console/services/storage.py +818 -0
- appwrite_console/services/tables_db.py +5189 -0
- appwrite_console/services/teams.py +993 -0
- appwrite_console/services/tokens.py +243 -0
- appwrite_console/services/usage.py +194 -0
- appwrite_console/services/users.py +2314 -0
- appwrite_console/services/vcs.py +599 -0
- appwrite_console/services/vectors_db.py +2054 -0
- appwrite_console/services/waf.py +1014 -0
- appwrite_console/services/webhooks.py +344 -0
- appwrite_console/utils/__init__.py +1 -0
- appwrite_console/utils/deprecated.py +51 -0
- appwrite_console-0.1.0.dist-info/METADATA +189 -0
- appwrite_console-0.1.0.dist-info/RECORD +552 -0
- appwrite_console-0.1.0.dist-info/WHEEL +5 -0
- appwrite_console-0.1.0.dist-info/licenses/LICENSE +12 -0
- appwrite_console-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -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 .console_region import ConsoleRegion
|
|
6
|
+
|
|
7
|
+
class ConsoleRegionList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Regions list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of regions that matched your query.
|
|
15
|
+
regions : List[ConsoleRegion]
|
|
16
|
+
List of regions.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
regions: List[ConsoleRegion] = Field(..., alias='regions')
|
|
@@ -0,0 +1,96 @@
|
|
|
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 ConsoleVariables(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Console Variables
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
app_domain_target_cname : str
|
|
13
|
+
CNAME target for your Appwrite custom domains.
|
|
14
|
+
app_domain_target_a : str
|
|
15
|
+
A target for your Appwrite custom domains.
|
|
16
|
+
app_compute_build_timeout : float
|
|
17
|
+
Maximum build timeout in seconds.
|
|
18
|
+
app_domain_target_aaaa : str
|
|
19
|
+
AAAA target for your Appwrite custom domains.
|
|
20
|
+
app_domain_target_caa : str
|
|
21
|
+
CAA target for your Appwrite custom domains.
|
|
22
|
+
app_storage_limit : float
|
|
23
|
+
Maximum file size allowed for file upload in bytes.
|
|
24
|
+
app_compute_size_limit : float
|
|
25
|
+
Maximum file size allowed for deployment in bytes.
|
|
26
|
+
app_usage_stats : str
|
|
27
|
+
Defines if usage stats are enabled. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'.
|
|
28
|
+
app_vcs_enabled : bool
|
|
29
|
+
Defines if VCS (Version Control System) is enabled.
|
|
30
|
+
app_vcs_providers : List[Any]
|
|
31
|
+
List of configured VCS providers.
|
|
32
|
+
app_domain_enabled : bool
|
|
33
|
+
Defines if main domain is configured. If so, custom domains can be created.
|
|
34
|
+
app_assistant_enabled : bool
|
|
35
|
+
Defines if AI assistant is enabled.
|
|
36
|
+
app_domain_sites : str
|
|
37
|
+
A comma separated list of domains to use for site URLs.
|
|
38
|
+
app_domain_functions : str
|
|
39
|
+
A domain to use for function URLs.
|
|
40
|
+
app_options_force_https : str
|
|
41
|
+
Defines if HTTPS is enforced for all requests.
|
|
42
|
+
app_domains_nameservers : str
|
|
43
|
+
Comma-separated list of nameservers.
|
|
44
|
+
app_db_adapter : str
|
|
45
|
+
Database adapter in use.
|
|
46
|
+
supportforrelationships : bool
|
|
47
|
+
Whether the database adapter supports relationships.
|
|
48
|
+
supportforoperators : bool
|
|
49
|
+
Whether the database adapter supports operators.
|
|
50
|
+
supportforspatials : bool
|
|
51
|
+
Whether the database adapter supports spatial attributes.
|
|
52
|
+
supportforspatialindexnull : bool
|
|
53
|
+
Whether the database adapter supports spatial indexes on nullable columns.
|
|
54
|
+
supportforfulltextwildcard : bool
|
|
55
|
+
Whether the database adapter supports fulltext wildcard search.
|
|
56
|
+
supportformultiplefulltextindexes : bool
|
|
57
|
+
Whether the database adapter supports multiple fulltext indexes per collection.
|
|
58
|
+
supportforattributeresizing : bool
|
|
59
|
+
Whether the database adapter supports resizing attributes.
|
|
60
|
+
supportforschemas : bool
|
|
61
|
+
Whether the database adapter supports fixed schemas with row width limits.
|
|
62
|
+
maxindexlength : float
|
|
63
|
+
Maximum index length supported by the database adapter.
|
|
64
|
+
supportforintegerids : bool
|
|
65
|
+
Whether the database adapter uses integer sequence IDs.
|
|
66
|
+
app_console_email_verification : str
|
|
67
|
+
Whether email verification for console users is required. Can be "true" or "false".
|
|
68
|
+
"""
|
|
69
|
+
app_domain_target_cname: str = Field(..., alias='_APP_DOMAIN_TARGET_CNAME')
|
|
70
|
+
app_domain_target_a: str = Field(..., alias='_APP_DOMAIN_TARGET_A')
|
|
71
|
+
app_compute_build_timeout: float = Field(..., alias='_APP_COMPUTE_BUILD_TIMEOUT')
|
|
72
|
+
app_domain_target_aaaa: str = Field(..., alias='_APP_DOMAIN_TARGET_AAAA')
|
|
73
|
+
app_domain_target_caa: str = Field(..., alias='_APP_DOMAIN_TARGET_CAA')
|
|
74
|
+
app_storage_limit: float = Field(..., alias='_APP_STORAGE_LIMIT')
|
|
75
|
+
app_compute_size_limit: float = Field(..., alias='_APP_COMPUTE_SIZE_LIMIT')
|
|
76
|
+
app_usage_stats: str = Field(..., alias='_APP_USAGE_STATS')
|
|
77
|
+
app_vcs_enabled: bool = Field(..., alias='_APP_VCS_ENABLED')
|
|
78
|
+
app_vcs_providers: List[Any] = Field(..., alias='_APP_VCS_PROVIDERS')
|
|
79
|
+
app_domain_enabled: bool = Field(..., alias='_APP_DOMAIN_ENABLED')
|
|
80
|
+
app_assistant_enabled: bool = Field(..., alias='_APP_ASSISTANT_ENABLED')
|
|
81
|
+
app_domain_sites: str = Field(..., alias='_APP_DOMAIN_SITES')
|
|
82
|
+
app_domain_functions: str = Field(..., alias='_APP_DOMAIN_FUNCTIONS')
|
|
83
|
+
app_options_force_https: str = Field(..., alias='_APP_OPTIONS_FORCE_HTTPS')
|
|
84
|
+
app_domains_nameservers: str = Field(..., alias='_APP_DOMAINS_NAMESERVERS')
|
|
85
|
+
app_db_adapter: str = Field(..., alias='_APP_DB_ADAPTER')
|
|
86
|
+
supportforrelationships: bool = Field(..., alias='supportForRelationships')
|
|
87
|
+
supportforoperators: bool = Field(..., alias='supportForOperators')
|
|
88
|
+
supportforspatials: bool = Field(..., alias='supportForSpatials')
|
|
89
|
+
supportforspatialindexnull: bool = Field(..., alias='supportForSpatialIndexNull')
|
|
90
|
+
supportforfulltextwildcard: bool = Field(..., alias='supportForFulltextWildcard')
|
|
91
|
+
supportformultiplefulltextindexes: bool = Field(..., alias='supportForMultipleFulltextIndexes')
|
|
92
|
+
supportforattributeresizing: bool = Field(..., alias='supportForAttributeResizing')
|
|
93
|
+
supportforschemas: bool = Field(..., alias='supportForSchemas')
|
|
94
|
+
maxindexlength: float = Field(..., alias='maxIndexLength')
|
|
95
|
+
supportforintegerids: bool = Field(..., alias='supportForIntegerIds')
|
|
96
|
+
app_console_email_verification: str = Field(..., alias='_APP_CONSOLE_EMAIL_VERIFICATION')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class Continent(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Continent
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
name : str
|
|
13
|
+
Continent name.
|
|
14
|
+
code : str
|
|
15
|
+
Continent two letter code.
|
|
16
|
+
"""
|
|
17
|
+
name: str = Field(..., alias='name')
|
|
18
|
+
code: str = Field(..., alias='code')
|
|
@@ -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 .continent import Continent
|
|
6
|
+
|
|
7
|
+
class ContinentList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Continents List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of continents that matched your query.
|
|
15
|
+
continents : List[Continent]
|
|
16
|
+
List of continents.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
continents: List[Continent] = Field(..., alias='continents')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class Country(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Country
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
name : str
|
|
13
|
+
Country name.
|
|
14
|
+
code : str
|
|
15
|
+
Country two-character ISO 3166-1 alpha code.
|
|
16
|
+
"""
|
|
17
|
+
name: str = Field(..., alias='name')
|
|
18
|
+
code: str = Field(..., alias='code')
|
|
@@ -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 .country import Country
|
|
6
|
+
|
|
7
|
+
class CountryList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Countries List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of countries that matched your query.
|
|
15
|
+
countries : List[Country]
|
|
16
|
+
List of countries.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
countries: List[Country] = Field(..., alias='countries')
|
|
@@ -0,0 +1,36 @@
|
|
|
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 Coupon(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Coupon
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
coupon ID
|
|
14
|
+
code : str
|
|
15
|
+
coupon ID
|
|
16
|
+
credits : float
|
|
17
|
+
Provided credit amount
|
|
18
|
+
expiration : str
|
|
19
|
+
Coupon expiration time in ISO 8601 format.
|
|
20
|
+
validity : float
|
|
21
|
+
Credit validity in days.
|
|
22
|
+
campaign : str
|
|
23
|
+
Campaign the coupon is associated with`.
|
|
24
|
+
status : str
|
|
25
|
+
Status of the coupon. Can be one of `disabled`, `active` or `expired`.
|
|
26
|
+
onlyneworgs : bool
|
|
27
|
+
If the coupon is only valid for new organizations or not.
|
|
28
|
+
"""
|
|
29
|
+
id: str = Field(..., alias='$id')
|
|
30
|
+
code: str = Field(..., alias='code')
|
|
31
|
+
credits: float = Field(..., alias='credits')
|
|
32
|
+
expiration: str = Field(..., alias='expiration')
|
|
33
|
+
validity: float = Field(..., alias='validity')
|
|
34
|
+
campaign: str = Field(..., alias='campaign')
|
|
35
|
+
status: str = Field(..., alias='status')
|
|
36
|
+
onlyneworgs: bool = Field(..., alias='onlyNewOrgs')
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class Credit(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Credit
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Credit ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Credit creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Credit update date in ISO 8601 format.
|
|
18
|
+
permissions : List[Any]
|
|
19
|
+
Credit permissions. [Learn more about permissions](/docs/permissions).
|
|
20
|
+
couponid : str
|
|
21
|
+
coupon ID
|
|
22
|
+
userid : str
|
|
23
|
+
ID of the User.
|
|
24
|
+
teamid : str
|
|
25
|
+
ID of the Team.
|
|
26
|
+
credits : float
|
|
27
|
+
Provided credit amount
|
|
28
|
+
total : float
|
|
29
|
+
Provided credit amount
|
|
30
|
+
expiration : str
|
|
31
|
+
Credit expiration time in ISO 8601 format.
|
|
32
|
+
status : str
|
|
33
|
+
Status of the credit. Can be one of `disabled`, `active` or `expired`.
|
|
34
|
+
"""
|
|
35
|
+
id: str = Field(..., alias='$id')
|
|
36
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
37
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
38
|
+
permissions: List[Any] = Field(..., alias='$permissions')
|
|
39
|
+
couponid: str = Field(..., alias='couponId')
|
|
40
|
+
userid: str = Field(..., alias='userId')
|
|
41
|
+
teamid: str = Field(..., alias='teamId')
|
|
42
|
+
credits: float = Field(..., alias='credits')
|
|
43
|
+
total: float = Field(..., alias='total')
|
|
44
|
+
expiration: str = Field(..., alias='expiration')
|
|
45
|
+
status: str = Field(..., alias='status')
|
|
@@ -0,0 +1,15 @@
|
|
|
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 CreditAvailable(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
CreditAvailable
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
available : float
|
|
13
|
+
Total available credits for the organization.
|
|
14
|
+
"""
|
|
15
|
+
available: float = Field(..., alias='available')
|
|
@@ -0,0 +1,22 @@
|
|
|
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 .credit import Credit
|
|
6
|
+
|
|
7
|
+
class CreditList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
CreditList
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
credits : List[Credit]
|
|
14
|
+
Credits
|
|
15
|
+
total : float
|
|
16
|
+
Total number of credits
|
|
17
|
+
available : float
|
|
18
|
+
Total available credit balance in USD
|
|
19
|
+
"""
|
|
20
|
+
credits: List[Credit] = Field(..., alias='credits')
|
|
21
|
+
total: float = Field(..., alias='total')
|
|
22
|
+
available: float = Field(..., alias='available')
|
|
@@ -0,0 +1,33 @@
|
|
|
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 Currency(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Currency
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
symbol : str
|
|
13
|
+
Currency symbol.
|
|
14
|
+
name : str
|
|
15
|
+
Currency name.
|
|
16
|
+
symbolnative : str
|
|
17
|
+
Currency native symbol.
|
|
18
|
+
decimaldigits : float
|
|
19
|
+
Number of decimal digits.
|
|
20
|
+
rounding : float
|
|
21
|
+
Currency digit rounding.
|
|
22
|
+
code : str
|
|
23
|
+
Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
|
|
24
|
+
nameplural : str
|
|
25
|
+
Currency plural name
|
|
26
|
+
"""
|
|
27
|
+
symbol: str = Field(..., alias='symbol')
|
|
28
|
+
name: str = Field(..., alias='name')
|
|
29
|
+
symbolnative: str = Field(..., alias='symbolNative')
|
|
30
|
+
decimaldigits: float = Field(..., alias='decimalDigits')
|
|
31
|
+
rounding: float = Field(..., alias='rounding')
|
|
32
|
+
code: str = Field(..., alias='code')
|
|
33
|
+
nameplural: str = Field(..., alias='namePlural')
|
|
@@ -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 .currency import Currency
|
|
6
|
+
|
|
7
|
+
class CurrencyList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Currencies List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of currencies that matched your query.
|
|
15
|
+
currencies : List[Currency]
|
|
16
|
+
List of currencies.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
currencies: List[Currency] = Field(..., alias='currencies')
|
|
@@ -0,0 +1,52 @@
|
|
|
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 ..enums.database_type import DatabaseType
|
|
6
|
+
from ..enums.database_status import DatabaseStatus
|
|
7
|
+
from .backup_policy import BackupPolicy
|
|
8
|
+
from .backup_archive import BackupArchive
|
|
9
|
+
|
|
10
|
+
class Database(AppwriteModel):
|
|
11
|
+
"""
|
|
12
|
+
Database
|
|
13
|
+
|
|
14
|
+
Attributes
|
|
15
|
+
----------
|
|
16
|
+
id : str
|
|
17
|
+
Database ID.
|
|
18
|
+
name : str
|
|
19
|
+
Database name.
|
|
20
|
+
createdat : str
|
|
21
|
+
Database creation date in ISO 8601 format.
|
|
22
|
+
updatedat : str
|
|
23
|
+
Database update date in ISO 8601 format.
|
|
24
|
+
enabled : bool
|
|
25
|
+
If database is enabled. Can be 'enabled' or 'disabled'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
|
|
26
|
+
type : DatabaseType
|
|
27
|
+
Database type.
|
|
28
|
+
status : Optional[DatabaseStatus]
|
|
29
|
+
Dedicated database lifecycle status. Null when the database has no valid dedicated backing.
|
|
30
|
+
engine : Optional[str]
|
|
31
|
+
Underlying engine of the dedicated backing: postgresql, mysql, or mongodb. A managed product (tablesdb, documentsdb, vectorsdb) reports the engine it runs on, so its type and engine can differ. Null when the database has no dedicated backing.
|
|
32
|
+
specification : Optional[str]
|
|
33
|
+
Compute specification identifier of the dedicated backing, e.g. s-2vcpu-2gb. Null when the database has no dedicated backing.
|
|
34
|
+
replicas : Optional[float]
|
|
35
|
+
Number of secondary high availability replicas, excluding the primary. Null when backing configuration is unavailable.
|
|
36
|
+
policies : Optional[List[BackupPolicy]]
|
|
37
|
+
Database backup policies.
|
|
38
|
+
archives : Optional[List[BackupArchive]]
|
|
39
|
+
Database backup archives.
|
|
40
|
+
"""
|
|
41
|
+
id: str = Field(..., alias='$id')
|
|
42
|
+
name: str = Field(..., alias='name')
|
|
43
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
44
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
45
|
+
enabled: bool = Field(..., alias='enabled')
|
|
46
|
+
type: DatabaseType = Field(..., alias='type')
|
|
47
|
+
status: Optional[DatabaseStatus] = Field(default=None, alias='status')
|
|
48
|
+
engine: Optional[str] = Field(default=None, alias='engine')
|
|
49
|
+
specification: Optional[str] = Field(default=None, alias='specification')
|
|
50
|
+
replicas: Optional[float] = Field(default=None, alias='replicas')
|
|
51
|
+
policies: Optional[List[BackupPolicy]] = Field(default=None, alias='policies')
|
|
52
|
+
archives: Optional[List[BackupArchive]] = Field(default=None, alias='archives')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .database import Database
|
|
6
|
+
|
|
7
|
+
class DatabaseList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Databases List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of databases that matched your query.
|
|
15
|
+
databases : List[Database]
|
|
16
|
+
List of databases.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
databases: List[Database] = Field(..., alias='databases')
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseMigration(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Database Migration
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Database migration ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Migration creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Migration update time in ISO 8601 format.
|
|
18
|
+
projectid : str
|
|
19
|
+
Project ID that owns the migrating database.
|
|
20
|
+
databaseid : str
|
|
21
|
+
Logical database ID being migrated.
|
|
22
|
+
specification : str
|
|
23
|
+
Dedicated compute specification provisioned for the migration target.
|
|
24
|
+
phase : str
|
|
25
|
+
Migration phase. Possible values: pending, provisioned, capturing, backfilling, catching_up, verifying, ready_to_cutover, cutover, soaking, done, failed, rolled_back.
|
|
26
|
+
attempt : float
|
|
27
|
+
Number of times a migration step has failed and been recorded.
|
|
28
|
+
lasterror : str
|
|
29
|
+
Reason the most recent migration step failed, empty while none has.
|
|
30
|
+
lagdocuments : float
|
|
31
|
+
Number of documents still pending replication to the target.
|
|
32
|
+
verifiedat : str
|
|
33
|
+
Time the migrated data was verified against the source in ISO 8601 format.
|
|
34
|
+
cutoverat : str
|
|
35
|
+
Time routing was flipped to the target in ISO 8601 format.
|
|
36
|
+
soakuntil : str
|
|
37
|
+
Time the post-cutover soak window ends in ISO 8601 format.
|
|
38
|
+
autocutover : bool
|
|
39
|
+
Whether the migration cuts over automatically once ready.
|
|
40
|
+
paused : bool
|
|
41
|
+
Whether the migration is paused.
|
|
42
|
+
"""
|
|
43
|
+
id: str = Field(..., alias='$id')
|
|
44
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
45
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
46
|
+
projectid: str = Field(..., alias='projectId')
|
|
47
|
+
databaseid: str = Field(..., alias='databaseId')
|
|
48
|
+
specification: str = Field(..., alias='specification')
|
|
49
|
+
phase: str = Field(..., alias='phase')
|
|
50
|
+
attempt: float = Field(..., alias='attempt')
|
|
51
|
+
lasterror: str = Field(..., alias='lastError')
|
|
52
|
+
lagdocuments: float = Field(..., alias='lagDocuments')
|
|
53
|
+
verifiedat: str = Field(..., alias='verifiedAt')
|
|
54
|
+
cutoverat: str = Field(..., alias='cutoverAt')
|
|
55
|
+
soakuntil: str = Field(..., alias='soakUntil')
|
|
56
|
+
autocutover: bool = Field(..., alias='autoCutover')
|
|
57
|
+
paused: bool = Field(..., alias='paused')
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .database_migration import DatabaseMigration
|
|
6
|
+
|
|
7
|
+
class DatabaseMigrationList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Database Migrations List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of migrations that matched your query.
|
|
15
|
+
migrations : List[DatabaseMigration]
|
|
16
|
+
List of migrations.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
migrations: List[DatabaseMigration] = Field(..., alias='migrations')
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .database_status_connections import DatabaseStatusConnections
|
|
6
|
+
from .database_status_replica import DatabaseStatusReplica
|
|
7
|
+
from .database_status_volume import DatabaseStatusVolume
|
|
8
|
+
|
|
9
|
+
class DatabaseStatus(AppwriteModel):
|
|
10
|
+
"""
|
|
11
|
+
Status
|
|
12
|
+
|
|
13
|
+
Attributes
|
|
14
|
+
----------
|
|
15
|
+
health : str
|
|
16
|
+
Overall health status: healthy, degraded, or unhealthy.
|
|
17
|
+
ready : bool
|
|
18
|
+
Whether the database is ready to accept connections.
|
|
19
|
+
engine : str
|
|
20
|
+
Database engine: postgresql, mysql, or mongodb.
|
|
21
|
+
version : str
|
|
22
|
+
Database engine version.
|
|
23
|
+
uptime : float
|
|
24
|
+
Database uptime in seconds.
|
|
25
|
+
connections : DatabaseStatusConnections
|
|
26
|
+
Connection statistics.
|
|
27
|
+
syncmode : str
|
|
28
|
+
Requested replication sync mode. Possible values: async, sync, quorum. Compare with effectiveSyncMode for what the primary is enforcing.
|
|
29
|
+
effectivesyncmode : Optional[str]
|
|
30
|
+
Replication sync mode the primary is actually enforcing. Null when high availability is disabled or the state could not be read.
|
|
31
|
+
syncdegraded : bool
|
|
32
|
+
Whether the enforced replication is weaker than the requested syncMode.
|
|
33
|
+
syncacknowledgements : float
|
|
34
|
+
Number of standby acknowledgements the primary waits for before a write is committed.
|
|
35
|
+
syncstandbycount : float
|
|
36
|
+
Number of standbys registered with the primary for synchronous replication.
|
|
37
|
+
syncstateconfirmed : bool
|
|
38
|
+
Whether the reported sync state was read from the engine. When false the state could not be confirmed and the other sync fields carry no reading.
|
|
39
|
+
replicas : List[DatabaseStatusReplica]
|
|
40
|
+
List of database replicas and their status. Every configured member appears, including one the backend has not brought up, which is reported as not healthy.
|
|
41
|
+
volumes : List[DatabaseStatusVolume]
|
|
42
|
+
Storage volume information.
|
|
43
|
+
"""
|
|
44
|
+
health: str = Field(..., alias='health')
|
|
45
|
+
ready: bool = Field(..., alias='ready')
|
|
46
|
+
engine: str = Field(..., alias='engine')
|
|
47
|
+
version: str = Field(..., alias='version')
|
|
48
|
+
uptime: float = Field(..., alias='uptime')
|
|
49
|
+
connections: DatabaseStatusConnections = Field(..., alias='connections')
|
|
50
|
+
syncmode: str = Field(..., alias='syncMode')
|
|
51
|
+
effectivesyncmode: Optional[str] = Field(default=None, alias='effectiveSyncMode')
|
|
52
|
+
syncdegraded: bool = Field(..., alias='syncDegraded')
|
|
53
|
+
syncacknowledgements: float = Field(..., alias='syncAcknowledgements')
|
|
54
|
+
syncstandbycount: float = Field(..., alias='syncStandbyCount')
|
|
55
|
+
syncstateconfirmed: bool = Field(..., alias='syncStateConfirmed')
|
|
56
|
+
replicas: List[DatabaseStatusReplica] = Field(..., alias='replicas')
|
|
57
|
+
volumes: List[DatabaseStatusVolume] = Field(..., alias='volumes')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusConnections(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Connections
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
current : float
|
|
13
|
+
Current number of active connections.
|
|
14
|
+
max : float
|
|
15
|
+
The engine's own max_connections. On a pooled database this is the backend limit the pooler multiplexes onto, not the ceiling a client pool may reach — that is networkMaxConnections on the database resource.
|
|
16
|
+
"""
|
|
17
|
+
current: float = Field(..., alias='current')
|
|
18
|
+
max: float = Field(..., alias='max')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusReplica(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Replica
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
index : float
|
|
13
|
+
Member index within the database. Read `role` for which member accepts writes: a failover moves the primary without renumbering the indexes.
|
|
14
|
+
role : str
|
|
15
|
+
Member role. Possible values: primary (accepts reads and writes), replica (read-only follower), unknown (placement not established; reported while a transition is moving or restarting the topology, so no member can be named the write target).
|
|
16
|
+
healthy : bool
|
|
17
|
+
Whether the replica is healthy.
|
|
18
|
+
lagseconds : Optional[float]
|
|
19
|
+
Replication lag in seconds (null for primary).
|
|
20
|
+
"""
|
|
21
|
+
index: float = Field(..., alias='index')
|
|
22
|
+
role: str = Field(..., alias='role')
|
|
23
|
+
healthy: bool = Field(..., alias='healthy')
|
|
24
|
+
lagseconds: Optional[float] = Field(default=None, alias='lagSeconds')
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DatabaseStatusVolume(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Volume
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
path : str
|
|
13
|
+
Mount path of the volume.
|
|
14
|
+
usedpercent : str
|
|
15
|
+
Percentage of storage used.
|
|
16
|
+
available : str
|
|
17
|
+
Available storage space.
|
|
18
|
+
mounted : bool
|
|
19
|
+
Whether the volume is mounted.
|
|
20
|
+
"""
|
|
21
|
+
path: str = Field(..., alias='path')
|
|
22
|
+
usedpercent: str = Field(..., alias='usedPercent')
|
|
23
|
+
available: str = Field(..., alias='available')
|
|
24
|
+
mounted: bool = Field(..., alias='mounted')
|