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.
- checksums.yaml +4 -4
- data/lib/appwrite/client.rb +54 -76
- data/lib/appwrite/enums/credit_card.rb +1 -1
- data/lib/appwrite/enums/flag.rb +1 -0
- data/lib/appwrite/enums/image_format.rb +1 -0
- data/lib/appwrite/enums/name.rb +1 -2
- data/lib/appwrite/enums/runtime.rb +5 -0
- data/lib/appwrite/models/attribute_boolean.rb +10 -0
- data/lib/appwrite/models/attribute_datetime.rb +10 -0
- data/lib/appwrite/models/attribute_email.rb +10 -0
- data/lib/appwrite/models/attribute_enum.rb +10 -0
- data/lib/appwrite/models/attribute_float.rb +10 -0
- data/lib/appwrite/models/attribute_integer.rb +10 -0
- data/lib/appwrite/models/attribute_ip.rb +10 -0
- data/lib/appwrite/models/attribute_relationship.rb +10 -0
- data/lib/appwrite/models/attribute_string.rb +10 -0
- data/lib/appwrite/models/attribute_url.rb +10 -0
- data/lib/appwrite/models/build.rb +67 -0
- data/lib/appwrite/models/deployment.rb +5 -0
- data/lib/appwrite/models/document.rb +4 -9
- data/lib/appwrite/models/document_list.rb +1 -2
- data/lib/appwrite/models/execution.rb +8 -3
- data/lib/appwrite/models/function.rb +13 -3
- data/lib/appwrite/models/index.rb +13 -3
- data/lib/appwrite/models/mfa_factors.rb +8 -3
- data/lib/appwrite/models/preferences.rb +4 -9
- data/lib/appwrite/models/runtime.rb +5 -0
- data/lib/appwrite/models/session.rb +5 -0
- data/lib/appwrite/models/specification.rb +42 -0
- data/lib/appwrite/models/specification_list.rb +32 -0
- data/lib/appwrite/multipart.rb +127 -0
- data/lib/appwrite/payload.rb +94 -0
- data/lib/appwrite/services/account.rb +54 -61
- data/lib/appwrite/services/avatars.rb +24 -22
- data/lib/appwrite/services/databases.rb +136 -114
- data/lib/appwrite/services/functions.rb +174 -72
- data/lib/appwrite/services/graphql.rb +2 -2
- data/lib/appwrite/services/health.rb +15 -15
- data/lib/appwrite/services/messaging.rb +230 -228
- data/lib/appwrite/services/storage.rb +40 -40
- data/lib/appwrite/services/teams.rb +19 -19
- data/lib/appwrite/services/users.rb +108 -72
- data/lib/appwrite.rb +5 -1
- metadata +7 -3
- 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
|
-
|
21
|
-
|
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
|
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
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
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
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
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
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
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
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
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
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
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
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
503
|
-
|
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
|
-
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
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
|
-
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
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
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
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
|
-
|
670
|
-
|
671
|
-
|
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
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
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
|
-
|
764
|
-
|
765
|
-
|
766
|
-
|
767
|
-
|
768
|
-
|
769
|
-
|
770
|
-
|
771
|
-
|
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
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
|
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
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
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
|
-
|
897
|
-
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
|
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
|
-
|
942
|
-
|
943
|
-
|
944
|
-
|
945
|
-
|
946
|
-
|
947
|
-
|
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
|
-
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
|
1009
|
-
|
1010
|
-
|
1011
|
-
|
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
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
|
1060
|
-
|
1061
|
-
|
1062
|
-
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
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
|
-
|
1107
|
-
|
1108
|
-
|
1109
|
-
|
1110
|
-
|
1111
|
-
|
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
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
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
|
-
|
1191
|
-
|
1192
|
-
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
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
|
-
|
1232
|
-
|
1233
|
-
|
1234
|
-
|
1235
|
-
|
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
|
-
|
1275
|
-
|
1276
|
-
|
1277
|
-
|
1278
|
-
|
1279
|
-
|
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
|
-
|
1316
|
-
|
1317
|
-
|
1318
|
-
|
1319
|
-
|
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
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
|
1362
|
-
|
1363
|
-
|
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
|
-
|
1400
|
-
|
1401
|
-
|
1402
|
-
|
1403
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
1555
|
-
|
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
|
-
|
1592
|
-
|
1593
|
-
|
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
|
-
|
1659
|
-
|
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
|
-
|
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
|
-
|
1754
|
-
|
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
|
-
|
1796
|
-
|
1797
|
+
subscriberId: subscriber_id,
|
1798
|
+
targetId: target_id,
|
1797
1799
|
}
|
1798
1800
|
|
1799
1801
|
api_headers = {
|