appwrite 30.0.1 → 30.2.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.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +58 -24
- data/lib/appwrite/enums/appwrite_migration_resource.rb +47 -0
- data/lib/appwrite/enums/build_runtime.rb +4 -0
- data/lib/appwrite/enums/environment_resource.rb +40 -0
- data/lib/appwrite/enums/firebase_migration_resource.rb +16 -0
- data/lib/appwrite/enums/n_host_migration_resource.rb +17 -0
- data/lib/appwrite/enums/o_auth_provider.rb +2 -0
- data/lib/appwrite/enums/on_duplicate.rb +9 -0
- data/lib/appwrite/enums/project_key_scopes.rb +6 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +2 -0
- data/lib/appwrite/enums/project_policy_id.rb +2 -0
- data/lib/appwrite/enums/runtime.rb +4 -0
- data/lib/appwrite/enums/supabase_migration_resource.rb +17 -0
- data/lib/appwrite/models/activity_event.rb +9 -4
- data/lib/appwrite/models/billing_plan.rb +15 -0
- data/lib/appwrite/models/device.rb +58 -0
- data/lib/appwrite/models/environment.rb +48 -0
- data/lib/appwrite/models/environment_list.rb +33 -0
- data/lib/appwrite/models/migration.rb +128 -0
- data/lib/appwrite/models/migration_list.rb +33 -0
- data/lib/appwrite/models/o_auth2_vipps.rb +43 -0
- data/lib/appwrite/models/organization.rb +16 -1
- data/lib/appwrite/models/policy_account_devices.rb +33 -0
- data/lib/appwrite/models/policy_deny_realtime_guests.rb +33 -0
- data/lib/appwrite/models/project.rb +10 -0
- data/lib/appwrite/models/proxy_rule.rb +11 -1
- data/lib/appwrite/models/session.rb +6 -1
- data/lib/appwrite/models/waf_rule_bypass.rb +8 -3
- data/lib/appwrite/models/waf_rule_challenge.rb +5 -0
- data/lib/appwrite/models/waf_rule_deny.rb +8 -3
- data/lib/appwrite/models/waf_rule_rate_limit.rb +5 -0
- data/lib/appwrite/models/waf_rule_redirect.rb +5 -0
- data/lib/appwrite/services/account.rb +175 -20
- data/lib/appwrite/services/activities.rb +1 -1
- data/lib/appwrite/services/advisor.rb +5 -5
- data/lib/appwrite/services/apps.rb +25 -25
- data/lib/appwrite/services/avatars.rb +3 -3
- data/lib/appwrite/services/backups.rb +6 -6
- data/lib/appwrite/services/databases.rb +157 -157
- data/lib/appwrite/services/documents_db.rb +63 -63
- data/lib/appwrite/services/domains.rb +77 -77
- data/lib/appwrite/services/functions.rb +33 -33
- data/lib/appwrite/services/messaging.rb +30 -30
- data/lib/appwrite/services/migrations.rb +653 -0
- data/lib/appwrite/services/mongo.rb +37 -37
- data/lib/appwrite/services/mysql.rb +40 -40
- data/lib/appwrite/services/oauth2.rb +14 -14
- data/lib/appwrite/services/organization.rb +17 -17
- data/lib/appwrite/services/postgresql.rb +44 -44
- data/lib/appwrite/services/presences.rb +4 -4
- data/lib/appwrite/services/project.rb +321 -47
- data/lib/appwrite/services/proxy.rb +157 -4
- data/lib/appwrite/services/sites.rb +32 -32
- data/lib/appwrite/services/storage.rb +19 -19
- data/lib/appwrite/services/tables_db.rb +169 -169
- data/lib/appwrite/services/teams.rb +23 -23
- data/lib/appwrite/services/tokens.rb +7 -7
- data/lib/appwrite/services/users.rb +50 -50
- data/lib/appwrite/services/vectors_db.rb +55 -55
- data/lib/appwrite/services/waf.rb +97 -45
- data/lib/appwrite/services/webhooks.rb +4 -4
- data/lib/appwrite.rb +17 -0
- metadata +17 -2
|
@@ -192,7 +192,7 @@ module Appwrite
|
|
|
192
192
|
end
|
|
193
193
|
|
|
194
194
|
api_path = '/vectorsdb/transactions/{transactionId}'
|
|
195
|
-
.gsub('{transactionId}', transaction_id)
|
|
195
|
+
.gsub('{transactionId}', @client.encode_path(transaction_id))
|
|
196
196
|
|
|
197
197
|
api_params = {}
|
|
198
198
|
|
|
@@ -227,7 +227,7 @@ module Appwrite
|
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
api_path = '/vectorsdb/transactions/{transactionId}'
|
|
230
|
-
.gsub('{transactionId}', transaction_id)
|
|
230
|
+
.gsub('{transactionId}', @client.encode_path(transaction_id))
|
|
231
231
|
|
|
232
232
|
api_params = {
|
|
233
233
|
commit: commit,
|
|
@@ -262,7 +262,7 @@ module Appwrite
|
|
|
262
262
|
end
|
|
263
263
|
|
|
264
264
|
api_path = '/vectorsdb/transactions/{transactionId}'
|
|
265
|
-
.gsub('{transactionId}', transaction_id)
|
|
265
|
+
.gsub('{transactionId}', @client.encode_path(transaction_id))
|
|
266
266
|
|
|
267
267
|
api_params = {}
|
|
268
268
|
|
|
@@ -295,7 +295,7 @@ module Appwrite
|
|
|
295
295
|
end
|
|
296
296
|
|
|
297
297
|
api_path = '/vectorsdb/transactions/{transactionId}/operations'
|
|
298
|
-
.gsub('{transactionId}', transaction_id)
|
|
298
|
+
.gsub('{transactionId}', @client.encode_path(transaction_id))
|
|
299
299
|
|
|
300
300
|
api_params = {
|
|
301
301
|
operations: operations,
|
|
@@ -330,7 +330,7 @@ module Appwrite
|
|
|
330
330
|
end
|
|
331
331
|
|
|
332
332
|
api_path = '/vectorsdb/{databaseId}'
|
|
333
|
-
.gsub('{databaseId}', database_id)
|
|
333
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
334
334
|
|
|
335
335
|
api_params = {}
|
|
336
336
|
|
|
@@ -377,7 +377,7 @@ module Appwrite
|
|
|
377
377
|
end
|
|
378
378
|
|
|
379
379
|
api_path = '/vectorsdb/{databaseId}'
|
|
380
|
-
.gsub('{databaseId}', database_id)
|
|
380
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
381
381
|
|
|
382
382
|
api_params = {
|
|
383
383
|
name: name,
|
|
@@ -417,7 +417,7 @@ module Appwrite
|
|
|
417
417
|
end
|
|
418
418
|
|
|
419
419
|
api_path = '/vectorsdb/{databaseId}'
|
|
420
|
-
.gsub('{databaseId}', database_id)
|
|
420
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
421
421
|
|
|
422
422
|
api_params = {}
|
|
423
423
|
|
|
@@ -455,7 +455,7 @@ module Appwrite
|
|
|
455
455
|
end
|
|
456
456
|
|
|
457
457
|
api_path = '/vectorsdb/{databaseId}/collections'
|
|
458
|
-
.gsub('{databaseId}', database_id)
|
|
458
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
459
459
|
|
|
460
460
|
api_params = {
|
|
461
461
|
queries: queries,
|
|
@@ -519,7 +519,7 @@ module Appwrite
|
|
|
519
519
|
end
|
|
520
520
|
|
|
521
521
|
api_path = '/vectorsdb/{databaseId}/collections'
|
|
522
|
-
.gsub('{databaseId}', database_id)
|
|
522
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
523
523
|
|
|
524
524
|
api_params = {
|
|
525
525
|
collectionId: collection_id,
|
|
@@ -566,8 +566,8 @@ module Appwrite
|
|
|
566
566
|
end
|
|
567
567
|
|
|
568
568
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}'
|
|
569
|
-
.gsub('{databaseId}', database_id)
|
|
570
|
-
.gsub('{collectionId}', collection_id)
|
|
569
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
570
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
571
571
|
|
|
572
572
|
api_params = {}
|
|
573
573
|
|
|
@@ -620,8 +620,8 @@ module Appwrite
|
|
|
620
620
|
end
|
|
621
621
|
|
|
622
622
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}'
|
|
623
|
-
.gsub('{databaseId}', database_id)
|
|
624
|
-
.gsub('{collectionId}', collection_id)
|
|
623
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
624
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
625
625
|
|
|
626
626
|
api_params = {
|
|
627
627
|
name: name,
|
|
@@ -667,8 +667,8 @@ module Appwrite
|
|
|
667
667
|
end
|
|
668
668
|
|
|
669
669
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}'
|
|
670
|
-
.gsub('{databaseId}', database_id)
|
|
671
|
-
.gsub('{collectionId}', collection_id)
|
|
670
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
671
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
672
672
|
|
|
673
673
|
api_params = {}
|
|
674
674
|
|
|
@@ -714,8 +714,8 @@ module Appwrite
|
|
|
714
714
|
end
|
|
715
715
|
|
|
716
716
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
717
|
-
.gsub('{databaseId}', database_id)
|
|
718
|
-
.gsub('{collectionId}', collection_id)
|
|
717
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
718
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
719
719
|
|
|
720
720
|
api_params = {
|
|
721
721
|
queries: queries,
|
|
@@ -776,8 +776,8 @@ module Appwrite
|
|
|
776
776
|
end
|
|
777
777
|
|
|
778
778
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
779
|
-
.gsub('{databaseId}', database_id)
|
|
780
|
-
.gsub('{collectionId}', collection_id)
|
|
779
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
780
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
781
781
|
|
|
782
782
|
api_params = {
|
|
783
783
|
documentId: document_id,
|
|
@@ -831,8 +831,8 @@ module Appwrite
|
|
|
831
831
|
end
|
|
832
832
|
|
|
833
833
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
834
|
-
.gsub('{databaseId}', database_id)
|
|
835
|
-
.gsub('{collectionId}', collection_id)
|
|
834
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
835
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
836
836
|
|
|
837
837
|
api_params = {
|
|
838
838
|
documents: documents,
|
|
@@ -885,8 +885,8 @@ module Appwrite
|
|
|
885
885
|
end
|
|
886
886
|
|
|
887
887
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
888
|
-
.gsub('{databaseId}', database_id)
|
|
889
|
-
.gsub('{collectionId}', collection_id)
|
|
888
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
889
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
890
890
|
|
|
891
891
|
api_params = {
|
|
892
892
|
documents: documents,
|
|
@@ -935,8 +935,8 @@ module Appwrite
|
|
|
935
935
|
end
|
|
936
936
|
|
|
937
937
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
938
|
-
.gsub('{databaseId}', database_id)
|
|
939
|
-
.gsub('{collectionId}', collection_id)
|
|
938
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
939
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
940
940
|
|
|
941
941
|
api_params = {
|
|
942
942
|
data: data,
|
|
@@ -983,8 +983,8 @@ module Appwrite
|
|
|
983
983
|
end
|
|
984
984
|
|
|
985
985
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents'
|
|
986
|
-
.gsub('{databaseId}', database_id)
|
|
987
|
-
.gsub('{collectionId}', collection_id)
|
|
986
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
987
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
988
988
|
|
|
989
989
|
api_params = {
|
|
990
990
|
queries: queries,
|
|
@@ -1037,8 +1037,8 @@ module Appwrite
|
|
|
1037
1037
|
end
|
|
1038
1038
|
|
|
1039
1039
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/query'
|
|
1040
|
-
.gsub('{databaseId}', database_id)
|
|
1041
|
-
.gsub('{collectionId}', collection_id)
|
|
1040
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1041
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1042
1042
|
|
|
1043
1043
|
api_params = {
|
|
1044
1044
|
queries: queries,
|
|
@@ -1092,9 +1092,9 @@ module Appwrite
|
|
|
1092
1092
|
end
|
|
1093
1093
|
|
|
1094
1094
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}'
|
|
1095
|
-
.gsub('{databaseId}', database_id)
|
|
1096
|
-
.gsub('{collectionId}', collection_id)
|
|
1097
|
-
.gsub('{documentId}', document_id)
|
|
1095
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1096
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1097
|
+
.gsub('{documentId}', @client.encode_path(document_id))
|
|
1098
1098
|
|
|
1099
1099
|
api_params = {
|
|
1100
1100
|
queries: queries,
|
|
@@ -1149,9 +1149,9 @@ module Appwrite
|
|
|
1149
1149
|
end
|
|
1150
1150
|
|
|
1151
1151
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}'
|
|
1152
|
-
.gsub('{databaseId}', database_id)
|
|
1153
|
-
.gsub('{collectionId}', collection_id)
|
|
1154
|
-
.gsub('{documentId}', document_id)
|
|
1152
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1153
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1154
|
+
.gsub('{documentId}', @client.encode_path(document_id))
|
|
1155
1155
|
|
|
1156
1156
|
api_params = {
|
|
1157
1157
|
data: data,
|
|
@@ -1206,9 +1206,9 @@ module Appwrite
|
|
|
1206
1206
|
end
|
|
1207
1207
|
|
|
1208
1208
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}'
|
|
1209
|
-
.gsub('{databaseId}', database_id)
|
|
1210
|
-
.gsub('{collectionId}', collection_id)
|
|
1211
|
-
.gsub('{documentId}', document_id)
|
|
1209
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1210
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1211
|
+
.gsub('{documentId}', @client.encode_path(document_id))
|
|
1212
1212
|
|
|
1213
1213
|
api_params = {
|
|
1214
1214
|
data: data,
|
|
@@ -1258,9 +1258,9 @@ module Appwrite
|
|
|
1258
1258
|
end
|
|
1259
1259
|
|
|
1260
1260
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/documents/{documentId}'
|
|
1261
|
-
.gsub('{databaseId}', database_id)
|
|
1262
|
-
.gsub('{collectionId}', collection_id)
|
|
1263
|
-
.gsub('{documentId}', document_id)
|
|
1261
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1262
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1263
|
+
.gsub('{documentId}', @client.encode_path(document_id))
|
|
1264
1264
|
|
|
1265
1265
|
api_params = {
|
|
1266
1266
|
transactionId: transaction_id,
|
|
@@ -1303,8 +1303,8 @@ module Appwrite
|
|
|
1303
1303
|
end
|
|
1304
1304
|
|
|
1305
1305
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/indexes'
|
|
1306
|
-
.gsub('{databaseId}', database_id)
|
|
1307
|
-
.gsub('{collectionId}', collection_id)
|
|
1306
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1307
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1308
1308
|
|
|
1309
1309
|
api_params = {
|
|
1310
1310
|
queries: queries,
|
|
@@ -1370,8 +1370,8 @@ module Appwrite
|
|
|
1370
1370
|
end
|
|
1371
1371
|
|
|
1372
1372
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/indexes'
|
|
1373
|
-
.gsub('{databaseId}', database_id)
|
|
1374
|
-
.gsub('{collectionId}', collection_id)
|
|
1373
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1374
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1375
1375
|
|
|
1376
1376
|
api_params = {
|
|
1377
1377
|
key: key,
|
|
@@ -1422,9 +1422,9 @@ module Appwrite
|
|
|
1422
1422
|
end
|
|
1423
1423
|
|
|
1424
1424
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/indexes/{key}'
|
|
1425
|
-
.gsub('{databaseId}', database_id)
|
|
1426
|
-
.gsub('{collectionId}', collection_id)
|
|
1427
|
-
.gsub('{key}', key)
|
|
1425
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1426
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1427
|
+
.gsub('{key}', @client.encode_path(key))
|
|
1428
1428
|
|
|
1429
1429
|
api_params = {}
|
|
1430
1430
|
|
|
@@ -1467,9 +1467,9 @@ module Appwrite
|
|
|
1467
1467
|
end
|
|
1468
1468
|
|
|
1469
1469
|
api_path = '/vectorsdb/{databaseId}/collections/{collectionId}/indexes/{key}'
|
|
1470
|
-
.gsub('{databaseId}', database_id)
|
|
1471
|
-
.gsub('{collectionId}', collection_id)
|
|
1472
|
-
.gsub('{key}', key)
|
|
1470
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1471
|
+
.gsub('{collectionId}', @client.encode_path(collection_id))
|
|
1472
|
+
.gsub('{key}', @client.encode_path(key))
|
|
1473
1473
|
|
|
1474
1474
|
api_params = {}
|
|
1475
1475
|
|
|
@@ -1510,7 +1510,7 @@ module Appwrite
|
|
|
1510
1510
|
end
|
|
1511
1511
|
|
|
1512
1512
|
api_path = '/vectorsdb/{databaseId}/failovers'
|
|
1513
|
-
.gsub('{databaseId}', database_id)
|
|
1513
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1514
1514
|
|
|
1515
1515
|
api_params = {
|
|
1516
1516
|
targetReplicaId: target_replica_id,
|
|
@@ -1553,7 +1553,7 @@ module Appwrite
|
|
|
1553
1553
|
end
|
|
1554
1554
|
|
|
1555
1555
|
api_path = '/vectorsdb/{databaseId}/operations'
|
|
1556
|
-
.gsub('{databaseId}', database_id)
|
|
1556
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1557
1557
|
|
|
1558
1558
|
api_params = {
|
|
1559
1559
|
status: status,
|
|
@@ -1589,7 +1589,7 @@ module Appwrite
|
|
|
1589
1589
|
end
|
|
1590
1590
|
|
|
1591
1591
|
api_path = '/vectorsdb/{databaseId}/replicas'
|
|
1592
|
-
.gsub('{databaseId}', database_id)
|
|
1592
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1593
1593
|
|
|
1594
1594
|
api_params = {}
|
|
1595
1595
|
|
|
@@ -1622,7 +1622,7 @@ module Appwrite
|
|
|
1622
1622
|
end
|
|
1623
1623
|
|
|
1624
1624
|
api_path = '/vectorsdb/{databaseId}/status'
|
|
1625
|
-
.gsub('{databaseId}', database_id)
|
|
1625
|
+
.gsub('{databaseId}', @client.encode_path(database_id))
|
|
1626
1626
|
|
|
1627
1627
|
api_params = {}
|
|
1628
1628
|
|