appwrite 25.0.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +36 -6
  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 +9 -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 +2 -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/policy_password_strength.rb +52 -0
  32. data/lib/appwrite/models/program.rb +67 -0
  33. data/lib/appwrite/models/project.rb +93 -13
  34. data/lib/appwrite/models/usage_billing_plan.rb +77 -0
  35. data/lib/appwrite/models/user.rb +25 -0
  36. data/lib/appwrite/query.rb +13 -1
  37. data/lib/appwrite/services/account.rb +88 -2
  38. data/lib/appwrite/services/activities.rb +4 -0
  39. data/lib/appwrite/services/advisor.rb +9 -0
  40. data/lib/appwrite/services/avatars.rb +16 -0
  41. data/lib/appwrite/services/backups.rb +37 -1
  42. data/lib/appwrite/services/databases.rb +178 -0
  43. data/lib/appwrite/services/functions.rb +56 -4
  44. data/lib/appwrite/services/graphql.rb +4 -0
  45. data/lib/appwrite/services/locale.rb +16 -0
  46. data/lib/appwrite/services/messaging.rb +188 -132
  47. data/lib/appwrite/services/organization.rb +278 -3
  48. data/lib/appwrite/services/presences.rb +9 -0
  49. data/lib/appwrite/services/project.rb +417 -49
  50. data/lib/appwrite/services/proxy.rb +15 -0
  51. data/lib/appwrite/services/sites.rb +50 -1
  52. data/lib/appwrite/services/storage.rb +24 -0
  53. data/lib/appwrite/services/tables_db.rb +139 -1
  54. data/lib/appwrite/services/teams.rb +24 -0
  55. data/lib/appwrite/services/tokens.rb +9 -0
  56. data/lib/appwrite/services/users.rb +81 -1
  57. data/lib/appwrite/services/webhooks.rb +11 -0
  58. data/lib/appwrite.rb +17 -15
  59. metadata +19 -17
  60. data/lib/appwrite/enums/health_antivirus_status.rb +0 -9
  61. data/lib/appwrite/enums/health_check_status.rb +0 -8
  62. data/lib/appwrite/enums/health_queue_name.rb +0 -19
  63. data/lib/appwrite/models/health_antivirus.rb +0 -49
  64. data/lib/appwrite/models/health_certificate.rb +0 -52
  65. data/lib/appwrite/models/health_queue.rb +0 -27
  66. data/lib/appwrite/models/health_status.rb +0 -53
  67. data/lib/appwrite/models/health_status_list.rb +0 -32
  68. data/lib/appwrite/models/health_time.rb +0 -37
  69. data/lib/appwrite/models/usage_event.rb +0 -72
  70. data/lib/appwrite/models/usage_event_list.rb +0 -32
  71. data/lib/appwrite/models/usage_gauge.rb +0 -47
  72. data/lib/appwrite/models/usage_gauge_list.rb +0 -32
  73. data/lib/appwrite/services/health.rb +0 -630
  74. data/lib/appwrite/services/usage.rb +0 -86
@@ -18,6 +18,8 @@ module Appwrite
18
18
  }
19
19
 
20
20
  api_headers = {
21
+ "X-Appwrite-Project": @client.get_config('project'),
22
+ "accept": 'application/json',
21
23
  }
22
24
 
23
25
  @client.call(
@@ -67,7 +69,9 @@ module Appwrite
67
69
  }
68
70
 
69
71
  api_headers = {
72
+ "X-Appwrite-Project": @client.get_config('project'),
70
73
  "content-type": 'application/json',
74
+ "accept": 'application/json',
71
75
  }
72
76
 
73
77
  @client.call(
@@ -110,7 +114,9 @@ module Appwrite
110
114
  }
111
115
 
112
116
  api_headers = {
117
+ "X-Appwrite-Project": @client.get_config('project'),
113
118
  "content-type": 'application/json',
119
+ "accept": 'application/json',
114
120
  }
115
121
 
116
122
  @client.call(
@@ -138,6 +144,8 @@ module Appwrite
138
144
  }
139
145
 
140
146
  api_headers = {
147
+ "X-Appwrite-Project": @client.get_config('project'),
148
+ "accept": 'application/json',
141
149
  }
142
150
 
143
151
  @client.call(
@@ -167,6 +175,7 @@ module Appwrite
167
175
  }
168
176
 
169
177
  api_headers = {
178
+ "X-Appwrite-Project": @client.get_config('project'),
170
179
  "content-type": 'application/json',
171
180
  }
172
181
 
@@ -196,7 +205,9 @@ module Appwrite
196
205
  }
197
206
 
198
207
  api_headers = {
208
+ "X-Appwrite-Project": @client.get_config('project'),
199
209
  "content-type": 'application/json',
210
+ "accept": 'application/json',
200
211
  }
201
212
 
202
213
  @client.call(
@@ -225,6 +236,8 @@ module Appwrite
225
236
  }
226
237
 
227
238
  api_headers = {
239
+ "X-Appwrite-Project": @client.get_config('project'),
240
+ "accept": 'application/json',
228
241
  }
229
242
 
230
243
  @client.call(
@@ -254,7 +267,9 @@ module Appwrite
254
267
  }
255
268
 
256
269
  api_headers = {
270
+ "X-Appwrite-Project": @client.get_config('project'),
257
271
  "content-type": 'application/json',
272
+ "accept": 'application/json',
258
273
  }
259
274
 
260
275
  @client.call(
@@ -287,7 +302,9 @@ module Appwrite
287
302
  }
288
303
 
289
304
  api_headers = {
305
+ "X-Appwrite-Project": @client.get_config('project'),
290
306
  "content-type": 'application/json',
307
+ "accept": 'application/json',
291
308
  }
292
309
 
293
310
  @client.call(
@@ -325,7 +342,9 @@ module Appwrite
325
342
  }
326
343
 
327
344
  api_headers = {
345
+ "X-Appwrite-Project": @client.get_config('project'),
328
346
  "content-type": 'application/json',
347
+ "accept": 'application/json',
329
348
  }
330
349
 
331
350
  @client.call(
@@ -355,6 +374,7 @@ module Appwrite
355
374
  }
356
375
 
357
376
  api_headers = {
377
+ "X-Appwrite-Project": @client.get_config('project'),
358
378
  "content-type": 'application/json',
359
379
  }
360
380
 
@@ -386,7 +406,9 @@ module Appwrite
386
406
  }
387
407
 
388
408
  api_headers = {
409
+ "X-Appwrite-Project": @client.get_config('project'),
389
410
  "content-type": 'application/json',
411
+ "accept": 'application/json',
390
412
  }
391
413
 
392
414
  @client.call(
@@ -426,7 +448,9 @@ module Appwrite
426
448
  }
427
449
 
428
450
  api_headers = {
451
+ "X-Appwrite-Project": @client.get_config('project'),
429
452
  "content-type": 'application/json',
453
+ "accept": 'application/json',
430
454
  }
431
455
 
432
456
  @client.call(
@@ -450,6 +474,8 @@ module Appwrite
450
474
  }
451
475
 
452
476
  api_headers = {
477
+ "X-Appwrite-Project": @client.get_config('project'),
478
+ "accept": 'application/json',
453
479
  }
454
480
 
455
481
  @client.call(
@@ -476,6 +502,8 @@ module Appwrite
476
502
  }
477
503
 
478
504
  api_headers = {
505
+ "X-Appwrite-Project": @client.get_config('project'),
506
+ "accept": 'application/json',
479
507
  }
480
508
 
481
509
  @client.call(
@@ -503,7 +531,9 @@ module Appwrite
503
531
  }
504
532
 
505
533
  api_headers = {
534
+ "X-Appwrite-Project": @client.get_config('project'),
506
535
  "content-type": 'application/json',
536
+ "accept": 'application/json',
507
537
  }
508
538
 
509
539
  @client.call(
@@ -530,7 +560,9 @@ module Appwrite
530
560
  }
531
561
 
532
562
  api_headers = {
563
+ "X-Appwrite-Project": @client.get_config('project'),
533
564
  "content-type": 'application/json',
565
+ "accept": 'application/json',
534
566
  }
535
567
 
536
568
  @client.call(
@@ -560,7 +592,9 @@ module Appwrite
560
592
  }
561
593
 
562
594
  api_headers = {
595
+ "X-Appwrite-Project": @client.get_config('project'),
563
596
  "content-type": 'application/json',
597
+ "accept": 'application/json',
564
598
  }
565
599
 
566
600
  @client.call(
@@ -578,7 +612,7 @@ module Appwrite
578
612
  # OAuth, Team Invites and Magic URL, oldPassword is optional.
579
613
  #
580
614
  # @param [String] password New user password. Must be at least 8 chars.
581
- # @param [String] old_password Current user password. Must be at least 8 chars.
615
+ # @param [String] old_password Current user password. Max length: 256 chars.
582
616
  #
583
617
  # @return [User]
584
618
  def update_password(password:, old_password: nil)
@@ -594,7 +628,9 @@ module Appwrite
594
628
  }
595
629
 
596
630
  api_headers = {
631
+ "X-Appwrite-Project": @client.get_config('project'),
597
632
  "content-type": 'application/json',
633
+ "accept": 'application/json',
598
634
  }
599
635
 
600
636
  @client.call(
@@ -634,7 +670,9 @@ module Appwrite
634
670
  }
635
671
 
636
672
  api_headers = {
673
+ "X-Appwrite-Project": @client.get_config('project'),
637
674
  "content-type": 'application/json',
675
+ "accept": 'application/json',
638
676
  }
639
677
 
640
678
  @client.call(
@@ -658,6 +696,8 @@ module Appwrite
658
696
  }
659
697
 
660
698
  api_headers = {
699
+ "X-Appwrite-Project": @client.get_config('project'),
700
+ "accept": 'application/json',
661
701
  }
662
702
 
663
703
  @client.call(
@@ -689,7 +729,9 @@ module Appwrite
689
729
  }
690
730
 
691
731
  api_headers = {
732
+ "X-Appwrite-Project": @client.get_config('project'),
692
733
  "content-type": 'application/json',
734
+ "accept": 'application/json',
693
735
  }
694
736
 
695
737
  @client.call(
@@ -732,7 +774,9 @@ module Appwrite
732
774
  }
733
775
 
734
776
  api_headers = {
777
+ "X-Appwrite-Project": @client.get_config('project'),
735
778
  "content-type": 'application/json',
779
+ "accept": 'application/json',
736
780
  }
737
781
 
738
782
  @client.call(
@@ -783,7 +827,9 @@ module Appwrite
783
827
  }
784
828
 
785
829
  api_headers = {
830
+ "X-Appwrite-Project": @client.get_config('project'),
786
831
  "content-type": 'application/json',
832
+ "accept": 'application/json',
787
833
  }
788
834
 
789
835
  @client.call(
@@ -808,6 +854,8 @@ module Appwrite
808
854
  }
809
855
 
810
856
  api_headers = {
857
+ "X-Appwrite-Project": @client.get_config('project'),
858
+ "accept": 'application/json',
811
859
  }
812
860
 
813
861
  @client.call(
@@ -832,6 +880,7 @@ module Appwrite
832
880
  }
833
881
 
834
882
  api_headers = {
883
+ "X-Appwrite-Project": @client.get_config('project'),
835
884
  "content-type": 'application/json',
836
885
  }
837
886
 
@@ -861,7 +910,9 @@ module Appwrite
861
910
  }
862
911
 
863
912
  api_headers = {
913
+ "X-Appwrite-Project": @client.get_config('project'),
864
914
  "content-type": 'application/json',
915
+ "accept": 'application/json',
865
916
  }
866
917
 
867
918
  @client.call(
@@ -902,7 +953,9 @@ module Appwrite
902
953
  }
903
954
 
904
955
  api_headers = {
956
+ "X-Appwrite-Project": @client.get_config('project'),
905
957
  "content-type": 'application/json',
958
+ "accept": 'application/json',
906
959
  }
907
960
 
908
961
  @client.call(
@@ -943,7 +996,9 @@ module Appwrite
943
996
  }
944
997
 
945
998
  api_headers = {
999
+ "X-Appwrite-Project": @client.get_config('project'),
946
1000
  "content-type": 'application/json',
1001
+ "accept": 'application/json',
947
1002
  }
948
1003
 
949
1004
  @client.call(
@@ -984,7 +1039,9 @@ module Appwrite
984
1039
  }
985
1040
 
986
1041
  api_headers = {
1042
+ "X-Appwrite-Project": @client.get_config('project'),
987
1043
  "content-type": 'application/json',
1044
+ "accept": 'application/json',
988
1045
  }
989
1046
 
990
1047
  @client.call(
@@ -1022,7 +1079,9 @@ module Appwrite
1022
1079
  }
1023
1080
 
1024
1081
  api_headers = {
1082
+ "X-Appwrite-Project": @client.get_config('project'),
1025
1083
  "content-type": 'application/json',
1084
+ "accept": 'application/json',
1026
1085
  }
1027
1086
 
1028
1087
  @client.call(
@@ -1053,6 +1112,8 @@ module Appwrite
1053
1112
  }
1054
1113
 
1055
1114
  api_headers = {
1115
+ "X-Appwrite-Project": @client.get_config('project'),
1116
+ "accept": 'application/json',
1056
1117
  }
1057
1118
 
1058
1119
  @client.call(
@@ -1084,7 +1145,9 @@ module Appwrite
1084
1145
  }
1085
1146
 
1086
1147
  api_headers = {
1148
+ "X-Appwrite-Project": @client.get_config('project'),
1087
1149
  "content-type": 'application/json',
1150
+ "accept": 'application/json',
1088
1151
  }
1089
1152
 
1090
1153
  @client.call(
@@ -1118,6 +1181,7 @@ module Appwrite
1118
1181
  }
1119
1182
 
1120
1183
  api_headers = {
1184
+ "X-Appwrite-Project": @client.get_config('project'),
1121
1185
  "content-type": 'application/json',
1122
1186
  }
1123
1187
 
@@ -1143,7 +1207,9 @@ module Appwrite
1143
1207
  }
1144
1208
 
1145
1209
  api_headers = {
1210
+ "X-Appwrite-Project": @client.get_config('project'),
1146
1211
  "content-type": 'application/json',
1212
+ "accept": 'application/json',
1147
1213
  }
1148
1214
 
1149
1215
  @client.call(
@@ -1194,7 +1260,9 @@ module Appwrite
1194
1260
  }
1195
1261
 
1196
1262
  api_headers = {
1263
+ "X-Appwrite-Project": @client.get_config('project'),
1197
1264
  "content-type": 'application/json',
1265
+ "accept": 'application/json',
1198
1266
  }
1199
1267
 
1200
1268
  @client.call(
@@ -1247,7 +1315,9 @@ module Appwrite
1247
1315
  }
1248
1316
 
1249
1317
  api_headers = {
1318
+ "X-Appwrite-Project": @client.get_config('project'),
1250
1319
  "content-type": 'application/json',
1320
+ "accept": 'application/json',
1251
1321
  }
1252
1322
 
1253
1323
  @client.call(
@@ -1275,7 +1345,7 @@ module Appwrite
1275
1345
  # about session
1276
1346
  # limits](https://appwrite.io/docs/authentication-security#limits).
1277
1347
  #
1278
- # @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.
1279
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.
1280
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.
1281
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.
@@ -1296,6 +1366,8 @@ module Appwrite
1296
1366
  }
1297
1367
 
1298
1368
  api_headers = {
1369
+ "X-Appwrite-Project": @client.get_config('project'),
1370
+ "accept": 'text/html',
1299
1371
  }
1300
1372
 
1301
1373
  @client.call(
@@ -1340,7 +1412,9 @@ module Appwrite
1340
1412
  }
1341
1413
 
1342
1414
  api_headers = {
1415
+ "X-Appwrite-Project": @client.get_config('project'),
1343
1416
  "content-type": 'application/json',
1417
+ "accept": 'application/json',
1344
1418
  }
1345
1419
 
1346
1420
  @client.call(
@@ -1384,7 +1458,9 @@ module Appwrite
1384
1458
  }
1385
1459
 
1386
1460
  api_headers = {
1461
+ "X-Appwrite-Project": @client.get_config('project'),
1387
1462
  "content-type": 'application/json',
1463
+ "accept": 'application/json',
1388
1464
  }
1389
1465
 
1390
1466
  @client.call(
@@ -1431,7 +1507,9 @@ module Appwrite
1431
1507
  }
1432
1508
 
1433
1509
  api_headers = {
1510
+ "X-Appwrite-Project": @client.get_config('project'),
1434
1511
  "content-type": 'application/json',
1512
+ "accept": 'application/json',
1435
1513
  }
1436
1514
 
1437
1515
  @client.call(
@@ -1470,7 +1548,9 @@ module Appwrite
1470
1548
  }
1471
1549
 
1472
1550
  api_headers = {
1551
+ "X-Appwrite-Project": @client.get_config('project'),
1473
1552
  "content-type": 'application/json',
1553
+ "accept": 'application/json',
1474
1554
  }
1475
1555
 
1476
1556
  @client.call(
@@ -1512,7 +1592,9 @@ module Appwrite
1512
1592
  }
1513
1593
 
1514
1594
  api_headers = {
1595
+ "X-Appwrite-Project": @client.get_config('project'),
1515
1596
  "content-type": 'application/json',
1597
+ "accept": 'application/json',
1516
1598
  }
1517
1599
 
1518
1600
  @client.call(
@@ -1543,7 +1625,9 @@ module Appwrite
1543
1625
  }
1544
1626
 
1545
1627
  api_headers = {
1628
+ "X-Appwrite-Project": @client.get_config('project'),
1546
1629
  "content-type": 'application/json',
1630
+ "accept": 'application/json',
1547
1631
  }
1548
1632
 
1549
1633
  @client.call(
@@ -1582,7 +1666,9 @@ module Appwrite
1582
1666
  }
1583
1667
 
1584
1668
  api_headers = {
1669
+ "X-Appwrite-Project": @client.get_config('project'),
1585
1670
  "content-type": 'application/json',
1671
+ "accept": 'application/json',
1586
1672
  }
1587
1673
 
1588
1674
  @client.call(
@@ -20,6 +20,8 @@ module Appwrite
20
20
  }
21
21
 
22
22
  api_headers = {
23
+ "X-Appwrite-Project": @client.get_config('project'),
24
+ "accept": 'application/json',
23
25
  }
24
26
 
25
27
  @client.call(
@@ -50,6 +52,8 @@ module Appwrite
50
52
  }
51
53
 
52
54
  api_headers = {
55
+ "X-Appwrite-Project": @client.get_config('project'),
56
+ "accept": 'application/json',
53
57
  }
54
58
 
55
59
  @client.call(
@@ -24,6 +24,8 @@ module Appwrite
24
24
  }
25
25
 
26
26
  api_headers = {
27
+ "X-Appwrite-Project": @client.get_config('project'),
28
+ "accept": 'application/json',
27
29
  }
28
30
 
29
31
  @client.call(
@@ -55,6 +57,8 @@ module Appwrite
55
57
  }
56
58
 
57
59
  api_headers = {
60
+ "X-Appwrite-Project": @client.get_config('project'),
61
+ "accept": 'application/json',
58
62
  }
59
63
 
60
64
  @client.call(
@@ -86,6 +90,7 @@ module Appwrite
86
90
  }
87
91
 
88
92
  api_headers = {
93
+ "X-Appwrite-Project": @client.get_config('project'),
89
94
  "content-type": 'application/json',
90
95
  }
91
96
 
@@ -121,6 +126,8 @@ module Appwrite
121
126
  }
122
127
 
123
128
  api_headers = {
129
+ "X-Appwrite-Project": @client.get_config('project'),
130
+ "accept": 'application/json',
124
131
  }
125
132
 
126
133
  @client.call(
@@ -157,6 +164,8 @@ module Appwrite
157
164
  }
158
165
 
159
166
  api_headers = {
167
+ "X-Appwrite-Project": @client.get_config('project'),
168
+ "accept": 'application/json',
160
169
  }
161
170
 
162
171
  @client.call(
@@ -39,6 +39,8 @@ module Appwrite
39
39
  }
40
40
 
41
41
  api_headers = {
42
+ "X-Appwrite-Project": @client.get_config('project'),
43
+ "accept": 'image/png',
42
44
  }
43
45
 
44
46
  @client.call(
@@ -81,6 +83,8 @@ module Appwrite
81
83
  }
82
84
 
83
85
  api_headers = {
86
+ "X-Appwrite-Project": @client.get_config('project'),
87
+ "accept": 'image/png',
84
88
  }
85
89
 
86
90
  @client.call(
@@ -112,6 +116,8 @@ module Appwrite
112
116
  }
113
117
 
114
118
  api_headers = {
119
+ "X-Appwrite-Project": @client.get_config('project'),
120
+ "accept": 'image/*',
115
121
  }
116
122
 
117
123
  @client.call(
@@ -155,6 +161,8 @@ module Appwrite
155
161
  }
156
162
 
157
163
  api_headers = {
164
+ "X-Appwrite-Project": @client.get_config('project'),
165
+ "accept": 'image/png',
158
166
  }
159
167
 
160
168
  @client.call(
@@ -197,6 +205,8 @@ module Appwrite
197
205
  }
198
206
 
199
207
  api_headers = {
208
+ "X-Appwrite-Project": @client.get_config('project'),
209
+ "accept": 'image/*',
200
210
  }
201
211
 
202
212
  @client.call(
@@ -242,6 +252,8 @@ module Appwrite
242
252
  }
243
253
 
244
254
  api_headers = {
255
+ "X-Appwrite-Project": @client.get_config('project'),
256
+ "accept": 'image/png',
245
257
  }
246
258
 
247
259
  @client.call(
@@ -278,6 +290,8 @@ module Appwrite
278
290
  }
279
291
 
280
292
  api_headers = {
293
+ "X-Appwrite-Project": @client.get_config('project'),
294
+ "accept": 'image/png',
281
295
  }
282
296
 
283
297
  @client.call(
@@ -353,6 +367,8 @@ module Appwrite
353
367
  }
354
368
 
355
369
  api_headers = {
370
+ "X-Appwrite-Project": @client.get_config('project'),
371
+ "accept": 'image/png',
356
372
  }
357
373
 
358
374
  @client.call(