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
@@ -128,7 +128,7 @@ module Appwrite
128
128
  end
129
129
 
130
130
  api_path = '/storage/buckets/{bucketId}'
131
- .gsub('{bucketId}', bucket_id)
131
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
132
132
 
133
133
  api_params = {}
134
134
 
@@ -187,7 +187,7 @@ module Appwrite
187
187
  end
188
188
 
189
189
  api_path = '/storage/buckets/{bucketId}'
190
- .gsub('{bucketId}', bucket_id)
190
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
191
191
 
192
192
  api_params = {
193
193
  name: name,
@@ -232,7 +232,7 @@ module Appwrite
232
232
  end
233
233
 
234
234
  api_path = '/storage/buckets/{bucketId}'
235
- .gsub('{bucketId}', bucket_id)
235
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
236
236
 
237
237
  api_params = {}
238
238
 
@@ -270,7 +270,7 @@ module Appwrite
270
270
  end
271
271
 
272
272
  api_path = '/storage/buckets/{bucketId}/files'
273
- .gsub('{bucketId}', bucket_id)
273
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
274
274
 
275
275
  api_params = {
276
276
  queries: queries,
@@ -339,7 +339,7 @@ module Appwrite
339
339
  end
340
340
 
341
341
  api_path = '/storage/buckets/{bucketId}/files'
342
- .gsub('{bucketId}', bucket_id)
342
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
343
343
 
344
344
  api_params = {
345
345
  fileId: file_id,
@@ -389,8 +389,8 @@ module Appwrite
389
389
  end
390
390
 
391
391
  api_path = '/storage/buckets/{bucketId}/files/{fileId}'
392
- .gsub('{bucketId}', bucket_id)
393
- .gsub('{fileId}', file_id)
392
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
393
+ .gsub('{fileId}', @client.encode_path(file_id))
394
394
 
395
395
  api_params = {}
396
396
 
@@ -432,8 +432,8 @@ module Appwrite
432
432
  end
433
433
 
434
434
  api_path = '/storage/buckets/{bucketId}/files/{fileId}'
435
- .gsub('{bucketId}', bucket_id)
436
- .gsub('{fileId}', file_id)
435
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
436
+ .gsub('{fileId}', @client.encode_path(file_id))
437
437
 
438
438
  api_params = {
439
439
  name: name,
@@ -475,8 +475,8 @@ module Appwrite
475
475
  end
476
476
 
477
477
  api_path = '/storage/buckets/{bucketId}/files/{fileId}'
478
- .gsub('{bucketId}', bucket_id)
479
- .gsub('{fileId}', file_id)
478
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
479
+ .gsub('{fileId}', @client.encode_path(file_id))
480
480
 
481
481
  api_params = {}
482
482
 
@@ -517,8 +517,8 @@ module Appwrite
517
517
  end
518
518
 
519
519
  api_path = '/storage/buckets/{bucketId}/files/{fileId}/download'
520
- .gsub('{bucketId}', bucket_id)
521
- .gsub('{fileId}', file_id)
520
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
521
+ .gsub('{fileId}', @client.encode_path(file_id))
522
522
 
523
523
  api_params = {
524
524
  token: token,
@@ -584,8 +584,8 @@ module Appwrite
584
584
  end
585
585
 
586
586
  api_path = '/storage/buckets/{bucketId}/files/{fileId}/preview'
587
- .gsub('{bucketId}', bucket_id)
588
- .gsub('{fileId}', file_id)
587
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
588
+ .gsub('{fileId}', @client.encode_path(file_id))
589
589
 
590
590
  api_params = {
591
591
  width: width,
@@ -638,8 +638,8 @@ module Appwrite
638
638
  end
639
639
 
640
640
  api_path = '/storage/buckets/{bucketId}/files/{fileId}/view'
641
- .gsub('{bucketId}', bucket_id)
642
- .gsub('{fileId}', file_id)
641
+ .gsub('{bucketId}', @client.encode_path(bucket_id))
642
+ .gsub('{fileId}', @client.encode_path(file_id))
643
643
 
644
644
  api_params = {
645
645
  token: token,