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
@@ -29,6 +29,7 @@ module Appwrite
29
29
 
30
30
  api_headers = {
31
31
  "X-Appwrite-Project": @client.get_config('project'),
32
+ "accept": 'application/json',
32
33
  }
33
34
 
34
35
  @client.call(
@@ -72,6 +73,7 @@ module Appwrite
72
73
  api_headers = {
73
74
  "X-Appwrite-Project": @client.get_config('project'),
74
75
  "content-type": 'application/json',
76
+ "accept": 'application/json',
75
77
  }
76
78
 
77
79
  @client.call(
@@ -84,6 +86,9 @@ module Appwrite
84
86
 
85
87
  end
86
88
 
89
+ #
90
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.listTransactions` instead.
91
+ #
87
92
  # List transactions across all databases.
88
93
  #
89
94
  # @param [Array] queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries).
@@ -98,6 +103,7 @@ module Appwrite
98
103
 
99
104
  api_headers = {
100
105
  "X-Appwrite-Project": @client.get_config('project'),
106
+ "accept": 'application/json',
101
107
  }
102
108
 
103
109
  @client.call(
@@ -110,6 +116,9 @@ module Appwrite
110
116
 
111
117
  end
112
118
 
119
+ #
120
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTransaction` instead.
121
+ #
113
122
  # Create a new transaction.
114
123
  #
115
124
  # @param [Integer] ttl Seconds before the transaction expires.
@@ -125,6 +134,7 @@ module Appwrite
125
134
  api_headers = {
126
135
  "X-Appwrite-Project": @client.get_config('project'),
127
136
  "content-type": 'application/json',
137
+ "accept": 'application/json',
128
138
  }
129
139
 
130
140
  @client.call(
@@ -137,6 +147,9 @@ module Appwrite
137
147
 
138
148
  end
139
149
 
150
+ #
151
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.getTransaction` instead.
152
+ #
140
153
  # Get a transaction by its unique ID.
141
154
  #
142
155
  # @param [String] transaction_id Transaction ID.
@@ -155,6 +168,7 @@ module Appwrite
155
168
 
156
169
  api_headers = {
157
170
  "X-Appwrite-Project": @client.get_config('project'),
171
+ "accept": 'application/json',
158
172
  }
159
173
 
160
174
  @client.call(
@@ -167,6 +181,9 @@ module Appwrite
167
181
 
168
182
  end
169
183
 
184
+ #
185
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTransaction` instead.
186
+ #
170
187
  # Update a transaction, to either commit or roll back its operations.
171
188
  #
172
189
  # @param [String] transaction_id Transaction ID.
@@ -190,6 +207,7 @@ module Appwrite
190
207
  api_headers = {
191
208
  "X-Appwrite-Project": @client.get_config('project'),
192
209
  "content-type": 'application/json',
210
+ "accept": 'application/json',
193
211
  }
194
212
 
195
213
  @client.call(
@@ -202,6 +220,9 @@ module Appwrite
202
220
 
203
221
  end
204
222
 
223
+ #
224
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.deleteTransaction` instead.
225
+ #
205
226
  # Delete a transaction by its unique ID.
206
227
  #
207
228
  # @param [String] transaction_id Transaction ID.
@@ -232,6 +253,9 @@ module Appwrite
232
253
 
233
254
  end
234
255
 
256
+ #
257
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createOperations` instead.
258
+ #
235
259
  # Create multiple operations in a single transaction.
236
260
  #
237
261
  # @param [String] transaction_id Transaction ID.
@@ -253,6 +277,7 @@ module Appwrite
253
277
  api_headers = {
254
278
  "X-Appwrite-Project": @client.get_config('project'),
255
279
  "content-type": 'application/json',
280
+ "accept": 'application/json',
256
281
  }
257
282
 
258
283
  @client.call(
@@ -287,6 +312,7 @@ module Appwrite
287
312
 
288
313
  api_headers = {
289
314
  "X-Appwrite-Project": @client.get_config('project'),
315
+ "accept": 'application/json',
290
316
  }
291
317
 
292
318
  @client.call(
@@ -325,6 +351,7 @@ module Appwrite
325
351
  api_headers = {
326
352
  "X-Appwrite-Project": @client.get_config('project'),
327
353
  "content-type": 'application/json',
354
+ "accept": 'application/json',
328
355
  }
329
356
 
330
357
  @client.call(
@@ -399,6 +426,7 @@ module Appwrite
399
426
 
400
427
  api_headers = {
401
428
  "X-Appwrite-Project": @client.get_config('project'),
429
+ "accept": 'application/json',
402
430
  }
403
431
 
404
432
  @client.call(
@@ -458,6 +486,7 @@ module Appwrite
458
486
  api_headers = {
459
487
  "X-Appwrite-Project": @client.get_config('project'),
460
488
  "content-type": 'application/json',
489
+ "accept": 'application/json',
461
490
  }
462
491
 
463
492
  @client.call(
@@ -498,6 +527,7 @@ module Appwrite
498
527
 
499
528
  api_headers = {
500
529
  "X-Appwrite-Project": @client.get_config('project'),
530
+ "accept": 'application/json',
501
531
  }
502
532
 
503
533
  @client.call(
@@ -548,6 +578,7 @@ module Appwrite
548
578
  api_headers = {
549
579
  "X-Appwrite-Project": @client.get_config('project'),
550
580
  "content-type": 'application/json',
581
+ "accept": 'application/json',
551
582
  }
552
583
 
553
584
  @client.call(
@@ -631,6 +662,7 @@ module Appwrite
631
662
 
632
663
  api_headers = {
633
664
  "X-Appwrite-Project": @client.get_config('project'),
665
+ "accept": 'application/json',
634
666
  }
635
667
 
636
668
  @client.call(
@@ -693,6 +725,7 @@ module Appwrite
693
725
  api_headers = {
694
726
  "X-Appwrite-Project": @client.get_config('project'),
695
727
  "content-type": 'application/json',
728
+ "accept": 'application/json',
696
729
  }
697
730
 
698
731
  @client.call(
@@ -759,6 +792,7 @@ module Appwrite
759
792
  api_headers = {
760
793
  "X-Appwrite-Project": @client.get_config('project'),
761
794
  "content-type": 'application/json',
795
+ "accept": 'application/json',
762
796
  }
763
797
 
764
798
  @client.call(
@@ -816,6 +850,7 @@ module Appwrite
816
850
  api_headers = {
817
851
  "X-Appwrite-Project": @client.get_config('project'),
818
852
  "content-type": 'application/json',
853
+ "accept": 'application/json',
819
854
  }
820
855
 
821
856
  @client.call(
@@ -877,6 +912,7 @@ module Appwrite
877
912
  api_headers = {
878
913
  "X-Appwrite-Project": @client.get_config('project'),
879
914
  "content-type": 'application/json',
915
+ "accept": 'application/json',
880
916
  }
881
917
 
882
918
  @client.call(
@@ -933,6 +969,7 @@ module Appwrite
933
969
  api_headers = {
934
970
  "X-Appwrite-Project": @client.get_config('project'),
935
971
  "content-type": 'application/json',
972
+ "accept": 'application/json',
936
973
  }
937
974
 
938
975
  @client.call(
@@ -994,6 +1031,7 @@ module Appwrite
994
1031
  api_headers = {
995
1032
  "X-Appwrite-Project": @client.get_config('project'),
996
1033
  "content-type": 'application/json',
1034
+ "accept": 'application/json',
997
1035
  }
998
1036
 
999
1037
  @client.call(
@@ -1051,6 +1089,7 @@ module Appwrite
1051
1089
  api_headers = {
1052
1090
  "X-Appwrite-Project": @client.get_config('project'),
1053
1091
  "content-type": 'application/json',
1092
+ "accept": 'application/json',
1054
1093
  }
1055
1094
 
1056
1095
  @client.call(
@@ -1113,6 +1152,7 @@ module Appwrite
1113
1152
  api_headers = {
1114
1153
  "X-Appwrite-Project": @client.get_config('project'),
1115
1154
  "content-type": 'application/json',
1155
+ "accept": 'application/json',
1116
1156
  }
1117
1157
 
1118
1158
  @client.call(
@@ -1177,6 +1217,7 @@ module Appwrite
1177
1217
  api_headers = {
1178
1218
  "X-Appwrite-Project": @client.get_config('project'),
1179
1219
  "content-type": 'application/json',
1220
+ "accept": 'application/json',
1180
1221
  }
1181
1222
 
1182
1223
  @client.call(
@@ -1245,6 +1286,7 @@ module Appwrite
1245
1286
  api_headers = {
1246
1287
  "X-Appwrite-Project": @client.get_config('project'),
1247
1288
  "content-type": 'application/json',
1289
+ "accept": 'application/json',
1248
1290
  }
1249
1291
 
1250
1292
  @client.call(
@@ -1307,6 +1349,7 @@ module Appwrite
1307
1349
  api_headers = {
1308
1350
  "X-Appwrite-Project": @client.get_config('project'),
1309
1351
  "content-type": 'application/json',
1352
+ "accept": 'application/json',
1310
1353
  }
1311
1354
 
1312
1355
  @client.call(
@@ -1373,6 +1416,7 @@ module Appwrite
1373
1416
  api_headers = {
1374
1417
  "X-Appwrite-Project": @client.get_config('project'),
1375
1418
  "content-type": 'application/json',
1419
+ "accept": 'application/json',
1376
1420
  }
1377
1421
 
1378
1422
  @client.call(
@@ -1435,6 +1479,7 @@ module Appwrite
1435
1479
  api_headers = {
1436
1480
  "X-Appwrite-Project": @client.get_config('project'),
1437
1481
  "content-type": 'application/json',
1482
+ "accept": 'application/json',
1438
1483
  }
1439
1484
 
1440
1485
  @client.call(
@@ -1501,6 +1546,7 @@ module Appwrite
1501
1546
  api_headers = {
1502
1547
  "X-Appwrite-Project": @client.get_config('project'),
1503
1548
  "content-type": 'application/json',
1549
+ "accept": 'application/json',
1504
1550
  }
1505
1551
 
1506
1552
  @client.call(
@@ -1558,6 +1604,7 @@ module Appwrite
1558
1604
  api_headers = {
1559
1605
  "X-Appwrite-Project": @client.get_config('project'),
1560
1606
  "content-type": 'application/json',
1607
+ "accept": 'application/json',
1561
1608
  }
1562
1609
 
1563
1610
  @client.call(
@@ -1620,6 +1667,7 @@ module Appwrite
1620
1667
  api_headers = {
1621
1668
  "X-Appwrite-Project": @client.get_config('project'),
1622
1669
  "content-type": 'application/json',
1670
+ "accept": 'application/json',
1623
1671
  }
1624
1672
 
1625
1673
  @client.call(
@@ -1674,6 +1722,7 @@ module Appwrite
1674
1722
  api_headers = {
1675
1723
  "X-Appwrite-Project": @client.get_config('project'),
1676
1724
  "content-type": 'application/json',
1725
+ "accept": 'application/json',
1677
1726
  }
1678
1727
 
1679
1728
  @client.call(
@@ -1731,6 +1780,7 @@ module Appwrite
1731
1780
  api_headers = {
1732
1781
  "X-Appwrite-Project": @client.get_config('project'),
1733
1782
  "content-type": 'application/json',
1783
+ "accept": 'application/json',
1734
1784
  }
1735
1785
 
1736
1786
  @client.call(
@@ -1743,6 +1793,9 @@ module Appwrite
1743
1793
 
1744
1794
  end
1745
1795
 
1796
+ #
1797
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createLongtextColumn` instead.
1798
+ #
1746
1799
  # Create a longtext attribute.
1747
1800
  #
1748
1801
  #
@@ -1787,6 +1840,7 @@ module Appwrite
1787
1840
  api_headers = {
1788
1841
  "X-Appwrite-Project": @client.get_config('project'),
1789
1842
  "content-type": 'application/json',
1843
+ "accept": 'application/json',
1790
1844
  }
1791
1845
 
1792
1846
  @client.call(
@@ -1799,6 +1853,9 @@ module Appwrite
1799
1853
 
1800
1854
  end
1801
1855
 
1856
+ #
1857
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateLongtextColumn` instead.
1858
+ #
1802
1859
  # Update a longtext attribute. Changing the `default` value will not update
1803
1860
  # already existing documents.
1804
1861
  #
@@ -1846,6 +1903,7 @@ module Appwrite
1846
1903
  api_headers = {
1847
1904
  "X-Appwrite-Project": @client.get_config('project'),
1848
1905
  "content-type": 'application/json',
1906
+ "accept": 'application/json',
1849
1907
  }
1850
1908
 
1851
1909
  @client.call(
@@ -1858,6 +1916,9 @@ module Appwrite
1858
1916
 
1859
1917
  end
1860
1918
 
1919
+ #
1920
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createMediumtextColumn` instead.
1921
+ #
1861
1922
  # Create a mediumtext attribute.
1862
1923
  #
1863
1924
  #
@@ -1902,6 +1963,7 @@ module Appwrite
1902
1963
  api_headers = {
1903
1964
  "X-Appwrite-Project": @client.get_config('project'),
1904
1965
  "content-type": 'application/json',
1966
+ "accept": 'application/json',
1905
1967
  }
1906
1968
 
1907
1969
  @client.call(
@@ -1914,6 +1976,9 @@ module Appwrite
1914
1976
 
1915
1977
  end
1916
1978
 
1979
+ #
1980
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateMediumtextColumn` instead.
1981
+ #
1917
1982
  # Update a mediumtext attribute. Changing the `default` value will not update
1918
1983
  # already existing documents.
1919
1984
  #
@@ -1961,6 +2026,7 @@ module Appwrite
1961
2026
  api_headers = {
1962
2027
  "X-Appwrite-Project": @client.get_config('project'),
1963
2028
  "content-type": 'application/json',
2029
+ "accept": 'application/json',
1964
2030
  }
1965
2031
 
1966
2032
  @client.call(
@@ -2015,6 +2081,7 @@ module Appwrite
2015
2081
  api_headers = {
2016
2082
  "X-Appwrite-Project": @client.get_config('project'),
2017
2083
  "content-type": 'application/json',
2084
+ "accept": 'application/json',
2018
2085
  }
2019
2086
 
2020
2087
  @client.call(
@@ -2072,6 +2139,7 @@ module Appwrite
2072
2139
  api_headers = {
2073
2140
  "X-Appwrite-Project": @client.get_config('project'),
2074
2141
  "content-type": 'application/json',
2142
+ "accept": 'application/json',
2075
2143
  }
2076
2144
 
2077
2145
  @client.call(
@@ -2126,6 +2194,7 @@ module Appwrite
2126
2194
  api_headers = {
2127
2195
  "X-Appwrite-Project": @client.get_config('project'),
2128
2196
  "content-type": 'application/json',
2197
+ "accept": 'application/json',
2129
2198
  }
2130
2199
 
2131
2200
  @client.call(
@@ -2183,6 +2252,7 @@ module Appwrite
2183
2252
  api_headers = {
2184
2253
  "X-Appwrite-Project": @client.get_config('project'),
2185
2254
  "content-type": 'application/json',
2255
+ "accept": 'application/json',
2186
2256
  }
2187
2257
 
2188
2258
  @client.call(
@@ -2245,6 +2315,7 @@ module Appwrite
2245
2315
  api_headers = {
2246
2316
  "X-Appwrite-Project": @client.get_config('project'),
2247
2317
  "content-type": 'application/json',
2318
+ "accept": 'application/json',
2248
2319
  }
2249
2320
 
2250
2321
  @client.call(
@@ -2297,6 +2368,7 @@ module Appwrite
2297
2368
  api_headers = {
2298
2369
  "X-Appwrite-Project": @client.get_config('project'),
2299
2370
  "content-type": 'application/json',
2371
+ "accept": 'application/json',
2300
2372
  }
2301
2373
 
2302
2374
  @client.call(
@@ -2362,6 +2434,7 @@ module Appwrite
2362
2434
  api_headers = {
2363
2435
  "X-Appwrite-Project": @client.get_config('project'),
2364
2436
  "content-type": 'application/json',
2437
+ "accept": 'application/json',
2365
2438
  }
2366
2439
 
2367
2440
  @client.call(
@@ -2426,6 +2499,7 @@ module Appwrite
2426
2499
  api_headers = {
2427
2500
  "X-Appwrite-Project": @client.get_config('project'),
2428
2501
  "content-type": 'application/json',
2502
+ "accept": 'application/json',
2429
2503
  }
2430
2504
 
2431
2505
  @client.call(
@@ -2438,6 +2512,9 @@ module Appwrite
2438
2512
 
2439
2513
  end
2440
2514
 
2515
+ #
2516
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createTextColumn` instead.
2517
+ #
2441
2518
  # Create a text attribute.
2442
2519
  #
2443
2520
  #
@@ -2482,6 +2559,7 @@ module Appwrite
2482
2559
  api_headers = {
2483
2560
  "X-Appwrite-Project": @client.get_config('project'),
2484
2561
  "content-type": 'application/json',
2562
+ "accept": 'application/json',
2485
2563
  }
2486
2564
 
2487
2565
  @client.call(
@@ -2494,6 +2572,9 @@ module Appwrite
2494
2572
 
2495
2573
  end
2496
2574
 
2575
+ #
2576
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateTextColumn` instead.
2577
+ #
2497
2578
  # Update a text attribute. Changing the `default` value will not update
2498
2579
  # already existing documents.
2499
2580
  #
@@ -2541,6 +2622,7 @@ module Appwrite
2541
2622
  api_headers = {
2542
2623
  "X-Appwrite-Project": @client.get_config('project'),
2543
2624
  "content-type": 'application/json',
2625
+ "accept": 'application/json',
2544
2626
  }
2545
2627
 
2546
2628
  @client.call(
@@ -2598,6 +2680,7 @@ module Appwrite
2598
2680
  api_headers = {
2599
2681
  "X-Appwrite-Project": @client.get_config('project'),
2600
2682
  "content-type": 'application/json',
2683
+ "accept": 'application/json',
2601
2684
  }
2602
2685
 
2603
2686
  @client.call(
@@ -2660,6 +2743,7 @@ module Appwrite
2660
2743
  api_headers = {
2661
2744
  "X-Appwrite-Project": @client.get_config('project'),
2662
2745
  "content-type": 'application/json',
2746
+ "accept": 'application/json',
2663
2747
  }
2664
2748
 
2665
2749
  @client.call(
@@ -2672,6 +2756,9 @@ module Appwrite
2672
2756
 
2673
2757
  end
2674
2758
 
2759
+ #
2760
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.createVarcharColumn` instead.
2761
+ #
2675
2762
  # Create a varchar attribute.
2676
2763
  #
2677
2764
  #
@@ -2722,6 +2809,7 @@ module Appwrite
2722
2809
  api_headers = {
2723
2810
  "X-Appwrite-Project": @client.get_config('project'),
2724
2811
  "content-type": 'application/json',
2812
+ "accept": 'application/json',
2725
2813
  }
2726
2814
 
2727
2815
  @client.call(
@@ -2734,6 +2822,9 @@ module Appwrite
2734
2822
 
2735
2823
  end
2736
2824
 
2825
+ #
2826
+ # @deprecated This API has been deprecated since 1.8.0. Please use `TablesDB.updateVarcharColumn` instead.
2827
+ #
2737
2828
  # Update a varchar attribute. Changing the `default` value will not update
2738
2829
  # already existing documents.
2739
2830
  #
@@ -2783,6 +2874,7 @@ module Appwrite
2783
2874
  api_headers = {
2784
2875
  "X-Appwrite-Project": @client.get_config('project'),
2785
2876
  "content-type": 'application/json',
2877
+ "accept": 'application/json',
2786
2878
  }
2787
2879
 
2788
2880
  @client.call(
@@ -2828,6 +2920,7 @@ module Appwrite
2828
2920
 
2829
2921
  api_headers = {
2830
2922
  "X-Appwrite-Project": @client.get_config('project'),
2923
+ "accept": 'application/json',
2831
2924
  }
2832
2925
 
2833
2926
  response = @client.call(
@@ -2976,6 +3069,7 @@ module Appwrite
2976
3069
 
2977
3070
  api_headers = {
2978
3071
  "X-Appwrite-Project": @client.get_config('project'),
3072
+ "accept": 'application/json',
2979
3073
  }
2980
3074
 
2981
3075
  @client.call(
@@ -3035,6 +3129,7 @@ module Appwrite
3035
3129
  api_headers = {
3036
3130
  "X-Appwrite-Project": @client.get_config('project'),
3037
3131
  "content-type": 'application/json',
3132
+ "accept": 'application/json',
3038
3133
  }
3039
3134
 
3040
3135
  @client.call(
@@ -3086,6 +3181,7 @@ module Appwrite
3086
3181
  api_headers = {
3087
3182
  "X-Appwrite-Project": @client.get_config('project'),
3088
3183
  "content-type": 'application/json',
3184
+ "accept": 'application/json',
3089
3185
  }
3090
3186
 
3091
3187
  @client.call(
@@ -3138,6 +3234,7 @@ module Appwrite
3138
3234
  api_headers = {
3139
3235
  "X-Appwrite-Project": @client.get_config('project'),
3140
3236
  "content-type": 'application/json',
3237
+ "accept": 'application/json',
3141
3238
  }
3142
3239
 
3143
3240
  @client.call(
@@ -3186,6 +3283,7 @@ module Appwrite
3186
3283
  api_headers = {
3187
3284
  "X-Appwrite-Project": @client.get_config('project'),
3188
3285
  "content-type": 'application/json',
3286
+ "accept": 'application/json',
3189
3287
  }
3190
3288
 
3191
3289
  @client.call(
@@ -3231,6 +3329,7 @@ module Appwrite
3231
3329
  api_headers = {
3232
3330
  "X-Appwrite-Project": @client.get_config('project'),
3233
3331
  "content-type": 'application/json',
3332
+ "accept": 'application/json',
3234
3333
  }
3235
3334
 
3236
3335
  @client.call(
@@ -3281,6 +3380,7 @@ module Appwrite
3281
3380
 
3282
3381
  api_headers = {
3283
3382
  "X-Appwrite-Project": @client.get_config('project'),
3383
+ "accept": 'application/json',
3284
3384
  }
3285
3385
 
3286
3386
  @client.call(
@@ -3336,6 +3436,7 @@ module Appwrite
3336
3436
  api_headers = {
3337
3437
  "X-Appwrite-Project": @client.get_config('project'),
3338
3438
  "content-type": 'application/json',
3439
+ "accept": 'application/json',
3339
3440
  }
3340
3441
 
3341
3442
  @client.call(
@@ -3389,6 +3490,7 @@ module Appwrite
3389
3490
  api_headers = {
3390
3491
  "X-Appwrite-Project": @client.get_config('project'),
3391
3492
  "content-type": 'application/json',
3493
+ "accept": 'application/json',
3392
3494
  }
3393
3495
 
3394
3496
  @client.call(
@@ -3494,6 +3596,7 @@ module Appwrite
3494
3596
  api_headers = {
3495
3597
  "X-Appwrite-Project": @client.get_config('project'),
3496
3598
  "content-type": 'application/json',
3599
+ "accept": 'application/json',
3497
3600
  }
3498
3601
 
3499
3602
  @client.call(
@@ -3552,6 +3655,7 @@ module Appwrite
3552
3655
  api_headers = {
3553
3656
  "X-Appwrite-Project": @client.get_config('project'),
3554
3657
  "content-type": 'application/json',
3658
+ "accept": 'application/json',
3555
3659
  }
3556
3660
 
3557
3661
  @client.call(
@@ -3595,6 +3699,7 @@ module Appwrite
3595
3699
 
3596
3700
  api_headers = {
3597
3701
  "X-Appwrite-Project": @client.get_config('project'),
3702
+ "accept": 'application/json',
3598
3703
  }
3599
3704
 
3600
3705
  @client.call(
@@ -3659,6 +3764,7 @@ module Appwrite
3659
3764
  api_headers = {
3660
3765
  "X-Appwrite-Project": @client.get_config('project'),
3661
3766
  "content-type": 'application/json',
3767
+ "accept": 'application/json',
3662
3768
  }
3663
3769
 
3664
3770
  @client.call(
@@ -3704,6 +3810,7 @@ module Appwrite
3704
3810
 
3705
3811
  api_headers = {
3706
3812
  "X-Appwrite-Project": @client.get_config('project'),
3813
+ "accept": 'application/json',
3707
3814
  }
3708
3815
 
3709
3816
  @client.call(