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,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 DedicatedDatabaseRestoration(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Restoration
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Restoration ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Restoration creation time in ISO 8601 format.
|
|
16
|
+
databaseid : str
|
|
17
|
+
Database ID being restored.
|
|
18
|
+
projectid : str
|
|
19
|
+
Project ID.
|
|
20
|
+
backupid : str
|
|
21
|
+
Backup ID used for restoration (null for PITR).
|
|
22
|
+
type : str
|
|
23
|
+
Restoration type. Possible values: backup (restore from a specific backup snapshot), pitr (point-in-time recovery to a specific timestamp).
|
|
24
|
+
status : str
|
|
25
|
+
Restoration status. Possible values: pending (queued for processing), running (currently in progress), completed (successfully finished), failed (encountered an error).
|
|
26
|
+
targettime : str
|
|
27
|
+
Target time for PITR restoration in ISO 8601 format.
|
|
28
|
+
startedat : str
|
|
29
|
+
Restoration start time in ISO 8601 format.
|
|
30
|
+
completedat : str
|
|
31
|
+
Restoration completion time in ISO 8601 format.
|
|
32
|
+
error : str
|
|
33
|
+
Error message if restoration failed.
|
|
34
|
+
"""
|
|
35
|
+
id: str = Field(..., alias='$id')
|
|
36
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
37
|
+
databaseid: str = Field(..., alias='databaseId')
|
|
38
|
+
projectid: str = Field(..., alias='projectId')
|
|
39
|
+
backupid: str = Field(..., alias='backupId')
|
|
40
|
+
type: str = Field(..., alias='type')
|
|
41
|
+
status: str = Field(..., alias='status')
|
|
42
|
+
targettime: str = Field(..., alias='targetTime')
|
|
43
|
+
startedat: str = Field(..., alias='startedAt')
|
|
44
|
+
completedat: str = Field(..., alias='completedAt')
|
|
45
|
+
error: str = Field(..., alias='error')
|
|
@@ -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 .dedicated_database_restoration import DedicatedDatabaseRestoration
|
|
6
|
+
|
|
7
|
+
class DedicatedDatabaseRestorationList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Dedicated database restorations list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of restorations that matched your query.
|
|
15
|
+
restorations : List[DedicatedDatabaseRestoration]
|
|
16
|
+
List of restorations.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
restorations: List[DedicatedDatabaseRestoration] = Field(..., alias='restorations')
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
class DedicatedDatabaseSpecification(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
Specification
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
slug : str
|
|
13
|
+
Specification slug. Use this value when creating a dedicated database.
|
|
14
|
+
name : str
|
|
15
|
+
Human readable specification name.
|
|
16
|
+
price : float
|
|
17
|
+
Monthly price of the specification in USD.
|
|
18
|
+
cpu : float
|
|
19
|
+
Allocated CPU in millicores.
|
|
20
|
+
memory : float
|
|
21
|
+
Allocated memory in MB.
|
|
22
|
+
maxconnections : float
|
|
23
|
+
Maximum number of concurrent connections.
|
|
24
|
+
includedstorage : float
|
|
25
|
+
Included storage in GB before overage charges apply.
|
|
26
|
+
includedbandwidth : float
|
|
27
|
+
Included bandwidth in GB before overage charges apply.
|
|
28
|
+
enabled : bool
|
|
29
|
+
Whether the specification is available on the current plan.
|
|
30
|
+
"""
|
|
31
|
+
slug: str = Field(..., alias='slug')
|
|
32
|
+
name: str = Field(..., alias='name')
|
|
33
|
+
price: float = Field(..., alias='price')
|
|
34
|
+
cpu: float = Field(..., alias='cpu')
|
|
35
|
+
memory: float = Field(..., alias='memory')
|
|
36
|
+
maxconnections: float = Field(..., alias='maxConnections')
|
|
37
|
+
includedstorage: float = Field(..., alias='includedStorage')
|
|
38
|
+
includedbandwidth: float = Field(..., alias='includedBandwidth')
|
|
39
|
+
enabled: bool = Field(..., alias='enabled')
|
|
@@ -0,0 +1,23 @@
|
|
|
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 .dedicated_database_specification import DedicatedDatabaseSpecification
|
|
6
|
+
from .dedicated_database_specification_pricing import DedicatedDatabaseSpecificationPricing
|
|
7
|
+
|
|
8
|
+
class DedicatedDatabaseSpecificationList(AppwriteModel):
|
|
9
|
+
"""
|
|
10
|
+
SpecificationList
|
|
11
|
+
|
|
12
|
+
Attributes
|
|
13
|
+
----------
|
|
14
|
+
specifications : List[DedicatedDatabaseSpecification]
|
|
15
|
+
List of dedicated database specifications.
|
|
16
|
+
total : float
|
|
17
|
+
Total number of specifications.
|
|
18
|
+
pricing : DedicatedDatabaseSpecificationPricing
|
|
19
|
+
Overage and add-on pricing shared across all specifications.
|
|
20
|
+
"""
|
|
21
|
+
specifications: List[DedicatedDatabaseSpecification] = Field(..., alias='specifications')
|
|
22
|
+
total: float = Field(..., alias='total')
|
|
23
|
+
pricing: DedicatedDatabaseSpecificationPricing = Field(..., alias='pricing')
|
|
@@ -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 DedicatedDatabaseSpecificationPricing(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
SpecificationPricing
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
storageoveragerate : float
|
|
13
|
+
Price per GB of storage above the included amount, per month, in USD.
|
|
14
|
+
bandwidthoveragerate : float
|
|
15
|
+
Price per GB of bandwidth above the included amount, per month, in USD.
|
|
16
|
+
replicarate : float
|
|
17
|
+
High availability replica price as a fraction of the specification cost.
|
|
18
|
+
crossregionreplicarate : float
|
|
19
|
+
Cross-region replica price as a fraction of the specification cost.
|
|
20
|
+
pitrrate : float
|
|
21
|
+
Point-in-time recovery price as a fraction of the specification cost.
|
|
22
|
+
"""
|
|
23
|
+
storageoveragerate: float = Field(..., alias='storageOverageRate')
|
|
24
|
+
bandwidthoveragerate: float = Field(..., alias='bandwidthOverageRate')
|
|
25
|
+
replicarate: float = Field(..., alias='replicaRate')
|
|
26
|
+
crossregionreplicarate: float = Field(..., alias='crossRegionReplicaRate')
|
|
27
|
+
pitrrate: float = Field(..., alias='pitrRate')
|
|
@@ -0,0 +1,94 @@
|
|
|
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.deployment_status import DeploymentStatus
|
|
6
|
+
|
|
7
|
+
class Deployment(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Deployment
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
id : str
|
|
14
|
+
Deployment ID.
|
|
15
|
+
createdat : str
|
|
16
|
+
Deployment creation date in ISO 8601 format.
|
|
17
|
+
updatedat : str
|
|
18
|
+
Deployment update date in ISO 8601 format.
|
|
19
|
+
type : str
|
|
20
|
+
Type of deployment.
|
|
21
|
+
resourceid : str
|
|
22
|
+
Resource ID.
|
|
23
|
+
resourcetype : str
|
|
24
|
+
Resource type.
|
|
25
|
+
entrypoint : str
|
|
26
|
+
The entrypoint file to use to execute the deployment code.
|
|
27
|
+
sourcesize : float
|
|
28
|
+
The code size in bytes.
|
|
29
|
+
buildsize : float
|
|
30
|
+
The build output size in bytes.
|
|
31
|
+
totalsize : float
|
|
32
|
+
The total size in bytes (source and build output).
|
|
33
|
+
buildid : str
|
|
34
|
+
The current build ID.
|
|
35
|
+
activate : bool
|
|
36
|
+
Whether the deployment should be automatically activated.
|
|
37
|
+
screenshotlight : str
|
|
38
|
+
Screenshot with light theme preference file ID.
|
|
39
|
+
screenshotdark : str
|
|
40
|
+
Screenshot with dark theme preference file ID.
|
|
41
|
+
status : DeploymentStatus
|
|
42
|
+
The deployment status. Possible values are "waiting", "processing", "building", "ready", "canceled" and "failed".
|
|
43
|
+
buildlogs : str
|
|
44
|
+
The build logs.
|
|
45
|
+
buildduration : float
|
|
46
|
+
The current build time in seconds.
|
|
47
|
+
providerrepositoryname : str
|
|
48
|
+
The name of the vcs provider repository
|
|
49
|
+
providerrepositoryowner : str
|
|
50
|
+
The name of the vcs provider repository owner
|
|
51
|
+
providerrepositoryurl : str
|
|
52
|
+
The url of the vcs provider repository
|
|
53
|
+
providercommithash : str
|
|
54
|
+
The commit hash of the vcs commit
|
|
55
|
+
providercommitauthorurl : str
|
|
56
|
+
The url of vcs commit author
|
|
57
|
+
providercommitauthor : str
|
|
58
|
+
The name of vcs commit author
|
|
59
|
+
providercommitmessage : str
|
|
60
|
+
The commit message
|
|
61
|
+
providercommiturl : str
|
|
62
|
+
The url of the vcs commit
|
|
63
|
+
providerbranch : str
|
|
64
|
+
The branch of the vcs repository
|
|
65
|
+
providerbranchurl : str
|
|
66
|
+
The branch of the vcs repository
|
|
67
|
+
"""
|
|
68
|
+
id: str = Field(..., alias='$id')
|
|
69
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
70
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
71
|
+
type: str = Field(..., alias='type')
|
|
72
|
+
resourceid: str = Field(..., alias='resourceId')
|
|
73
|
+
resourcetype: str = Field(..., alias='resourceType')
|
|
74
|
+
entrypoint: str = Field(..., alias='entrypoint')
|
|
75
|
+
sourcesize: float = Field(..., alias='sourceSize')
|
|
76
|
+
buildsize: float = Field(..., alias='buildSize')
|
|
77
|
+
totalsize: float = Field(..., alias='totalSize')
|
|
78
|
+
buildid: str = Field(..., alias='buildId')
|
|
79
|
+
activate: bool = Field(..., alias='activate')
|
|
80
|
+
screenshotlight: str = Field(..., alias='screenshotLight')
|
|
81
|
+
screenshotdark: str = Field(..., alias='screenshotDark')
|
|
82
|
+
status: DeploymentStatus = Field(..., alias='status')
|
|
83
|
+
buildlogs: str = Field(..., alias='buildLogs')
|
|
84
|
+
buildduration: float = Field(..., alias='buildDuration')
|
|
85
|
+
providerrepositoryname: str = Field(..., alias='providerRepositoryName')
|
|
86
|
+
providerrepositoryowner: str = Field(..., alias='providerRepositoryOwner')
|
|
87
|
+
providerrepositoryurl: str = Field(..., alias='providerRepositoryUrl')
|
|
88
|
+
providercommithash: str = Field(..., alias='providerCommitHash')
|
|
89
|
+
providercommitauthorurl: str = Field(..., alias='providerCommitAuthorUrl')
|
|
90
|
+
providercommitauthor: str = Field(..., alias='providerCommitAuthor')
|
|
91
|
+
providercommitmessage: str = Field(..., alias='providerCommitMessage')
|
|
92
|
+
providercommiturl: str = Field(..., alias='providerCommitUrl')
|
|
93
|
+
providerbranch: str = Field(..., alias='providerBranch')
|
|
94
|
+
providerbranchurl: str = Field(..., alias='providerBranchUrl')
|
|
@@ -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 .deployment import Deployment
|
|
6
|
+
|
|
7
|
+
class DeploymentList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Deployments List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of deployments that matched your query.
|
|
15
|
+
deployments : List[Deployment]
|
|
16
|
+
List of deployments.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
deployments: List[Deployment] = Field(..., alias='deployments')
|
|
@@ -0,0 +1,32 @@
|
|
|
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.detection_framework_type import DetectionFrameworkType
|
|
6
|
+
from .detection_variable import DetectionVariable
|
|
7
|
+
|
|
8
|
+
class DetectionFramework(AppwriteModel):
|
|
9
|
+
"""
|
|
10
|
+
DetectionFramework
|
|
11
|
+
|
|
12
|
+
Attributes
|
|
13
|
+
----------
|
|
14
|
+
type : DetectionFrameworkType
|
|
15
|
+
Repository detection type.
|
|
16
|
+
variables : Optional[List[DetectionVariable]]
|
|
17
|
+
Environment variables found in .env files
|
|
18
|
+
framework : str
|
|
19
|
+
Framework
|
|
20
|
+
installcommand : str
|
|
21
|
+
Site Install Command
|
|
22
|
+
buildcommand : str
|
|
23
|
+
Site Build Command
|
|
24
|
+
outputdirectory : str
|
|
25
|
+
Site Output Directory
|
|
26
|
+
"""
|
|
27
|
+
type: DetectionFrameworkType = Field(..., alias='type')
|
|
28
|
+
variables: Optional[List[DetectionVariable]] = Field(default=None, alias='variables')
|
|
29
|
+
framework: str = Field(..., alias='framework')
|
|
30
|
+
installcommand: str = Field(..., alias='installCommand')
|
|
31
|
+
buildcommand: str = Field(..., alias='buildCommand')
|
|
32
|
+
outputdirectory: str = Field(..., alias='outputDirectory')
|
|
@@ -0,0 +1,29 @@
|
|
|
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.detection_runtime_type import DetectionRuntimeType
|
|
6
|
+
from .detection_variable import DetectionVariable
|
|
7
|
+
|
|
8
|
+
class DetectionRuntime(AppwriteModel):
|
|
9
|
+
"""
|
|
10
|
+
DetectionRuntime
|
|
11
|
+
|
|
12
|
+
Attributes
|
|
13
|
+
----------
|
|
14
|
+
type : DetectionRuntimeType
|
|
15
|
+
Repository detection type.
|
|
16
|
+
variables : Optional[List[DetectionVariable]]
|
|
17
|
+
Environment variables found in .env files
|
|
18
|
+
runtime : str
|
|
19
|
+
Runtime
|
|
20
|
+
entrypoint : str
|
|
21
|
+
Function Entrypoint
|
|
22
|
+
commands : str
|
|
23
|
+
Function install and build commands
|
|
24
|
+
"""
|
|
25
|
+
type: DetectionRuntimeType = Field(..., alias='type')
|
|
26
|
+
variables: Optional[List[DetectionVariable]] = Field(default=None, alias='variables')
|
|
27
|
+
runtime: str = Field(..., alias='runtime')
|
|
28
|
+
entrypoint: str = Field(..., alias='entrypoint')
|
|
29
|
+
commands: str = Field(..., alias='commands')
|
|
@@ -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 DetectionVariable(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
DetectionVariable
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
name : str
|
|
13
|
+
Name of environment variable
|
|
14
|
+
value : str
|
|
15
|
+
Value of environment variable
|
|
16
|
+
"""
|
|
17
|
+
name: str = Field(..., alias='name')
|
|
18
|
+
value: str = Field(..., alias='value')
|
|
@@ -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 DevKey(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
DevKey
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
Key ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
Key creation date in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
Key update date in ISO 8601 format.
|
|
18
|
+
name : str
|
|
19
|
+
Key name.
|
|
20
|
+
expire : str
|
|
21
|
+
Key expiration date in ISO 8601 format.
|
|
22
|
+
secret : str
|
|
23
|
+
Secret key.
|
|
24
|
+
accessedat : str
|
|
25
|
+
Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
|
|
26
|
+
sdks : List[Any]
|
|
27
|
+
List of SDK user agents that used this key.
|
|
28
|
+
"""
|
|
29
|
+
id: str = Field(..., alias='$id')
|
|
30
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
31
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
32
|
+
name: str = Field(..., alias='name')
|
|
33
|
+
expire: str = Field(..., alias='expire')
|
|
34
|
+
secret: str = Field(..., alias='secret')
|
|
35
|
+
accessedat: str = Field(..., alias='accessedAt')
|
|
36
|
+
sdks: List[Any] = Field(..., alias='sdks')
|
|
@@ -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 .dev_key import DevKey
|
|
6
|
+
|
|
7
|
+
class DevKeyList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
Dev Keys List
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of devKeys that matched your query.
|
|
15
|
+
devkeys : List[DevKey]
|
|
16
|
+
List of devKeys.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
devkeys: List[DevKey] = Field(..., alias='devKeys')
|
|
@@ -0,0 +1,48 @@
|
|
|
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 DnsRecord(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
DNSRecord
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
id : str
|
|
13
|
+
DNS Record ID.
|
|
14
|
+
createdat : str
|
|
15
|
+
DNS Record creation time in ISO 8601 format.
|
|
16
|
+
updatedat : str
|
|
17
|
+
DNS Record update date in ISO 8601 format.
|
|
18
|
+
type : str
|
|
19
|
+
DNS record type (e.g. A, CNAME, MX).
|
|
20
|
+
name : str
|
|
21
|
+
Record name or subdomain.
|
|
22
|
+
value : str
|
|
23
|
+
Value of the record (IP address, domain, etc.).
|
|
24
|
+
ttl : float
|
|
25
|
+
Time to live (in seconds).
|
|
26
|
+
priority : float
|
|
27
|
+
Record priority (commonly used for MX).
|
|
28
|
+
lock : bool
|
|
29
|
+
Whether this record is locked (read-only).
|
|
30
|
+
weight : float
|
|
31
|
+
Record weight (used for SRV records).
|
|
32
|
+
port : float
|
|
33
|
+
Target port (used for SRV records).
|
|
34
|
+
comment : str
|
|
35
|
+
Comment for the DNS record.
|
|
36
|
+
"""
|
|
37
|
+
id: str = Field(..., alias='$id')
|
|
38
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
39
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
40
|
+
type: str = Field(..., alias='type')
|
|
41
|
+
name: str = Field(..., alias='name')
|
|
42
|
+
value: str = Field(..., alias='value')
|
|
43
|
+
ttl: float = Field(..., alias='ttl')
|
|
44
|
+
priority: float = Field(..., alias='priority')
|
|
45
|
+
lock: bool = Field(..., alias='lock')
|
|
46
|
+
weight: float = Field(..., alias='weight')
|
|
47
|
+
port: float = Field(..., alias='port')
|
|
48
|
+
comment: str = Field(..., alias='comment')
|
|
@@ -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 .dns_record import DnsRecord
|
|
6
|
+
|
|
7
|
+
class DnsRecordsList(AppwriteModel):
|
|
8
|
+
"""
|
|
9
|
+
DNS records list
|
|
10
|
+
|
|
11
|
+
Attributes
|
|
12
|
+
----------
|
|
13
|
+
total : float
|
|
14
|
+
Total number of dnsRecords that matched your query.
|
|
15
|
+
dnsrecords : List[DnsRecord]
|
|
16
|
+
List of dnsRecords.
|
|
17
|
+
"""
|
|
18
|
+
total: float = Field(..., alias='total')
|
|
19
|
+
dnsrecords: List[DnsRecord] = Field(..., alias='dnsRecords')
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast, Generic, TypeVar, Type
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
|
|
6
|
+
T = TypeVar('T')
|
|
7
|
+
|
|
8
|
+
class Document(AppwriteModel, Generic[T]):
|
|
9
|
+
"""
|
|
10
|
+
Document
|
|
11
|
+
|
|
12
|
+
Attributes
|
|
13
|
+
----------
|
|
14
|
+
id : str
|
|
15
|
+
Document ID.
|
|
16
|
+
sequence : str
|
|
17
|
+
Document sequence ID.
|
|
18
|
+
collectionid : str
|
|
19
|
+
Collection ID.
|
|
20
|
+
databaseid : str
|
|
21
|
+
Database ID.
|
|
22
|
+
createdat : str
|
|
23
|
+
Document creation date in ISO 8601 format.
|
|
24
|
+
updatedat : str
|
|
25
|
+
Document update date in ISO 8601 format.
|
|
26
|
+
permissions : List[Any]
|
|
27
|
+
Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
|
|
28
|
+
"""
|
|
29
|
+
id: str = Field(..., alias='$id')
|
|
30
|
+
sequence: str = Field(..., alias='$sequence')
|
|
31
|
+
collectionid: str = Field(..., alias='$collectionId')
|
|
32
|
+
databaseid: str = Field(..., alias='$databaseId')
|
|
33
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
34
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
35
|
+
permissions: List[Any] = Field(..., alias='$permissions')
|
|
36
|
+
|
|
37
|
+
@classmethod
|
|
38
|
+
def with_data(cls, data: Dict[str, Any], model_type: Type[T] = dict) -> 'Document[T]':
|
|
39
|
+
"""Create Document instance with typed data."""
|
|
40
|
+
internal_aliases = {'$id', '$sequence', '$collectionId', '$databaseId', '$createdAt', '$updatedAt', '$permissions'}
|
|
41
|
+
internal_fields = {k: v for k, v in data.items() if k in internal_aliases}
|
|
42
|
+
user_data = {k: v for k, v in data.items() if k not in internal_aliases and k != 'data'}
|
|
43
|
+
nested = data.get('data')
|
|
44
|
+
if isinstance(nested, dict):
|
|
45
|
+
user_data = {**nested, **user_data}
|
|
46
|
+
instance = cls.model_validate(internal_fields)
|
|
47
|
+
instance._data = model_type(**user_data) if model_type is not dict else user_data
|
|
48
|
+
return instance
|
|
49
|
+
|
|
50
|
+
_data: Any = PrivateAttr(default_factory=dict)
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def data(self) -> T:
|
|
54
|
+
return cast(T, self._data)
|
|
55
|
+
|
|
56
|
+
@data.setter
|
|
57
|
+
def data(self, value: T) -> None:
|
|
58
|
+
object.__setattr__(self, '_data', value)
|
|
59
|
+
|
|
60
|
+
def model_dump(self, **kwargs) -> Dict[str, Any]:
|
|
61
|
+
result = super().model_dump(**kwargs)
|
|
62
|
+
if hasattr(self, '_data'):
|
|
63
|
+
if isinstance(self._data, dict):
|
|
64
|
+
result['data'] = self._data
|
|
65
|
+
elif hasattr(self._data, 'model_dump'):
|
|
66
|
+
result['data'] = self._data.model_dump(**kwargs)
|
|
67
|
+
else:
|
|
68
|
+
result['data'] = self._data
|
|
69
|
+
return result
|
|
70
|
+
|
|
71
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
72
|
+
result = super().to_dict()
|
|
73
|
+
if hasattr(self, '_data'):
|
|
74
|
+
if isinstance(self._data, dict):
|
|
75
|
+
result['data'] = self._data
|
|
76
|
+
elif hasattr(self._data, 'model_dump'):
|
|
77
|
+
result['data'] = self._data.model_dump(mode='json')
|
|
78
|
+
else:
|
|
79
|
+
result['data'] = self._data
|
|
80
|
+
return result
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from typing import Any, Dict, List, Optional, Union, cast, Generic, TypeVar, Type
|
|
2
|
+
from pydantic import Field, PrivateAttr
|
|
3
|
+
|
|
4
|
+
from .base_model import AppwriteModel
|
|
5
|
+
from .document import Document
|
|
6
|
+
|
|
7
|
+
T = TypeVar('T')
|
|
8
|
+
|
|
9
|
+
class DocumentList(AppwriteModel, Generic[T]):
|
|
10
|
+
"""
|
|
11
|
+
Documents List
|
|
12
|
+
|
|
13
|
+
Attributes
|
|
14
|
+
----------
|
|
15
|
+
total : float
|
|
16
|
+
Total number of documents that matched your query.
|
|
17
|
+
documents : List[Document[T]]
|
|
18
|
+
List of documents.
|
|
19
|
+
"""
|
|
20
|
+
total: float = Field(..., alias='total')
|
|
21
|
+
documents: List[Document[T]] = Field(..., alias='documents')
|
|
22
|
+
|
|
23
|
+
@classmethod
|
|
24
|
+
def with_data(cls, data: Dict[str, Any], model_type: Type[T] = dict) -> 'DocumentList[T]':
|
|
25
|
+
"""Create DocumentList instance with typed data."""
|
|
26
|
+
instance = cls.model_validate(data)
|
|
27
|
+
if 'documents' in data and data['documents'] is not None:
|
|
28
|
+
instance.documents = [
|
|
29
|
+
Document.with_data(row, model_type)
|
|
30
|
+
for row in data['documents']
|
|
31
|
+
]
|
|
32
|
+
return instance
|
|
@@ -0,0 +1,53 @@
|
|
|
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.domain_transfer_status_enum import DomainTransferStatusEnum
|
|
6
|
+
from .dns_record import DnsRecord
|
|
7
|
+
|
|
8
|
+
class Domain(AppwriteModel):
|
|
9
|
+
"""
|
|
10
|
+
Domain
|
|
11
|
+
|
|
12
|
+
Attributes
|
|
13
|
+
----------
|
|
14
|
+
id : str
|
|
15
|
+
Domain ID.
|
|
16
|
+
createdat : str
|
|
17
|
+
Domain creation time in ISO 8601 format.
|
|
18
|
+
updatedat : str
|
|
19
|
+
Domain update date in ISO 8601 format.
|
|
20
|
+
domain : str
|
|
21
|
+
Domain name.
|
|
22
|
+
registrar : str
|
|
23
|
+
Domain registrar (e.g. "appwrite" or "third_party").
|
|
24
|
+
nameservers : str
|
|
25
|
+
Nameservers setting. "Appwrite" or empty string.
|
|
26
|
+
expire : str
|
|
27
|
+
Domain expiry date in ISO 8601 format.
|
|
28
|
+
renewal : str
|
|
29
|
+
Domain renewal date in ISO 8601 format.
|
|
30
|
+
autorenewal : bool
|
|
31
|
+
If set to true, the domain will automatically renew.
|
|
32
|
+
renewalprice : float
|
|
33
|
+
Renewal price (in cents).
|
|
34
|
+
transferstatus : DomainTransferStatusEnum
|
|
35
|
+
Transfer status for domains being transferred in.
|
|
36
|
+
teamid : str
|
|
37
|
+
Team ID.
|
|
38
|
+
dnsrecords : List[DnsRecord]
|
|
39
|
+
Dns records
|
|
40
|
+
"""
|
|
41
|
+
id: str = Field(..., alias='$id')
|
|
42
|
+
createdat: str = Field(..., alias='$createdAt')
|
|
43
|
+
updatedat: str = Field(..., alias='$updatedAt')
|
|
44
|
+
domain: str = Field(..., alias='domain')
|
|
45
|
+
registrar: str = Field(..., alias='registrar')
|
|
46
|
+
nameservers: str = Field(..., alias='nameservers')
|
|
47
|
+
expire: str = Field(..., alias='expire')
|
|
48
|
+
renewal: str = Field(..., alias='renewal')
|
|
49
|
+
autorenewal: bool = Field(..., alias='autoRenewal')
|
|
50
|
+
renewalprice: float = Field(..., alias='renewalPrice')
|
|
51
|
+
transferstatus: DomainTransferStatusEnum = Field(..., alias='transferStatus')
|
|
52
|
+
teamid: str = Field(..., alias='teamId')
|
|
53
|
+
dnsrecords: List[DnsRecord] = Field(..., alias='dnsRecords')
|
|
@@ -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 DomainPrice(AppwriteModel):
|
|
7
|
+
"""
|
|
8
|
+
DomainPrice
|
|
9
|
+
|
|
10
|
+
Attributes
|
|
11
|
+
----------
|
|
12
|
+
domain : str
|
|
13
|
+
Domain name.
|
|
14
|
+
tld : str
|
|
15
|
+
Top-level domain for the requested domain.
|
|
16
|
+
available : bool
|
|
17
|
+
Whether the domain is currently available for registration.
|
|
18
|
+
price : float
|
|
19
|
+
Domain registration price.
|
|
20
|
+
periodyears : float
|
|
21
|
+
Price period in years.
|
|
22
|
+
premium : bool
|
|
23
|
+
Whether the domain is a premium domain.
|
|
24
|
+
"""
|
|
25
|
+
domain: str = Field(..., alias='domain')
|
|
26
|
+
tld: str = Field(..., alias='tld')
|
|
27
|
+
available: bool = Field(..., alias='available')
|
|
28
|
+
price: float = Field(..., alias='price')
|
|
29
|
+
periodyears: float = Field(..., alias='periodYears')
|
|
30
|
+
premium: bool = Field(..., alias='premium')
|