appwrite 25.1.0 → 26.0.0

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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +18 -4
  3. data/lib/appwrite/enums/billing_plan_group.rb +9 -0
  4. data/lib/appwrite/enums/database_status.rb +9 -0
  5. data/lib/appwrite/enums/o_auth2_oidc_prompt.rb +10 -0
  6. data/lib/appwrite/enums/o_auth_provider.rb +1 -0
  7. data/lib/appwrite/enums/organization_key_scopes.rb +4 -0
  8. data/lib/appwrite/enums/project_key_scopes.rb +7 -2
  9. data/lib/appwrite/enums/project_o_auth2_oidc_prompt.rb +10 -0
  10. data/lib/appwrite/enums/project_o_auth_provider_id.rb +1 -0
  11. data/lib/appwrite/enums/project_policy_id.rb +1 -0
  12. data/lib/appwrite/enums/project_service_id.rb +1 -0
  13. data/lib/appwrite/models/activity_event.rb +3 -73
  14. data/lib/appwrite/models/additional_resource.rb +52 -0
  15. data/lib/appwrite/models/backup_policy.rb +5 -0
  16. data/lib/appwrite/models/billing_plan.rb +379 -0
  17. data/lib/appwrite/models/billing_plan_addon.rb +32 -0
  18. data/lib/appwrite/models/billing_plan_addon_details.rb +62 -0
  19. data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +117 -0
  20. data/lib/appwrite/models/billing_plan_limits.rb +32 -0
  21. data/lib/appwrite/models/billing_plan_supported_addons.rb +37 -0
  22. data/lib/appwrite/models/block.rb +5 -0
  23. data/lib/appwrite/models/database.rb +19 -0
  24. data/lib/appwrite/models/locale.rb +58 -3
  25. data/lib/appwrite/models/membership.rb +5 -0
  26. data/lib/appwrite/models/o_auth2_appwrite.rb +42 -0
  27. data/lib/appwrite/models/o_auth2_oidc.rb +13 -3
  28. data/lib/appwrite/models/organization.rb +197 -0
  29. data/lib/appwrite/models/policy_deny_corporate_email.rb +32 -0
  30. data/lib/appwrite/models/policy_membership_privacy.rb +8 -3
  31. data/lib/appwrite/models/program.rb +67 -0
  32. data/lib/appwrite/models/project.rb +46 -11
  33. data/lib/appwrite/models/usage_billing_plan.rb +77 -0
  34. data/lib/appwrite/models/user.rb +25 -0
  35. data/lib/appwrite/query.rb +13 -1
  36. data/lib/appwrite/services/account.rb +42 -1
  37. data/lib/appwrite/services/activities.rb +2 -0
  38. data/lib/appwrite/services/advisor.rb +4 -0
  39. data/lib/appwrite/services/avatars.rb +8 -0
  40. data/lib/appwrite/services/backups.rb +25 -1
  41. data/lib/appwrite/services/databases.rb +107 -0
  42. data/lib/appwrite/services/functions.rb +30 -4
  43. data/lib/appwrite/services/graphql.rb +2 -0
  44. data/lib/appwrite/services/locale.rb +8 -0
  45. data/lib/appwrite/services/messaging.rb +42 -136
  46. data/lib/appwrite/services/organization.rb +268 -3
  47. data/lib/appwrite/services/presences.rb +4 -0
  48. data/lib/appwrite/services/project.rb +190 -9
  49. data/lib/appwrite/services/proxy.rb +7 -0
  50. data/lib/appwrite/services/sites.rb +25 -1
  51. data/lib/appwrite/services/storage.rb +11 -0
  52. data/lib/appwrite/services/tables_db.rb +68 -1
  53. data/lib/appwrite/services/teams.rb +11 -0
  54. data/lib/appwrite/services/tokens.rb +4 -0
  55. data/lib/appwrite/services/users.rb +38 -1
  56. data/lib/appwrite/services/webhooks.rb +5 -0
  57. data/lib/appwrite.rb +16 -15
  58. metadata +18 -17
  59. data/lib/appwrite/enums/health_antivirus_status.rb +0 -9
  60. data/lib/appwrite/enums/health_check_status.rb +0 -8
  61. data/lib/appwrite/enums/health_queue_name.rb +0 -19
  62. data/lib/appwrite/models/health_antivirus.rb +0 -49
  63. data/lib/appwrite/models/health_certificate.rb +0 -52
  64. data/lib/appwrite/models/health_queue.rb +0 -27
  65. data/lib/appwrite/models/health_status.rb +0 -53
  66. data/lib/appwrite/models/health_status_list.rb +0 -32
  67. data/lib/appwrite/models/health_time.rb +0 -37
  68. data/lib/appwrite/models/usage_event.rb +0 -72
  69. data/lib/appwrite/models/usage_event_list.rb +0 -32
  70. data/lib/appwrite/models/usage_gauge.rb +0 -47
  71. data/lib/appwrite/models/usage_gauge_list.rb +0 -32
  72. data/lib/appwrite/services/health.rb +0 -681
  73. data/lib/appwrite/services/usage.rb +0 -88
@@ -24,6 +24,7 @@ module Appwrite
24
24
  attr_reader :pinged_at
25
25
  attr_reader :labels
26
26
  attr_reader :status
27
+ attr_reader :onboarding
27
28
  attr_reader :auth_methods
28
29
  attr_reader :services
29
30
  attr_reader :protocols
@@ -33,11 +34,17 @@ module Appwrite
33
34
  attr_reader :o_auth2_server_enabled
34
35
  attr_reader :o_auth2_server_authorization_url
35
36
  attr_reader :o_auth2_server_scopes
37
+ attr_reader :o_auth2_server_default_scopes
38
+ attr_reader :o_auth2_server_authorization_details_types
36
39
  attr_reader :o_auth2_server_access_token_duration
37
40
  attr_reader :o_auth2_server_refresh_token_duration
38
41
  attr_reader :o_auth2_server_public_access_token_duration
39
42
  attr_reader :o_auth2_server_public_refresh_token_duration
40
43
  attr_reader :o_auth2_server_confidential_pkce
44
+ attr_reader :o_auth2_server_verification_url
45
+ attr_reader :o_auth2_server_user_code_length
46
+ attr_reader :o_auth2_server_user_code_format
47
+ attr_reader :o_auth2_server_device_code_duration
41
48
  attr_reader :o_auth2_server_discovery_url
42
49
 
43
50
  def initialize(
@@ -62,21 +69,28 @@ module Appwrite
62
69
  pinged_at:,
63
70
  labels:,
64
71
  status:,
72
+ onboarding:,
65
73
  auth_methods:,
66
74
  services:,
67
75
  protocols:,
68
76
  blocks:,
69
77
  console_accessed_at:,
70
78
  billing_limits: ,
71
- o_auth2_server_enabled:,
72
- o_auth2_server_authorization_url:,
73
- o_auth2_server_scopes:,
74
- o_auth2_server_access_token_duration:,
75
- o_auth2_server_refresh_token_duration:,
76
- o_auth2_server_public_access_token_duration:,
77
- o_auth2_server_public_refresh_token_duration:,
78
- o_auth2_server_confidential_pkce:,
79
- o_auth2_server_discovery_url:
79
+ o_auth2_server_enabled: ,
80
+ o_auth2_server_authorization_url: ,
81
+ o_auth2_server_scopes: ,
82
+ o_auth2_server_default_scopes: ,
83
+ o_auth2_server_authorization_details_types: ,
84
+ o_auth2_server_access_token_duration: ,
85
+ o_auth2_server_refresh_token_duration: ,
86
+ o_auth2_server_public_access_token_duration: ,
87
+ o_auth2_server_public_refresh_token_duration: ,
88
+ o_auth2_server_confidential_pkce: ,
89
+ o_auth2_server_verification_url: ,
90
+ o_auth2_server_user_code_length: ,
91
+ o_auth2_server_user_code_format: ,
92
+ o_auth2_server_device_code_duration: ,
93
+ o_auth2_server_discovery_url:
80
94
  )
81
95
  @id = id
82
96
  @created_at = created_at
@@ -99,6 +113,7 @@ module Appwrite
99
113
  @pinged_at = pinged_at
100
114
  @labels = labels
101
115
  @status = status
116
+ @onboarding = onboarding
102
117
  @auth_methods = auth_methods
103
118
  @services = services
104
119
  @protocols = protocols
@@ -108,11 +123,17 @@ module Appwrite
108
123
  @o_auth2_server_enabled = o_auth2_server_enabled
109
124
  @o_auth2_server_authorization_url = o_auth2_server_authorization_url
110
125
  @o_auth2_server_scopes = o_auth2_server_scopes
126
+ @o_auth2_server_default_scopes = o_auth2_server_default_scopes
127
+ @o_auth2_server_authorization_details_types = o_auth2_server_authorization_details_types
111
128
  @o_auth2_server_access_token_duration = o_auth2_server_access_token_duration
112
129
  @o_auth2_server_refresh_token_duration = o_auth2_server_refresh_token_duration
113
130
  @o_auth2_server_public_access_token_duration = o_auth2_server_public_access_token_duration
114
131
  @o_auth2_server_public_refresh_token_duration = o_auth2_server_public_refresh_token_duration
115
132
  @o_auth2_server_confidential_pkce = o_auth2_server_confidential_pkce
133
+ @o_auth2_server_verification_url = o_auth2_server_verification_url
134
+ @o_auth2_server_user_code_length = o_auth2_server_user_code_length
135
+ @o_auth2_server_user_code_format = o_auth2_server_user_code_format
136
+ @o_auth2_server_device_code_duration = o_auth2_server_device_code_duration
116
137
  @o_auth2_server_discovery_url = o_auth2_server_discovery_url
117
138
  end
118
139
 
@@ -139,20 +160,27 @@ module Appwrite
139
160
  pinged_at: map["pingedAt"],
140
161
  labels: map["labels"],
141
162
  status: map["status"],
163
+ onboarding: map["onboarding"],
142
164
  auth_methods: map["authMethods"].map { |it| ProjectAuthMethod.from(map: it) },
143
165
  services: map["services"].map { |it| ProjectService.from(map: it) },
144
166
  protocols: map["protocols"].map { |it| ProjectProtocol.from(map: it) },
145
167
  blocks: map["blocks"].map { |it| Block.from(map: it) },
146
168
  console_accessed_at: map["consoleAccessedAt"],
147
- billing_limits: BillingLimits.from(map: map["billingLimits"]),
169
+ billing_limits: map["billingLimits"].nil? ? nil : BillingLimits.from(map: map["billingLimits"]),
148
170
  o_auth2_server_enabled: map["oAuth2ServerEnabled"],
149
171
  o_auth2_server_authorization_url: map["oAuth2ServerAuthorizationUrl"],
150
172
  o_auth2_server_scopes: map["oAuth2ServerScopes"],
173
+ o_auth2_server_default_scopes: map["oAuth2ServerDefaultScopes"],
174
+ o_auth2_server_authorization_details_types: map["oAuth2ServerAuthorizationDetailsTypes"],
151
175
  o_auth2_server_access_token_duration: map["oAuth2ServerAccessTokenDuration"],
152
176
  o_auth2_server_refresh_token_duration: map["oAuth2ServerRefreshTokenDuration"],
153
177
  o_auth2_server_public_access_token_duration: map["oAuth2ServerPublicAccessTokenDuration"],
154
178
  o_auth2_server_public_refresh_token_duration: map["oAuth2ServerPublicRefreshTokenDuration"],
155
179
  o_auth2_server_confidential_pkce: map["oAuth2ServerConfidentialPkce"],
180
+ o_auth2_server_verification_url: map["oAuth2ServerVerificationUrl"],
181
+ o_auth2_server_user_code_length: map["oAuth2ServerUserCodeLength"],
182
+ o_auth2_server_user_code_format: map["oAuth2ServerUserCodeFormat"],
183
+ o_auth2_server_device_code_duration: map["oAuth2ServerDeviceCodeDuration"],
156
184
  o_auth2_server_discovery_url: map["oAuth2ServerDiscoveryUrl"]
157
185
  )
158
186
  end
@@ -180,20 +208,27 @@ module Appwrite
180
208
  "pingedAt": @pinged_at,
181
209
  "labels": @labels,
182
210
  "status": @status,
211
+ "onboarding": @onboarding,
183
212
  "authMethods": @auth_methods.map { |it| it.to_map },
184
213
  "services": @services.map { |it| it.to_map },
185
214
  "protocols": @protocols.map { |it| it.to_map },
186
215
  "blocks": @blocks.map { |it| it.to_map },
187
216
  "consoleAccessedAt": @console_accessed_at,
188
- "billingLimits": @billing_limits.to_map,
217
+ "billingLimits": @billing_limits&.to_map,
189
218
  "oAuth2ServerEnabled": @o_auth2_server_enabled,
190
219
  "oAuth2ServerAuthorizationUrl": @o_auth2_server_authorization_url,
191
220
  "oAuth2ServerScopes": @o_auth2_server_scopes,
221
+ "oAuth2ServerDefaultScopes": @o_auth2_server_default_scopes,
222
+ "oAuth2ServerAuthorizationDetailsTypes": @o_auth2_server_authorization_details_types,
192
223
  "oAuth2ServerAccessTokenDuration": @o_auth2_server_access_token_duration,
193
224
  "oAuth2ServerRefreshTokenDuration": @o_auth2_server_refresh_token_duration,
194
225
  "oAuth2ServerPublicAccessTokenDuration": @o_auth2_server_public_access_token_duration,
195
226
  "oAuth2ServerPublicRefreshTokenDuration": @o_auth2_server_public_refresh_token_duration,
196
227
  "oAuth2ServerConfidentialPkce": @o_auth2_server_confidential_pkce,
228
+ "oAuth2ServerVerificationUrl": @o_auth2_server_verification_url,
229
+ "oAuth2ServerUserCodeLength": @o_auth2_server_user_code_length,
230
+ "oAuth2ServerUserCodeFormat": @o_auth2_server_user_code_format,
231
+ "oAuth2ServerDeviceCodeDuration": @o_auth2_server_device_code_duration,
197
232
  "oAuth2ServerDiscoveryUrl": @o_auth2_server_discovery_url
198
233
  }
199
234
  end
@@ -0,0 +1,77 @@
1
+ #frozen_string_literal: true
2
+
3
+ module Appwrite
4
+ module Models
5
+ class UsageBillingPlan
6
+ attr_reader :bandwidth
7
+ attr_reader :executions
8
+ attr_reader :member
9
+ attr_reader :realtime
10
+ attr_reader :realtime_messages
11
+ attr_reader :realtime_bandwidth
12
+ attr_reader :storage
13
+ attr_reader :users
14
+ attr_reader :gb_hours
15
+ attr_reader :image_transformations
16
+ attr_reader :credits
17
+
18
+ def initialize(
19
+ bandwidth:,
20
+ executions:,
21
+ member:,
22
+ realtime:,
23
+ realtime_messages:,
24
+ realtime_bandwidth:,
25
+ storage:,
26
+ users:,
27
+ gb_hours:,
28
+ image_transformations:,
29
+ credits:
30
+ )
31
+ @bandwidth = bandwidth
32
+ @executions = executions
33
+ @member = member
34
+ @realtime = realtime
35
+ @realtime_messages = realtime_messages
36
+ @realtime_bandwidth = realtime_bandwidth
37
+ @storage = storage
38
+ @users = users
39
+ @gb_hours = gb_hours
40
+ @image_transformations = image_transformations
41
+ @credits = credits
42
+ end
43
+
44
+ def self.from(map:)
45
+ UsageBillingPlan.new(
46
+ bandwidth: AdditionalResource.from(map: map["bandwidth"]),
47
+ executions: AdditionalResource.from(map: map["executions"]),
48
+ member: AdditionalResource.from(map: map["member"]),
49
+ realtime: AdditionalResource.from(map: map["realtime"]),
50
+ realtime_messages: AdditionalResource.from(map: map["realtimeMessages"]),
51
+ realtime_bandwidth: AdditionalResource.from(map: map["realtimeBandwidth"]),
52
+ storage: AdditionalResource.from(map: map["storage"]),
53
+ users: AdditionalResource.from(map: map["users"]),
54
+ gb_hours: AdditionalResource.from(map: map["GBHours"]),
55
+ image_transformations: AdditionalResource.from(map: map["imageTransformations"]),
56
+ credits: AdditionalResource.from(map: map["credits"])
57
+ )
58
+ end
59
+
60
+ def to_map
61
+ {
62
+ "bandwidth": @bandwidth.to_map,
63
+ "executions": @executions.to_map,
64
+ "member": @member.to_map,
65
+ "realtime": @realtime.to_map,
66
+ "realtimeMessages": @realtime_messages.to_map,
67
+ "realtimeBandwidth": @realtime_bandwidth.to_map,
68
+ "storage": @storage.to_map,
69
+ "users": @users.to_map,
70
+ "GBHours": @gb_hours.to_map,
71
+ "imageTransformations": @image_transformations.to_map,
72
+ "credits": @credits.to_map
73
+ }
74
+ end
75
+ end
76
+ end
77
+ end
@@ -17,6 +17,11 @@ module Appwrite
17
17
  attr_reader :email
18
18
  attr_reader :phone
19
19
  attr_reader :email_verification
20
+ attr_reader :email_canonical
21
+ attr_reader :email_is_free
22
+ attr_reader :email_is_disposable
23
+ attr_reader :email_is_corporate
24
+ attr_reader :email_is_canonical
20
25
  attr_reader :phone_verification
21
26
  attr_reader :mfa
22
27
  attr_reader :prefs
@@ -40,6 +45,11 @@ module Appwrite
40
45
  email:,
41
46
  phone:,
42
47
  email_verification:,
48
+ email_canonical: ,
49
+ email_is_free: ,
50
+ email_is_disposable: ,
51
+ email_is_corporate: ,
52
+ email_is_canonical: ,
43
53
  phone_verification:,
44
54
  mfa:,
45
55
  prefs:,
@@ -62,6 +72,11 @@ module Appwrite
62
72
  @email = email
63
73
  @phone = phone
64
74
  @email_verification = email_verification
75
+ @email_canonical = email_canonical
76
+ @email_is_free = email_is_free
77
+ @email_is_disposable = email_is_disposable
78
+ @email_is_corporate = email_is_corporate
79
+ @email_is_canonical = email_is_canonical
65
80
  @phone_verification = phone_verification
66
81
  @mfa = mfa
67
82
  @prefs = prefs
@@ -87,6 +102,11 @@ module Appwrite
87
102
  email: map["email"],
88
103
  phone: map["phone"],
89
104
  email_verification: map["emailVerification"],
105
+ email_canonical: map["emailCanonical"],
106
+ email_is_free: map["emailIsFree"],
107
+ email_is_disposable: map["emailIsDisposable"],
108
+ email_is_corporate: map["emailIsCorporate"],
109
+ email_is_canonical: map["emailIsCanonical"],
90
110
  phone_verification: map["phoneVerification"],
91
111
  mfa: map["mfa"],
92
112
  prefs: Preferences.from(map: map["prefs"]),
@@ -113,6 +133,11 @@ module Appwrite
113
133
  "email": @email,
114
134
  "phone": @phone,
115
135
  "emailVerification": @email_verification,
136
+ "emailCanonical": @email_canonical,
137
+ "emailIsFree": @email_is_free,
138
+ "emailIsDisposable": @email_is_disposable,
139
+ "emailIsCorporate": @email_is_corporate,
140
+ "emailIsCanonical": @email_is_canonical,
116
141
  "phoneVerification": @phone_verification,
117
142
  "mfa": @mfa,
118
143
  "prefs": @prefs.to_map,
@@ -232,6 +232,18 @@ module Appwrite
232
232
  return Query.new("distanceLessThan", attribute, [[values, distance, meters]]).to_s
233
233
  end
234
234
 
235
+ def vector_dot(attribute, vector)
236
+ return Query.new("vectorDot", attribute, [vector]).to_s
237
+ end
238
+
239
+ def vector_cosine(attribute, vector)
240
+ return Query.new("vectorCosine", attribute, [vector]).to_s
241
+ end
242
+
243
+ def vector_euclidean(attribute, vector)
244
+ return Query.new("vectorEuclidean", attribute, [vector]).to_s
245
+ end
246
+
235
247
  def intersects(attribute, values)
236
248
  return Query.new("intersects", attribute, [values]).to_s
237
249
  end
@@ -265,4 +277,4 @@ module Appwrite
265
277
  end
266
278
  end
267
279
  end
268
- end
280
+ end
@@ -19,6 +19,7 @@ module Appwrite
19
19
 
20
20
  api_headers = {
21
21
  "X-Appwrite-Project": @client.get_config('project'),
22
+ "accept": 'application/json',
22
23
  }
23
24
 
24
25
  @client.call(
@@ -70,6 +71,7 @@ module Appwrite
70
71
  api_headers = {
71
72
  "X-Appwrite-Project": @client.get_config('project'),
72
73
  "content-type": 'application/json',
74
+ "accept": 'application/json',
73
75
  }
74
76
 
75
77
  @client.call(
@@ -114,6 +116,7 @@ module Appwrite
114
116
  api_headers = {
115
117
  "X-Appwrite-Project": @client.get_config('project'),
116
118
  "content-type": 'application/json',
119
+ "accept": 'application/json',
117
120
  }
118
121
 
119
122
  @client.call(
@@ -142,6 +145,7 @@ module Appwrite
142
145
 
143
146
  api_headers = {
144
147
  "X-Appwrite-Project": @client.get_config('project'),
148
+ "accept": 'application/json',
145
149
  }
146
150
 
147
151
  @client.call(
@@ -203,6 +207,7 @@ module Appwrite
203
207
  api_headers = {
204
208
  "X-Appwrite-Project": @client.get_config('project'),
205
209
  "content-type": 'application/json',
210
+ "accept": 'application/json',
206
211
  }
207
212
 
208
213
  @client.call(
@@ -232,6 +237,7 @@ module Appwrite
232
237
 
233
238
  api_headers = {
234
239
  "X-Appwrite-Project": @client.get_config('project'),
240
+ "accept": 'application/json',
235
241
  }
236
242
 
237
243
  @client.call(
@@ -263,6 +269,7 @@ module Appwrite
263
269
  api_headers = {
264
270
  "X-Appwrite-Project": @client.get_config('project'),
265
271
  "content-type": 'application/json',
272
+ "accept": 'application/json',
266
273
  }
267
274
 
268
275
  @client.call(
@@ -297,6 +304,7 @@ module Appwrite
297
304
  api_headers = {
298
305
  "X-Appwrite-Project": @client.get_config('project'),
299
306
  "content-type": 'application/json',
307
+ "accept": 'application/json',
300
308
  }
301
309
 
302
310
  @client.call(
@@ -336,6 +344,7 @@ module Appwrite
336
344
  api_headers = {
337
345
  "X-Appwrite-Project": @client.get_config('project'),
338
346
  "content-type": 'application/json',
347
+ "accept": 'application/json',
339
348
  }
340
349
 
341
350
  @client.call(
@@ -399,6 +408,7 @@ module Appwrite
399
408
  api_headers = {
400
409
  "X-Appwrite-Project": @client.get_config('project'),
401
410
  "content-type": 'application/json',
411
+ "accept": 'application/json',
402
412
  }
403
413
 
404
414
  @client.call(
@@ -440,6 +450,7 @@ module Appwrite
440
450
  api_headers = {
441
451
  "X-Appwrite-Project": @client.get_config('project'),
442
452
  "content-type": 'application/json',
453
+ "accept": 'application/json',
443
454
  }
444
455
 
445
456
  @client.call(
@@ -464,6 +475,7 @@ module Appwrite
464
475
 
465
476
  api_headers = {
466
477
  "X-Appwrite-Project": @client.get_config('project'),
478
+ "accept": 'application/json',
467
479
  }
468
480
 
469
481
  @client.call(
@@ -491,6 +503,7 @@ module Appwrite
491
503
 
492
504
  api_headers = {
493
505
  "X-Appwrite-Project": @client.get_config('project'),
506
+ "accept": 'application/json',
494
507
  }
495
508
 
496
509
  @client.call(
@@ -520,6 +533,7 @@ module Appwrite
520
533
  api_headers = {
521
534
  "X-Appwrite-Project": @client.get_config('project'),
522
535
  "content-type": 'application/json',
536
+ "accept": 'application/json',
523
537
  }
524
538
 
525
539
  @client.call(
@@ -548,6 +562,7 @@ module Appwrite
548
562
  api_headers = {
549
563
  "X-Appwrite-Project": @client.get_config('project'),
550
564
  "content-type": 'application/json',
565
+ "accept": 'application/json',
551
566
  }
552
567
 
553
568
  @client.call(
@@ -579,6 +594,7 @@ module Appwrite
579
594
  api_headers = {
580
595
  "X-Appwrite-Project": @client.get_config('project'),
581
596
  "content-type": 'application/json',
597
+ "accept": 'application/json',
582
598
  }
583
599
 
584
600
  @client.call(
@@ -614,6 +630,7 @@ module Appwrite
614
630
  api_headers = {
615
631
  "X-Appwrite-Project": @client.get_config('project'),
616
632
  "content-type": 'application/json',
633
+ "accept": 'application/json',
617
634
  }
618
635
 
619
636
  @client.call(
@@ -655,6 +672,7 @@ module Appwrite
655
672
  api_headers = {
656
673
  "X-Appwrite-Project": @client.get_config('project'),
657
674
  "content-type": 'application/json',
675
+ "accept": 'application/json',
658
676
  }
659
677
 
660
678
  @client.call(
@@ -679,6 +697,7 @@ module Appwrite
679
697
 
680
698
  api_headers = {
681
699
  "X-Appwrite-Project": @client.get_config('project'),
700
+ "accept": 'application/json',
682
701
  }
683
702
 
684
703
  @client.call(
@@ -712,6 +731,7 @@ module Appwrite
712
731
  api_headers = {
713
732
  "X-Appwrite-Project": @client.get_config('project'),
714
733
  "content-type": 'application/json',
734
+ "accept": 'application/json',
715
735
  }
716
736
 
717
737
  @client.call(
@@ -756,6 +776,7 @@ module Appwrite
756
776
  api_headers = {
757
777
  "X-Appwrite-Project": @client.get_config('project'),
758
778
  "content-type": 'application/json',
779
+ "accept": 'application/json',
759
780
  }
760
781
 
761
782
  @client.call(
@@ -808,6 +829,7 @@ module Appwrite
808
829
  api_headers = {
809
830
  "X-Appwrite-Project": @client.get_config('project'),
810
831
  "content-type": 'application/json',
832
+ "accept": 'application/json',
811
833
  }
812
834
 
813
835
  @client.call(
@@ -833,6 +855,7 @@ module Appwrite
833
855
 
834
856
  api_headers = {
835
857
  "X-Appwrite-Project": @client.get_config('project'),
858
+ "accept": 'application/json',
836
859
  }
837
860
 
838
861
  @client.call(
@@ -889,6 +912,7 @@ module Appwrite
889
912
  api_headers = {
890
913
  "X-Appwrite-Project": @client.get_config('project'),
891
914
  "content-type": 'application/json',
915
+ "accept": 'application/json',
892
916
  }
893
917
 
894
918
  @client.call(
@@ -931,6 +955,7 @@ module Appwrite
931
955
  api_headers = {
932
956
  "X-Appwrite-Project": @client.get_config('project'),
933
957
  "content-type": 'application/json',
958
+ "accept": 'application/json',
934
959
  }
935
960
 
936
961
  @client.call(
@@ -973,6 +998,7 @@ module Appwrite
973
998
  api_headers = {
974
999
  "X-Appwrite-Project": @client.get_config('project'),
975
1000
  "content-type": 'application/json',
1001
+ "accept": 'application/json',
976
1002
  }
977
1003
 
978
1004
  @client.call(
@@ -1015,6 +1041,7 @@ module Appwrite
1015
1041
  api_headers = {
1016
1042
  "X-Appwrite-Project": @client.get_config('project'),
1017
1043
  "content-type": 'application/json',
1044
+ "accept": 'application/json',
1018
1045
  }
1019
1046
 
1020
1047
  @client.call(
@@ -1054,6 +1081,7 @@ module Appwrite
1054
1081
  api_headers = {
1055
1082
  "X-Appwrite-Project": @client.get_config('project'),
1056
1083
  "content-type": 'application/json',
1084
+ "accept": 'application/json',
1057
1085
  }
1058
1086
 
1059
1087
  @client.call(
@@ -1085,6 +1113,7 @@ module Appwrite
1085
1113
 
1086
1114
  api_headers = {
1087
1115
  "X-Appwrite-Project": @client.get_config('project'),
1116
+ "accept": 'application/json',
1088
1117
  }
1089
1118
 
1090
1119
  @client.call(
@@ -1118,6 +1147,7 @@ module Appwrite
1118
1147
  api_headers = {
1119
1148
  "X-Appwrite-Project": @client.get_config('project'),
1120
1149
  "content-type": 'application/json',
1150
+ "accept": 'application/json',
1121
1151
  }
1122
1152
 
1123
1153
  @client.call(
@@ -1179,6 +1209,7 @@ module Appwrite
1179
1209
  api_headers = {
1180
1210
  "X-Appwrite-Project": @client.get_config('project'),
1181
1211
  "content-type": 'application/json',
1212
+ "accept": 'application/json',
1182
1213
  }
1183
1214
 
1184
1215
  @client.call(
@@ -1231,6 +1262,7 @@ module Appwrite
1231
1262
  api_headers = {
1232
1263
  "X-Appwrite-Project": @client.get_config('project'),
1233
1264
  "content-type": 'application/json',
1265
+ "accept": 'application/json',
1234
1266
  }
1235
1267
 
1236
1268
  @client.call(
@@ -1285,6 +1317,7 @@ module Appwrite
1285
1317
  api_headers = {
1286
1318
  "X-Appwrite-Project": @client.get_config('project'),
1287
1319
  "content-type": 'application/json',
1320
+ "accept": 'application/json',
1288
1321
  }
1289
1322
 
1290
1323
  @client.call(
@@ -1312,7 +1345,7 @@ module Appwrite
1312
1345
  # about session
1313
1346
  # limits](https://appwrite.io/docs/authentication-security#limits).
1314
1347
  #
1315
- # @param [OAuthProvider] provider OAuth2 Provider. Currently, supported providers are: amazon, apple, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, fusionauth, github, gitlab, google, keycloak, kick, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, x, yahoo, yammer, yandex, zoho, zoom.
1348
+ # @param [OAuthProvider] provider OAuth2 Provider. Currently, supported providers are: amazon, apple, appwrite, auth0, authentik, autodesk, bitbucket, bitly, box, dailymotion, discord, disqus, dropbox, etsy, facebook, figma, fusionauth, github, gitlab, google, keycloak, kick, linkedin, microsoft, notion, oidc, okta, paypal, paypalSandbox, podio, salesforce, slack, spotify, stripe, tradeshift, tradeshiftBox, twitch, wordpress, x, yahoo, yammer, yandex, zoho, zoom.
1316
1349
  # @param [String] success URL to redirect back to your app after a successful login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
1317
1350
  # @param [String] failure URL to redirect back to your app after a failed login attempt. Only URLs from hostnames in your project's platform list are allowed. This requirement helps to prevent an [open redirect](https://cheatsheetseries.owasp.org/cheatsheets/Unvalidated_Redirects_and_Forwards_Cheat_Sheet.html) attack against your project API.
1318
1351
  # @param [Array] scopes A list of custom OAuth2 scopes. Check each provider internal docs for a list of supported scopes. Maximum of 100 scopes are allowed, each 4096 characters long.
@@ -1334,6 +1367,7 @@ module Appwrite
1334
1367
 
1335
1368
  api_headers = {
1336
1369
  "X-Appwrite-Project": @client.get_config('project'),
1370
+ "accept": 'text/html',
1337
1371
  }
1338
1372
 
1339
1373
  @client.call(
@@ -1380,6 +1414,7 @@ module Appwrite
1380
1414
  api_headers = {
1381
1415
  "X-Appwrite-Project": @client.get_config('project'),
1382
1416
  "content-type": 'application/json',
1417
+ "accept": 'application/json',
1383
1418
  }
1384
1419
 
1385
1420
  @client.call(
@@ -1425,6 +1460,7 @@ module Appwrite
1425
1460
  api_headers = {
1426
1461
  "X-Appwrite-Project": @client.get_config('project'),
1427
1462
  "content-type": 'application/json',
1463
+ "accept": 'application/json',
1428
1464
  }
1429
1465
 
1430
1466
  @client.call(
@@ -1473,6 +1509,7 @@ module Appwrite
1473
1509
  api_headers = {
1474
1510
  "X-Appwrite-Project": @client.get_config('project'),
1475
1511
  "content-type": 'application/json',
1512
+ "accept": 'application/json',
1476
1513
  }
1477
1514
 
1478
1515
  @client.call(
@@ -1513,6 +1550,7 @@ module Appwrite
1513
1550
  api_headers = {
1514
1551
  "X-Appwrite-Project": @client.get_config('project'),
1515
1552
  "content-type": 'application/json',
1553
+ "accept": 'application/json',
1516
1554
  }
1517
1555
 
1518
1556
  @client.call(
@@ -1556,6 +1594,7 @@ module Appwrite
1556
1594
  api_headers = {
1557
1595
  "X-Appwrite-Project": @client.get_config('project'),
1558
1596
  "content-type": 'application/json',
1597
+ "accept": 'application/json',
1559
1598
  }
1560
1599
 
1561
1600
  @client.call(
@@ -1588,6 +1627,7 @@ module Appwrite
1588
1627
  api_headers = {
1589
1628
  "X-Appwrite-Project": @client.get_config('project'),
1590
1629
  "content-type": 'application/json',
1630
+ "accept": 'application/json',
1591
1631
  }
1592
1632
 
1593
1633
  @client.call(
@@ -1628,6 +1668,7 @@ module Appwrite
1628
1668
  api_headers = {
1629
1669
  "X-Appwrite-Project": @client.get_config('project'),
1630
1670
  "content-type": 'application/json',
1671
+ "accept": 'application/json',
1631
1672
  }
1632
1673
 
1633
1674
  @client.call(
@@ -21,6 +21,7 @@ module Appwrite
21
21
 
22
22
  api_headers = {
23
23
  "X-Appwrite-Project": @client.get_config('project'),
24
+ "accept": 'application/json',
24
25
  }
25
26
 
26
27
  @client.call(
@@ -52,6 +53,7 @@ module Appwrite
52
53
 
53
54
  api_headers = {
54
55
  "X-Appwrite-Project": @client.get_config('project'),
56
+ "accept": 'application/json',
55
57
  }
56
58
 
57
59
  @client.call(
@@ -25,6 +25,7 @@ module Appwrite
25
25
 
26
26
  api_headers = {
27
27
  "X-Appwrite-Project": @client.get_config('project'),
28
+ "accept": 'application/json',
28
29
  }
29
30
 
30
31
  @client.call(
@@ -57,6 +58,7 @@ module Appwrite
57
58
 
58
59
  api_headers = {
59
60
  "X-Appwrite-Project": @client.get_config('project'),
61
+ "accept": 'application/json',
60
62
  }
61
63
 
62
64
  @client.call(
@@ -125,6 +127,7 @@ module Appwrite
125
127
 
126
128
  api_headers = {
127
129
  "X-Appwrite-Project": @client.get_config('project'),
130
+ "accept": 'application/json',
128
131
  }
129
132
 
130
133
  @client.call(
@@ -162,6 +165,7 @@ module Appwrite
162
165
 
163
166
  api_headers = {
164
167
  "X-Appwrite-Project": @client.get_config('project'),
168
+ "accept": 'application/json',
165
169
  }
166
170
 
167
171
  @client.call(