appwrite 30.0.1 → 30.1.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 (46) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +44 -24
  3. data/lib/appwrite/enums/appwrite_migration_resource.rb +46 -0
  4. data/lib/appwrite/enums/build_runtime.rb +4 -0
  5. data/lib/appwrite/enums/environment_resource.rb +40 -0
  6. data/lib/appwrite/enums/firebase_migration_resource.rb +16 -0
  7. data/lib/appwrite/enums/n_host_migration_resource.rb +17 -0
  8. data/lib/appwrite/enums/on_duplicate.rb +9 -0
  9. data/lib/appwrite/enums/project_policy_id.rb +1 -0
  10. data/lib/appwrite/enums/runtime.rb +4 -0
  11. data/lib/appwrite/enums/supabase_migration_resource.rb +17 -0
  12. data/lib/appwrite/models/billing_plan.rb +15 -0
  13. data/lib/appwrite/models/migration.rb +128 -0
  14. data/lib/appwrite/models/migration_list.rb +33 -0
  15. data/lib/appwrite/models/policy_deny_realtime_guests.rb +33 -0
  16. data/lib/appwrite/services/account.rb +19 -19
  17. data/lib/appwrite/services/activities.rb +1 -1
  18. data/lib/appwrite/services/advisor.rb +5 -5
  19. data/lib/appwrite/services/apps.rb +25 -25
  20. data/lib/appwrite/services/avatars.rb +3 -3
  21. data/lib/appwrite/services/backups.rb +6 -6
  22. data/lib/appwrite/services/databases.rb +157 -157
  23. data/lib/appwrite/services/documents_db.rb +63 -63
  24. data/lib/appwrite/services/domains.rb +77 -77
  25. data/lib/appwrite/services/functions.rb +33 -33
  26. data/lib/appwrite/services/messaging.rb +30 -30
  27. data/lib/appwrite/services/migrations.rb +653 -0
  28. data/lib/appwrite/services/mongo.rb +37 -37
  29. data/lib/appwrite/services/mysql.rb +40 -40
  30. data/lib/appwrite/services/oauth2.rb +14 -14
  31. data/lib/appwrite/services/organization.rb +17 -17
  32. data/lib/appwrite/services/postgresql.rb +44 -44
  33. data/lib/appwrite/services/presences.rb +4 -4
  34. data/lib/appwrite/services/project.rb +105 -28
  35. data/lib/appwrite/services/proxy.rb +3 -3
  36. data/lib/appwrite/services/sites.rb +32 -32
  37. data/lib/appwrite/services/storage.rb +17 -17
  38. data/lib/appwrite/services/tables_db.rb +169 -169
  39. data/lib/appwrite/services/teams.rb +23 -23
  40. data/lib/appwrite/services/tokens.rb +7 -7
  41. data/lib/appwrite/services/users.rb +50 -50
  42. data/lib/appwrite/services/vectors_db.rb +55 -55
  43. data/lib/appwrite/services/waf.rb +57 -35
  44. data/lib/appwrite/services/webhooks.rb +4 -4
  45. data/lib/appwrite.rb +12 -0
  46. metadata +12 -2
@@ -195,7 +195,7 @@ module Appwrite
195
195
  end
196
196
 
197
197
  api_path = '/tablesdb/transactions/{transactionId}'
198
- .gsub('{transactionId}', transaction_id)
198
+ .gsub('{transactionId}', @client.encode_path(transaction_id))
199
199
 
200
200
  api_params = {}
201
201
 
@@ -230,7 +230,7 @@ module Appwrite
230
230
  end
231
231
 
232
232
  api_path = '/tablesdb/transactions/{transactionId}'
233
- .gsub('{transactionId}', transaction_id)
233
+ .gsub('{transactionId}', @client.encode_path(transaction_id))
234
234
 
235
235
  api_params = {
236
236
  commit: commit,
@@ -265,7 +265,7 @@ module Appwrite
265
265
  end
266
266
 
267
267
  api_path = '/tablesdb/transactions/{transactionId}'
268
- .gsub('{transactionId}', transaction_id)
268
+ .gsub('{transactionId}', @client.encode_path(transaction_id))
269
269
 
270
270
  api_params = {}
271
271
 
@@ -298,7 +298,7 @@ module Appwrite
298
298
  end
299
299
 
300
300
  api_path = '/tablesdb/transactions/{transactionId}/operations'
301
- .gsub('{transactionId}', transaction_id)
301
+ .gsub('{transactionId}', @client.encode_path(transaction_id))
302
302
 
303
303
  api_params = {
304
304
  operations: operations,
@@ -333,7 +333,7 @@ module Appwrite
333
333
  end
334
334
 
335
335
  api_path = '/tablesdb/{databaseId}'
336
- .gsub('{databaseId}', database_id)
336
+ .gsub('{databaseId}', @client.encode_path(database_id))
337
337
 
338
338
  api_params = {}
339
339
 
@@ -376,7 +376,7 @@ module Appwrite
376
376
  end
377
377
 
378
378
  api_path = '/tablesdb/{databaseId}'
379
- .gsub('{databaseId}', database_id)
379
+ .gsub('{databaseId}', @client.encode_path(database_id))
380
380
 
381
381
  api_params = {
382
382
  name: name,
@@ -416,7 +416,7 @@ module Appwrite
416
416
  end
417
417
 
418
418
  api_path = '/tablesdb/{databaseId}'
419
- .gsub('{databaseId}', database_id)
419
+ .gsub('{databaseId}', @client.encode_path(database_id))
420
420
 
421
421
  api_params = {}
422
422
 
@@ -457,7 +457,7 @@ module Appwrite
457
457
  end
458
458
 
459
459
  api_path = '/tablesdb/{databaseId}/failovers'
460
- .gsub('{databaseId}', database_id)
460
+ .gsub('{databaseId}', @client.encode_path(database_id))
461
461
 
462
462
  api_params = {
463
463
  targetReplicaId: target_replica_id,
@@ -492,7 +492,7 @@ module Appwrite
492
492
  end
493
493
 
494
494
  api_path = '/tablesdb/{databaseId}/migrations'
495
- .gsub('{databaseId}', database_id)
495
+ .gsub('{databaseId}', @client.encode_path(database_id))
496
496
 
497
497
  api_params = {}
498
498
 
@@ -538,7 +538,7 @@ module Appwrite
538
538
  end
539
539
 
540
540
  api_path = '/tablesdb/{databaseId}/migrations'
541
- .gsub('{databaseId}', database_id)
541
+ .gsub('{databaseId}', @client.encode_path(database_id))
542
542
 
543
543
  api_params = {
544
544
  specification: specification,
@@ -579,8 +579,8 @@ module Appwrite
579
579
  end
580
580
 
581
581
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
582
- .gsub('{databaseId}', database_id)
583
- .gsub('{migrationId}', migration_id)
582
+ .gsub('{databaseId}', @client.encode_path(database_id))
583
+ .gsub('{migrationId}', @client.encode_path(migration_id))
584
584
 
585
585
  api_params = {}
586
586
 
@@ -618,8 +618,8 @@ module Appwrite
618
618
  end
619
619
 
620
620
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}'
621
- .gsub('{databaseId}', database_id)
622
- .gsub('{migrationId}', migration_id)
621
+ .gsub('{databaseId}', @client.encode_path(database_id))
622
+ .gsub('{migrationId}', @client.encode_path(migration_id))
623
623
 
624
624
  api_params = {}
625
625
 
@@ -664,8 +664,8 @@ module Appwrite
664
664
  end
665
665
 
666
666
  api_path = '/tablesdb/{databaseId}/migrations/{migrationId}/cutovers'
667
- .gsub('{databaseId}', database_id)
668
- .gsub('{migrationId}', migration_id)
667
+ .gsub('{databaseId}', @client.encode_path(database_id))
668
+ .gsub('{migrationId}', @client.encode_path(migration_id))
669
669
 
670
670
  api_params = {}
671
671
 
@@ -706,7 +706,7 @@ module Appwrite
706
706
  end
707
707
 
708
708
  api_path = '/tablesdb/{databaseId}/operations'
709
- .gsub('{databaseId}', database_id)
709
+ .gsub('{databaseId}', @client.encode_path(database_id))
710
710
 
711
711
  api_params = {
712
712
  status: status,
@@ -742,7 +742,7 @@ module Appwrite
742
742
  end
743
743
 
744
744
  api_path = '/tablesdb/{databaseId}/replicas'
745
- .gsub('{databaseId}', database_id)
745
+ .gsub('{databaseId}', @client.encode_path(database_id))
746
746
 
747
747
  api_params = {}
748
748
 
@@ -775,7 +775,7 @@ module Appwrite
775
775
  end
776
776
 
777
777
  api_path = '/tablesdb/{databaseId}/status'
778
- .gsub('{databaseId}', database_id)
778
+ .gsub('{databaseId}', @client.encode_path(database_id))
779
779
 
780
780
  api_params = {}
781
781
 
@@ -813,7 +813,7 @@ module Appwrite
813
813
  end
814
814
 
815
815
  api_path = '/tablesdb/{databaseId}/tables'
816
- .gsub('{databaseId}', database_id)
816
+ .gsub('{databaseId}', @client.encode_path(database_id))
817
817
 
818
818
  api_params = {
819
819
  queries: queries,
@@ -875,7 +875,7 @@ module Appwrite
875
875
  end
876
876
 
877
877
  api_path = '/tablesdb/{databaseId}/tables'
878
- .gsub('{databaseId}', database_id)
878
+ .gsub('{databaseId}', @client.encode_path(database_id))
879
879
 
880
880
  api_params = {
881
881
  tableId: table_id,
@@ -923,8 +923,8 @@ module Appwrite
923
923
  end
924
924
 
925
925
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
926
- .gsub('{databaseId}', database_id)
927
- .gsub('{tableId}', table_id)
926
+ .gsub('{databaseId}', @client.encode_path(database_id))
927
+ .gsub('{tableId}', @client.encode_path(table_id))
928
928
 
929
929
  api_params = {}
930
930
 
@@ -973,8 +973,8 @@ module Appwrite
973
973
  end
974
974
 
975
975
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
976
- .gsub('{databaseId}', database_id)
977
- .gsub('{tableId}', table_id)
976
+ .gsub('{databaseId}', @client.encode_path(database_id))
977
+ .gsub('{tableId}', @client.encode_path(table_id))
978
978
 
979
979
  api_params = {
980
980
  name: name,
@@ -1020,8 +1020,8 @@ module Appwrite
1020
1020
  end
1021
1021
 
1022
1022
  api_path = '/tablesdb/{databaseId}/tables/{tableId}'
1023
- .gsub('{databaseId}', database_id)
1024
- .gsub('{tableId}', table_id)
1023
+ .gsub('{databaseId}', @client.encode_path(database_id))
1024
+ .gsub('{tableId}', @client.encode_path(table_id))
1025
1025
 
1026
1026
  api_params = {}
1027
1027
 
@@ -1062,8 +1062,8 @@ module Appwrite
1062
1062
  end
1063
1063
 
1064
1064
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns'
1065
- .gsub('{databaseId}', database_id)
1066
- .gsub('{tableId}', table_id)
1065
+ .gsub('{databaseId}', @client.encode_path(database_id))
1066
+ .gsub('{tableId}', @client.encode_path(table_id))
1067
1067
 
1068
1068
  api_params = {
1069
1069
  queries: queries,
@@ -1127,8 +1127,8 @@ module Appwrite
1127
1127
  end
1128
1128
 
1129
1129
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint'
1130
- .gsub('{databaseId}', database_id)
1131
- .gsub('{tableId}', table_id)
1130
+ .gsub('{databaseId}', @client.encode_path(database_id))
1131
+ .gsub('{tableId}', @client.encode_path(table_id))
1132
1132
 
1133
1133
  api_params = {
1134
1134
  key: key,
@@ -1202,9 +1202,9 @@ module Appwrite
1202
1202
  end
1203
1203
 
1204
1204
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/bigint/{key}'
1205
- .gsub('{databaseId}', database_id)
1206
- .gsub('{tableId}', table_id)
1207
- .gsub('{key}', key)
1205
+ .gsub('{databaseId}', @client.encode_path(database_id))
1206
+ .gsub('{tableId}', @client.encode_path(table_id))
1207
+ .gsub('{key}', @client.encode_path(key))
1208
1208
 
1209
1209
  api_params = {
1210
1210
  required: required,
@@ -1268,8 +1268,8 @@ module Appwrite
1268
1268
  end
1269
1269
 
1270
1270
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean'
1271
- .gsub('{databaseId}', database_id)
1272
- .gsub('{tableId}', table_id)
1271
+ .gsub('{databaseId}', @client.encode_path(database_id))
1272
+ .gsub('{tableId}', @client.encode_path(table_id))
1273
1273
 
1274
1274
  api_params = {
1275
1275
  key: key,
@@ -1336,9 +1336,9 @@ module Appwrite
1336
1336
  end
1337
1337
 
1338
1338
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/boolean/{key}'
1339
- .gsub('{databaseId}', database_id)
1340
- .gsub('{tableId}', table_id)
1341
- .gsub('{key}', key)
1339
+ .gsub('{databaseId}', @client.encode_path(database_id))
1340
+ .gsub('{tableId}', @client.encode_path(table_id))
1341
+ .gsub('{key}', @client.encode_path(key))
1342
1342
 
1343
1343
  api_params = {
1344
1344
  required: required,
@@ -1399,8 +1399,8 @@ module Appwrite
1399
1399
  end
1400
1400
 
1401
1401
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime'
1402
- .gsub('{databaseId}', database_id)
1403
- .gsub('{tableId}', table_id)
1402
+ .gsub('{databaseId}', @client.encode_path(database_id))
1403
+ .gsub('{tableId}', @client.encode_path(table_id))
1404
1404
 
1405
1405
  api_params = {
1406
1406
  key: key,
@@ -1467,9 +1467,9 @@ module Appwrite
1467
1467
  end
1468
1468
 
1469
1469
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/datetime/{key}'
1470
- .gsub('{databaseId}', database_id)
1471
- .gsub('{tableId}', table_id)
1472
- .gsub('{key}', key)
1470
+ .gsub('{databaseId}', @client.encode_path(database_id))
1471
+ .gsub('{tableId}', @client.encode_path(table_id))
1472
+ .gsub('{key}', @client.encode_path(key))
1473
1473
 
1474
1474
  api_params = {
1475
1475
  required: required,
@@ -1531,8 +1531,8 @@ module Appwrite
1531
1531
  end
1532
1532
 
1533
1533
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email'
1534
- .gsub('{databaseId}', database_id)
1535
- .gsub('{tableId}', table_id)
1534
+ .gsub('{databaseId}', @client.encode_path(database_id))
1535
+ .gsub('{tableId}', @client.encode_path(table_id))
1536
1536
 
1537
1537
  api_params = {
1538
1538
  key: key,
@@ -1600,9 +1600,9 @@ module Appwrite
1600
1600
  end
1601
1601
 
1602
1602
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/email/{key}'
1603
- .gsub('{databaseId}', database_id)
1604
- .gsub('{tableId}', table_id)
1605
- .gsub('{key}', key)
1603
+ .gsub('{databaseId}', @client.encode_path(database_id))
1604
+ .gsub('{tableId}', @client.encode_path(table_id))
1605
+ .gsub('{key}', @client.encode_path(key))
1606
1606
 
1607
1607
  api_params = {
1608
1608
  required: required,
@@ -1670,8 +1670,8 @@ module Appwrite
1670
1670
  end
1671
1671
 
1672
1672
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum'
1673
- .gsub('{databaseId}', database_id)
1674
- .gsub('{tableId}', table_id)
1673
+ .gsub('{databaseId}', @client.encode_path(database_id))
1674
+ .gsub('{tableId}', @client.encode_path(table_id))
1675
1675
 
1676
1676
  api_params = {
1677
1677
  key: key,
@@ -1746,9 +1746,9 @@ module Appwrite
1746
1746
  end
1747
1747
 
1748
1748
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/enum/{key}'
1749
- .gsub('{databaseId}', database_id)
1750
- .gsub('{tableId}', table_id)
1751
- .gsub('{key}', key)
1749
+ .gsub('{databaseId}', @client.encode_path(database_id))
1750
+ .gsub('{tableId}', @client.encode_path(table_id))
1751
+ .gsub('{key}', @client.encode_path(key))
1752
1752
 
1753
1753
  api_params = {
1754
1754
  elements: elements,
@@ -1816,8 +1816,8 @@ module Appwrite
1816
1816
  end
1817
1817
 
1818
1818
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float'
1819
- .gsub('{databaseId}', database_id)
1820
- .gsub('{tableId}', table_id)
1819
+ .gsub('{databaseId}', @client.encode_path(database_id))
1820
+ .gsub('{tableId}', @client.encode_path(table_id))
1821
1821
 
1822
1822
  api_params = {
1823
1823
  key: key,
@@ -1891,9 +1891,9 @@ module Appwrite
1891
1891
  end
1892
1892
 
1893
1893
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/float/{key}'
1894
- .gsub('{databaseId}', database_id)
1895
- .gsub('{tableId}', table_id)
1896
- .gsub('{key}', key)
1894
+ .gsub('{databaseId}', @client.encode_path(database_id))
1895
+ .gsub('{tableId}', @client.encode_path(table_id))
1896
+ .gsub('{key}', @client.encode_path(key))
1897
1897
 
1898
1898
  api_params = {
1899
1899
  required: required,
@@ -1962,8 +1962,8 @@ module Appwrite
1962
1962
  end
1963
1963
 
1964
1964
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer'
1965
- .gsub('{databaseId}', database_id)
1966
- .gsub('{tableId}', table_id)
1965
+ .gsub('{databaseId}', @client.encode_path(database_id))
1966
+ .gsub('{tableId}', @client.encode_path(table_id))
1967
1967
 
1968
1968
  api_params = {
1969
1969
  key: key,
@@ -2037,9 +2037,9 @@ module Appwrite
2037
2037
  end
2038
2038
 
2039
2039
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/integer/{key}'
2040
- .gsub('{databaseId}', database_id)
2041
- .gsub('{tableId}', table_id)
2042
- .gsub('{key}', key)
2040
+ .gsub('{databaseId}', @client.encode_path(database_id))
2041
+ .gsub('{tableId}', @client.encode_path(table_id))
2042
+ .gsub('{key}', @client.encode_path(key))
2043
2043
 
2044
2044
  api_params = {
2045
2045
  required: required,
@@ -2103,8 +2103,8 @@ module Appwrite
2103
2103
  end
2104
2104
 
2105
2105
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip'
2106
- .gsub('{databaseId}', database_id)
2107
- .gsub('{tableId}', table_id)
2106
+ .gsub('{databaseId}', @client.encode_path(database_id))
2107
+ .gsub('{tableId}', @client.encode_path(table_id))
2108
2108
 
2109
2109
  api_params = {
2110
2110
  key: key,
@@ -2172,9 +2172,9 @@ module Appwrite
2172
2172
  end
2173
2173
 
2174
2174
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/ip/{key}'
2175
- .gsub('{databaseId}', database_id)
2176
- .gsub('{tableId}', table_id)
2177
- .gsub('{key}', key)
2175
+ .gsub('{databaseId}', @client.encode_path(database_id))
2176
+ .gsub('{tableId}', @client.encode_path(table_id))
2177
+ .gsub('{key}', @client.encode_path(key))
2178
2178
 
2179
2179
  api_params = {
2180
2180
  required: required,
@@ -2233,8 +2233,8 @@ module Appwrite
2233
2233
  end
2234
2234
 
2235
2235
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line'
2236
- .gsub('{databaseId}', database_id)
2237
- .gsub('{tableId}', table_id)
2236
+ .gsub('{databaseId}', @client.encode_path(database_id))
2237
+ .gsub('{tableId}', @client.encode_path(table_id))
2238
2238
 
2239
2239
  api_params = {
2240
2240
  key: key,
@@ -2296,9 +2296,9 @@ module Appwrite
2296
2296
  end
2297
2297
 
2298
2298
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/line/{key}'
2299
- .gsub('{databaseId}', database_id)
2300
- .gsub('{tableId}', table_id)
2301
- .gsub('{key}', key)
2299
+ .gsub('{databaseId}', @client.encode_path(database_id))
2300
+ .gsub('{tableId}', @client.encode_path(table_id))
2301
+ .gsub('{key}', @client.encode_path(key))
2302
2302
 
2303
2303
  api_params = {
2304
2304
  required: required,
@@ -2362,8 +2362,8 @@ module Appwrite
2362
2362
  end
2363
2363
 
2364
2364
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext'
2365
- .gsub('{databaseId}', database_id)
2366
- .gsub('{tableId}', table_id)
2365
+ .gsub('{databaseId}', @client.encode_path(database_id))
2366
+ .gsub('{tableId}', @client.encode_path(table_id))
2367
2367
 
2368
2368
  api_params = {
2369
2369
  key: key,
@@ -2432,9 +2432,9 @@ module Appwrite
2432
2432
  end
2433
2433
 
2434
2434
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/longtext/{key}'
2435
- .gsub('{databaseId}', database_id)
2436
- .gsub('{tableId}', table_id)
2437
- .gsub('{key}', key)
2435
+ .gsub('{databaseId}', @client.encode_path(database_id))
2436
+ .gsub('{tableId}', @client.encode_path(table_id))
2437
+ .gsub('{key}', @client.encode_path(key))
2438
2438
 
2439
2439
  api_params = {
2440
2440
  required: required,
@@ -2498,8 +2498,8 @@ module Appwrite
2498
2498
  end
2499
2499
 
2500
2500
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext'
2501
- .gsub('{databaseId}', database_id)
2502
- .gsub('{tableId}', table_id)
2501
+ .gsub('{databaseId}', @client.encode_path(database_id))
2502
+ .gsub('{tableId}', @client.encode_path(table_id))
2503
2503
 
2504
2504
  api_params = {
2505
2505
  key: key,
@@ -2568,9 +2568,9 @@ module Appwrite
2568
2568
  end
2569
2569
 
2570
2570
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/mediumtext/{key}'
2571
- .gsub('{databaseId}', database_id)
2572
- .gsub('{tableId}', table_id)
2573
- .gsub('{key}', key)
2571
+ .gsub('{databaseId}', @client.encode_path(database_id))
2572
+ .gsub('{tableId}', @client.encode_path(table_id))
2573
+ .gsub('{key}', @client.encode_path(key))
2574
2574
 
2575
2575
  api_params = {
2576
2576
  required: required,
@@ -2629,8 +2629,8 @@ module Appwrite
2629
2629
  end
2630
2630
 
2631
2631
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point'
2632
- .gsub('{databaseId}', database_id)
2633
- .gsub('{tableId}', table_id)
2632
+ .gsub('{databaseId}', @client.encode_path(database_id))
2633
+ .gsub('{tableId}', @client.encode_path(table_id))
2634
2634
 
2635
2635
  api_params = {
2636
2636
  key: key,
@@ -2692,9 +2692,9 @@ module Appwrite
2692
2692
  end
2693
2693
 
2694
2694
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/point/{key}'
2695
- .gsub('{databaseId}', database_id)
2696
- .gsub('{tableId}', table_id)
2697
- .gsub('{key}', key)
2695
+ .gsub('{databaseId}', @client.encode_path(database_id))
2696
+ .gsub('{tableId}', @client.encode_path(table_id))
2697
+ .gsub('{key}', @client.encode_path(key))
2698
2698
 
2699
2699
  api_params = {
2700
2700
  required: required,
@@ -2753,8 +2753,8 @@ module Appwrite
2753
2753
  end
2754
2754
 
2755
2755
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon'
2756
- .gsub('{databaseId}', database_id)
2757
- .gsub('{tableId}', table_id)
2756
+ .gsub('{databaseId}', @client.encode_path(database_id))
2757
+ .gsub('{tableId}', @client.encode_path(table_id))
2758
2758
 
2759
2759
  api_params = {
2760
2760
  key: key,
@@ -2816,9 +2816,9 @@ module Appwrite
2816
2816
  end
2817
2817
 
2818
2818
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/polygon/{key}'
2819
- .gsub('{databaseId}', database_id)
2820
- .gsub('{tableId}', table_id)
2821
- .gsub('{key}', key)
2819
+ .gsub('{databaseId}', @client.encode_path(database_id))
2820
+ .gsub('{tableId}', @client.encode_path(table_id))
2821
+ .gsub('{key}', @client.encode_path(key))
2822
2822
 
2823
2823
  api_params = {
2824
2824
  required: required,
@@ -2885,8 +2885,8 @@ module Appwrite
2885
2885
  end
2886
2886
 
2887
2887
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship'
2888
- .gsub('{databaseId}', database_id)
2889
- .gsub('{tableId}', table_id)
2888
+ .gsub('{databaseId}', @client.encode_path(database_id))
2889
+ .gsub('{tableId}', @client.encode_path(table_id))
2890
2890
 
2891
2891
  api_params = {
2892
2892
  relatedTableId: related_table_id,
@@ -2946,9 +2946,9 @@ module Appwrite
2946
2946
  end
2947
2947
 
2948
2948
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/relationship/{key}'
2949
- .gsub('{databaseId}', database_id)
2950
- .gsub('{tableId}', table_id)
2951
- .gsub('{key}', key)
2949
+ .gsub('{databaseId}', @client.encode_path(database_id))
2950
+ .gsub('{tableId}', @client.encode_path(table_id))
2951
+ .gsub('{key}', @client.encode_path(key))
2952
2952
 
2953
2953
  api_params = {
2954
2954
  onDelete: on_delete,
@@ -3020,8 +3020,8 @@ module Appwrite
3020
3020
  end
3021
3021
 
3022
3022
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string'
3023
- .gsub('{databaseId}', database_id)
3024
- .gsub('{tableId}', table_id)
3023
+ .gsub('{databaseId}', @client.encode_path(database_id))
3024
+ .gsub('{tableId}', @client.encode_path(table_id))
3025
3025
 
3026
3026
  api_params = {
3027
3027
  key: key,
@@ -3096,9 +3096,9 @@ module Appwrite
3096
3096
  end
3097
3097
 
3098
3098
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/string/{key}'
3099
- .gsub('{databaseId}', database_id)
3100
- .gsub('{tableId}', table_id)
3101
- .gsub('{key}', key)
3099
+ .gsub('{databaseId}', @client.encode_path(database_id))
3100
+ .gsub('{tableId}', @client.encode_path(table_id))
3101
+ .gsub('{key}', @client.encode_path(key))
3102
3102
 
3103
3103
  api_params = {
3104
3104
  required: required,
@@ -3163,8 +3163,8 @@ module Appwrite
3163
3163
  end
3164
3164
 
3165
3165
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text'
3166
- .gsub('{databaseId}', database_id)
3167
- .gsub('{tableId}', table_id)
3166
+ .gsub('{databaseId}', @client.encode_path(database_id))
3167
+ .gsub('{tableId}', @client.encode_path(table_id))
3168
3168
 
3169
3169
  api_params = {
3170
3170
  key: key,
@@ -3233,9 +3233,9 @@ module Appwrite
3233
3233
  end
3234
3234
 
3235
3235
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/text/{key}'
3236
- .gsub('{databaseId}', database_id)
3237
- .gsub('{tableId}', table_id)
3238
- .gsub('{key}', key)
3236
+ .gsub('{databaseId}', @client.encode_path(database_id))
3237
+ .gsub('{tableId}', @client.encode_path(table_id))
3238
+ .gsub('{key}', @client.encode_path(key))
3239
3239
 
3240
3240
  api_params = {
3241
3241
  required: required,
@@ -3297,8 +3297,8 @@ module Appwrite
3297
3297
  end
3298
3298
 
3299
3299
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url'
3300
- .gsub('{databaseId}', database_id)
3301
- .gsub('{tableId}', table_id)
3300
+ .gsub('{databaseId}', @client.encode_path(database_id))
3301
+ .gsub('{tableId}', @client.encode_path(table_id))
3302
3302
 
3303
3303
  api_params = {
3304
3304
  key: key,
@@ -3366,9 +3366,9 @@ module Appwrite
3366
3366
  end
3367
3367
 
3368
3368
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/url/{key}'
3369
- .gsub('{databaseId}', database_id)
3370
- .gsub('{tableId}', table_id)
3371
- .gsub('{key}', key)
3369
+ .gsub('{databaseId}', @client.encode_path(database_id))
3370
+ .gsub('{tableId}', @client.encode_path(table_id))
3371
+ .gsub('{key}', @client.encode_path(key))
3372
3372
 
3373
3373
  api_params = {
3374
3374
  required: required,
@@ -3438,8 +3438,8 @@ module Appwrite
3438
3438
  end
3439
3439
 
3440
3440
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar'
3441
- .gsub('{databaseId}', database_id)
3442
- .gsub('{tableId}', table_id)
3441
+ .gsub('{databaseId}', @client.encode_path(database_id))
3442
+ .gsub('{tableId}', @client.encode_path(table_id))
3443
3443
 
3444
3444
  api_params = {
3445
3445
  key: key,
@@ -3511,9 +3511,9 @@ module Appwrite
3511
3511
  end
3512
3512
 
3513
3513
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/varchar/{key}'
3514
- .gsub('{databaseId}', database_id)
3515
- .gsub('{tableId}', table_id)
3516
- .gsub('{key}', key)
3514
+ .gsub('{databaseId}', @client.encode_path(database_id))
3515
+ .gsub('{tableId}', @client.encode_path(table_id))
3516
+ .gsub('{key}', @client.encode_path(key))
3517
3517
 
3518
3518
  api_params = {
3519
3519
  required: required,
@@ -3563,9 +3563,9 @@ module Appwrite
3563
3563
  end
3564
3564
 
3565
3565
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3566
- .gsub('{databaseId}', database_id)
3567
- .gsub('{tableId}', table_id)
3568
- .gsub('{key}', key)
3566
+ .gsub('{databaseId}', @client.encode_path(database_id))
3567
+ .gsub('{tableId}', @client.encode_path(table_id))
3568
+ .gsub('{key}', @client.encode_path(key))
3569
3569
 
3570
3570
  api_params = {}
3571
3571
 
@@ -3703,9 +3703,9 @@ module Appwrite
3703
3703
  end
3704
3704
 
3705
3705
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/columns/{key}'
3706
- .gsub('{databaseId}', database_id)
3707
- .gsub('{tableId}', table_id)
3708
- .gsub('{key}', key)
3706
+ .gsub('{databaseId}', @client.encode_path(database_id))
3707
+ .gsub('{tableId}', @client.encode_path(table_id))
3708
+ .gsub('{key}', @client.encode_path(key))
3709
3709
 
3710
3710
  api_params = {}
3711
3711
 
@@ -3746,8 +3746,8 @@ module Appwrite
3746
3746
  end
3747
3747
 
3748
3748
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3749
- .gsub('{databaseId}', database_id)
3750
- .gsub('{tableId}', table_id)
3749
+ .gsub('{databaseId}', @client.encode_path(database_id))
3750
+ .gsub('{tableId}', @client.encode_path(table_id))
3751
3751
 
3752
3752
  api_params = {
3753
3753
  queries: queries,
@@ -3815,8 +3815,8 @@ module Appwrite
3815
3815
  end
3816
3816
 
3817
3817
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes'
3818
- .gsub('{databaseId}', database_id)
3819
- .gsub('{tableId}', table_id)
3818
+ .gsub('{databaseId}', @client.encode_path(database_id))
3819
+ .gsub('{tableId}', @client.encode_path(table_id))
3820
3820
 
3821
3821
  api_params = {
3822
3822
  key: key,
@@ -3867,9 +3867,9 @@ module Appwrite
3867
3867
  end
3868
3868
 
3869
3869
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3870
- .gsub('{databaseId}', database_id)
3871
- .gsub('{tableId}', table_id)
3872
- .gsub('{key}', key)
3870
+ .gsub('{databaseId}', @client.encode_path(database_id))
3871
+ .gsub('{tableId}', @client.encode_path(table_id))
3872
+ .gsub('{key}', @client.encode_path(key))
3873
3873
 
3874
3874
  api_params = {}
3875
3875
 
@@ -3912,9 +3912,9 @@ module Appwrite
3912
3912
  end
3913
3913
 
3914
3914
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/indexes/{key}'
3915
- .gsub('{databaseId}', database_id)
3916
- .gsub('{tableId}', table_id)
3917
- .gsub('{key}', key)
3915
+ .gsub('{databaseId}', @client.encode_path(database_id))
3916
+ .gsub('{tableId}', @client.encode_path(table_id))
3917
+ .gsub('{key}', @client.encode_path(key))
3918
3918
 
3919
3919
  api_params = {}
3920
3920
 
@@ -3968,8 +3968,8 @@ module Appwrite
3968
3968
  end
3969
3969
 
3970
3970
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
3971
- .gsub('{databaseId}', database_id)
3972
- .gsub('{tableId}', table_id)
3971
+ .gsub('{databaseId}', @client.encode_path(database_id))
3972
+ .gsub('{tableId}', @client.encode_path(table_id))
3973
3973
 
3974
3974
  api_params = {
3975
3975
  queries: queries,
@@ -4030,8 +4030,8 @@ module Appwrite
4030
4030
  end
4031
4031
 
4032
4032
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4033
- .gsub('{databaseId}', database_id)
4034
- .gsub('{tableId}', table_id)
4033
+ .gsub('{databaseId}', @client.encode_path(database_id))
4034
+ .gsub('{tableId}', @client.encode_path(table_id))
4035
4035
 
4036
4036
  api_params = {
4037
4037
  rowId: row_id,
@@ -4085,8 +4085,8 @@ module Appwrite
4085
4085
  end
4086
4086
 
4087
4087
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4088
- .gsub('{databaseId}', database_id)
4089
- .gsub('{tableId}', table_id)
4088
+ .gsub('{databaseId}', @client.encode_path(database_id))
4089
+ .gsub('{tableId}', @client.encode_path(table_id))
4090
4090
 
4091
4091
  api_params = {
4092
4092
  rows: rows,
@@ -4139,8 +4139,8 @@ module Appwrite
4139
4139
  end
4140
4140
 
4141
4141
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4142
- .gsub('{databaseId}', database_id)
4143
- .gsub('{tableId}', table_id)
4142
+ .gsub('{databaseId}', @client.encode_path(database_id))
4143
+ .gsub('{tableId}', @client.encode_path(table_id))
4144
4144
 
4145
4145
  api_params = {
4146
4146
  rows: rows,
@@ -4188,8 +4188,8 @@ module Appwrite
4188
4188
  end
4189
4189
 
4190
4190
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4191
- .gsub('{databaseId}', database_id)
4192
- .gsub('{tableId}', table_id)
4191
+ .gsub('{databaseId}', @client.encode_path(database_id))
4192
+ .gsub('{tableId}', @client.encode_path(table_id))
4193
4193
 
4194
4194
  api_params = {
4195
4195
  data: data,
@@ -4236,8 +4236,8 @@ module Appwrite
4236
4236
  end
4237
4237
 
4238
4238
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows'
4239
- .gsub('{databaseId}', database_id)
4240
- .gsub('{tableId}', table_id)
4239
+ .gsub('{databaseId}', @client.encode_path(database_id))
4240
+ .gsub('{tableId}', @client.encode_path(table_id))
4241
4241
 
4242
4242
  api_params = {
4243
4243
  queries: queries,
@@ -4290,8 +4290,8 @@ module Appwrite
4290
4290
  end
4291
4291
 
4292
4292
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/query'
4293
- .gsub('{databaseId}', database_id)
4294
- .gsub('{tableId}', table_id)
4293
+ .gsub('{databaseId}', @client.encode_path(database_id))
4294
+ .gsub('{tableId}', @client.encode_path(table_id))
4295
4295
 
4296
4296
  api_params = {
4297
4297
  queries: queries,
@@ -4345,9 +4345,9 @@ module Appwrite
4345
4345
  end
4346
4346
 
4347
4347
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4348
- .gsub('{databaseId}', database_id)
4349
- .gsub('{tableId}', table_id)
4350
- .gsub('{rowId}', row_id)
4348
+ .gsub('{databaseId}', @client.encode_path(database_id))
4349
+ .gsub('{tableId}', @client.encode_path(table_id))
4350
+ .gsub('{rowId}', @client.encode_path(row_id))
4351
4351
 
4352
4352
  api_params = {
4353
4353
  queries: queries,
@@ -4402,9 +4402,9 @@ module Appwrite
4402
4402
  end
4403
4403
 
4404
4404
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4405
- .gsub('{databaseId}', database_id)
4406
- .gsub('{tableId}', table_id)
4407
- .gsub('{rowId}', row_id)
4405
+ .gsub('{databaseId}', @client.encode_path(database_id))
4406
+ .gsub('{tableId}', @client.encode_path(table_id))
4407
+ .gsub('{rowId}', @client.encode_path(row_id))
4408
4408
 
4409
4409
  api_params = {
4410
4410
  data: data,
@@ -4459,9 +4459,9 @@ module Appwrite
4459
4459
  end
4460
4460
 
4461
4461
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4462
- .gsub('{databaseId}', database_id)
4463
- .gsub('{tableId}', table_id)
4464
- .gsub('{rowId}', row_id)
4462
+ .gsub('{databaseId}', @client.encode_path(database_id))
4463
+ .gsub('{tableId}', @client.encode_path(table_id))
4464
+ .gsub('{rowId}', @client.encode_path(row_id))
4465
4465
 
4466
4466
  api_params = {
4467
4467
  data: data,
@@ -4511,9 +4511,9 @@ module Appwrite
4511
4511
  end
4512
4512
 
4513
4513
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}'
4514
- .gsub('{databaseId}', database_id)
4515
- .gsub('{tableId}', table_id)
4516
- .gsub('{rowId}', row_id)
4514
+ .gsub('{databaseId}', @client.encode_path(database_id))
4515
+ .gsub('{tableId}', @client.encode_path(table_id))
4516
+ .gsub('{rowId}', @client.encode_path(row_id))
4517
4517
 
4518
4518
  api_params = {
4519
4519
  transactionId: transaction_id,
@@ -4570,10 +4570,10 @@ module Appwrite
4570
4570
  end
4571
4571
 
4572
4572
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/decrement'
4573
- .gsub('{databaseId}', database_id)
4574
- .gsub('{tableId}', table_id)
4575
- .gsub('{rowId}', row_id)
4576
- .gsub('{column}', column)
4573
+ .gsub('{databaseId}', @client.encode_path(database_id))
4574
+ .gsub('{tableId}', @client.encode_path(table_id))
4575
+ .gsub('{rowId}', @client.encode_path(row_id))
4576
+ .gsub('{column}', @client.encode_path(column))
4577
4577
 
4578
4578
  api_params = {
4579
4579
  value: value,
@@ -4633,10 +4633,10 @@ module Appwrite
4633
4633
  end
4634
4634
 
4635
4635
  api_path = '/tablesdb/{databaseId}/tables/{tableId}/rows/{rowId}/{column}/increment'
4636
- .gsub('{databaseId}', database_id)
4637
- .gsub('{tableId}', table_id)
4638
- .gsub('{rowId}', row_id)
4639
- .gsub('{column}', column)
4636
+ .gsub('{databaseId}', @client.encode_path(database_id))
4637
+ .gsub('{tableId}', @client.encode_path(table_id))
4638
+ .gsub('{rowId}', @client.encode_path(row_id))
4639
+ .gsub('{column}', @client.encode_path(column))
4640
4640
 
4641
4641
  api_params = {
4642
4642
  value: value,