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.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +18 -4
- data/lib/appwrite/enums/billing_plan_group.rb +9 -0
- data/lib/appwrite/enums/database_status.rb +9 -0
- data/lib/appwrite/enums/o_auth2_oidc_prompt.rb +10 -0
- data/lib/appwrite/enums/o_auth_provider.rb +1 -0
- data/lib/appwrite/enums/organization_key_scopes.rb +4 -0
- data/lib/appwrite/enums/project_key_scopes.rb +7 -2
- data/lib/appwrite/enums/project_o_auth2_oidc_prompt.rb +10 -0
- data/lib/appwrite/enums/project_o_auth_provider_id.rb +1 -0
- data/lib/appwrite/enums/project_policy_id.rb +1 -0
- data/lib/appwrite/enums/project_service_id.rb +1 -0
- data/lib/appwrite/models/activity_event.rb +3 -73
- data/lib/appwrite/models/additional_resource.rb +52 -0
- data/lib/appwrite/models/backup_policy.rb +5 -0
- data/lib/appwrite/models/billing_plan.rb +379 -0
- data/lib/appwrite/models/billing_plan_addon.rb +32 -0
- data/lib/appwrite/models/billing_plan_addon_details.rb +62 -0
- data/lib/appwrite/models/billing_plan_dedicated_database_limits.rb +117 -0
- data/lib/appwrite/models/billing_plan_limits.rb +32 -0
- data/lib/appwrite/models/billing_plan_supported_addons.rb +37 -0
- data/lib/appwrite/models/block.rb +5 -0
- data/lib/appwrite/models/database.rb +19 -0
- data/lib/appwrite/models/locale.rb +58 -3
- data/lib/appwrite/models/membership.rb +5 -0
- data/lib/appwrite/models/o_auth2_appwrite.rb +42 -0
- data/lib/appwrite/models/o_auth2_oidc.rb +13 -3
- data/lib/appwrite/models/organization.rb +197 -0
- data/lib/appwrite/models/policy_deny_corporate_email.rb +32 -0
- data/lib/appwrite/models/policy_membership_privacy.rb +8 -3
- data/lib/appwrite/models/program.rb +67 -0
- data/lib/appwrite/models/project.rb +46 -11
- data/lib/appwrite/models/usage_billing_plan.rb +77 -0
- data/lib/appwrite/models/user.rb +25 -0
- data/lib/appwrite/query.rb +13 -1
- data/lib/appwrite/services/account.rb +42 -1
- data/lib/appwrite/services/activities.rb +2 -0
- data/lib/appwrite/services/advisor.rb +4 -0
- data/lib/appwrite/services/avatars.rb +8 -0
- data/lib/appwrite/services/backups.rb +25 -1
- data/lib/appwrite/services/databases.rb +107 -0
- data/lib/appwrite/services/functions.rb +30 -4
- data/lib/appwrite/services/graphql.rb +2 -0
- data/lib/appwrite/services/locale.rb +8 -0
- data/lib/appwrite/services/messaging.rb +42 -136
- data/lib/appwrite/services/organization.rb +268 -3
- data/lib/appwrite/services/presences.rb +4 -0
- data/lib/appwrite/services/project.rb +190 -9
- data/lib/appwrite/services/proxy.rb +7 -0
- data/lib/appwrite/services/sites.rb +25 -1
- data/lib/appwrite/services/storage.rb +11 -0
- data/lib/appwrite/services/tables_db.rb +68 -1
- data/lib/appwrite/services/teams.rb +11 -0
- data/lib/appwrite/services/tokens.rb +4 -0
- data/lib/appwrite/services/users.rb +38 -1
- data/lib/appwrite/services/webhooks.rb +5 -0
- data/lib/appwrite.rb +16 -15
- metadata +18 -17
- data/lib/appwrite/enums/health_antivirus_status.rb +0 -9
- data/lib/appwrite/enums/health_check_status.rb +0 -8
- data/lib/appwrite/enums/health_queue_name.rb +0 -19
- data/lib/appwrite/models/health_antivirus.rb +0 -49
- data/lib/appwrite/models/health_certificate.rb +0 -52
- data/lib/appwrite/models/health_queue.rb +0 -27
- data/lib/appwrite/models/health_status.rb +0 -53
- data/lib/appwrite/models/health_status_list.rb +0 -32
- data/lib/appwrite/models/health_time.rb +0 -37
- data/lib/appwrite/models/usage_event.rb +0 -72
- data/lib/appwrite/models/usage_event_list.rb +0 -32
- data/lib/appwrite/models/usage_gauge.rb +0 -47
- data/lib/appwrite/models/usage_gauge_list.rb +0 -32
- data/lib/appwrite/services/health.rb +0 -681
- data/lib/appwrite/services/usage.rb +0 -88
|
@@ -25,6 +25,7 @@ module Appwrite
|
|
|
25
25
|
|
|
26
26
|
api_headers = {
|
|
27
27
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
28
|
+
"accept": 'application/json',
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
@client.call(
|
|
@@ -86,6 +87,7 @@ module Appwrite
|
|
|
86
87
|
api_headers = {
|
|
87
88
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
88
89
|
"content-type": 'application/json',
|
|
90
|
+
"accept": 'application/json',
|
|
89
91
|
}
|
|
90
92
|
|
|
91
93
|
@client.call(
|
|
@@ -142,6 +144,7 @@ module Appwrite
|
|
|
142
144
|
api_headers = {
|
|
143
145
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
144
146
|
"content-type": 'application/json',
|
|
147
|
+
"accept": 'application/json',
|
|
145
148
|
}
|
|
146
149
|
|
|
147
150
|
@client.call(
|
|
@@ -209,6 +212,7 @@ module Appwrite
|
|
|
209
212
|
api_headers = {
|
|
210
213
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
211
214
|
"content-type": 'application/json',
|
|
215
|
+
"accept": 'application/json',
|
|
212
216
|
}
|
|
213
217
|
|
|
214
218
|
@client.call(
|
|
@@ -279,6 +283,7 @@ module Appwrite
|
|
|
279
283
|
api_headers = {
|
|
280
284
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
281
285
|
"content-type": 'application/json',
|
|
286
|
+
"accept": 'application/json',
|
|
282
287
|
}
|
|
283
288
|
|
|
284
289
|
@client.call(
|
|
@@ -326,6 +331,7 @@ module Appwrite
|
|
|
326
331
|
api_headers = {
|
|
327
332
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
328
333
|
"content-type": 'application/json',
|
|
334
|
+
"accept": 'application/json',
|
|
329
335
|
}
|
|
330
336
|
|
|
331
337
|
@client.call(
|
|
@@ -372,6 +378,7 @@ module Appwrite
|
|
|
372
378
|
api_headers = {
|
|
373
379
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
374
380
|
"content-type": 'application/json',
|
|
381
|
+
"accept": 'application/json',
|
|
375
382
|
}
|
|
376
383
|
|
|
377
384
|
@client.call(
|
|
@@ -403,6 +410,7 @@ module Appwrite
|
|
|
403
410
|
|
|
404
411
|
api_headers = {
|
|
405
412
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
413
|
+
"accept": 'application/json',
|
|
406
414
|
}
|
|
407
415
|
|
|
408
416
|
@client.call(
|
|
@@ -446,40 +454,6 @@ module Appwrite
|
|
|
446
454
|
|
|
447
455
|
end
|
|
448
456
|
|
|
449
|
-
# Get the message activity logs listed by its unique ID.
|
|
450
|
-
#
|
|
451
|
-
# @param [String] message_id Message ID.
|
|
452
|
-
# @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). Only supported methods are limit and offset
|
|
453
|
-
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
454
|
-
#
|
|
455
|
-
# @return [LogList]
|
|
456
|
-
def list_message_logs(message_id:, queries: nil, total: nil)
|
|
457
|
-
api_path = '/messaging/messages/{messageId}/logs'
|
|
458
|
-
.gsub('{messageId}', message_id)
|
|
459
|
-
|
|
460
|
-
if message_id.nil?
|
|
461
|
-
raise Appwrite::Exception.new('Missing required parameter: "messageId"')
|
|
462
|
-
end
|
|
463
|
-
|
|
464
|
-
api_params = {
|
|
465
|
-
queries: queries,
|
|
466
|
-
total: total,
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
api_headers = {
|
|
470
|
-
"X-Appwrite-Project": @client.get_config('project'),
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
@client.call(
|
|
474
|
-
method: 'GET',
|
|
475
|
-
path: api_path,
|
|
476
|
-
headers: api_headers,
|
|
477
|
-
params: api_params,
|
|
478
|
-
response_type: Models::LogList
|
|
479
|
-
)
|
|
480
|
-
|
|
481
|
-
end
|
|
482
|
-
|
|
483
457
|
# Get a list of the targets associated with a message.
|
|
484
458
|
#
|
|
485
459
|
# @param [String] message_id Message ID.
|
|
@@ -502,6 +476,7 @@ module Appwrite
|
|
|
502
476
|
|
|
503
477
|
api_headers = {
|
|
504
478
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
479
|
+
"accept": 'application/json',
|
|
505
480
|
}
|
|
506
481
|
|
|
507
482
|
@client.call(
|
|
@@ -532,6 +507,7 @@ module Appwrite
|
|
|
532
507
|
|
|
533
508
|
api_headers = {
|
|
534
509
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
510
|
+
"accept": 'application/json',
|
|
535
511
|
}
|
|
536
512
|
|
|
537
513
|
@client.call(
|
|
@@ -581,6 +557,7 @@ module Appwrite
|
|
|
581
557
|
api_headers = {
|
|
582
558
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
583
559
|
"content-type": 'application/json',
|
|
560
|
+
"accept": 'application/json',
|
|
584
561
|
}
|
|
585
562
|
|
|
586
563
|
@client.call(
|
|
@@ -626,6 +603,7 @@ module Appwrite
|
|
|
626
603
|
api_headers = {
|
|
627
604
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
628
605
|
"content-type": 'application/json',
|
|
606
|
+
"accept": 'application/json',
|
|
629
607
|
}
|
|
630
608
|
|
|
631
609
|
@client.call(
|
|
@@ -667,6 +645,7 @@ module Appwrite
|
|
|
667
645
|
api_headers = {
|
|
668
646
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
669
647
|
"content-type": 'application/json',
|
|
648
|
+
"accept": 'application/json',
|
|
670
649
|
}
|
|
671
650
|
|
|
672
651
|
@client.call(
|
|
@@ -704,6 +683,7 @@ module Appwrite
|
|
|
704
683
|
api_headers = {
|
|
705
684
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
706
685
|
"content-type": 'application/json',
|
|
686
|
+
"accept": 'application/json',
|
|
707
687
|
}
|
|
708
688
|
|
|
709
689
|
@client.call(
|
|
@@ -757,6 +737,7 @@ module Appwrite
|
|
|
757
737
|
api_headers = {
|
|
758
738
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
759
739
|
"content-type": 'application/json',
|
|
740
|
+
"accept": 'application/json',
|
|
760
741
|
}
|
|
761
742
|
|
|
762
743
|
@client.call(
|
|
@@ -806,6 +787,7 @@ module Appwrite
|
|
|
806
787
|
api_headers = {
|
|
807
788
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
808
789
|
"content-type": 'application/json',
|
|
790
|
+
"accept": 'application/json',
|
|
809
791
|
}
|
|
810
792
|
|
|
811
793
|
@client.call(
|
|
@@ -851,6 +833,7 @@ module Appwrite
|
|
|
851
833
|
api_headers = {
|
|
852
834
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
853
835
|
"content-type": 'application/json',
|
|
836
|
+
"accept": 'application/json',
|
|
854
837
|
}
|
|
855
838
|
|
|
856
839
|
@client.call(
|
|
@@ -892,6 +875,7 @@ module Appwrite
|
|
|
892
875
|
api_headers = {
|
|
893
876
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
894
877
|
"content-type": 'application/json',
|
|
878
|
+
"accept": 'application/json',
|
|
895
879
|
}
|
|
896
880
|
|
|
897
881
|
@client.call(
|
|
@@ -941,6 +925,7 @@ module Appwrite
|
|
|
941
925
|
api_headers = {
|
|
942
926
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
943
927
|
"content-type": 'application/json',
|
|
928
|
+
"accept": 'application/json',
|
|
944
929
|
}
|
|
945
930
|
|
|
946
931
|
@client.call(
|
|
@@ -986,6 +971,7 @@ module Appwrite
|
|
|
986
971
|
api_headers = {
|
|
987
972
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
988
973
|
"content-type": 'application/json',
|
|
974
|
+
"accept": 'application/json',
|
|
989
975
|
}
|
|
990
976
|
|
|
991
977
|
@client.call(
|
|
@@ -1035,6 +1021,7 @@ module Appwrite
|
|
|
1035
1021
|
api_headers = {
|
|
1036
1022
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1037
1023
|
"content-type": 'application/json',
|
|
1024
|
+
"accept": 'application/json',
|
|
1038
1025
|
}
|
|
1039
1026
|
|
|
1040
1027
|
@client.call(
|
|
@@ -1080,6 +1067,7 @@ module Appwrite
|
|
|
1080
1067
|
api_headers = {
|
|
1081
1068
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1082
1069
|
"content-type": 'application/json',
|
|
1070
|
+
"accept": 'application/json',
|
|
1083
1071
|
}
|
|
1084
1072
|
|
|
1085
1073
|
@client.call(
|
|
@@ -1133,6 +1121,7 @@ module Appwrite
|
|
|
1133
1121
|
api_headers = {
|
|
1134
1122
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1135
1123
|
"content-type": 'application/json',
|
|
1124
|
+
"accept": 'application/json',
|
|
1136
1125
|
}
|
|
1137
1126
|
|
|
1138
1127
|
@client.call(
|
|
@@ -1182,6 +1171,7 @@ module Appwrite
|
|
|
1182
1171
|
api_headers = {
|
|
1183
1172
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1184
1173
|
"content-type": 'application/json',
|
|
1174
|
+
"accept": 'application/json',
|
|
1185
1175
|
}
|
|
1186
1176
|
|
|
1187
1177
|
@client.call(
|
|
@@ -1247,6 +1237,7 @@ module Appwrite
|
|
|
1247
1237
|
api_headers = {
|
|
1248
1238
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1249
1239
|
"content-type": 'application/json',
|
|
1240
|
+
"accept": 'application/json',
|
|
1250
1241
|
}
|
|
1251
1242
|
|
|
1252
1243
|
@client.call(
|
|
@@ -1304,6 +1295,7 @@ module Appwrite
|
|
|
1304
1295
|
api_headers = {
|
|
1305
1296
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1306
1297
|
"content-type": 'application/json',
|
|
1298
|
+
"accept": 'application/json',
|
|
1307
1299
|
}
|
|
1308
1300
|
|
|
1309
1301
|
@client.call(
|
|
@@ -1349,6 +1341,7 @@ module Appwrite
|
|
|
1349
1341
|
api_headers = {
|
|
1350
1342
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1351
1343
|
"content-type": 'application/json',
|
|
1344
|
+
"accept": 'application/json',
|
|
1352
1345
|
}
|
|
1353
1346
|
|
|
1354
1347
|
@client.call(
|
|
@@ -1390,6 +1383,7 @@ module Appwrite
|
|
|
1390
1383
|
api_headers = {
|
|
1391
1384
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1392
1385
|
"content-type": 'application/json',
|
|
1386
|
+
"accept": 'application/json',
|
|
1393
1387
|
}
|
|
1394
1388
|
|
|
1395
1389
|
@client.call(
|
|
@@ -1435,6 +1429,7 @@ module Appwrite
|
|
|
1435
1429
|
api_headers = {
|
|
1436
1430
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1437
1431
|
"content-type": 'application/json',
|
|
1432
|
+
"accept": 'application/json',
|
|
1438
1433
|
}
|
|
1439
1434
|
|
|
1440
1435
|
@client.call(
|
|
@@ -1476,6 +1471,7 @@ module Appwrite
|
|
|
1476
1471
|
api_headers = {
|
|
1477
1472
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1478
1473
|
"content-type": 'application/json',
|
|
1474
|
+
"accept": 'application/json',
|
|
1479
1475
|
}
|
|
1480
1476
|
|
|
1481
1477
|
@client.call(
|
|
@@ -1521,6 +1517,7 @@ module Appwrite
|
|
|
1521
1517
|
api_headers = {
|
|
1522
1518
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1523
1519
|
"content-type": 'application/json',
|
|
1520
|
+
"accept": 'application/json',
|
|
1524
1521
|
}
|
|
1525
1522
|
|
|
1526
1523
|
@client.call(
|
|
@@ -1562,6 +1559,7 @@ module Appwrite
|
|
|
1562
1559
|
api_headers = {
|
|
1563
1560
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1564
1561
|
"content-type": 'application/json',
|
|
1562
|
+
"accept": 'application/json',
|
|
1565
1563
|
}
|
|
1566
1564
|
|
|
1567
1565
|
@client.call(
|
|
@@ -1607,6 +1605,7 @@ module Appwrite
|
|
|
1607
1605
|
api_headers = {
|
|
1608
1606
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1609
1607
|
"content-type": 'application/json',
|
|
1608
|
+
"accept": 'application/json',
|
|
1610
1609
|
}
|
|
1611
1610
|
|
|
1612
1611
|
@client.call(
|
|
@@ -1648,6 +1647,7 @@ module Appwrite
|
|
|
1648
1647
|
api_headers = {
|
|
1649
1648
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1650
1649
|
"content-type": 'application/json',
|
|
1650
|
+
"accept": 'application/json',
|
|
1651
1651
|
}
|
|
1652
1652
|
|
|
1653
1653
|
@client.call(
|
|
@@ -1679,6 +1679,7 @@ module Appwrite
|
|
|
1679
1679
|
|
|
1680
1680
|
api_headers = {
|
|
1681
1681
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1682
|
+
"accept": 'application/json',
|
|
1682
1683
|
}
|
|
1683
1684
|
|
|
1684
1685
|
@client.call(
|
|
@@ -1721,74 +1722,6 @@ module Appwrite
|
|
|
1721
1722
|
|
|
1722
1723
|
end
|
|
1723
1724
|
|
|
1724
|
-
# Get the provider activity logs listed by its unique ID.
|
|
1725
|
-
#
|
|
1726
|
-
# @param [String] provider_id Provider ID.
|
|
1727
|
-
# @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). Only supported methods are limit and offset
|
|
1728
|
-
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
1729
|
-
#
|
|
1730
|
-
# @return [LogList]
|
|
1731
|
-
def list_provider_logs(provider_id:, queries: nil, total: nil)
|
|
1732
|
-
api_path = '/messaging/providers/{providerId}/logs'
|
|
1733
|
-
.gsub('{providerId}', provider_id)
|
|
1734
|
-
|
|
1735
|
-
if provider_id.nil?
|
|
1736
|
-
raise Appwrite::Exception.new('Missing required parameter: "providerId"')
|
|
1737
|
-
end
|
|
1738
|
-
|
|
1739
|
-
api_params = {
|
|
1740
|
-
queries: queries,
|
|
1741
|
-
total: total,
|
|
1742
|
-
}
|
|
1743
|
-
|
|
1744
|
-
api_headers = {
|
|
1745
|
-
"X-Appwrite-Project": @client.get_config('project'),
|
|
1746
|
-
}
|
|
1747
|
-
|
|
1748
|
-
@client.call(
|
|
1749
|
-
method: 'GET',
|
|
1750
|
-
path: api_path,
|
|
1751
|
-
headers: api_headers,
|
|
1752
|
-
params: api_params,
|
|
1753
|
-
response_type: Models::LogList
|
|
1754
|
-
)
|
|
1755
|
-
|
|
1756
|
-
end
|
|
1757
|
-
|
|
1758
|
-
# Get the subscriber activity logs listed by its unique ID.
|
|
1759
|
-
#
|
|
1760
|
-
# @param [String] subscriber_id Subscriber ID.
|
|
1761
|
-
# @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). Only supported methods are limit and offset
|
|
1762
|
-
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
1763
|
-
#
|
|
1764
|
-
# @return [LogList]
|
|
1765
|
-
def list_subscriber_logs(subscriber_id:, queries: nil, total: nil)
|
|
1766
|
-
api_path = '/messaging/subscribers/{subscriberId}/logs'
|
|
1767
|
-
.gsub('{subscriberId}', subscriber_id)
|
|
1768
|
-
|
|
1769
|
-
if subscriber_id.nil?
|
|
1770
|
-
raise Appwrite::Exception.new('Missing required parameter: "subscriberId"')
|
|
1771
|
-
end
|
|
1772
|
-
|
|
1773
|
-
api_params = {
|
|
1774
|
-
queries: queries,
|
|
1775
|
-
total: total,
|
|
1776
|
-
}
|
|
1777
|
-
|
|
1778
|
-
api_headers = {
|
|
1779
|
-
"X-Appwrite-Project": @client.get_config('project'),
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
@client.call(
|
|
1783
|
-
method: 'GET',
|
|
1784
|
-
path: api_path,
|
|
1785
|
-
headers: api_headers,
|
|
1786
|
-
params: api_params,
|
|
1787
|
-
response_type: Models::LogList
|
|
1788
|
-
)
|
|
1789
|
-
|
|
1790
|
-
end
|
|
1791
|
-
|
|
1792
1725
|
# Get a list of all topics from the current Appwrite project.
|
|
1793
1726
|
#
|
|
1794
1727
|
# @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). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
|
|
@@ -1807,6 +1740,7 @@ module Appwrite
|
|
|
1807
1740
|
|
|
1808
1741
|
api_headers = {
|
|
1809
1742
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1743
|
+
"accept": 'application/json',
|
|
1810
1744
|
}
|
|
1811
1745
|
|
|
1812
1746
|
@client.call(
|
|
@@ -1846,6 +1780,7 @@ module Appwrite
|
|
|
1846
1780
|
api_headers = {
|
|
1847
1781
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1848
1782
|
"content-type": 'application/json',
|
|
1783
|
+
"accept": 'application/json',
|
|
1849
1784
|
}
|
|
1850
1785
|
|
|
1851
1786
|
@client.call(
|
|
@@ -1877,6 +1812,7 @@ module Appwrite
|
|
|
1877
1812
|
|
|
1878
1813
|
api_headers = {
|
|
1879
1814
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1815
|
+
"accept": 'application/json',
|
|
1880
1816
|
}
|
|
1881
1817
|
|
|
1882
1818
|
@client.call(
|
|
@@ -1913,6 +1849,7 @@ module Appwrite
|
|
|
1913
1849
|
api_headers = {
|
|
1914
1850
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1915
1851
|
"content-type": 'application/json',
|
|
1852
|
+
"accept": 'application/json',
|
|
1916
1853
|
}
|
|
1917
1854
|
|
|
1918
1855
|
@client.call(
|
|
@@ -1955,40 +1892,6 @@ module Appwrite
|
|
|
1955
1892
|
|
|
1956
1893
|
end
|
|
1957
1894
|
|
|
1958
|
-
# Get the topic activity logs listed by its unique ID.
|
|
1959
|
-
#
|
|
1960
|
-
# @param [String] topic_id Topic ID.
|
|
1961
|
-
# @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). Only supported methods are limit and offset
|
|
1962
|
-
# @param [] total When set to false, the total count returned will be 0 and will not be calculated.
|
|
1963
|
-
#
|
|
1964
|
-
# @return [LogList]
|
|
1965
|
-
def list_topic_logs(topic_id:, queries: nil, total: nil)
|
|
1966
|
-
api_path = '/messaging/topics/{topicId}/logs'
|
|
1967
|
-
.gsub('{topicId}', topic_id)
|
|
1968
|
-
|
|
1969
|
-
if topic_id.nil?
|
|
1970
|
-
raise Appwrite::Exception.new('Missing required parameter: "topicId"')
|
|
1971
|
-
end
|
|
1972
|
-
|
|
1973
|
-
api_params = {
|
|
1974
|
-
queries: queries,
|
|
1975
|
-
total: total,
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
api_headers = {
|
|
1979
|
-
"X-Appwrite-Project": @client.get_config('project'),
|
|
1980
|
-
}
|
|
1981
|
-
|
|
1982
|
-
@client.call(
|
|
1983
|
-
method: 'GET',
|
|
1984
|
-
path: api_path,
|
|
1985
|
-
headers: api_headers,
|
|
1986
|
-
params: api_params,
|
|
1987
|
-
response_type: Models::LogList
|
|
1988
|
-
)
|
|
1989
|
-
|
|
1990
|
-
end
|
|
1991
|
-
|
|
1992
1895
|
# Get a list of all subscribers from the current Appwrite project.
|
|
1993
1896
|
#
|
|
1994
1897
|
# @param [String] topic_id Topic ID. The topic ID subscribed to.
|
|
@@ -2013,6 +1916,7 @@ module Appwrite
|
|
|
2013
1916
|
|
|
2014
1917
|
api_headers = {
|
|
2015
1918
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
1919
|
+
"accept": 'application/json',
|
|
2016
1920
|
}
|
|
2017
1921
|
|
|
2018
1922
|
@client.call(
|
|
@@ -2056,6 +1960,7 @@ module Appwrite
|
|
|
2056
1960
|
api_headers = {
|
|
2057
1961
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2058
1962
|
"content-type": 'application/json',
|
|
1963
|
+
"accept": 'application/json',
|
|
2059
1964
|
}
|
|
2060
1965
|
|
|
2061
1966
|
@client.call(
|
|
@@ -2093,6 +1998,7 @@ module Appwrite
|
|
|
2093
1998
|
|
|
2094
1999
|
api_headers = {
|
|
2095
2000
|
"X-Appwrite-Project": @client.get_config('project'),
|
|
2001
|
+
"accept": 'application/json',
|
|
2096
2002
|
}
|
|
2097
2003
|
|
|
2098
2004
|
@client.call(
|