appwrite 11.0.1 → 13.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.

Potentially problematic release.


This version of appwrite might be problematic. Click here for more details.

Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/lib/appwrite/client.rb +54 -76
  3. data/lib/appwrite/enums/credit_card.rb +1 -1
  4. data/lib/appwrite/enums/flag.rb +1 -0
  5. data/lib/appwrite/enums/image_format.rb +1 -0
  6. data/lib/appwrite/enums/name.rb +1 -2
  7. data/lib/appwrite/enums/runtime.rb +5 -0
  8. data/lib/appwrite/models/attribute_boolean.rb +10 -0
  9. data/lib/appwrite/models/attribute_datetime.rb +10 -0
  10. data/lib/appwrite/models/attribute_email.rb +10 -0
  11. data/lib/appwrite/models/attribute_enum.rb +10 -0
  12. data/lib/appwrite/models/attribute_float.rb +10 -0
  13. data/lib/appwrite/models/attribute_integer.rb +10 -0
  14. data/lib/appwrite/models/attribute_ip.rb +10 -0
  15. data/lib/appwrite/models/attribute_relationship.rb +10 -0
  16. data/lib/appwrite/models/attribute_string.rb +10 -0
  17. data/lib/appwrite/models/attribute_url.rb +10 -0
  18. data/lib/appwrite/models/build.rb +67 -0
  19. data/lib/appwrite/models/deployment.rb +5 -0
  20. data/lib/appwrite/models/document.rb +4 -9
  21. data/lib/appwrite/models/document_list.rb +1 -2
  22. data/lib/appwrite/models/execution.rb +8 -3
  23. data/lib/appwrite/models/function.rb +13 -3
  24. data/lib/appwrite/models/index.rb +13 -3
  25. data/lib/appwrite/models/mfa_factors.rb +8 -3
  26. data/lib/appwrite/models/preferences.rb +4 -9
  27. data/lib/appwrite/models/runtime.rb +5 -0
  28. data/lib/appwrite/models/session.rb +5 -0
  29. data/lib/appwrite/models/specification.rb +42 -0
  30. data/lib/appwrite/models/specification_list.rb +32 -0
  31. data/lib/appwrite/multipart.rb +127 -0
  32. data/lib/appwrite/payload.rb +94 -0
  33. data/lib/appwrite/services/account.rb +54 -61
  34. data/lib/appwrite/services/avatars.rb +24 -22
  35. data/lib/appwrite/services/databases.rb +136 -114
  36. data/lib/appwrite/services/functions.rb +174 -72
  37. data/lib/appwrite/services/graphql.rb +2 -2
  38. data/lib/appwrite/services/health.rb +15 -15
  39. data/lib/appwrite/services/messaging.rb +230 -228
  40. data/lib/appwrite/services/storage.rb +40 -40
  41. data/lib/appwrite/services/teams.rb +19 -19
  42. data/lib/appwrite/services/users.rb +108 -72
  43. data/lib/appwrite.rb +5 -1
  44. metadata +7 -3
  45. data/lib/appwrite/input_file.rb +0 -33
@@ -17,8 +17,8 @@ module Appwrite
17
17
  api_path = '/messaging/messages'
18
18
 
19
19
  api_params = {
20
- queries: queries,
21
- search: search,
20
+ queries: queries,
21
+ search: search,
22
22
  }
23
23
 
24
24
  api_headers = {
@@ -45,7 +45,7 @@ module Appwrite
45
45
  # @param [Array] targets List of Targets IDs.
46
46
  # @param [Array] cc Array of target IDs to be added as CC.
47
47
  # @param [Array] bcc Array of target IDs to be added as BCC.
48
- # @param [Array] attachments Array of compound bucket IDs to file IDs to be attached to the email.
48
+ # @param [Array] attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
49
49
  # @param [] draft Is message a draft
50
50
  # @param [] html Is content of type HTML
51
51
  # @param [String] scheduled_at Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
@@ -67,18 +67,18 @@ module Appwrite
67
67
  end
68
68
 
69
69
  api_params = {
70
- messageId: message_id,
71
- subject: subject,
72
- content: content,
73
- topics: topics,
74
- users: users,
75
- targets: targets,
76
- cc: cc,
77
- bcc: bcc,
78
- attachments: attachments,
79
- draft: draft,
80
- html: html,
81
- scheduledAt: scheduled_at,
70
+ messageId: message_id,
71
+ subject: subject,
72
+ content: content,
73
+ topics: topics,
74
+ users: users,
75
+ targets: targets,
76
+ cc: cc,
77
+ bcc: bcc,
78
+ attachments: attachments,
79
+ draft: draft,
80
+ html: html,
81
+ scheduledAt: scheduled_at,
82
82
  }
83
83
 
84
84
  api_headers = {
@@ -109,9 +109,10 @@ module Appwrite
109
109
  # @param [Array] cc Array of target IDs to be added as CC.
110
110
  # @param [Array] bcc Array of target IDs to be added as BCC.
111
111
  # @param [String] scheduled_at Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
112
+ # @param [Array] attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
112
113
  #
113
114
  # @return [Message]
114
- def update_email(message_id:, topics: nil, users: nil, targets: nil, subject: nil, content: nil, draft: nil, html: nil, cc: nil, bcc: nil, scheduled_at: nil)
115
+ def update_email(message_id:, topics: nil, users: nil, targets: nil, subject: nil, content: nil, draft: nil, html: nil, cc: nil, bcc: nil, scheduled_at: nil, attachments: nil)
115
116
  api_path = '/messaging/messages/email/{messageId}'
116
117
  .gsub('{messageId}', message_id)
117
118
 
@@ -120,16 +121,17 @@ module Appwrite
120
121
  end
121
122
 
122
123
  api_params = {
123
- topics: topics,
124
- users: users,
125
- targets: targets,
126
- subject: subject,
127
- content: content,
128
- draft: draft,
129
- html: html,
130
- cc: cc,
131
- bcc: bcc,
132
- scheduledAt: scheduled_at,
124
+ topics: topics,
125
+ users: users,
126
+ targets: targets,
127
+ subject: subject,
128
+ content: content,
129
+ draft: draft,
130
+ html: html,
131
+ cc: cc,
132
+ bcc: bcc,
133
+ scheduledAt: scheduled_at,
134
+ attachments: attachments,
133
135
  }
134
136
 
135
137
  api_headers = {
@@ -156,7 +158,7 @@ module Appwrite
156
158
  # @param [Array] targets List of Targets IDs.
157
159
  # @param [Hash] data Additional Data for push notification.
158
160
  # @param [String] action Action for push notification.
159
- # @param [String] image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
161
+ # @param [String] image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
160
162
  # @param [String] icon Icon for push notification. Available only for Android and Web Platform.
161
163
  # @param [String] sound Sound for push notification. Available only for Android and IOS Platform.
162
164
  # @param [String] color Color for push notification. Available only for Android Platform.
@@ -182,22 +184,22 @@ module Appwrite
182
184
  end
183
185
 
184
186
  api_params = {
185
- messageId: message_id,
186
- title: title,
187
- body: body,
188
- topics: topics,
189
- users: users,
190
- targets: targets,
191
- data: data,
192
- action: action,
193
- image: image,
194
- icon: icon,
195
- sound: sound,
196
- color: color,
197
- tag: tag,
198
- badge: badge,
199
- draft: draft,
200
- scheduledAt: scheduled_at,
187
+ messageId: message_id,
188
+ title: title,
189
+ body: body,
190
+ topics: topics,
191
+ users: users,
192
+ targets: targets,
193
+ data: data,
194
+ action: action,
195
+ image: image,
196
+ icon: icon,
197
+ sound: sound,
198
+ color: color,
199
+ tag: tag,
200
+ badge: badge,
201
+ draft: draft,
202
+ scheduledAt: scheduled_at,
201
203
  }
202
204
 
203
205
  api_headers = {
@@ -225,7 +227,7 @@ module Appwrite
225
227
  # @param [String] body Body for push notification.
226
228
  # @param [Hash] data Additional Data for push notification.
227
229
  # @param [String] action Action for push notification.
228
- # @param [String] image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage.
230
+ # @param [String] image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
229
231
  # @param [String] icon Icon for push notification. Available only for Android and Web platforms.
230
232
  # @param [String] sound Sound for push notification. Available only for Android and iOS platforms.
231
233
  # @param [String] color Color for push notification. Available only for Android platforms.
@@ -244,21 +246,21 @@ module Appwrite
244
246
  end
245
247
 
246
248
  api_params = {
247
- topics: topics,
248
- users: users,
249
- targets: targets,
250
- title: title,
251
- body: body,
252
- data: data,
253
- action: action,
254
- image: image,
255
- icon: icon,
256
- sound: sound,
257
- color: color,
258
- tag: tag,
259
- badge: badge,
260
- draft: draft,
261
- scheduledAt: scheduled_at,
249
+ topics: topics,
250
+ users: users,
251
+ targets: targets,
252
+ title: title,
253
+ body: body,
254
+ data: data,
255
+ action: action,
256
+ image: image,
257
+ icon: icon,
258
+ sound: sound,
259
+ color: color,
260
+ tag: tag,
261
+ badge: badge,
262
+ draft: draft,
263
+ scheduledAt: scheduled_at,
262
264
  }
263
265
 
264
266
  api_headers = {
@@ -298,13 +300,13 @@ module Appwrite
298
300
  end
299
301
 
300
302
  api_params = {
301
- messageId: message_id,
302
- content: content,
303
- topics: topics,
304
- users: users,
305
- targets: targets,
306
- draft: draft,
307
- scheduledAt: scheduled_at,
303
+ messageId: message_id,
304
+ content: content,
305
+ topics: topics,
306
+ users: users,
307
+ targets: targets,
308
+ draft: draft,
309
+ scheduledAt: scheduled_at,
308
310
  }
309
311
 
310
312
  api_headers = {
@@ -342,12 +344,12 @@ module Appwrite
342
344
  end
343
345
 
344
346
  api_params = {
345
- topics: topics,
346
- users: users,
347
- targets: targets,
348
- content: content,
349
- draft: draft,
350
- scheduledAt: scheduled_at,
347
+ topics: topics,
348
+ users: users,
349
+ targets: targets,
350
+ content: content,
351
+ draft: draft,
352
+ scheduledAt: scheduled_at,
351
353
  }
352
354
 
353
355
  api_headers = {
@@ -440,7 +442,7 @@ module Appwrite
440
442
  end
441
443
 
442
444
  api_params = {
443
- queries: queries,
445
+ queries: queries,
444
446
  }
445
447
 
446
448
  api_headers = {
@@ -472,7 +474,7 @@ module Appwrite
472
474
  end
473
475
 
474
476
  api_params = {
475
- queries: queries,
477
+ queries: queries,
476
478
  }
477
479
 
478
480
  api_headers = {
@@ -499,8 +501,8 @@ module Appwrite
499
501
  api_path = '/messaging/providers'
500
502
 
501
503
  api_params = {
502
- queries: queries,
503
- search: search,
504
+ queries: queries,
505
+ search: search,
504
506
  }
505
507
 
506
508
  api_headers = {
@@ -541,14 +543,14 @@ module Appwrite
541
543
  end
542
544
 
543
545
  api_params = {
544
- providerId: provider_id,
545
- name: name,
546
- authKey: auth_key,
547
- authKeyId: auth_key_id,
548
- teamId: team_id,
549
- bundleId: bundle_id,
550
- sandbox: sandbox,
551
- enabled: enabled,
546
+ providerId: provider_id,
547
+ name: name,
548
+ authKey: auth_key,
549
+ authKeyId: auth_key_id,
550
+ teamId: team_id,
551
+ bundleId: bundle_id,
552
+ sandbox: sandbox,
553
+ enabled: enabled,
552
554
  }
553
555
 
554
556
  api_headers = {
@@ -586,13 +588,13 @@ module Appwrite
586
588
  end
587
589
 
588
590
  api_params = {
589
- name: name,
590
- enabled: enabled,
591
- authKey: auth_key,
592
- authKeyId: auth_key_id,
593
- teamId: team_id,
594
- bundleId: bundle_id,
595
- sandbox: sandbox,
591
+ name: name,
592
+ enabled: enabled,
593
+ authKey: auth_key,
594
+ authKeyId: auth_key_id,
595
+ teamId: team_id,
596
+ bundleId: bundle_id,
597
+ sandbox: sandbox,
596
598
  }
597
599
 
598
600
  api_headers = {
@@ -629,10 +631,10 @@ module Appwrite
629
631
  end
630
632
 
631
633
  api_params = {
632
- providerId: provider_id,
633
- name: name,
634
- serviceAccountJSON: service_account_json,
635
- enabled: enabled,
634
+ providerId: provider_id,
635
+ name: name,
636
+ serviceAccountJSON: service_account_json,
637
+ enabled: enabled,
636
638
  }
637
639
 
638
640
  api_headers = {
@@ -666,9 +668,9 @@ module Appwrite
666
668
  end
667
669
 
668
670
  api_params = {
669
- name: name,
670
- enabled: enabled,
671
- serviceAccountJSON: service_account_json,
671
+ name: name,
672
+ enabled: enabled,
673
+ serviceAccountJSON: service_account_json,
672
674
  }
673
675
 
674
676
  api_headers = {
@@ -711,16 +713,16 @@ module Appwrite
711
713
  end
712
714
 
713
715
  api_params = {
714
- providerId: provider_id,
715
- name: name,
716
- apiKey: api_key,
717
- domain: domain,
718
- isEuRegion: is_eu_region,
719
- fromName: from_name,
720
- fromEmail: from_email,
721
- replyToName: reply_to_name,
722
- replyToEmail: reply_to_email,
723
- enabled: enabled,
716
+ providerId: provider_id,
717
+ name: name,
718
+ apiKey: api_key,
719
+ domain: domain,
720
+ isEuRegion: is_eu_region,
721
+ fromName: from_name,
722
+ fromEmail: from_email,
723
+ replyToName: reply_to_name,
724
+ replyToEmail: reply_to_email,
725
+ enabled: enabled,
724
726
  }
725
727
 
726
728
  api_headers = {
@@ -760,15 +762,15 @@ module Appwrite
760
762
  end
761
763
 
762
764
  api_params = {
763
- name: name,
764
- apiKey: api_key,
765
- domain: domain,
766
- isEuRegion: is_eu_region,
767
- enabled: enabled,
768
- fromName: from_name,
769
- fromEmail: from_email,
770
- replyToName: reply_to_name,
771
- replyToEmail: reply_to_email,
765
+ name: name,
766
+ apiKey: api_key,
767
+ domain: domain,
768
+ isEuRegion: is_eu_region,
769
+ enabled: enabled,
770
+ fromName: from_name,
771
+ fromEmail: from_email,
772
+ replyToName: reply_to_name,
773
+ replyToEmail: reply_to_email,
772
774
  }
773
775
 
774
776
  api_headers = {
@@ -807,12 +809,12 @@ module Appwrite
807
809
  end
808
810
 
809
811
  api_params = {
810
- providerId: provider_id,
811
- name: name,
812
- templateId: template_id,
813
- senderId: sender_id,
814
- authKey: auth_key,
815
- enabled: enabled,
812
+ providerId: provider_id,
813
+ name: name,
814
+ templateId: template_id,
815
+ senderId: sender_id,
816
+ authKey: auth_key,
817
+ enabled: enabled,
816
818
  }
817
819
 
818
820
  api_headers = {
@@ -848,11 +850,11 @@ module Appwrite
848
850
  end
849
851
 
850
852
  api_params = {
851
- name: name,
852
- enabled: enabled,
853
- templateId: template_id,
854
- senderId: sender_id,
855
- authKey: auth_key,
853
+ name: name,
854
+ enabled: enabled,
855
+ templateId: template_id,
856
+ senderId: sender_id,
857
+ authKey: auth_key,
856
858
  }
857
859
 
858
860
  api_headers = {
@@ -893,14 +895,14 @@ module Appwrite
893
895
  end
894
896
 
895
897
  api_params = {
896
- providerId: provider_id,
897
- name: name,
898
- apiKey: api_key,
899
- fromName: from_name,
900
- fromEmail: from_email,
901
- replyToName: reply_to_name,
902
- replyToEmail: reply_to_email,
903
- enabled: enabled,
898
+ providerId: provider_id,
899
+ name: name,
900
+ apiKey: api_key,
901
+ fromName: from_name,
902
+ fromEmail: from_email,
903
+ replyToName: reply_to_name,
904
+ replyToEmail: reply_to_email,
905
+ enabled: enabled,
904
906
  }
905
907
 
906
908
  api_headers = {
@@ -938,13 +940,13 @@ module Appwrite
938
940
  end
939
941
 
940
942
  api_params = {
941
- name: name,
942
- enabled: enabled,
943
- apiKey: api_key,
944
- fromName: from_name,
945
- fromEmail: from_email,
946
- replyToName: reply_to_name,
947
- replyToEmail: reply_to_email,
943
+ name: name,
944
+ enabled: enabled,
945
+ apiKey: api_key,
946
+ fromName: from_name,
947
+ fromEmail: from_email,
948
+ replyToName: reply_to_name,
949
+ replyToEmail: reply_to_email,
948
950
  }
949
951
 
950
952
  api_headers = {
@@ -995,20 +997,20 @@ module Appwrite
995
997
  end
996
998
 
997
999
  api_params = {
998
- providerId: provider_id,
999
- name: name,
1000
- host: host,
1001
- port: port,
1002
- username: username,
1003
- password: password,
1004
- encryption: encryption,
1005
- autoTLS: auto_tls,
1006
- mailer: mailer,
1007
- fromName: from_name,
1008
- fromEmail: from_email,
1009
- replyToName: reply_to_name,
1010
- replyToEmail: reply_to_email,
1011
- enabled: enabled,
1000
+ providerId: provider_id,
1001
+ name: name,
1002
+ host: host,
1003
+ port: port,
1004
+ username: username,
1005
+ password: password,
1006
+ encryption: encryption,
1007
+ autoTLS: auto_tls,
1008
+ mailer: mailer,
1009
+ fromName: from_name,
1010
+ fromEmail: from_email,
1011
+ replyToName: reply_to_name,
1012
+ replyToEmail: reply_to_email,
1013
+ enabled: enabled,
1012
1014
  }
1013
1015
 
1014
1016
  api_headers = {
@@ -1052,19 +1054,19 @@ module Appwrite
1052
1054
  end
1053
1055
 
1054
1056
  api_params = {
1055
- name: name,
1056
- host: host,
1057
- port: port,
1058
- username: username,
1059
- password: password,
1060
- encryption: encryption,
1061
- autoTLS: auto_tls,
1062
- mailer: mailer,
1063
- fromName: from_name,
1064
- fromEmail: from_email,
1065
- replyToName: reply_to_name,
1066
- replyToEmail: reply_to_email,
1067
- enabled: enabled,
1057
+ name: name,
1058
+ host: host,
1059
+ port: port,
1060
+ username: username,
1061
+ password: password,
1062
+ encryption: encryption,
1063
+ autoTLS: auto_tls,
1064
+ mailer: mailer,
1065
+ fromName: from_name,
1066
+ fromEmail: from_email,
1067
+ replyToName: reply_to_name,
1068
+ replyToEmail: reply_to_email,
1069
+ enabled: enabled,
1068
1070
  }
1069
1071
 
1070
1072
  api_headers = {
@@ -1103,12 +1105,12 @@ module Appwrite
1103
1105
  end
1104
1106
 
1105
1107
  api_params = {
1106
- providerId: provider_id,
1107
- name: name,
1108
- from: from,
1109
- customerId: customer_id,
1110
- apiKey: api_key,
1111
- enabled: enabled,
1108
+ providerId: provider_id,
1109
+ name: name,
1110
+ from: from,
1111
+ customerId: customer_id,
1112
+ apiKey: api_key,
1113
+ enabled: enabled,
1112
1114
  }
1113
1115
 
1114
1116
  api_headers = {
@@ -1144,11 +1146,11 @@ module Appwrite
1144
1146
  end
1145
1147
 
1146
1148
  api_params = {
1147
- name: name,
1148
- enabled: enabled,
1149
- customerId: customer_id,
1150
- apiKey: api_key,
1151
- from: from,
1149
+ name: name,
1150
+ enabled: enabled,
1151
+ customerId: customer_id,
1152
+ apiKey: api_key,
1153
+ from: from,
1152
1154
  }
1153
1155
 
1154
1156
  api_headers = {
@@ -1187,12 +1189,12 @@ module Appwrite
1187
1189
  end
1188
1190
 
1189
1191
  api_params = {
1190
- providerId: provider_id,
1191
- name: name,
1192
- from: from,
1193
- username: username,
1194
- apiKey: api_key,
1195
- enabled: enabled,
1192
+ providerId: provider_id,
1193
+ name: name,
1194
+ from: from,
1195
+ username: username,
1196
+ apiKey: api_key,
1197
+ enabled: enabled,
1196
1198
  }
1197
1199
 
1198
1200
  api_headers = {
@@ -1228,11 +1230,11 @@ module Appwrite
1228
1230
  end
1229
1231
 
1230
1232
  api_params = {
1231
- name: name,
1232
- enabled: enabled,
1233
- username: username,
1234
- apiKey: api_key,
1235
- from: from,
1233
+ name: name,
1234
+ enabled: enabled,
1235
+ username: username,
1236
+ apiKey: api_key,
1237
+ from: from,
1236
1238
  }
1237
1239
 
1238
1240
  api_headers = {
@@ -1271,12 +1273,12 @@ module Appwrite
1271
1273
  end
1272
1274
 
1273
1275
  api_params = {
1274
- providerId: provider_id,
1275
- name: name,
1276
- from: from,
1277
- accountSid: account_sid,
1278
- authToken: auth_token,
1279
- enabled: enabled,
1276
+ providerId: provider_id,
1277
+ name: name,
1278
+ from: from,
1279
+ accountSid: account_sid,
1280
+ authToken: auth_token,
1281
+ enabled: enabled,
1280
1282
  }
1281
1283
 
1282
1284
  api_headers = {
@@ -1312,11 +1314,11 @@ module Appwrite
1312
1314
  end
1313
1315
 
1314
1316
  api_params = {
1315
- name: name,
1316
- enabled: enabled,
1317
- accountSid: account_sid,
1318
- authToken: auth_token,
1319
- from: from,
1317
+ name: name,
1318
+ enabled: enabled,
1319
+ accountSid: account_sid,
1320
+ authToken: auth_token,
1321
+ from: from,
1320
1322
  }
1321
1323
 
1322
1324
  api_headers = {
@@ -1355,12 +1357,12 @@ module Appwrite
1355
1357
  end
1356
1358
 
1357
1359
  api_params = {
1358
- providerId: provider_id,
1359
- name: name,
1360
- from: from,
1361
- apiKey: api_key,
1362
- apiSecret: api_secret,
1363
- enabled: enabled,
1360
+ providerId: provider_id,
1361
+ name: name,
1362
+ from: from,
1363
+ apiKey: api_key,
1364
+ apiSecret: api_secret,
1365
+ enabled: enabled,
1364
1366
  }
1365
1367
 
1366
1368
  api_headers = {
@@ -1396,11 +1398,11 @@ module Appwrite
1396
1398
  end
1397
1399
 
1398
1400
  api_params = {
1399
- name: name,
1400
- enabled: enabled,
1401
- apiKey: api_key,
1402
- apiSecret: api_secret,
1403
- from: from,
1401
+ name: name,
1402
+ enabled: enabled,
1403
+ apiKey: api_key,
1404
+ apiSecret: api_secret,
1405
+ from: from,
1404
1406
  }
1405
1407
 
1406
1408
  api_headers = {
@@ -1492,7 +1494,7 @@ module Appwrite
1492
1494
  end
1493
1495
 
1494
1496
  api_params = {
1495
- queries: queries,
1497
+ queries: queries,
1496
1498
  }
1497
1499
 
1498
1500
  api_headers = {
@@ -1524,7 +1526,7 @@ module Appwrite
1524
1526
  end
1525
1527
 
1526
1528
  api_params = {
1527
- queries: queries,
1529
+ queries: queries,
1528
1530
  }
1529
1531
 
1530
1532
  api_headers = {
@@ -1551,8 +1553,8 @@ module Appwrite
1551
1553
  api_path = '/messaging/topics'
1552
1554
 
1553
1555
  api_params = {
1554
- queries: queries,
1555
- search: search,
1556
+ queries: queries,
1557
+ search: search,
1556
1558
  }
1557
1559
 
1558
1560
  api_headers = {
@@ -1588,9 +1590,9 @@ module Appwrite
1588
1590
  end
1589
1591
 
1590
1592
  api_params = {
1591
- topicId: topic_id,
1592
- name: name,
1593
- subscribe: subscribe,
1593
+ topicId: topic_id,
1594
+ name: name,
1595
+ subscribe: subscribe,
1594
1596
  }
1595
1597
 
1596
1598
  api_headers = {
@@ -1655,8 +1657,8 @@ module Appwrite
1655
1657
  end
1656
1658
 
1657
1659
  api_params = {
1658
- name: name,
1659
- subscribe: subscribe,
1660
+ name: name,
1661
+ subscribe: subscribe,
1660
1662
  }
1661
1663
 
1662
1664
  api_headers = {
@@ -1717,7 +1719,7 @@ module Appwrite
1717
1719
  end
1718
1720
 
1719
1721
  api_params = {
1720
- queries: queries,
1722
+ queries: queries,
1721
1723
  }
1722
1724
 
1723
1725
  api_headers = {
@@ -1750,8 +1752,8 @@ module Appwrite
1750
1752
  end
1751
1753
 
1752
1754
  api_params = {
1753
- queries: queries,
1754
- search: search,
1755
+ queries: queries,
1756
+ search: search,
1755
1757
  }
1756
1758
 
1757
1759
  api_headers = {
@@ -1792,8 +1794,8 @@ module Appwrite
1792
1794
  end
1793
1795
 
1794
1796
  api_params = {
1795
- subscriberId: subscriber_id,
1796
- targetId: target_id,
1797
+ subscriberId: subscriber_id,
1798
+ targetId: target_id,
1797
1799
  }
1798
1800
 
1799
1801
  api_headers = {