appwrite 25.0.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 (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +36 -6
  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 +9 -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 +2 -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/policy_password_strength.rb +52 -0
  32. data/lib/appwrite/models/program.rb +67 -0
  33. data/lib/appwrite/models/project.rb +93 -13
  34. data/lib/appwrite/models/usage_billing_plan.rb +77 -0
  35. data/lib/appwrite/models/user.rb +25 -0
  36. data/lib/appwrite/query.rb +13 -1
  37. data/lib/appwrite/services/account.rb +88 -2
  38. data/lib/appwrite/services/activities.rb +4 -0
  39. data/lib/appwrite/services/advisor.rb +9 -0
  40. data/lib/appwrite/services/avatars.rb +16 -0
  41. data/lib/appwrite/services/backups.rb +37 -1
  42. data/lib/appwrite/services/databases.rb +178 -0
  43. data/lib/appwrite/services/functions.rb +56 -4
  44. data/lib/appwrite/services/graphql.rb +4 -0
  45. data/lib/appwrite/services/locale.rb +16 -0
  46. data/lib/appwrite/services/messaging.rb +188 -132
  47. data/lib/appwrite/services/organization.rb +278 -3
  48. data/lib/appwrite/services/presences.rb +9 -0
  49. data/lib/appwrite/services/project.rb +417 -49
  50. data/lib/appwrite/services/proxy.rb +15 -0
  51. data/lib/appwrite/services/sites.rb +50 -1
  52. data/lib/appwrite/services/storage.rb +24 -0
  53. data/lib/appwrite/services/tables_db.rb +139 -1
  54. data/lib/appwrite/services/teams.rb +24 -0
  55. data/lib/appwrite/services/tokens.rb +9 -0
  56. data/lib/appwrite/services/users.rb +81 -1
  57. data/lib/appwrite/services/webhooks.rb +11 -0
  58. data/lib/appwrite.rb +17 -15
  59. metadata +19 -17
  60. data/lib/appwrite/enums/health_antivirus_status.rb +0 -9
  61. data/lib/appwrite/enums/health_check_status.rb +0 -8
  62. data/lib/appwrite/enums/health_queue_name.rb +0 -19
  63. data/lib/appwrite/models/health_antivirus.rb +0 -49
  64. data/lib/appwrite/models/health_certificate.rb +0 -52
  65. data/lib/appwrite/models/health_queue.rb +0 -27
  66. data/lib/appwrite/models/health_status.rb +0 -53
  67. data/lib/appwrite/models/health_status_list.rb +0 -32
  68. data/lib/appwrite/models/health_time.rb +0 -37
  69. data/lib/appwrite/models/usage_event.rb +0 -72
  70. data/lib/appwrite/models/usage_event_list.rb +0 -32
  71. data/lib/appwrite/models/usage_gauge.rb +0 -47
  72. data/lib/appwrite/models/usage_gauge_list.rb +0 -32
  73. data/lib/appwrite/services/health.rb +0 -630
  74. data/lib/appwrite/services/usage.rb +0 -86
@@ -24,6 +24,8 @@ module Appwrite
24
24
  }
25
25
 
26
26
  api_headers = {
27
+ "X-Appwrite-Project": @client.get_config('project'),
28
+ "accept": 'application/json',
27
29
  }
28
30
 
29
31
  @client.call(
@@ -83,7 +85,9 @@ module Appwrite
83
85
  }
84
86
 
85
87
  api_headers = {
88
+ "X-Appwrite-Project": @client.get_config('project'),
86
89
  "content-type": 'application/json',
90
+ "accept": 'application/json',
87
91
  }
88
92
 
89
93
  @client.call(
@@ -138,7 +142,9 @@ module Appwrite
138
142
  }
139
143
 
140
144
  api_headers = {
145
+ "X-Appwrite-Project": @client.get_config('project'),
141
146
  "content-type": 'application/json',
147
+ "accept": 'application/json',
142
148
  }
143
149
 
144
150
  @client.call(
@@ -204,7 +210,9 @@ module Appwrite
204
210
  }
205
211
 
206
212
  api_headers = {
213
+ "X-Appwrite-Project": @client.get_config('project'),
207
214
  "content-type": 'application/json',
215
+ "accept": 'application/json',
208
216
  }
209
217
 
210
218
  @client.call(
@@ -273,7 +281,9 @@ module Appwrite
273
281
  }
274
282
 
275
283
  api_headers = {
284
+ "X-Appwrite-Project": @client.get_config('project'),
276
285
  "content-type": 'application/json',
286
+ "accept": 'application/json',
277
287
  }
278
288
 
279
289
  @client.call(
@@ -319,7 +329,9 @@ module Appwrite
319
329
  }
320
330
 
321
331
  api_headers = {
332
+ "X-Appwrite-Project": @client.get_config('project'),
322
333
  "content-type": 'application/json',
334
+ "accept": 'application/json',
323
335
  }
324
336
 
325
337
  @client.call(
@@ -364,7 +376,9 @@ module Appwrite
364
376
  }
365
377
 
366
378
  api_headers = {
379
+ "X-Appwrite-Project": @client.get_config('project'),
367
380
  "content-type": 'application/json',
381
+ "accept": 'application/json',
368
382
  }
369
383
 
370
384
  @client.call(
@@ -395,6 +409,8 @@ module Appwrite
395
409
  }
396
410
 
397
411
  api_headers = {
412
+ "X-Appwrite-Project": @client.get_config('project'),
413
+ "accept": 'application/json',
398
414
  }
399
415
 
400
416
  @client.call(
@@ -425,6 +441,7 @@ module Appwrite
425
441
  }
426
442
 
427
443
  api_headers = {
444
+ "X-Appwrite-Project": @client.get_config('project'),
428
445
  "content-type": 'application/json',
429
446
  }
430
447
 
@@ -437,39 +454,6 @@ module Appwrite
437
454
 
438
455
  end
439
456
 
440
- # Get the message activity logs listed by its unique ID.
441
- #
442
- # @param [String] message_id Message ID.
443
- # @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
444
- # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
445
- #
446
- # @return [LogList]
447
- def list_message_logs(message_id:, queries: nil, total: nil)
448
- api_path = '/messaging/messages/{messageId}/logs'
449
- .gsub('{messageId}', message_id)
450
-
451
- if message_id.nil?
452
- raise Appwrite::Exception.new('Missing required parameter: "messageId"')
453
- end
454
-
455
- api_params = {
456
- queries: queries,
457
- total: total,
458
- }
459
-
460
- api_headers = {
461
- }
462
-
463
- @client.call(
464
- method: 'GET',
465
- path: api_path,
466
- headers: api_headers,
467
- params: api_params,
468
- response_type: Models::LogList
469
- )
470
-
471
- end
472
-
473
457
  # Get a list of the targets associated with a message.
474
458
  #
475
459
  # @param [String] message_id Message ID.
@@ -491,6 +475,8 @@ module Appwrite
491
475
  }
492
476
 
493
477
  api_headers = {
478
+ "X-Appwrite-Project": @client.get_config('project'),
479
+ "accept": 'application/json',
494
480
  }
495
481
 
496
482
  @client.call(
@@ -520,6 +506,8 @@ module Appwrite
520
506
  }
521
507
 
522
508
  api_headers = {
509
+ "X-Appwrite-Project": @client.get_config('project'),
510
+ "accept": 'application/json',
523
511
  }
524
512
 
525
513
  @client.call(
@@ -567,7 +555,9 @@ module Appwrite
567
555
  }
568
556
 
569
557
  api_headers = {
558
+ "X-Appwrite-Project": @client.get_config('project'),
570
559
  "content-type": 'application/json',
560
+ "accept": 'application/json',
571
561
  }
572
562
 
573
563
  @client.call(
@@ -611,7 +601,9 @@ module Appwrite
611
601
  }
612
602
 
613
603
  api_headers = {
604
+ "X-Appwrite-Project": @client.get_config('project'),
614
605
  "content-type": 'application/json',
606
+ "accept": 'application/json',
615
607
  }
616
608
 
617
609
  @client.call(
@@ -651,7 +643,9 @@ module Appwrite
651
643
  }
652
644
 
653
645
  api_headers = {
646
+ "X-Appwrite-Project": @client.get_config('project'),
654
647
  "content-type": 'application/json',
648
+ "accept": 'application/json',
655
649
  }
656
650
 
657
651
  @client.call(
@@ -687,7 +681,9 @@ module Appwrite
687
681
  }
688
682
 
689
683
  api_headers = {
684
+ "X-Appwrite-Project": @client.get_config('project'),
690
685
  "content-type": 'application/json',
686
+ "accept": 'application/json',
691
687
  }
692
688
 
693
689
  @client.call(
@@ -739,7 +735,9 @@ module Appwrite
739
735
  }
740
736
 
741
737
  api_headers = {
738
+ "X-Appwrite-Project": @client.get_config('project'),
742
739
  "content-type": 'application/json',
740
+ "accept": 'application/json',
743
741
  }
744
742
 
745
743
  @client.call(
@@ -787,7 +785,9 @@ module Appwrite
787
785
  }
788
786
 
789
787
  api_headers = {
788
+ "X-Appwrite-Project": @client.get_config('project'),
790
789
  "content-type": 'application/json',
790
+ "accept": 'application/json',
791
791
  }
792
792
 
793
793
  @client.call(
@@ -831,7 +831,9 @@ module Appwrite
831
831
  }
832
832
 
833
833
  api_headers = {
834
+ "X-Appwrite-Project": @client.get_config('project'),
834
835
  "content-type": 'application/json',
836
+ "accept": 'application/json',
835
837
  }
836
838
 
837
839
  @client.call(
@@ -871,7 +873,9 @@ module Appwrite
871
873
  }
872
874
 
873
875
  api_headers = {
876
+ "X-Appwrite-Project": @client.get_config('project'),
874
877
  "content-type": 'application/json',
878
+ "accept": 'application/json',
875
879
  }
876
880
 
877
881
  @client.call(
@@ -919,7 +923,9 @@ module Appwrite
919
923
  }
920
924
 
921
925
  api_headers = {
926
+ "X-Appwrite-Project": @client.get_config('project'),
922
927
  "content-type": 'application/json',
928
+ "accept": 'application/json',
923
929
  }
924
930
 
925
931
  @client.call(
@@ -963,7 +969,9 @@ module Appwrite
963
969
  }
964
970
 
965
971
  api_headers = {
972
+ "X-Appwrite-Project": @client.get_config('project'),
966
973
  "content-type": 'application/json',
974
+ "accept": 'application/json',
967
975
  }
968
976
 
969
977
  @client.call(
@@ -1011,7 +1019,9 @@ module Appwrite
1011
1019
  }
1012
1020
 
1013
1021
  api_headers = {
1022
+ "X-Appwrite-Project": @client.get_config('project'),
1014
1023
  "content-type": 'application/json',
1024
+ "accept": 'application/json',
1015
1025
  }
1016
1026
 
1017
1027
  @client.call(
@@ -1055,7 +1065,113 @@ module Appwrite
1055
1065
  }
1056
1066
 
1057
1067
  api_headers = {
1068
+ "X-Appwrite-Project": @client.get_config('project'),
1069
+ "content-type": 'application/json',
1070
+ "accept": 'application/json',
1071
+ }
1072
+
1073
+ @client.call(
1074
+ method: 'PATCH',
1075
+ path: api_path,
1076
+ headers: api_headers,
1077
+ params: api_params,
1078
+ response_type: Models::Provider
1079
+ )
1080
+
1081
+ end
1082
+
1083
+ # Create a new Amazon SES provider.
1084
+ #
1085
+ # @param [String] provider_id Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1086
+ # @param [String] name Provider name.
1087
+ # @param [String] access_key AWS access key ID.
1088
+ # @param [String] secret_key AWS secret access key.
1089
+ # @param [String] region AWS region, for example us-east-1.
1090
+ # @param [String] from_name Sender Name.
1091
+ # @param [String] from_email Sender email address.
1092
+ # @param [String] reply_to_name Name set in the reply to field for the mail. Default value is sender name.
1093
+ # @param [String] reply_to_email Email set in the reply to field for the mail. Default value is sender email.
1094
+ # @param [] enabled Set as enabled.
1095
+ #
1096
+ # @return [Provider]
1097
+ def create_ses_provider(provider_id:, name:, access_key: nil, secret_key: nil, region: nil, from_name: nil, from_email: nil, reply_to_name: nil, reply_to_email: nil, enabled: nil)
1098
+ api_path = '/messaging/providers/ses'
1099
+
1100
+ if provider_id.nil?
1101
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
1102
+ end
1103
+
1104
+ if name.nil?
1105
+ raise Appwrite::Exception.new('Missing required parameter: "name"')
1106
+ end
1107
+
1108
+ api_params = {
1109
+ providerId: provider_id,
1110
+ name: name,
1111
+ accessKey: access_key,
1112
+ secretKey: secret_key,
1113
+ region: region,
1114
+ fromName: from_name,
1115
+ fromEmail: from_email,
1116
+ replyToName: reply_to_name,
1117
+ replyToEmail: reply_to_email,
1118
+ enabled: enabled,
1119
+ }
1120
+
1121
+ api_headers = {
1122
+ "X-Appwrite-Project": @client.get_config('project'),
1123
+ "content-type": 'application/json',
1124
+ "accept": 'application/json',
1125
+ }
1126
+
1127
+ @client.call(
1128
+ method: 'POST',
1129
+ path: api_path,
1130
+ headers: api_headers,
1131
+ params: api_params,
1132
+ response_type: Models::Provider
1133
+ )
1134
+
1135
+ end
1136
+
1137
+ # Update an Amazon SES provider by its unique ID.
1138
+ #
1139
+ # @param [String] provider_id Provider ID.
1140
+ # @param [String] name Provider name.
1141
+ # @param [] enabled Set as enabled.
1142
+ # @param [String] access_key AWS access key ID.
1143
+ # @param [String] secret_key AWS secret access key.
1144
+ # @param [String] region AWS region, for example us-east-1.
1145
+ # @param [String] from_name Sender Name.
1146
+ # @param [String] from_email Sender email address.
1147
+ # @param [String] reply_to_name Name set in the Reply To field for the mail. Default value is Sender Name.
1148
+ # @param [String] reply_to_email Email set in the Reply To field for the mail. Default value is Sender Email.
1149
+ #
1150
+ # @return [Provider]
1151
+ def update_ses_provider(provider_id:, name: nil, enabled: nil, access_key: nil, secret_key: nil, region: nil, from_name: nil, from_email: nil, reply_to_name: nil, reply_to_email: nil)
1152
+ api_path = '/messaging/providers/ses/{providerId}'
1153
+ .gsub('{providerId}', provider_id)
1154
+
1155
+ if provider_id.nil?
1156
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
1157
+ end
1158
+
1159
+ api_params = {
1160
+ name: name,
1161
+ enabled: enabled,
1162
+ accessKey: access_key,
1163
+ secretKey: secret_key,
1164
+ region: region,
1165
+ fromName: from_name,
1166
+ fromEmail: from_email,
1167
+ replyToName: reply_to_name,
1168
+ replyToEmail: reply_to_email,
1169
+ }
1170
+
1171
+ api_headers = {
1172
+ "X-Appwrite-Project": @client.get_config('project'),
1058
1173
  "content-type": 'application/json',
1174
+ "accept": 'application/json',
1059
1175
  }
1060
1176
 
1061
1177
  @client.call(
@@ -1119,7 +1235,9 @@ module Appwrite
1119
1235
  }
1120
1236
 
1121
1237
  api_headers = {
1238
+ "X-Appwrite-Project": @client.get_config('project'),
1122
1239
  "content-type": 'application/json',
1240
+ "accept": 'application/json',
1123
1241
  }
1124
1242
 
1125
1243
  @client.call(
@@ -1175,7 +1293,9 @@ module Appwrite
1175
1293
  }
1176
1294
 
1177
1295
  api_headers = {
1296
+ "X-Appwrite-Project": @client.get_config('project'),
1178
1297
  "content-type": 'application/json',
1298
+ "accept": 'application/json',
1179
1299
  }
1180
1300
 
1181
1301
  @client.call(
@@ -1219,7 +1339,9 @@ module Appwrite
1219
1339
  }
1220
1340
 
1221
1341
  api_headers = {
1342
+ "X-Appwrite-Project": @client.get_config('project'),
1222
1343
  "content-type": 'application/json',
1344
+ "accept": 'application/json',
1223
1345
  }
1224
1346
 
1225
1347
  @client.call(
@@ -1259,7 +1381,9 @@ module Appwrite
1259
1381
  }
1260
1382
 
1261
1383
  api_headers = {
1384
+ "X-Appwrite-Project": @client.get_config('project'),
1262
1385
  "content-type": 'application/json',
1386
+ "accept": 'application/json',
1263
1387
  }
1264
1388
 
1265
1389
  @client.call(
@@ -1303,7 +1427,9 @@ module Appwrite
1303
1427
  }
1304
1428
 
1305
1429
  api_headers = {
1430
+ "X-Appwrite-Project": @client.get_config('project'),
1306
1431
  "content-type": 'application/json',
1432
+ "accept": 'application/json',
1307
1433
  }
1308
1434
 
1309
1435
  @client.call(
@@ -1343,7 +1469,9 @@ module Appwrite
1343
1469
  }
1344
1470
 
1345
1471
  api_headers = {
1472
+ "X-Appwrite-Project": @client.get_config('project'),
1346
1473
  "content-type": 'application/json',
1474
+ "accept": 'application/json',
1347
1475
  }
1348
1476
 
1349
1477
  @client.call(
@@ -1387,7 +1515,9 @@ module Appwrite
1387
1515
  }
1388
1516
 
1389
1517
  api_headers = {
1518
+ "X-Appwrite-Project": @client.get_config('project'),
1390
1519
  "content-type": 'application/json',
1520
+ "accept": 'application/json',
1391
1521
  }
1392
1522
 
1393
1523
  @client.call(
@@ -1427,7 +1557,9 @@ module Appwrite
1427
1557
  }
1428
1558
 
1429
1559
  api_headers = {
1560
+ "X-Appwrite-Project": @client.get_config('project'),
1430
1561
  "content-type": 'application/json',
1562
+ "accept": 'application/json',
1431
1563
  }
1432
1564
 
1433
1565
  @client.call(
@@ -1471,7 +1603,9 @@ module Appwrite
1471
1603
  }
1472
1604
 
1473
1605
  api_headers = {
1606
+ "X-Appwrite-Project": @client.get_config('project'),
1474
1607
  "content-type": 'application/json',
1608
+ "accept": 'application/json',
1475
1609
  }
1476
1610
 
1477
1611
  @client.call(
@@ -1511,7 +1645,9 @@ module Appwrite
1511
1645
  }
1512
1646
 
1513
1647
  api_headers = {
1648
+ "X-Appwrite-Project": @client.get_config('project'),
1514
1649
  "content-type": 'application/json',
1650
+ "accept": 'application/json',
1515
1651
  }
1516
1652
 
1517
1653
  @client.call(
@@ -1542,6 +1678,8 @@ module Appwrite
1542
1678
  }
1543
1679
 
1544
1680
  api_headers = {
1681
+ "X-Appwrite-Project": @client.get_config('project'),
1682
+ "accept": 'application/json',
1545
1683
  }
1546
1684
 
1547
1685
  @client.call(
@@ -1571,6 +1709,7 @@ module Appwrite
1571
1709
  }
1572
1710
 
1573
1711
  api_headers = {
1712
+ "X-Appwrite-Project": @client.get_config('project'),
1574
1713
  "content-type": 'application/json',
1575
1714
  }
1576
1715
 
@@ -1583,72 +1722,6 @@ module Appwrite
1583
1722
 
1584
1723
  end
1585
1724
 
1586
- # Get the provider activity logs listed by its unique ID.
1587
- #
1588
- # @param [String] provider_id Provider ID.
1589
- # @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
1590
- # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1591
- #
1592
- # @return [LogList]
1593
- def list_provider_logs(provider_id:, queries: nil, total: nil)
1594
- api_path = '/messaging/providers/{providerId}/logs'
1595
- .gsub('{providerId}', provider_id)
1596
-
1597
- if provider_id.nil?
1598
- raise Appwrite::Exception.new('Missing required parameter: "providerId"')
1599
- end
1600
-
1601
- api_params = {
1602
- queries: queries,
1603
- total: total,
1604
- }
1605
-
1606
- api_headers = {
1607
- }
1608
-
1609
- @client.call(
1610
- method: 'GET',
1611
- path: api_path,
1612
- headers: api_headers,
1613
- params: api_params,
1614
- response_type: Models::LogList
1615
- )
1616
-
1617
- end
1618
-
1619
- # Get the subscriber activity logs listed by its unique ID.
1620
- #
1621
- # @param [String] subscriber_id Subscriber ID.
1622
- # @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
1623
- # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1624
- #
1625
- # @return [LogList]
1626
- def list_subscriber_logs(subscriber_id:, queries: nil, total: nil)
1627
- api_path = '/messaging/subscribers/{subscriberId}/logs'
1628
- .gsub('{subscriberId}', subscriber_id)
1629
-
1630
- if subscriber_id.nil?
1631
- raise Appwrite::Exception.new('Missing required parameter: "subscriberId"')
1632
- end
1633
-
1634
- api_params = {
1635
- queries: queries,
1636
- total: total,
1637
- }
1638
-
1639
- api_headers = {
1640
- }
1641
-
1642
- @client.call(
1643
- method: 'GET',
1644
- path: api_path,
1645
- headers: api_headers,
1646
- params: api_params,
1647
- response_type: Models::LogList
1648
- )
1649
-
1650
- end
1651
-
1652
1725
  # Get a list of all topics from the current Appwrite project.
1653
1726
  #
1654
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
@@ -1666,6 +1739,8 @@ module Appwrite
1666
1739
  }
1667
1740
 
1668
1741
  api_headers = {
1742
+ "X-Appwrite-Project": @client.get_config('project'),
1743
+ "accept": 'application/json',
1669
1744
  }
1670
1745
 
1671
1746
  @client.call(
@@ -1703,7 +1778,9 @@ module Appwrite
1703
1778
  }
1704
1779
 
1705
1780
  api_headers = {
1781
+ "X-Appwrite-Project": @client.get_config('project'),
1706
1782
  "content-type": 'application/json',
1783
+ "accept": 'application/json',
1707
1784
  }
1708
1785
 
1709
1786
  @client.call(
@@ -1734,6 +1811,8 @@ module Appwrite
1734
1811
  }
1735
1812
 
1736
1813
  api_headers = {
1814
+ "X-Appwrite-Project": @client.get_config('project'),
1815
+ "accept": 'application/json',
1737
1816
  }
1738
1817
 
1739
1818
  @client.call(
@@ -1768,7 +1847,9 @@ module Appwrite
1768
1847
  }
1769
1848
 
1770
1849
  api_headers = {
1850
+ "X-Appwrite-Project": @client.get_config('project'),
1771
1851
  "content-type": 'application/json',
1852
+ "accept": 'application/json',
1772
1853
  }
1773
1854
 
1774
1855
  @client.call(
@@ -1798,6 +1879,7 @@ module Appwrite
1798
1879
  }
1799
1880
 
1800
1881
  api_headers = {
1882
+ "X-Appwrite-Project": @client.get_config('project'),
1801
1883
  "content-type": 'application/json',
1802
1884
  }
1803
1885
 
@@ -1810,39 +1892,6 @@ module Appwrite
1810
1892
 
1811
1893
  end
1812
1894
 
1813
- # Get the topic activity logs listed by its unique ID.
1814
- #
1815
- # @param [String] topic_id Topic ID.
1816
- # @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
1817
- # @param [] total When set to false, the total count returned will be 0 and will not be calculated.
1818
- #
1819
- # @return [LogList]
1820
- def list_topic_logs(topic_id:, queries: nil, total: nil)
1821
- api_path = '/messaging/topics/{topicId}/logs'
1822
- .gsub('{topicId}', topic_id)
1823
-
1824
- if topic_id.nil?
1825
- raise Appwrite::Exception.new('Missing required parameter: "topicId"')
1826
- end
1827
-
1828
- api_params = {
1829
- queries: queries,
1830
- total: total,
1831
- }
1832
-
1833
- api_headers = {
1834
- }
1835
-
1836
- @client.call(
1837
- method: 'GET',
1838
- path: api_path,
1839
- headers: api_headers,
1840
- params: api_params,
1841
- response_type: Models::LogList
1842
- )
1843
-
1844
- end
1845
-
1846
1895
  # Get a list of all subscribers from the current Appwrite project.
1847
1896
  #
1848
1897
  # @param [String] topic_id Topic ID. The topic ID subscribed to.
@@ -1866,6 +1915,8 @@ module Appwrite
1866
1915
  }
1867
1916
 
1868
1917
  api_headers = {
1918
+ "X-Appwrite-Project": @client.get_config('project'),
1919
+ "accept": 'application/json',
1869
1920
  }
1870
1921
 
1871
1922
  @client.call(
@@ -1907,7 +1958,9 @@ module Appwrite
1907
1958
  }
1908
1959
 
1909
1960
  api_headers = {
1961
+ "X-Appwrite-Project": @client.get_config('project'),
1910
1962
  "content-type": 'application/json',
1963
+ "accept": 'application/json',
1911
1964
  }
1912
1965
 
1913
1966
  @client.call(
@@ -1944,6 +1997,8 @@ module Appwrite
1944
1997
  }
1945
1998
 
1946
1999
  api_headers = {
2000
+ "X-Appwrite-Project": @client.get_config('project'),
2001
+ "accept": 'application/json',
1947
2002
  }
1948
2003
 
1949
2004
  @client.call(
@@ -1979,6 +2034,7 @@ module Appwrite
1979
2034
  }
1980
2035
 
1981
2036
  api_headers = {
2037
+ "X-Appwrite-Project": @client.get_config('project'),
1982
2038
  "content-type": 'application/json',
1983
2039
  }
1984
2040