appwrite 21.0.0__tar.gz → 22.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (399) hide show
  1. {appwrite-21.0.0 → appwrite-22.1.0}/PKG-INFO +2 -2
  2. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/client.py +11 -2
  3. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/encoders/value_class_encoder.py +15 -11
  4. appwrite-22.1.0/appwrite/enums/billing_plan_group.py +6 -0
  5. appwrite-22.1.0/appwrite/enums/database_status.py +17 -0
  6. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/database_type.py +3 -0
  7. appwrite-22.1.0/appwrite/enums/o_auth2_oidc_prompt.py +7 -0
  8. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth_provider.py +1 -0
  9. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/organization_key_scopes.py +4 -0
  10. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_key_scopes.py +9 -2
  11. appwrite-22.1.0/appwrite/enums/project_o_auth2_oidc_prompt.py +7 -0
  12. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth_provider_id.py +1 -0
  13. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/__init__.py +64 -20
  14. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/activity_event.py +33 -6
  15. appwrite-22.1.0/appwrite/models/additional_resource.py +30 -0
  16. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app.py +3 -0
  17. appwrite-22.1.0/appwrite/models/app_scope.py +27 -0
  18. appwrite-22.1.0/appwrite/models/app_scope_list.py +19 -0
  19. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret.py +1 -1
  20. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_plaintext.py +1 -1
  21. appwrite-22.1.0/appwrite/models/billing_plan.py +226 -0
  22. appwrite-22.1.0/appwrite/models/billing_plan_addon.py +19 -0
  23. appwrite-22.1.0/appwrite/models/billing_plan_addon_details.py +36 -0
  24. appwrite-22.1.0/appwrite/models/billing_plan_dedicated_database_limits.py +69 -0
  25. appwrite-22.1.0/appwrite/models/billing_plan_limits.py +18 -0
  26. appwrite-22.1.0/appwrite/models/billing_plan_supported_addons.py +21 -0
  27. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/block.py +3 -0
  28. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/database.py +11 -4
  29. appwrite-22.1.0/appwrite/models/database_status.py +39 -0
  30. appwrite-22.1.0/appwrite/models/database_status_connections.py +18 -0
  31. appwrite-22.1.0/appwrite/models/database_status_replica.py +24 -0
  32. appwrite-22.1.0/appwrite/models/database_status_volume.py +24 -0
  33. appwrite-22.1.0/appwrite/models/dedicated_database.py +159 -0
  34. appwrite-22.1.0/appwrite/models/dedicated_database_member.py +24 -0
  35. appwrite-22.1.0/appwrite/models/dedicated_database_replicas.py +22 -0
  36. appwrite-22.1.0/appwrite/models/dedicated_database_specification.py +39 -0
  37. appwrite-22.1.0/appwrite/models/dedicated_database_specification_list.py +23 -0
  38. appwrite-22.1.0/appwrite/models/dedicated_database_specification_pricing.py +27 -0
  39. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/document.py +11 -0
  40. appwrite-22.1.0/appwrite/models/locale.py +66 -0
  41. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/log.py +1 -1
  42. appwrite-22.1.0/appwrite/models/o_auth2_appwrite.py +24 -0
  43. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_oidc.py +7 -0
  44. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_provider_list.py +3 -2
  45. appwrite-22.1.0/appwrite/models/oauth2_consent.py +42 -0
  46. appwrite-22.1.0/appwrite/models/oauth2_consent_list.py +19 -0
  47. appwrite-22.1.0/appwrite/models/oauth2_consent_token.py +45 -0
  48. appwrite-22.1.0/appwrite/models/oauth2_consent_token_list.py +19 -0
  49. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_grant.py +3 -0
  50. appwrite-22.1.0/appwrite/models/oauth2_organization.py +15 -0
  51. appwrite-22.1.0/appwrite/models/oauth2_organization_list.py +19 -0
  52. appwrite-22.1.0/appwrite/models/oauth2_par.py +18 -0
  53. appwrite-22.1.0/appwrite/models/oauth2_project.py +21 -0
  54. appwrite-22.1.0/appwrite/models/oauth2_project_list.py +19 -0
  55. appwrite-22.1.0/appwrite/models/organization.py +132 -0
  56. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/preferences.py +11 -0
  57. appwrite-22.1.0/appwrite/models/program.py +39 -0
  58. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project.py +9 -0
  59. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/row.py +11 -0
  60. appwrite-22.1.0/appwrite/models/usage_billing_plan.py +46 -0
  61. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/query.py +12 -0
  62. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/account.py +268 -1
  63. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/apps.py +81 -5
  64. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/backups.py +20 -6
  65. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/databases.py +138 -69
  66. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/functions.py +32 -11
  67. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/messaging.py +144 -269
  68. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/oauth2.py +366 -30
  69. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/organization.py +357 -6
  70. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/project.py +409 -174
  71. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/sites.py +26 -7
  72. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/storage.py +6 -3
  73. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/tables_db.py +311 -76
  74. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/tokens.py +4 -2
  75. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/users.py +5 -3
  76. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/webhooks.py +4 -2
  77. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/PKG-INFO +2 -2
  78. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/SOURCES.txt +36 -15
  79. {appwrite-21.0.0 → appwrite-22.1.0}/pyproject.toml +1 -1
  80. {appwrite-21.0.0 → appwrite-22.1.0}/setup.py +2 -2
  81. appwrite-21.0.0/appwrite/enums/health_antivirus_status.py +0 -6
  82. appwrite-21.0.0/appwrite/enums/health_check_status.py +0 -5
  83. appwrite-21.0.0/appwrite/enums/health_queue_name.py +0 -16
  84. appwrite-21.0.0/appwrite/models/health_antivirus.py +0 -19
  85. appwrite-21.0.0/appwrite/models/health_certificate.py +0 -30
  86. appwrite-21.0.0/appwrite/models/health_queue.py +0 -15
  87. appwrite-21.0.0/appwrite/models/health_status.py +0 -22
  88. appwrite-21.0.0/appwrite/models/health_status_list.py +0 -19
  89. appwrite-21.0.0/appwrite/models/health_time.py +0 -21
  90. appwrite-21.0.0/appwrite/models/locale.py +0 -33
  91. appwrite-21.0.0/appwrite/models/usage_data_point.py +0 -60
  92. appwrite-21.0.0/appwrite/models/usage_event_list.py +0 -19
  93. appwrite-21.0.0/appwrite/models/usage_gauge_list.py +0 -19
  94. appwrite-21.0.0/appwrite/models/usage_metric.py +0 -19
  95. appwrite-21.0.0/appwrite/services/health.py +0 -882
  96. appwrite-21.0.0/appwrite/services/usage.py +0 -202
  97. {appwrite-21.0.0 → appwrite-22.1.0}/LICENSE +0 -0
  98. {appwrite-21.0.0 → appwrite-22.1.0}/README.md +0 -0
  99. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/__init__.py +0 -0
  100. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/encoders/__init__.py +0 -0
  101. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/__init__.py +0 -0
  102. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/adapter.py +0 -0
  103. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/attribute_status.py +0 -0
  104. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/authentication_factor.py +0 -0
  105. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/authenticator_type.py +0 -0
  106. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/backup_services.py +0 -0
  107. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser.py +0 -0
  108. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser_permission.py +0 -0
  109. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/browser_theme.py +0 -0
  110. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/build_runtime.py +0 -0
  111. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/column_status.py +0 -0
  112. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/compression.py +0 -0
  113. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/credit_card.py +0 -0
  114. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/databases_index_type.py +0 -0
  115. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_download_type.py +0 -0
  116. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/deployment_status.py +0 -0
  117. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_method.py +0 -0
  118. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_status.py +0 -0
  119. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/execution_trigger.py +0 -0
  120. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/flag.py +0 -0
  121. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/framework.py +0 -0
  122. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/image_format.py +0 -0
  123. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/image_gravity.py +0 -0
  124. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/index_status.py +0 -0
  125. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/message_priority.py +0 -0
  126. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/message_status.py +0 -0
  127. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/messaging_provider_type.py +0 -0
  128. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
  129. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/order_by.py +0 -0
  130. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/password_hash.py +0 -0
  131. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/platform_type.py +0 -0
  132. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_auth_method_id.py +0 -0
  133. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_id.py +0 -0
  134. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_email_template_locale.py +0 -0
  135. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
  136. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_policy_id.py +0 -0
  137. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_protocol_id.py +0 -0
  138. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_service_id.py +0 -0
  139. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/project_smtp_secure.py +0 -0
  140. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_resource_type.py +0 -0
  141. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
  142. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/proxy_rule_status.py +0 -0
  143. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/region.py +0 -0
  144. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/relation_mutate.py +0 -0
  145. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/relationship_type.py +0 -0
  146. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/runtime.py +0 -0
  147. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/smtp_encryption.py +0 -0
  148. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/status_code.py +0 -0
  149. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/tables_db_index_type.py +0 -0
  150. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/template_reference_type.py +0 -0
  151. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/timezone.py +0 -0
  152. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/enums/vcs_reference_type.py +0 -0
  153. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/exception.py +0 -0
  154. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/id.py +0 -0
  155. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/input_file.py +0 -0
  156. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/activity_event_list.py +0 -0
  157. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_argon2.py +0 -0
  158. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_bcrypt.py +0 -0
  159. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_md5.py +0 -0
  160. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_phpass.py +0 -0
  161. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt.py +0 -0
  162. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_scrypt_modified.py +0 -0
  163. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/algo_sha.py +0 -0
  164. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/app_secret_list.py +0 -0
  165. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/apps_list.py +0 -0
  166. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_bigint.py +0 -0
  167. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_boolean.py +0 -0
  168. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_datetime.py +0 -0
  169. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_email.py +0 -0
  170. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_enum.py +0 -0
  171. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_float.py +0 -0
  172. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_integer.py +0 -0
  173. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_ip.py +0 -0
  174. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_line.py +0 -0
  175. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_list.py +0 -0
  176. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_longtext.py +0 -0
  177. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_mediumtext.py +0 -0
  178. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_point.py +0 -0
  179. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_polygon.py +0 -0
  180. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_relationship.py +0 -0
  181. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_string.py +0 -0
  182. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_text.py +0 -0
  183. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_url.py +0 -0
  184. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/attribute_varchar.py +0 -0
  185. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive.py +0 -0
  186. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_archive_list.py +0 -0
  187. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy.py +0 -0
  188. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_policy_list.py +0 -0
  189. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration.py +0 -0
  190. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/backup_restoration_list.py +0 -0
  191. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/base_model.py +0 -0
  192. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/billing_limits.py +0 -0
  193. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/bucket.py +0 -0
  194. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/bucket_list.py +0 -0
  195. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/collection.py +0 -0
  196. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/collection_list.py +0 -0
  197. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_bigint.py +0 -0
  198. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_boolean.py +0 -0
  199. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_datetime.py +0 -0
  200. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_email.py +0 -0
  201. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_enum.py +0 -0
  202. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_float.py +0 -0
  203. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_index.py +0 -0
  204. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_index_list.py +0 -0
  205. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_integer.py +0 -0
  206. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_ip.py +0 -0
  207. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_line.py +0 -0
  208. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_list.py +0 -0
  209. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_longtext.py +0 -0
  210. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_mediumtext.py +0 -0
  211. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_point.py +0 -0
  212. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_polygon.py +0 -0
  213. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_relationship.py +0 -0
  214. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_string.py +0 -0
  215. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_text.py +0 -0
  216. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_url.py +0 -0
  217. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/column_varchar.py +0 -0
  218. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/continent.py +0 -0
  219. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/continent_list.py +0 -0
  220. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/country.py +0 -0
  221. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/country_list.py +0 -0
  222. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/currency.py +0 -0
  223. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/currency_list.py +0 -0
  224. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/database_list.py +0 -0
  225. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/deployment.py +0 -0
  226. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/deployment_list.py +0 -0
  227. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/dev_key.py +0 -0
  228. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/document_list.py +0 -0
  229. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/email_template.py +0 -0
  230. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/email_template_list.py +0 -0
  231. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/ephemeral_key.py +0 -0
  232. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/execution.py +0 -0
  233. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/execution_list.py +0 -0
  234. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/file.py +0 -0
  235. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/file_list.py +0 -0
  236. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework.py +0 -0
  237. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework_adapter.py +0 -0
  238. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/framework_list.py +0 -0
  239. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/function.py +0 -0
  240. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/function_list.py +0 -0
  241. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/headers.py +0 -0
  242. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/identity.py +0 -0
  243. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/identity_list.py +0 -0
  244. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/index.py +0 -0
  245. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/index_list.py +0 -0
  246. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight.py +0 -0
  247. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight_cta.py +0 -0
  248. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/insight_list.py +0 -0
  249. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/jwt.py +0 -0
  250. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/key.py +0 -0
  251. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/key_list.py +0 -0
  252. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/language.py +0 -0
  253. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/language_list.py +0 -0
  254. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/locale_code.py +0 -0
  255. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/locale_code_list.py +0 -0
  256. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/log_list.py +0 -0
  257. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/membership.py +0 -0
  258. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/membership_list.py +0 -0
  259. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/message.py +0 -0
  260. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/message_list.py +0 -0
  261. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_challenge.py +0 -0
  262. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_factors.py +0 -0
  263. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_recovery_codes.py +0 -0
  264. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mfa_type.py +0 -0
  265. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mock_number.py +0 -0
  266. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/mock_number_list.py +0 -0
  267. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_amazon.py +0 -0
  268. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_apple.py +0 -0
  269. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_auth0.py +0 -0
  270. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_authentik.py +0 -0
  271. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_autodesk.py +0 -0
  272. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
  273. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_bitly.py +0 -0
  274. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_box.py +0 -0
  275. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
  276. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_discord.py +0 -0
  277. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_disqus.py +0 -0
  278. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_dropbox.py +0 -0
  279. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_etsy.py +0 -0
  280. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_facebook.py +0 -0
  281. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_figma.py +0 -0
  282. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
  283. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_github.py +0 -0
  284. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_gitlab.py +0 -0
  285. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_google.py +0 -0
  286. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_keycloak.py +0 -0
  287. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_kick.py +0 -0
  288. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_linkedin.py +0 -0
  289. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_microsoft.py +0 -0
  290. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_notion.py +0 -0
  291. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_okta.py +0 -0
  292. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_paypal.py +0 -0
  293. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_podio.py +0 -0
  294. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_salesforce.py +0 -0
  295. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_slack.py +0 -0
  296. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_spotify.py +0 -0
  297. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_stripe.py +0 -0
  298. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
  299. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_twitch.py +0 -0
  300. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_word_press.py +0 -0
  301. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_x.py +0 -0
  302. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yahoo.py +0 -0
  303. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_yandex.py +0 -0
  304. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoho.py +0 -0
  305. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/o_auth2_zoom.py +0 -0
  306. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_approve.py +0 -0
  307. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_authorize.py +0 -0
  308. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_device_authorization.py +0 -0
  309. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_reject.py +0 -0
  310. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/oauth2_token.py +0 -0
  311. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/phone.py +0 -0
  312. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/phone_list.py +0 -0
  313. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_android.py +0 -0
  314. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_apple.py +0 -0
  315. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_linux.py +0 -0
  316. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_list.py +0 -0
  317. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_web.py +0 -0
  318. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/platform_windows.py +0 -0
  319. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
  320. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_corporate_email.py +0 -0
  321. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
  322. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_deny_free_email.py +0 -0
  323. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_list.py +0 -0
  324. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_membership_privacy.py +0 -0
  325. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_dictionary.py +0 -0
  326. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_history.py +0 -0
  327. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_personal_data.py +0 -0
  328. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_password_strength.py +0 -0
  329. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_alert.py +0 -0
  330. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_duration.py +0 -0
  331. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_invalidation.py +0 -0
  332. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_session_limit.py +0 -0
  333. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/policy_user_limit.py +0 -0
  334. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/presence.py +0 -0
  335. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/presence_list.py +0 -0
  336. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_auth_method.py +0 -0
  337. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_list.py +0 -0
  338. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_protocol.py +0 -0
  339. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/project_service.py +0 -0
  340. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/provider.py +0 -0
  341. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/provider_list.py +0 -0
  342. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule.py +0 -0
  343. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/proxy_rule_list.py +0 -0
  344. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/report.py +0 -0
  345. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/report_list.py +0 -0
  346. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/resource_token.py +0 -0
  347. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/resource_token_list.py +0 -0
  348. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/row_list.py +0 -0
  349. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/runtime.py +0 -0
  350. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/runtime_list.py +0 -0
  351. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/session.py +0 -0
  352. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/session_list.py +0 -0
  353. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/site.py +0 -0
  354. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/site_list.py +0 -0
  355. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/specification.py +0 -0
  356. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/specification_list.py +0 -0
  357. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/subscriber.py +0 -0
  358. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/subscriber_list.py +0 -0
  359. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/table.py +0 -0
  360. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/table_list.py +0 -0
  361. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/target.py +0 -0
  362. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/target_list.py +0 -0
  363. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/team.py +0 -0
  364. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/team_list.py +0 -0
  365. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/token.py +0 -0
  366. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/topic.py +0 -0
  367. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/topic_list.py +0 -0
  368. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/transaction.py +0 -0
  369. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/transaction_list.py +0 -0
  370. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/user.py +0 -0
  371. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/user_list.py +0 -0
  372. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/variable.py +0 -0
  373. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/variable_list.py +0 -0
  374. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/webhook.py +0 -0
  375. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/models/webhook_list.py +0 -0
  376. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/operator.py +0 -0
  377. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/permission.py +0 -0
  378. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/role.py +0 -0
  379. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/service.py +0 -0
  380. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/__init__.py +0 -0
  381. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/activities.py +0 -0
  382. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/advisor.py +0 -0
  383. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/avatars.py +0 -0
  384. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/graphql.py +0 -0
  385. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/locale.py +0 -0
  386. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/presences.py +0 -0
  387. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/proxy.py +0 -0
  388. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/services/teams.py +0 -0
  389. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/utils/__init__.py +0 -0
  390. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite/utils/deprecated.py +0 -0
  391. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/dependency_links.txt +0 -0
  392. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/requires.txt +0 -0
  393. {appwrite-21.0.0 → appwrite-22.1.0}/appwrite.egg-info/top_level.txt +0 -0
  394. {appwrite-21.0.0 → appwrite-22.1.0}/setup.cfg +0 -0
  395. {appwrite-21.0.0 → appwrite-22.1.0}/test/test_id.py +0 -0
  396. {appwrite-21.0.0 → appwrite-22.1.0}/test/test_operator.py +0 -0
  397. {appwrite-21.0.0 → appwrite-22.1.0}/test/test_permission.py +0 -0
  398. {appwrite-21.0.0 → appwrite-22.1.0}/test/test_query.py +0 -0
  399. {appwrite-21.0.0 → appwrite-22.1.0}/test/test_role.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: appwrite
3
- Version: 21.0.0
3
+ Version: 22.1.0
4
4
  Summary: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
5
5
  Home-page: https://appwrite.io/support
6
- Download-URL: https://github.com/appwrite/sdk-for-python/archive/21.0.0.tar.gz
6
+ Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.1.0.tar.gz
7
7
  Author: Appwrite Team
8
8
  Author-email: Appwrite Team <team@appwrite.io>
9
9
  Maintainer: Appwrite Team
@@ -17,11 +17,11 @@ class Client:
17
17
  self._endpoint = 'https://cloud.appwrite.io/v1'
18
18
  self._global_headers = {
19
19
  'content-type': '',
20
- 'user-agent' : f'AppwritePythonSDK/21.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
20
+ 'user-agent' : f'AppwritePythonSDK/22.1.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
21
21
  'x-sdk-name': 'Python',
22
22
  'x-sdk-platform': 'server',
23
23
  'x-sdk-language': 'python',
24
- 'x-sdk-version': '21.0.0',
24
+ 'x-sdk-version': '22.1.0',
25
25
  'X-Appwrite-Response-Format' : '1.9.5',
26
26
  }
27
27
  self._config = {}
@@ -67,6 +67,13 @@ class Client:
67
67
  self._config['jwt'] = value
68
68
  return self
69
69
 
70
+ def set_bearer(self, value):
71
+ """The OAuth access token to authenticate with"""
72
+
73
+ self._global_headers['authorization'] = 'Bearer ' + value
74
+ self._config['bearer'] = value
75
+ return self
76
+
70
77
  def set_locale(self, value):
71
78
  self._global_headers['x-appwrite-locale'] = value
72
79
  self._config['locale'] = value
@@ -341,6 +348,8 @@ class Client:
341
348
 
342
349
  if isinstance(value, list) or isinstance(value, dict):
343
350
  output = {**output, **self.flatten(value, finalKey, stringify)}
351
+ elif isinstance(value, bool):
352
+ output[finalKey] = 'true' if value else 'false'
344
353
  else:
345
354
  if stringify:
346
355
  output[finalKey] = str(value)
@@ -21,13 +21,13 @@ from ..enums.template_reference_type import TemplateReferenceType
21
21
  from ..enums.vcs_reference_type import VCSReferenceType
22
22
  from ..enums.deployment_download_type import DeploymentDownloadType
23
23
  from ..enums.execution_method import ExecutionMethod
24
- from ..enums.health_queue_name import HealthQueueName
25
24
  from ..enums.message_priority import MessagePriority
26
25
  from ..enums.smtp_encryption import SmtpEncryption
27
26
  from ..enums.organization_key_scopes import OrganizationKeyScopes
28
27
  from ..enums.region import Region
29
28
  from ..enums.project_auth_method_id import ProjectAuthMethodId
30
29
  from ..enums.project_o_auth2_google_prompt import ProjectOAuth2GooglePrompt
30
+ from ..enums.project_o_auth2_oidc_prompt import ProjectOAuth2OidcPrompt
31
31
  from ..enums.project_o_auth_provider_id import ProjectOAuthProviderId
32
32
  from ..enums.project_policy_id import ProjectPolicyId
33
33
  from ..enums.project_protocol_id import ProjectProtocolId
@@ -46,6 +46,7 @@ from ..enums.tables_db_index_type import TablesDBIndexType
46
46
  from ..enums.password_hash import PasswordHash
47
47
  from ..enums.messaging_provider_type import MessagingProviderType
48
48
  from ..enums.database_type import DatabaseType
49
+ from ..enums.database_status import DatabaseStatus
49
50
  from ..enums.attribute_status import AttributeStatus
50
51
  from ..enums.column_status import ColumnStatus
51
52
  from ..enums.index_status import IndexStatus
@@ -53,12 +54,12 @@ from ..enums.deployment_status import DeploymentStatus
53
54
  from ..enums.execution_trigger import ExecutionTrigger
54
55
  from ..enums.execution_status import ExecutionStatus
55
56
  from ..enums.o_auth2_google_prompt import OAuth2GooglePrompt
57
+ from ..enums.o_auth2_oidc_prompt import OAuth2OidcPrompt
56
58
  from ..enums.platform_type import PlatformType
57
- from ..enums.health_antivirus_status import HealthAntivirusStatus
58
- from ..enums.health_check_status import HealthCheckStatus
59
59
  from ..enums.proxy_rule_deployment_resource_type import ProxyRuleDeploymentResourceType
60
60
  from ..enums.proxy_rule_status import ProxyRuleStatus
61
61
  from ..enums.message_status import MessageStatus
62
+ from ..enums.billing_plan_group import BillingPlanGroup
62
63
 
63
64
  class ValueClassEncoder(json.JSONEncoder):
64
65
  def default(self, o):
@@ -128,9 +129,6 @@ class ValueClassEncoder(json.JSONEncoder):
128
129
  if isinstance(o, ExecutionMethod):
129
130
  return o.value
130
131
 
131
- if isinstance(o, HealthQueueName):
132
- return o.value
133
-
134
132
  if isinstance(o, MessagePriority):
135
133
  return o.value
136
134
 
@@ -149,6 +147,9 @@ class ValueClassEncoder(json.JSONEncoder):
149
147
  if isinstance(o, ProjectOAuth2GooglePrompt):
150
148
  return o.value
151
149
 
150
+ if isinstance(o, ProjectOAuth2OidcPrompt):
151
+ return o.value
152
+
152
153
  if isinstance(o, ProjectOAuthProviderId):
153
154
  return o.value
154
155
 
@@ -203,6 +204,9 @@ class ValueClassEncoder(json.JSONEncoder):
203
204
  if isinstance(o, DatabaseType):
204
205
  return o.value
205
206
 
207
+ if isinstance(o, DatabaseStatus):
208
+ return o.value
209
+
206
210
  if isinstance(o, AttributeStatus):
207
211
  return o.value
208
212
 
@@ -224,13 +228,10 @@ class ValueClassEncoder(json.JSONEncoder):
224
228
  if isinstance(o, OAuth2GooglePrompt):
225
229
  return o.value
226
230
 
227
- if isinstance(o, PlatformType):
228
- return o.value
229
-
230
- if isinstance(o, HealthAntivirusStatus):
231
+ if isinstance(o, OAuth2OidcPrompt):
231
232
  return o.value
232
233
 
233
- if isinstance(o, HealthCheckStatus):
234
+ if isinstance(o, PlatformType):
234
235
  return o.value
235
236
 
236
237
  if isinstance(o, ProxyRuleDeploymentResourceType):
@@ -242,4 +243,7 @@ class ValueClassEncoder(json.JSONEncoder):
242
243
  if isinstance(o, MessageStatus):
243
244
  return o.value
244
245
 
246
+ if isinstance(o, BillingPlanGroup):
247
+ return o.value
248
+
245
249
  return super().default(o)
@@ -0,0 +1,6 @@
1
+ from enum import Enum
2
+
3
+ class BillingPlanGroup(Enum):
4
+ STARTER = "starter"
5
+ PRO = "pro"
6
+ SCALE = "scale"
@@ -0,0 +1,17 @@
1
+ from enum import Enum
2
+
3
+ class DatabaseStatus(Enum):
4
+ PROVISIONING = "provisioning"
5
+ READY = "ready"
6
+ INACTIVE = "inactive"
7
+ PAUSED = "paused"
8
+ FAILED = "failed"
9
+ DELETING = "deleting"
10
+ DELETED = "deleted"
11
+ RESTORING = "restoring"
12
+ SCALING = "scaling"
13
+ UPGRADING = "upgrading"
14
+ MIGRATING = "migrating"
15
+ PAUSING = "pausing"
16
+ RESUMING = "resuming"
17
+ FAILING_OVER = "failing-over"
@@ -5,3 +5,6 @@ class DatabaseType(Enum):
5
5
  TABLESDB = "tablesdb"
6
6
  DOCUMENTSDB = "documentsdb"
7
7
  VECTORSDB = "vectorsdb"
8
+ MYSQL = "mysql"
9
+ POSTGRESQL = "postgresql"
10
+ MONGODB = "mongodb"
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+ class OAuth2OidcPrompt(Enum):
4
+ NONE = "none"
5
+ LOGIN = "login"
6
+ CONSENT = "consent"
7
+ SELECT_ACCOUNT = "select_account"
@@ -3,6 +3,7 @@ from enum import Enum
3
3
  class OAuthProvider(Enum):
4
4
  AMAZON = "amazon"
5
5
  APPLE = "apple"
6
+ APPWRITE = "appwrite"
6
7
  AUTH0 = "auth0"
7
8
  AUTHENTIK = "authentik"
8
9
  AUTODESK = "autodesk"
@@ -7,6 +7,10 @@ class OrganizationKeyScopes(Enum):
7
7
  DEVKEYS_WRITE = "devKeys.write"
8
8
  ORGANIZATION_KEYS_READ = "organization.keys.read"
9
9
  ORGANIZATION_KEYS_WRITE = "organization.keys.write"
10
+ ORGANIZATION_MEMBERSHIPS_READ = "organization.memberships.read"
11
+ ORGANIZATION_MEMBERSHIPS_WRITE = "organization.memberships.write"
12
+ ORGANIZATION_READ = "organization.read"
13
+ ORGANIZATION_WRITE = "organization.write"
10
14
  DOMAINS_READ = "domains.read"
11
15
  DOMAINS_WRITE = "domains.write"
12
16
  KEYS_READ = "keys.read"
@@ -13,10 +13,12 @@ class ProjectKeyScopes(Enum):
13
13
  POLICIES_WRITE = "policies.write"
14
14
  PROJECT_POLICIES_READ = "project.policies.read"
15
15
  PROJECT_POLICIES_WRITE = "project.policies.write"
16
+ PROJECT_OAUTH2_READ = "project.oauth2.read"
17
+ PROJECT_OAUTH2_WRITE = "project.oauth2.write"
16
18
  TEMPLATES_READ = "templates.read"
17
19
  TEMPLATES_WRITE = "templates.write"
18
- OAUTH2_READ = "oauth2.read"
19
- OAUTH2_WRITE = "oauth2.write"
20
+ STAGES_READ = "stages.read"
21
+ STAGES_WRITE = "stages.write"
20
22
  USERS_READ = "users.read"
21
23
  USERS_WRITE = "users.write"
22
24
  SESSIONS_READ = "sessions.read"
@@ -94,7 +96,12 @@ class ProjectKeyScopes(Enum):
94
96
  DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
95
97
  DOMAINS_READ = "domains.read"
96
98
  DOMAINS_WRITE = "domains.write"
99
+ WAFRULES_READ = "wafRules.read"
100
+ WAFRULES_WRITE = "wafRules.write"
97
101
  EVENTS_READ = "events.read"
98
102
  APPS_READ = "apps.read"
99
103
  APPS_WRITE = "apps.write"
104
+ OAUTH2_READ = "oauth2.read"
105
+ OAUTH2_WRITE = "oauth2.write"
106
+ OAUTH2_INTROSPECT = "oauth2.introspect"
100
107
  USAGE_READ = "usage.read"
@@ -0,0 +1,7 @@
1
+ from enum import Enum
2
+
3
+ class ProjectOAuth2OidcPrompt(Enum):
4
+ NONE = "none"
5
+ LOGIN = "login"
6
+ CONSENT = "consent"
7
+ SELECT_ACCOUNT = "select_account"
@@ -3,6 +3,7 @@ from enum import Enum
3
3
  class ProjectOAuthProviderId(Enum):
4
4
  AMAZON = "amazon"
5
5
  APPLE = "apple"
6
+ APPWRITE = "appwrite"
6
7
  AUTH0 = "auth0"
7
8
  AUTHENTIK = "authentik"
8
9
  AUTODESK = "autodesk"
@@ -34,7 +34,6 @@ from .variable_list import VariableList
34
34
  from .mock_number_list import MockNumberList
35
35
  from .policy_list import PolicyList
36
36
  from .email_template_list import EmailTemplateList
37
- from .health_status_list import HealthStatusList
38
37
  from .proxy_rule_list import ProxyRuleList
39
38
  from .locale_code_list import LocaleCodeList
40
39
  from .provider_list import ProviderList
@@ -160,6 +159,7 @@ from .o_auth2_facebook import OAuth2Facebook
160
159
  from .o_auth2_tradeshift import OAuth2Tradeshift
161
160
  from .o_auth2_paypal import OAuth2Paypal
162
161
  from .o_auth2_gitlab import OAuth2Gitlab
162
+ from .o_auth2_appwrite import OAuth2Appwrite
163
163
  from .o_auth2_authentik import OAuth2Authentik
164
164
  from .o_auth2_auth0 import OAuth2Auth0
165
165
  from .o_auth2_fusion_auth import OAuth2FusionAuth
@@ -192,11 +192,6 @@ from .continent import Continent
192
192
  from .language import Language
193
193
  from .currency import Currency
194
194
  from .phone import Phone
195
- from .health_antivirus import HealthAntivirus
196
- from .health_queue import HealthQueue
197
- from .health_status import HealthStatus
198
- from .health_certificate import HealthCertificate
199
- from .health_time import HealthTime
200
195
  from .headers import Headers
201
196
  from .specification import Specification
202
197
  from .proxy_rule import ProxyRule
@@ -215,34 +210,61 @@ from .insight import Insight
215
210
  from .insight_cta import InsightCTA
216
211
  from .report import Report
217
212
  from .activity_event import ActivityEvent
213
+ from .additional_resource import AdditionalResource
218
214
  from .backup_archive import BackupArchive
219
215
  from .billing_limits import BillingLimits
216
+ from .billing_plan import BillingPlan
217
+ from .billing_plan_addon import BillingPlanAddon
218
+ from .billing_plan_addon_details import BillingPlanAddonDetails
219
+ from .billing_plan_limits import BillingPlanLimits
220
+ from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
221
+ from .billing_plan_supported_addons import BillingPlanSupportedAddons
220
222
  from .block import Block
223
+ from .dedicated_database import DedicatedDatabase
224
+ from .database_status import DatabaseStatus
225
+ from .dedicated_database_member import DedicatedDatabaseMember
226
+ from .dedicated_database_replicas import DedicatedDatabaseReplicas
227
+ from .organization import Organization
221
228
  from .backup_policy import BackupPolicy
222
229
  from .policy_deny_aliased_email import PolicyDenyAliasedEmail
223
230
  from .policy_deny_disposable_email import PolicyDenyDisposableEmail
224
231
  from .policy_deny_free_email import PolicyDenyFreeEmail
225
232
  from .policy_deny_corporate_email import PolicyDenyCorporateEmail
233
+ from .program import Program
226
234
  from .backup_restoration import BackupRestoration
227
- from .usage_data_point import UsageDataPoint
228
- from .usage_event_list import UsageEventList
229
- from .usage_gauge_list import UsageGaugeList
230
- from .usage_metric import UsageMetric
235
+ from .dedicated_database_specification import DedicatedDatabaseSpecification
236
+ from .dedicated_database_specification_list import DedicatedDatabaseSpecificationList
237
+ from .dedicated_database_specification_pricing import DedicatedDatabaseSpecificationPricing
238
+ from .database_status_connections import DatabaseStatusConnections
239
+ from .database_status_replica import DatabaseStatusReplica
240
+ from .database_status_volume import DatabaseStatusVolume
241
+ from .usage_billing_plan import UsageBillingPlan
231
242
  from .app import App
232
243
  from .app_secret import AppSecret
233
244
  from .app_secret_plaintext import AppSecretPlaintext
245
+ from .app_scope import AppScope
234
246
  from .oauth2_authorize import Oauth2Authorize
235
247
  from .oauth2_approve import Oauth2Approve
236
248
  from .oauth2_reject import Oauth2Reject
237
249
  from .oauth2_grant import Oauth2Grant
238
250
  from .oauth2_device_authorization import Oauth2DeviceAuthorization
251
+ from .oauth2_par import Oauth2PAR
239
252
  from .oauth2_token import Oauth2Token
253
+ from .oauth2_consent import Oauth2Consent
254
+ from .oauth2_consent_token import Oauth2ConsentToken
255
+ from .oauth2_project import Oauth2Project
256
+ from .oauth2_organization import Oauth2Organization
257
+ from .oauth2_project_list import Oauth2ProjectList
258
+ from .oauth2_organization_list import Oauth2OrganizationList
259
+ from .oauth2_consent_list import Oauth2ConsentList
260
+ from .oauth2_consent_token_list import Oauth2ConsentTokenList
240
261
  from .activity_event_list import ActivityEventList
241
262
  from .backup_archive_list import BackupArchiveList
242
263
  from .backup_policy_list import BackupPolicyList
243
264
  from .backup_restoration_list import BackupRestorationList
244
265
  from .apps_list import AppsList
245
266
  from .app_secret_list import AppSecretList
267
+ from .app_scope_list import AppScopeList
246
268
 
247
269
  __all__ = [
248
270
  'AppwriteModel',
@@ -281,7 +303,6 @@ __all__ = [
281
303
  'MockNumberList',
282
304
  'PolicyList',
283
305
  'EmailTemplateList',
284
- 'HealthStatusList',
285
306
  'ProxyRuleList',
286
307
  'LocaleCodeList',
287
308
  'ProviderList',
@@ -407,6 +428,7 @@ __all__ = [
407
428
  'OAuth2Tradeshift',
408
429
  'OAuth2Paypal',
409
430
  'OAuth2Gitlab',
431
+ 'OAuth2Appwrite',
410
432
  'OAuth2Authentik',
411
433
  'OAuth2Auth0',
412
434
  'OAuth2FusionAuth',
@@ -439,11 +461,6 @@ __all__ = [
439
461
  'Language',
440
462
  'Currency',
441
463
  'Phone',
442
- 'HealthAntivirus',
443
- 'HealthQueue',
444
- 'HealthStatus',
445
- 'HealthCertificate',
446
- 'HealthTime',
447
464
  'Headers',
448
465
  'Specification',
449
466
  'ProxyRule',
@@ -462,32 +479,59 @@ __all__ = [
462
479
  'InsightCTA',
463
480
  'Report',
464
481
  'ActivityEvent',
482
+ 'AdditionalResource',
465
483
  'BackupArchive',
466
484
  'BillingLimits',
485
+ 'BillingPlan',
486
+ 'BillingPlanAddon',
487
+ 'BillingPlanAddonDetails',
488
+ 'BillingPlanLimits',
489
+ 'BillingPlanDedicatedDatabaseLimits',
490
+ 'BillingPlanSupportedAddons',
467
491
  'Block',
492
+ 'DedicatedDatabase',
493
+ 'DatabaseStatus',
494
+ 'DedicatedDatabaseMember',
495
+ 'DedicatedDatabaseReplicas',
496
+ 'Organization',
468
497
  'BackupPolicy',
469
498
  'PolicyDenyAliasedEmail',
470
499
  'PolicyDenyDisposableEmail',
471
500
  'PolicyDenyFreeEmail',
472
501
  'PolicyDenyCorporateEmail',
502
+ 'Program',
473
503
  'BackupRestoration',
474
- 'UsageDataPoint',
475
- 'UsageEventList',
476
- 'UsageGaugeList',
477
- 'UsageMetric',
504
+ 'DedicatedDatabaseSpecification',
505
+ 'DedicatedDatabaseSpecificationList',
506
+ 'DedicatedDatabaseSpecificationPricing',
507
+ 'DatabaseStatusConnections',
508
+ 'DatabaseStatusReplica',
509
+ 'DatabaseStatusVolume',
510
+ 'UsageBillingPlan',
478
511
  'App',
479
512
  'AppSecret',
480
513
  'AppSecretPlaintext',
514
+ 'AppScope',
481
515
  'Oauth2Authorize',
482
516
  'Oauth2Approve',
483
517
  'Oauth2Reject',
484
518
  'Oauth2Grant',
485
519
  'Oauth2DeviceAuthorization',
520
+ 'Oauth2PAR',
486
521
  'Oauth2Token',
522
+ 'Oauth2Consent',
523
+ 'Oauth2ConsentToken',
524
+ 'Oauth2Project',
525
+ 'Oauth2Organization',
526
+ 'Oauth2ProjectList',
527
+ 'Oauth2OrganizationList',
528
+ 'Oauth2ConsentList',
529
+ 'Oauth2ConsentTokenList',
487
530
  'ActivityEventList',
488
531
  'BackupArchiveList',
489
532
  'BackupPolicyList',
490
533
  'BackupRestorationList',
491
534
  'AppsList',
492
535
  'AppSecretList',
536
+ 'AppScopeList',
493
537
  ]
@@ -37,6 +37,24 @@ class ActivityEvent(AppwriteModel):
37
37
  API mode when event triggered.
38
38
  country : str
39
39
  Location.
40
+ continentcode : str
41
+ Continent code.
42
+ city : str
43
+ City name.
44
+ subdivisions : str
45
+ Region/state chain.
46
+ isp : str
47
+ Internet service provider.
48
+ autonomoussystemnumber : str
49
+ Autonomous System Number (ASN).
50
+ autonomoussystemorganization : str
51
+ Organization that owns the ASN.
52
+ connectiontype : str
53
+ Connection type (e.g. cable, cellular, corporate).
54
+ connectionusagetype : str
55
+ User type (e.g. residential, business, hosting).
56
+ connectionorganization : str
57
+ Registered organization of the IP.
40
58
  time : str
41
59
  Log creation date in ISO 8601 format.
42
60
  projectid : str
@@ -45,10 +63,10 @@ class ActivityEvent(AppwriteModel):
45
63
  Team ID.
46
64
  hostname : str
47
65
  Hostname.
48
- countrycode : str
49
- Country two-character ISO 3166-1 alpha code.
50
- countryname : str
51
- Country name.
66
+ sdk : str
67
+ Name of the SDK that triggered the event.
68
+ sdkversion : str
69
+ Version of the SDK that triggered the event.
52
70
  """
53
71
  id: str = Field(..., alias='$id')
54
72
  actortype: str = Field(..., alias='actorType')
@@ -64,9 +82,18 @@ class ActivityEvent(AppwriteModel):
64
82
  ip: str = Field(..., alias='ip')
65
83
  mode: str = Field(..., alias='mode')
66
84
  country: str = Field(..., alias='country')
85
+ continentcode: str = Field(..., alias='continentCode')
86
+ city: str = Field(..., alias='city')
87
+ subdivisions: str = Field(..., alias='subdivisions')
88
+ isp: str = Field(..., alias='isp')
89
+ autonomoussystemnumber: str = Field(..., alias='autonomousSystemNumber')
90
+ autonomoussystemorganization: str = Field(..., alias='autonomousSystemOrganization')
91
+ connectiontype: str = Field(..., alias='connectionType')
92
+ connectionusagetype: str = Field(..., alias='connectionUsageType')
93
+ connectionorganization: str = Field(..., alias='connectionOrganization')
67
94
  time: str = Field(..., alias='time')
68
95
  projectid: str = Field(..., alias='projectId')
69
96
  teamid: str = Field(..., alias='teamId')
70
97
  hostname: str = Field(..., alias='hostname')
71
- countrycode: str = Field(..., alias='countryCode')
72
- countryname: str = Field(..., alias='countryName')
98
+ sdk: str = Field(..., alias='sdk')
99
+ sdkversion: str = Field(..., alias='sdkVersion')
@@ -0,0 +1,30 @@
1
+ from typing import Any, Dict, List, Optional, Union, cast
2
+ from pydantic import Field, PrivateAttr
3
+
4
+ from .base_model import AppwriteModel
5
+
6
+ class AdditionalResource(AppwriteModel):
7
+ """
8
+ AdditionalResource
9
+
10
+ Attributes
11
+ ----------
12
+ name : str
13
+ Resource name
14
+ unit : str
15
+ Resource unit
16
+ currency : str
17
+ Price currency
18
+ price : float
19
+ Price
20
+ value : float
21
+ Resource value
22
+ invoicedesc : str
23
+ Description on invoice
24
+ """
25
+ name: str = Field(..., alias='name')
26
+ unit: str = Field(..., alias='unit')
27
+ currency: str = Field(..., alias='currency')
28
+ price: float = Field(..., alias='price')
29
+ value: float = Field(..., alias='value')
30
+ invoicedesc: str = Field(..., alias='invoiceDesc')
@@ -34,6 +34,8 @@ class App(AppwriteModel):
34
34
  Application tagline shown to users during OAuth2 consent.
35
35
  tags : List[Any]
36
36
  Application tags shown to users during OAuth2 consent.
37
+ labels : List[Any]
38
+ Application labels. Read-only for clients; only a server SDK using a project API key can update them.
37
39
  images : List[Any]
38
40
  Application image URLs shown to users during OAuth2 consent.
39
41
  supporturl : str
@@ -69,6 +71,7 @@ class App(AppwriteModel):
69
71
  contacts: List[Any] = Field(..., alias='contacts')
70
72
  tagline: str = Field(..., alias='tagline')
71
73
  tags: List[Any] = Field(..., alias='tags')
74
+ labels: List[Any] = Field(..., alias='labels')
72
75
  images: List[Any] = Field(..., alias='images')
73
76
  supporturl: str = Field(..., alias='supportUrl')
74
77
  datadeletionurl: str = Field(..., alias='dataDeletionUrl')
@@ -0,0 +1,27 @@
1
+ from typing import Any, Dict, List, Optional, Union, cast
2
+ from pydantic import Field, PrivateAttr
3
+
4
+ from .base_model import AppwriteModel
5
+
6
+ class AppScope(AppwriteModel):
7
+ """
8
+ AppScope
9
+
10
+ Attributes
11
+ ----------
12
+ value : str
13
+ Scope value as requested by apps.
14
+ description : str
15
+ Human-readable description of what the scope grants.
16
+ type : str
17
+ What the scope grants access to. One of `account`, `project`, or `organization`. Only `project` and `organization` scopes are installable.
18
+ category : str
19
+ Scope category, used to group scopes on consent and installation screens.
20
+ deprecated : bool
21
+ Whether the scope is deprecated. Deprecated scopes can still be requested but should not be offered for new grants.
22
+ """
23
+ value: str = Field(..., alias='value')
24
+ description: str = Field(..., alias='description')
25
+ type: str = Field(..., alias='type')
26
+ category: str = Field(..., alias='category')
27
+ deprecated: bool = Field(..., alias='deprecated')
@@ -0,0 +1,19 @@
1
+ from typing import Any, Dict, List, Optional, Union, cast
2
+ from pydantic import Field, PrivateAttr
3
+
4
+ from .base_model import AppwriteModel
5
+ from .app_scope import AppScope
6
+
7
+ class AppScopeList(AppwriteModel):
8
+ """
9
+ App scopes list
10
+
11
+ Attributes
12
+ ----------
13
+ total : float
14
+ Total number of scopes that matched your query.
15
+ scopes : List[AppScope]
16
+ List of scopes.
17
+ """
18
+ total: float = Field(..., alias='total')
19
+ scopes: List[AppScope] = Field(..., alias='scopes')
@@ -18,7 +18,7 @@ class AppSecret(AppwriteModel):
18
18
  appid : str
19
19
  Application ID this secret belongs to.
20
20
  secret : str
21
- Hashed application client secret.
21
+ Always empty. The application client secret is returned only once, in the response of the createSecret method.
22
22
  hint : str
23
23
  Last few characters of the client secret, used to help identify it.
24
24
  createdbyid : str
@@ -18,7 +18,7 @@ class AppSecretPlaintext(AppwriteModel):
18
18
  appid : str
19
19
  Application ID this secret belongs to.
20
20
  secret : str
21
- Application client secret. Returned in full only when the secret is created; subsequent reads return a masked value.
21
+ Application client secret. Returned only when the secret is created; subsequent reads always return an empty value.
22
22
  hint : str
23
23
  Last few characters of the client secret, used to help identify it.
24
24
  createdbyid : str