appwrite 20.1.0__tar.gz → 22.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (383) hide show
  1. {appwrite-20.1.0 → appwrite-22.0.0}/PKG-INFO +2 -2
  2. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/client.py +14 -5
  3. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/encoders/value_class_encoder.py +15 -11
  4. appwrite-22.0.0/appwrite/enums/billing_plan_group.py +6 -0
  5. appwrite-22.0.0/appwrite/enums/database_status.py +6 -0
  6. appwrite-22.0.0/appwrite/enums/o_auth2_oidc_prompt.py +7 -0
  7. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/o_auth_provider.py +1 -0
  8. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/organization_key_scopes.py +4 -0
  9. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_key_scopes.py +7 -2
  10. appwrite-22.0.0/appwrite/enums/project_o_auth2_oidc_prompt.py +7 -0
  11. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_o_auth_provider_id.py +1 -0
  12. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_policy_id.py +1 -0
  13. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_service_id.py +1 -0
  14. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/__init__.py +56 -20
  15. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/activity_event.py +0 -42
  16. appwrite-22.0.0/appwrite/models/additional_resource.py +30 -0
  17. appwrite-22.0.0/appwrite/models/app.py +85 -0
  18. appwrite-22.0.0/appwrite/models/app_secret.py +39 -0
  19. appwrite-22.0.0/appwrite/models/app_secret_list.py +19 -0
  20. appwrite-22.0.0/appwrite/models/app_secret_plaintext.py +39 -0
  21. appwrite-22.0.0/appwrite/models/apps_list.py +19 -0
  22. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_policy.py +3 -0
  23. appwrite-22.0.0/appwrite/models/billing_plan.py +223 -0
  24. appwrite-22.0.0/appwrite/models/billing_plan_addon.py +19 -0
  25. appwrite-22.0.0/appwrite/models/billing_plan_addon_details.py +36 -0
  26. appwrite-22.0.0/appwrite/models/billing_plan_dedicated_database_limits.py +69 -0
  27. appwrite-22.0.0/appwrite/models/billing_plan_limits.py +18 -0
  28. appwrite-22.0.0/appwrite/models/billing_plan_supported_addons.py +21 -0
  29. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/block.py +3 -0
  30. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/database.py +4 -0
  31. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/document.py +11 -0
  32. appwrite-22.0.0/appwrite/models/locale.py +66 -0
  33. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/log.py +1 -1
  34. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/membership.py +3 -0
  35. appwrite-22.0.0/appwrite/models/o_auth2_appwrite.py +24 -0
  36. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_oidc.py +7 -0
  37. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_provider_list.py +3 -2
  38. appwrite-22.0.0/appwrite/models/oauth2_approve.py +15 -0
  39. appwrite-22.0.0/appwrite/models/oauth2_authorize.py +18 -0
  40. appwrite-22.0.0/appwrite/models/oauth2_device_authorization.py +30 -0
  41. appwrite-22.0.0/appwrite/models/oauth2_grant.py +48 -0
  42. appwrite-22.0.0/appwrite/models/oauth2_organization.py +15 -0
  43. appwrite-22.0.0/appwrite/models/oauth2_organization_list.py +19 -0
  44. appwrite-22.0.0/appwrite/models/oauth2_par.py +18 -0
  45. appwrite-22.0.0/appwrite/models/oauth2_project.py +21 -0
  46. appwrite-22.0.0/appwrite/models/oauth2_project_list.py +19 -0
  47. appwrite-22.0.0/appwrite/models/oauth2_reject.py +15 -0
  48. appwrite-22.0.0/appwrite/models/oauth2_token.py +33 -0
  49. appwrite-22.0.0/appwrite/models/organization.py +132 -0
  50. appwrite-22.0.0/appwrite/models/policy_deny_corporate_email.py +18 -0
  51. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_list.py +3 -2
  52. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_membership_privacy.py +3 -0
  53. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/preferences.py +11 -0
  54. appwrite-22.0.0/appwrite/models/program.py +39 -0
  55. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/project.py +39 -18
  56. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/row.py +11 -0
  57. appwrite-22.0.0/appwrite/models/usage_billing_plan.py +46 -0
  58. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/user.py +15 -0
  59. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/query.py +12 -0
  60. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/account.py +42 -1
  61. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/activities.py +2 -0
  62. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/advisor.py +4 -0
  63. appwrite-22.0.0/appwrite/services/apps.py +713 -0
  64. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/avatars.py +8 -0
  65. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/backups.py +31 -6
  66. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/databases.py +261 -83
  67. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/functions.py +54 -11
  68. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/graphql.py +2 -0
  69. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/locale.py +8 -0
  70. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/messaging.py +186 -265
  71. appwrite-22.0.0/appwrite/services/oauth2.py +686 -0
  72. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/organization.py +364 -6
  73. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/presences.py +4 -0
  74. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/project.py +577 -177
  75. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/proxy.py +7 -0
  76. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/sites.py +42 -6
  77. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/storage.py +17 -3
  78. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/tables_db.py +227 -85
  79. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/teams.py +11 -0
  80. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/tokens.py +8 -2
  81. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/users.py +42 -3
  82. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/webhooks.py +9 -2
  83. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite.egg-info/PKG-INFO +2 -2
  84. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite.egg-info/SOURCES.txt +34 -15
  85. {appwrite-20.1.0 → appwrite-22.0.0}/pyproject.toml +1 -1
  86. {appwrite-20.1.0 → appwrite-22.0.0}/setup.py +2 -2
  87. appwrite-20.1.0/appwrite/enums/health_antivirus_status.py +0 -6
  88. appwrite-20.1.0/appwrite/enums/health_check_status.py +0 -5
  89. appwrite-20.1.0/appwrite/enums/health_queue_name.py +0 -16
  90. appwrite-20.1.0/appwrite/models/health_antivirus.py +0 -19
  91. appwrite-20.1.0/appwrite/models/health_certificate.py +0 -30
  92. appwrite-20.1.0/appwrite/models/health_queue.py +0 -15
  93. appwrite-20.1.0/appwrite/models/health_status.py +0 -22
  94. appwrite-20.1.0/appwrite/models/health_status_list.py +0 -19
  95. appwrite-20.1.0/appwrite/models/health_time.py +0 -21
  96. appwrite-20.1.0/appwrite/models/locale.py +0 -33
  97. appwrite-20.1.0/appwrite/models/usage_event.py +0 -42
  98. appwrite-20.1.0/appwrite/models/usage_event_list.py +0 -19
  99. appwrite-20.1.0/appwrite/models/usage_gauge.py +0 -27
  100. appwrite-20.1.0/appwrite/models/usage_gauge_list.py +0 -19
  101. appwrite-20.1.0/appwrite/services/health.py +0 -857
  102. appwrite-20.1.0/appwrite/services/usage.py +0 -94
  103. {appwrite-20.1.0 → appwrite-22.0.0}/LICENSE +0 -0
  104. {appwrite-20.1.0 → appwrite-22.0.0}/README.md +0 -0
  105. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/__init__.py +0 -0
  106. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/encoders/__init__.py +0 -0
  107. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/__init__.py +0 -0
  108. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/adapter.py +0 -0
  109. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/attribute_status.py +0 -0
  110. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/authentication_factor.py +0 -0
  111. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/authenticator_type.py +0 -0
  112. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/backup_services.py +0 -0
  113. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/browser.py +0 -0
  114. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/browser_permission.py +0 -0
  115. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/browser_theme.py +0 -0
  116. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/build_runtime.py +0 -0
  117. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/column_status.py +0 -0
  118. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/compression.py +0 -0
  119. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/credit_card.py +0 -0
  120. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/database_type.py +0 -0
  121. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/databases_index_type.py +0 -0
  122. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/deployment_download_type.py +0 -0
  123. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/deployment_status.py +0 -0
  124. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/execution_method.py +0 -0
  125. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/execution_status.py +0 -0
  126. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/execution_trigger.py +0 -0
  127. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/flag.py +0 -0
  128. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/framework.py +0 -0
  129. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/image_format.py +0 -0
  130. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/image_gravity.py +0 -0
  131. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/index_status.py +0 -0
  132. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/message_priority.py +0 -0
  133. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/message_status.py +0 -0
  134. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/messaging_provider_type.py +0 -0
  135. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/o_auth2_google_prompt.py +0 -0
  136. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/order_by.py +0 -0
  137. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/password_hash.py +0 -0
  138. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/platform_type.py +0 -0
  139. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_auth_method_id.py +0 -0
  140. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_email_template_id.py +0 -0
  141. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_email_template_locale.py +0 -0
  142. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_o_auth2_google_prompt.py +0 -0
  143. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_protocol_id.py +0 -0
  144. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/project_smtp_secure.py +0 -0
  145. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/proxy_resource_type.py +0 -0
  146. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/proxy_rule_deployment_resource_type.py +0 -0
  147. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/proxy_rule_status.py +0 -0
  148. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/region.py +0 -0
  149. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/relation_mutate.py +0 -0
  150. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/relationship_type.py +0 -0
  151. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/runtime.py +0 -0
  152. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/smtp_encryption.py +0 -0
  153. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/status_code.py +0 -0
  154. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/tables_db_index_type.py +0 -0
  155. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/template_reference_type.py +0 -0
  156. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/timezone.py +0 -0
  157. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/enums/vcs_reference_type.py +0 -0
  158. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/exception.py +0 -0
  159. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/id.py +0 -0
  160. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/input_file.py +0 -0
  161. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/activity_event_list.py +0 -0
  162. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_argon2.py +0 -0
  163. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_bcrypt.py +0 -0
  164. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_md5.py +0 -0
  165. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_phpass.py +0 -0
  166. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_scrypt.py +0 -0
  167. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_scrypt_modified.py +0 -0
  168. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/algo_sha.py +0 -0
  169. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_bigint.py +0 -0
  170. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_boolean.py +0 -0
  171. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_datetime.py +0 -0
  172. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_email.py +0 -0
  173. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_enum.py +0 -0
  174. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_float.py +0 -0
  175. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_integer.py +0 -0
  176. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_ip.py +0 -0
  177. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_line.py +0 -0
  178. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_list.py +0 -0
  179. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_longtext.py +0 -0
  180. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_mediumtext.py +0 -0
  181. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_point.py +0 -0
  182. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_polygon.py +0 -0
  183. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_relationship.py +0 -0
  184. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_string.py +0 -0
  185. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_text.py +0 -0
  186. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_url.py +0 -0
  187. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/attribute_varchar.py +0 -0
  188. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_archive.py +0 -0
  189. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_archive_list.py +0 -0
  190. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_policy_list.py +0 -0
  191. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_restoration.py +0 -0
  192. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/backup_restoration_list.py +0 -0
  193. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/base_model.py +0 -0
  194. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/billing_limits.py +0 -0
  195. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/bucket.py +0 -0
  196. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/bucket_list.py +0 -0
  197. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/collection.py +0 -0
  198. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/collection_list.py +0 -0
  199. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_bigint.py +0 -0
  200. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_boolean.py +0 -0
  201. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_datetime.py +0 -0
  202. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_email.py +0 -0
  203. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_enum.py +0 -0
  204. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_float.py +0 -0
  205. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_index.py +0 -0
  206. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_index_list.py +0 -0
  207. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_integer.py +0 -0
  208. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_ip.py +0 -0
  209. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_line.py +0 -0
  210. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_list.py +0 -0
  211. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_longtext.py +0 -0
  212. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_mediumtext.py +0 -0
  213. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_point.py +0 -0
  214. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_polygon.py +0 -0
  215. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_relationship.py +0 -0
  216. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_string.py +0 -0
  217. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_text.py +0 -0
  218. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_url.py +0 -0
  219. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/column_varchar.py +0 -0
  220. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/continent.py +0 -0
  221. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/continent_list.py +0 -0
  222. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/country.py +0 -0
  223. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/country_list.py +0 -0
  224. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/currency.py +0 -0
  225. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/currency_list.py +0 -0
  226. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/database_list.py +0 -0
  227. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/deployment.py +0 -0
  228. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/deployment_list.py +0 -0
  229. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/dev_key.py +0 -0
  230. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/document_list.py +0 -0
  231. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/email_template.py +0 -0
  232. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/email_template_list.py +0 -0
  233. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/ephemeral_key.py +0 -0
  234. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/execution.py +0 -0
  235. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/execution_list.py +0 -0
  236. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/file.py +0 -0
  237. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/file_list.py +0 -0
  238. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/framework.py +0 -0
  239. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/framework_adapter.py +0 -0
  240. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/framework_list.py +0 -0
  241. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/function.py +0 -0
  242. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/function_list.py +0 -0
  243. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/headers.py +0 -0
  244. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/identity.py +0 -0
  245. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/identity_list.py +0 -0
  246. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/index.py +0 -0
  247. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/index_list.py +0 -0
  248. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/insight.py +0 -0
  249. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/insight_cta.py +0 -0
  250. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/insight_list.py +0 -0
  251. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/jwt.py +0 -0
  252. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/key.py +0 -0
  253. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/key_list.py +0 -0
  254. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/language.py +0 -0
  255. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/language_list.py +0 -0
  256. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/locale_code.py +0 -0
  257. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/locale_code_list.py +0 -0
  258. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/log_list.py +0 -0
  259. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/membership_list.py +0 -0
  260. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/message.py +0 -0
  261. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/message_list.py +0 -0
  262. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mfa_challenge.py +0 -0
  263. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mfa_factors.py +0 -0
  264. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mfa_recovery_codes.py +0 -0
  265. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mfa_type.py +0 -0
  266. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mock_number.py +0 -0
  267. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/mock_number_list.py +0 -0
  268. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_amazon.py +0 -0
  269. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_apple.py +0 -0
  270. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_auth0.py +0 -0
  271. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_authentik.py +0 -0
  272. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_autodesk.py +0 -0
  273. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_bitbucket.py +0 -0
  274. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_bitly.py +0 -0
  275. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_box.py +0 -0
  276. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_dailymotion.py +0 -0
  277. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_discord.py +0 -0
  278. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_disqus.py +0 -0
  279. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_dropbox.py +0 -0
  280. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_etsy.py +0 -0
  281. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_facebook.py +0 -0
  282. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_figma.py +0 -0
  283. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_fusion_auth.py +0 -0
  284. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_github.py +0 -0
  285. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_gitlab.py +0 -0
  286. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_google.py +0 -0
  287. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_keycloak.py +0 -0
  288. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_kick.py +0 -0
  289. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_linkedin.py +0 -0
  290. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_microsoft.py +0 -0
  291. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_notion.py +0 -0
  292. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_okta.py +0 -0
  293. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_paypal.py +0 -0
  294. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_podio.py +0 -0
  295. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_salesforce.py +0 -0
  296. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_slack.py +0 -0
  297. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_spotify.py +0 -0
  298. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_stripe.py +0 -0
  299. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_tradeshift.py +0 -0
  300. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_twitch.py +0 -0
  301. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_word_press.py +0 -0
  302. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_x.py +0 -0
  303. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_yahoo.py +0 -0
  304. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_yandex.py +0 -0
  305. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_zoho.py +0 -0
  306. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/o_auth2_zoom.py +0 -0
  307. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/phone.py +0 -0
  308. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/phone_list.py +0 -0
  309. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_android.py +0 -0
  310. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_apple.py +0 -0
  311. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_linux.py +0 -0
  312. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_list.py +0 -0
  313. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_web.py +0 -0
  314. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/platform_windows.py +0 -0
  315. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_deny_aliased_email.py +0 -0
  316. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_deny_disposable_email.py +0 -0
  317. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_deny_free_email.py +0 -0
  318. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_password_dictionary.py +0 -0
  319. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_password_history.py +0 -0
  320. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_password_personal_data.py +0 -0
  321. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_password_strength.py +0 -0
  322. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_session_alert.py +0 -0
  323. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_session_duration.py +0 -0
  324. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_session_invalidation.py +0 -0
  325. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_session_limit.py +0 -0
  326. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/policy_user_limit.py +0 -0
  327. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/presence.py +0 -0
  328. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/presence_list.py +0 -0
  329. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/project_auth_method.py +0 -0
  330. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/project_list.py +0 -0
  331. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/project_protocol.py +0 -0
  332. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/project_service.py +0 -0
  333. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/provider.py +0 -0
  334. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/provider_list.py +0 -0
  335. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/proxy_rule.py +0 -0
  336. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/proxy_rule_list.py +0 -0
  337. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/report.py +0 -0
  338. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/report_list.py +0 -0
  339. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/resource_token.py +0 -0
  340. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/resource_token_list.py +0 -0
  341. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/row_list.py +0 -0
  342. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/runtime.py +0 -0
  343. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/runtime_list.py +0 -0
  344. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/session.py +0 -0
  345. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/session_list.py +0 -0
  346. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/site.py +0 -0
  347. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/site_list.py +0 -0
  348. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/specification.py +0 -0
  349. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/specification_list.py +0 -0
  350. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/subscriber.py +0 -0
  351. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/subscriber_list.py +0 -0
  352. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/table.py +0 -0
  353. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/table_list.py +0 -0
  354. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/target.py +0 -0
  355. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/target_list.py +0 -0
  356. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/team.py +0 -0
  357. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/team_list.py +0 -0
  358. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/token.py +0 -0
  359. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/topic.py +0 -0
  360. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/topic_list.py +0 -0
  361. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/transaction.py +0 -0
  362. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/transaction_list.py +0 -0
  363. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/user_list.py +0 -0
  364. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/variable.py +0 -0
  365. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/variable_list.py +0 -0
  366. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/webhook.py +0 -0
  367. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/models/webhook_list.py +0 -0
  368. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/operator.py +0 -0
  369. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/permission.py +0 -0
  370. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/role.py +0 -0
  371. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/service.py +0 -0
  372. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/services/__init__.py +0 -0
  373. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/utils/__init__.py +0 -0
  374. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite/utils/deprecated.py +0 -0
  375. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite.egg-info/dependency_links.txt +0 -0
  376. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite.egg-info/requires.txt +0 -0
  377. {appwrite-20.1.0 → appwrite-22.0.0}/appwrite.egg-info/top_level.txt +0 -0
  378. {appwrite-20.1.0 → appwrite-22.0.0}/setup.cfg +0 -0
  379. {appwrite-20.1.0 → appwrite-22.0.0}/test/test_id.py +0 -0
  380. {appwrite-20.1.0 → appwrite-22.0.0}/test/test_operator.py +0 -0
  381. {appwrite-20.1.0 → appwrite-22.0.0}/test/test_permission.py +0 -0
  382. {appwrite-20.1.0 → appwrite-22.0.0}/test/test_query.py +0 -0
  383. {appwrite-20.1.0 → appwrite-22.0.0}/test/test_role.py +0 -0
@@ -1,9 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: appwrite
3
- Version: 20.1.0
3
+ Version: 22.0.0
4
4
  Summary: Appwrite is an open-source self-hosted backend server that abstracts and simplifies complex and repetitive development tasks behind a very simple REST API
5
5
  Home-page: https://appwrite.io/support
6
- Download-URL: https://github.com/appwrite/sdk-for-python/archive/20.1.0.tar.gz
6
+ Download-URL: https://github.com/appwrite/sdk-for-python/archive/22.0.0.tar.gz
7
7
  Author: Appwrite Team
8
8
  Author-email: Appwrite Team <team@appwrite.io>
9
9
  Maintainer: Appwrite Team
@@ -17,11 +17,11 @@ class Client:
17
17
  self._endpoint = 'https://cloud.appwrite.io/v1'
18
18
  self._global_headers = {
19
19
  'content-type': '',
20
- 'user-agent' : f'AppwritePythonSDK/20.1.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
20
+ 'user-agent' : f'AppwritePythonSDK/22.0.0 ({platform.uname().system}; {platform.uname().version}; {platform.uname().machine})',
21
21
  'x-sdk-name': 'Python',
22
22
  'x-sdk-platform': 'server',
23
23
  'x-sdk-language': 'python',
24
- 'x-sdk-version': '20.1.0',
24
+ 'x-sdk-version': '22.0.0',
25
25
  'X-Appwrite-Response-Format' : '1.9.5',
26
26
  }
27
27
  self._config = {}
@@ -67,6 +67,13 @@ class Client:
67
67
  self._config['jwt'] = value
68
68
  return self
69
69
 
70
+ def set_bearer(self, value):
71
+ """The OAuth access token to authenticate with"""
72
+
73
+ self._global_headers['authorization'] = 'Bearer ' + value
74
+ self._config['bearer'] = value
75
+ return self
76
+
70
77
  def set_locale(self, value):
71
78
  self._global_headers['x-appwrite-locale'] = value
72
79
  self._config['locale'] = value
@@ -101,21 +108,21 @@ class Client:
101
108
  return self
102
109
 
103
110
  def set_impersonate_user_id(self, value):
104
- """Impersonate a user by ID on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
111
+ """Impersonate a user by ID"""
105
112
 
106
113
  self._global_headers['x-appwrite-impersonate-user-id'] = value
107
114
  self._config['impersonateuserid'] = value
108
115
  return self
109
116
 
110
117
  def set_impersonate_user_email(self, value):
111
- """Impersonate a user by email on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
118
+ """Impersonate a user by email"""
112
119
 
113
120
  self._global_headers['x-appwrite-impersonate-user-email'] = value
114
121
  self._config['impersonateuseremail'] = value
115
122
  return self
116
123
 
117
124
  def set_impersonate_user_phone(self, value):
118
- """Impersonate a user by phone on an already user-authenticated request. Requires the current request to be authenticated as a user with impersonator capability; X-Appwrite-Key alone is not sufficient. Impersonator users are intentionally granted users.read so they can discover a target before impersonation begins. Internal audit logs still attribute actions to the original impersonator and record the impersonated target only in internal audit payload data."""
125
+ """Impersonate a user by phone"""
119
126
 
120
127
  self._global_headers['x-appwrite-impersonate-user-phone'] = value
121
128
  self._config['impersonateuserphone'] = 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,6 @@
1
+ from enum import Enum
2
+
3
+ class DatabaseStatus(Enum):
4
+ PROVISIONING = "provisioning"
5
+ READY = "ready"
6
+ FAILED = "failed"
@@ -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"
@@ -91,9 +93,12 @@ class ProjectKeyScopes(Enum):
91
93
  ARCHIVES_WRITE = "archives.write"
92
94
  RESTORATIONS_READ = "restorations.read"
93
95
  RESTORATIONS_WRITE = "restorations.write"
96
+ DEDICATEDDATABASES_EXECUTE = "dedicatedDatabases.execute"
94
97
  DOMAINS_READ = "domains.read"
95
98
  DOMAINS_WRITE = "domains.write"
96
99
  EVENTS_READ = "events.read"
97
100
  APPS_READ = "apps.read"
98
101
  APPS_WRITE = "apps.write"
102
+ OAUTH2_READ = "oauth2.read"
103
+ OAUTH2_WRITE = "oauth2.write"
99
104
  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"
@@ -14,3 +14,4 @@ class ProjectPolicyId(Enum):
14
14
  DENY_ALIASED_EMAIL = "deny-aliased-email"
15
15
  DENY_DISPOSABLE_EMAIL = "deny-disposable-email"
16
16
  DENY_FREE_EMAIL = "deny-free-email"
17
+ DENY_CORPORATE_EMAIL = "deny-corporate-email"
@@ -19,3 +19,4 @@ class ProjectServiceId(Enum):
19
19
  MIGRATIONS = "migrations"
20
20
  MESSAGING = "messaging"
21
21
  ADVISOR = "advisor"
22
+ OAUTH2 = "oauth2"
@@ -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,22 +210,45 @@ from .insight import Insight
215
210
  from .insight_cta import InsightCTA
216
211
  from .report import Report
217
212
  from .activity_event import ActivityEvent
213
+ from .additional_resource import AdditionalResource
218
214
  from .backup_archive import BackupArchive
219
215
  from .billing_limits import BillingLimits
216
+ from .billing_plan import BillingPlan
217
+ from .billing_plan_addon import BillingPlanAddon
218
+ from .billing_plan_addon_details import BillingPlanAddonDetails
219
+ from .billing_plan_limits import BillingPlanLimits
220
+ from .billing_plan_dedicated_database_limits import BillingPlanDedicatedDatabaseLimits
221
+ from .billing_plan_supported_addons import BillingPlanSupportedAddons
220
222
  from .block import Block
223
+ from .organization import Organization
221
224
  from .backup_policy import BackupPolicy
222
225
  from .policy_deny_aliased_email import PolicyDenyAliasedEmail
223
226
  from .policy_deny_disposable_email import PolicyDenyDisposableEmail
224
227
  from .policy_deny_free_email import PolicyDenyFreeEmail
228
+ from .policy_deny_corporate_email import PolicyDenyCorporateEmail
229
+ from .program import Program
225
230
  from .backup_restoration import BackupRestoration
226
- from .usage_event import UsageEvent
227
- from .usage_gauge import UsageGauge
231
+ from .usage_billing_plan import UsageBillingPlan
232
+ from .app import App
233
+ from .app_secret import AppSecret
234
+ from .app_secret_plaintext import AppSecretPlaintext
235
+ from .oauth2_authorize import Oauth2Authorize
236
+ from .oauth2_approve import Oauth2Approve
237
+ from .oauth2_reject import Oauth2Reject
238
+ from .oauth2_grant import Oauth2Grant
239
+ from .oauth2_device_authorization import Oauth2DeviceAuthorization
240
+ from .oauth2_par import Oauth2PAR
241
+ from .oauth2_token import Oauth2Token
242
+ from .oauth2_project import Oauth2Project
243
+ from .oauth2_organization import Oauth2Organization
244
+ from .oauth2_project_list import Oauth2ProjectList
245
+ from .oauth2_organization_list import Oauth2OrganizationList
228
246
  from .activity_event_list import ActivityEventList
229
247
  from .backup_archive_list import BackupArchiveList
230
248
  from .backup_policy_list import BackupPolicyList
231
249
  from .backup_restoration_list import BackupRestorationList
232
- from .usage_event_list import UsageEventList
233
- from .usage_gauge_list import UsageGaugeList
250
+ from .apps_list import AppsList
251
+ from .app_secret_list import AppSecretList
234
252
 
235
253
  __all__ = [
236
254
  'AppwriteModel',
@@ -269,7 +287,6 @@ __all__ = [
269
287
  'MockNumberList',
270
288
  'PolicyList',
271
289
  'EmailTemplateList',
272
- 'HealthStatusList',
273
290
  'ProxyRuleList',
274
291
  'LocaleCodeList',
275
292
  'ProviderList',
@@ -395,6 +412,7 @@ __all__ = [
395
412
  'OAuth2Tradeshift',
396
413
  'OAuth2Paypal',
397
414
  'OAuth2Gitlab',
415
+ 'OAuth2Appwrite',
398
416
  'OAuth2Authentik',
399
417
  'OAuth2Auth0',
400
418
  'OAuth2FusionAuth',
@@ -427,11 +445,6 @@ __all__ = [
427
445
  'Language',
428
446
  'Currency',
429
447
  'Phone',
430
- 'HealthAntivirus',
431
- 'HealthQueue',
432
- 'HealthStatus',
433
- 'HealthCertificate',
434
- 'HealthTime',
435
448
  'Headers',
436
449
  'Specification',
437
450
  'ProxyRule',
@@ -450,20 +463,43 @@ __all__ = [
450
463
  'InsightCTA',
451
464
  'Report',
452
465
  'ActivityEvent',
466
+ 'AdditionalResource',
453
467
  'BackupArchive',
454
468
  'BillingLimits',
469
+ 'BillingPlan',
470
+ 'BillingPlanAddon',
471
+ 'BillingPlanAddonDetails',
472
+ 'BillingPlanLimits',
473
+ 'BillingPlanDedicatedDatabaseLimits',
474
+ 'BillingPlanSupportedAddons',
455
475
  'Block',
476
+ 'Organization',
456
477
  'BackupPolicy',
457
478
  'PolicyDenyAliasedEmail',
458
479
  'PolicyDenyDisposableEmail',
459
480
  'PolicyDenyFreeEmail',
481
+ 'PolicyDenyCorporateEmail',
482
+ 'Program',
460
483
  'BackupRestoration',
461
- 'UsageEvent',
462
- 'UsageGauge',
484
+ 'UsageBillingPlan',
485
+ 'App',
486
+ 'AppSecret',
487
+ 'AppSecretPlaintext',
488
+ 'Oauth2Authorize',
489
+ 'Oauth2Approve',
490
+ 'Oauth2Reject',
491
+ 'Oauth2Grant',
492
+ 'Oauth2DeviceAuthorization',
493
+ 'Oauth2PAR',
494
+ 'Oauth2Token',
495
+ 'Oauth2Project',
496
+ 'Oauth2Organization',
497
+ 'Oauth2ProjectList',
498
+ 'Oauth2OrganizationList',
463
499
  'ActivityEventList',
464
500
  'BackupArchiveList',
465
501
  'BackupPolicyList',
466
502
  'BackupRestorationList',
467
- 'UsageEventList',
468
- 'UsageGaugeList',
503
+ 'AppsList',
504
+ 'AppSecretList',
469
505
  ]
@@ -45,34 +45,6 @@ class ActivityEvent(AppwriteModel):
45
45
  Team ID.
46
46
  hostname : str
47
47
  Hostname.
48
- oscode : str
49
- Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
50
- osname : str
51
- Operating system name.
52
- osversion : str
53
- Operating system version.
54
- clienttype : str
55
- Client type.
56
- clientcode : str
57
- Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
58
- clientname : str
59
- Client name.
60
- clientversion : str
61
- Client version.
62
- clientengine : str
63
- Client engine name.
64
- clientengineversion : str
65
- Client engine name.
66
- devicename : str
67
- Device name.
68
- devicebrand : str
69
- Device brand name.
70
- devicemodel : str
71
- Device model name.
72
- countrycode : str
73
- Country two-character ISO 3166-1 alpha code.
74
- countryname : str
75
- Country name.
76
48
  """
77
49
  id: str = Field(..., alias='$id')
78
50
  actortype: str = Field(..., alias='actorType')
@@ -92,17 +64,3 @@ class ActivityEvent(AppwriteModel):
92
64
  projectid: str = Field(..., alias='projectId')
93
65
  teamid: str = Field(..., alias='teamId')
94
66
  hostname: str = Field(..., alias='hostname')
95
- oscode: str = Field(..., alias='osCode')
96
- osname: str = Field(..., alias='osName')
97
- osversion: str = Field(..., alias='osVersion')
98
- clienttype: str = Field(..., alias='clientType')
99
- clientcode: str = Field(..., alias='clientCode')
100
- clientname: str = Field(..., alias='clientName')
101
- clientversion: str = Field(..., alias='clientVersion')
102
- clientengine: str = Field(..., alias='clientEngine')
103
- clientengineversion: str = Field(..., alias='clientEngineVersion')
104
- devicename: str = Field(..., alias='deviceName')
105
- devicebrand: str = Field(..., alias='deviceBrand')
106
- devicemodel: str = Field(..., alias='deviceModel')
107
- countrycode: str = Field(..., alias='countryCode')
108
- countryname: str = Field(..., alias='countryName')
@@ -0,0 +1,30 @@
1
+ from typing import Any, Dict, List, Optional, Union, cast
2
+ from pydantic import Field, PrivateAttr
3
+
4
+ from .base_model import AppwriteModel
5
+
6
+ class AdditionalResource(AppwriteModel):
7
+ """
8
+ AdditionalResource
9
+
10
+ Attributes
11
+ ----------
12
+ name : str
13
+ Resource name
14
+ unit : str
15
+ Resource unit
16
+ currency : str
17
+ Price currency
18
+ price : float
19
+ Price
20
+ value : float
21
+ Resource value
22
+ invoicedesc : str
23
+ Description on invoice
24
+ """
25
+ name: str = Field(..., alias='name')
26
+ unit: str = Field(..., alias='unit')
27
+ currency: str = Field(..., alias='currency')
28
+ price: float = Field(..., alias='price')
29
+ value: float = Field(..., alias='value')
30
+ invoicedesc: str = Field(..., alias='invoiceDesc')
@@ -0,0 +1,85 @@
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_secret import AppSecret
6
+
7
+ class App(AppwriteModel):
8
+ """
9
+ App
10
+
11
+ Attributes
12
+ ----------
13
+ id : str
14
+ App ID.
15
+ createdat : str
16
+ App creation time in ISO 8601 format.
17
+ updatedat : str
18
+ App update date in ISO 8601 format.
19
+ name : str
20
+ Application name.
21
+ description : str
22
+ Application description shown to users during OAuth2 consent.
23
+ clienturi : str
24
+ Application homepage URL shown to users during OAuth2 consent.
25
+ logouri : str
26
+ Application logo URL shown to users during OAuth2 consent.
27
+ privacypolicyurl : str
28
+ Application privacy policy URL shown to users during OAuth2 consent.
29
+ termsurl : str
30
+ Application terms of service URL shown to users during OAuth2 consent.
31
+ contacts : List[Any]
32
+ Application support or security contact emails.
33
+ tagline : str
34
+ Application tagline shown to users during OAuth2 consent.
35
+ tags : List[Any]
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.
39
+ images : List[Any]
40
+ Application image URLs shown to users during OAuth2 consent.
41
+ supporturl : str
42
+ Application support URL shown to users during OAuth2 consent.
43
+ datadeletionurl : str
44
+ Application data deletion URL shown to users during OAuth2 consent.
45
+ redirecturis : List[Any]
46
+ List of authorized redirect URIs. These URIs can be used to redirect users after they authenticate.
47
+ postlogoutredirecturis : List[Any]
48
+ List of authorized post-logout redirect URIs for OpenID Connect RP-Initiated Logout. The logout endpoint only redirects users to URIs in this list after ending their session.
49
+ enabled : bool
50
+ Whether the app is enabled or not.
51
+ type : str
52
+ OAuth2 client type. `public` for SPAs, mobile, and native apps that cannot keep a client secret (PKCE required); `confidential` for server-side clients that authenticate with a client secret.
53
+ deviceflow : bool
54
+ Whether this client may use the OAuth2 Device Authorization Grant (RFC 8628).
55
+ teamid : str
56
+ ID of team that owns the application, if owned by team. Otherwise, user ID will be used.
57
+ userid : str
58
+ ID of user who owns the application, if owned by user. Otherwise, team ID will be used.
59
+ secrets : List[AppSecret]
60
+ List of application secrets.
61
+ """
62
+ id: str = Field(..., alias='$id')
63
+ createdat: str = Field(..., alias='$createdAt')
64
+ updatedat: str = Field(..., alias='$updatedAt')
65
+ name: str = Field(..., alias='name')
66
+ description: str = Field(..., alias='description')
67
+ clienturi: str = Field(..., alias='clientUri')
68
+ logouri: str = Field(..., alias='logoUri')
69
+ privacypolicyurl: str = Field(..., alias='privacyPolicyUrl')
70
+ termsurl: str = Field(..., alias='termsUrl')
71
+ contacts: List[Any] = Field(..., alias='contacts')
72
+ tagline: str = Field(..., alias='tagline')
73
+ tags: List[Any] = Field(..., alias='tags')
74
+ labels: List[Any] = Field(..., alias='labels')
75
+ images: List[Any] = Field(..., alias='images')
76
+ supporturl: str = Field(..., alias='supportUrl')
77
+ datadeletionurl: str = Field(..., alias='dataDeletionUrl')
78
+ redirecturis: List[Any] = Field(..., alias='redirectUris')
79
+ postlogoutredirecturis: List[Any] = Field(..., alias='postLogoutRedirectUris')
80
+ enabled: bool = Field(..., alias='enabled')
81
+ type: str = Field(..., alias='type')
82
+ deviceflow: bool = Field(..., alias='deviceFlow')
83
+ teamid: str = Field(..., alias='teamId')
84
+ userid: str = Field(..., alias='userId')
85
+ secrets: List[AppSecret] = Field(..., alias='secrets')
@@ -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 AppSecret(AppwriteModel):
7
+ """
8
+ AppSecret
9
+
10
+ Attributes
11
+ ----------
12
+ id : str
13
+ Secret ID.
14
+ createdat : str
15
+ Secret creation time in ISO 8601 format.
16
+ updatedat : str
17
+ Secret update time in ISO 8601 format.
18
+ appid : str
19
+ Application ID this secret belongs to.
20
+ secret : str
21
+ Hashed application client secret.
22
+ hint : str
23
+ Last few characters of the client secret, used to help identify it.
24
+ createdbyid : str
25
+ ID of the user who created the secret.
26
+ createdbyname : str
27
+ Name of the user who created the secret.
28
+ lastaccessedat : Optional[str]
29
+ Time the secret was last used for authentication in ISO 8601 format. Null if never used.
30
+ """
31
+ id: str = Field(..., alias='$id')
32
+ createdat: str = Field(..., alias='$createdAt')
33
+ updatedat: str = Field(..., alias='$updatedAt')
34
+ appid: str = Field(..., alias='appId')
35
+ secret: str = Field(..., alias='secret')
36
+ hint: str = Field(..., alias='hint')
37
+ createdbyid: str = Field(..., alias='createdById')
38
+ createdbyname: str = Field(..., alias='createdByName')
39
+ lastaccessedat: Optional[str] = Field(default=None, alias='lastAccessedAt')
@@ -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_secret import AppSecret
6
+
7
+ class AppSecretList(AppwriteModel):
8
+ """
9
+ App secrets list
10
+
11
+ Attributes
12
+ ----------
13
+ total : float
14
+ Total number of secrets that matched your query.
15
+ secrets : List[AppSecret]
16
+ List of secrets.
17
+ """
18
+ total: float = Field(..., alias='total')
19
+ secrets: List[AppSecret] = Field(..., alias='secrets')