appwrite 25.0.0 → 25.1.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.
@@ -24,6 +24,7 @@ module Appwrite
24
24
  }
25
25
 
26
26
  api_headers = {
27
+ "X-Appwrite-Project": @client.get_config('project'),
27
28
  }
28
29
 
29
30
  @client.call(
@@ -83,6 +84,7 @@ module Appwrite
83
84
  }
84
85
 
85
86
  api_headers = {
87
+ "X-Appwrite-Project": @client.get_config('project'),
86
88
  "content-type": 'application/json',
87
89
  }
88
90
 
@@ -138,6 +140,7 @@ module Appwrite
138
140
  }
139
141
 
140
142
  api_headers = {
143
+ "X-Appwrite-Project": @client.get_config('project'),
141
144
  "content-type": 'application/json',
142
145
  }
143
146
 
@@ -204,6 +207,7 @@ module Appwrite
204
207
  }
205
208
 
206
209
  api_headers = {
210
+ "X-Appwrite-Project": @client.get_config('project'),
207
211
  "content-type": 'application/json',
208
212
  }
209
213
 
@@ -273,6 +277,7 @@ module Appwrite
273
277
  }
274
278
 
275
279
  api_headers = {
280
+ "X-Appwrite-Project": @client.get_config('project'),
276
281
  "content-type": 'application/json',
277
282
  }
278
283
 
@@ -319,6 +324,7 @@ module Appwrite
319
324
  }
320
325
 
321
326
  api_headers = {
327
+ "X-Appwrite-Project": @client.get_config('project'),
322
328
  "content-type": 'application/json',
323
329
  }
324
330
 
@@ -364,6 +370,7 @@ module Appwrite
364
370
  }
365
371
 
366
372
  api_headers = {
373
+ "X-Appwrite-Project": @client.get_config('project'),
367
374
  "content-type": 'application/json',
368
375
  }
369
376
 
@@ -395,6 +402,7 @@ module Appwrite
395
402
  }
396
403
 
397
404
  api_headers = {
405
+ "X-Appwrite-Project": @client.get_config('project'),
398
406
  }
399
407
 
400
408
  @client.call(
@@ -425,6 +433,7 @@ module Appwrite
425
433
  }
426
434
 
427
435
  api_headers = {
436
+ "X-Appwrite-Project": @client.get_config('project'),
428
437
  "content-type": 'application/json',
429
438
  }
430
439
 
@@ -458,6 +467,7 @@ module Appwrite
458
467
  }
459
468
 
460
469
  api_headers = {
470
+ "X-Appwrite-Project": @client.get_config('project'),
461
471
  }
462
472
 
463
473
  @client.call(
@@ -491,6 +501,7 @@ module Appwrite
491
501
  }
492
502
 
493
503
  api_headers = {
504
+ "X-Appwrite-Project": @client.get_config('project'),
494
505
  }
495
506
 
496
507
  @client.call(
@@ -520,6 +531,7 @@ module Appwrite
520
531
  }
521
532
 
522
533
  api_headers = {
534
+ "X-Appwrite-Project": @client.get_config('project'),
523
535
  }
524
536
 
525
537
  @client.call(
@@ -567,6 +579,7 @@ module Appwrite
567
579
  }
568
580
 
569
581
  api_headers = {
582
+ "X-Appwrite-Project": @client.get_config('project'),
570
583
  "content-type": 'application/json',
571
584
  }
572
585
 
@@ -611,6 +624,7 @@ module Appwrite
611
624
  }
612
625
 
613
626
  api_headers = {
627
+ "X-Appwrite-Project": @client.get_config('project'),
614
628
  "content-type": 'application/json',
615
629
  }
616
630
 
@@ -651,6 +665,7 @@ module Appwrite
651
665
  }
652
666
 
653
667
  api_headers = {
668
+ "X-Appwrite-Project": @client.get_config('project'),
654
669
  "content-type": 'application/json',
655
670
  }
656
671
 
@@ -687,6 +702,7 @@ module Appwrite
687
702
  }
688
703
 
689
704
  api_headers = {
705
+ "X-Appwrite-Project": @client.get_config('project'),
690
706
  "content-type": 'application/json',
691
707
  }
692
708
 
@@ -739,6 +755,7 @@ module Appwrite
739
755
  }
740
756
 
741
757
  api_headers = {
758
+ "X-Appwrite-Project": @client.get_config('project'),
742
759
  "content-type": 'application/json',
743
760
  }
744
761
 
@@ -787,6 +804,7 @@ module Appwrite
787
804
  }
788
805
 
789
806
  api_headers = {
807
+ "X-Appwrite-Project": @client.get_config('project'),
790
808
  "content-type": 'application/json',
791
809
  }
792
810
 
@@ -831,6 +849,7 @@ module Appwrite
831
849
  }
832
850
 
833
851
  api_headers = {
852
+ "X-Appwrite-Project": @client.get_config('project'),
834
853
  "content-type": 'application/json',
835
854
  }
836
855
 
@@ -871,6 +890,7 @@ module Appwrite
871
890
  }
872
891
 
873
892
  api_headers = {
893
+ "X-Appwrite-Project": @client.get_config('project'),
874
894
  "content-type": 'application/json',
875
895
  }
876
896
 
@@ -919,6 +939,7 @@ module Appwrite
919
939
  }
920
940
 
921
941
  api_headers = {
942
+ "X-Appwrite-Project": @client.get_config('project'),
922
943
  "content-type": 'application/json',
923
944
  }
924
945
 
@@ -963,6 +984,7 @@ module Appwrite
963
984
  }
964
985
 
965
986
  api_headers = {
987
+ "X-Appwrite-Project": @client.get_config('project'),
966
988
  "content-type": 'application/json',
967
989
  }
968
990
 
@@ -1011,6 +1033,7 @@ module Appwrite
1011
1033
  }
1012
1034
 
1013
1035
  api_headers = {
1036
+ "X-Appwrite-Project": @client.get_config('project'),
1014
1037
  "content-type": 'application/json',
1015
1038
  }
1016
1039
 
@@ -1055,6 +1078,109 @@ module Appwrite
1055
1078
  }
1056
1079
 
1057
1080
  api_headers = {
1081
+ "X-Appwrite-Project": @client.get_config('project'),
1082
+ "content-type": 'application/json',
1083
+ }
1084
+
1085
+ @client.call(
1086
+ method: 'PATCH',
1087
+ path: api_path,
1088
+ headers: api_headers,
1089
+ params: api_params,
1090
+ response_type: Models::Provider
1091
+ )
1092
+
1093
+ end
1094
+
1095
+ # Create a new Amazon SES provider.
1096
+ #
1097
+ # @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.
1098
+ # @param [String] name Provider name.
1099
+ # @param [String] access_key AWS access key ID.
1100
+ # @param [String] secret_key AWS secret access key.
1101
+ # @param [String] region AWS region, for example us-east-1.
1102
+ # @param [String] from_name Sender Name.
1103
+ # @param [String] from_email Sender email address.
1104
+ # @param [String] reply_to_name Name set in the reply to field for the mail. Default value is sender name.
1105
+ # @param [String] reply_to_email Email set in the reply to field for the mail. Default value is sender email.
1106
+ # @param [] enabled Set as enabled.
1107
+ #
1108
+ # @return [Provider]
1109
+ 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)
1110
+ api_path = '/messaging/providers/ses'
1111
+
1112
+ if provider_id.nil?
1113
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
1114
+ end
1115
+
1116
+ if name.nil?
1117
+ raise Appwrite::Exception.new('Missing required parameter: "name"')
1118
+ end
1119
+
1120
+ api_params = {
1121
+ providerId: provider_id,
1122
+ name: name,
1123
+ accessKey: access_key,
1124
+ secretKey: secret_key,
1125
+ region: region,
1126
+ fromName: from_name,
1127
+ fromEmail: from_email,
1128
+ replyToName: reply_to_name,
1129
+ replyToEmail: reply_to_email,
1130
+ enabled: enabled,
1131
+ }
1132
+
1133
+ api_headers = {
1134
+ "X-Appwrite-Project": @client.get_config('project'),
1135
+ "content-type": 'application/json',
1136
+ }
1137
+
1138
+ @client.call(
1139
+ method: 'POST',
1140
+ path: api_path,
1141
+ headers: api_headers,
1142
+ params: api_params,
1143
+ response_type: Models::Provider
1144
+ )
1145
+
1146
+ end
1147
+
1148
+ # Update an Amazon SES provider by its unique ID.
1149
+ #
1150
+ # @param [String] provider_id Provider ID.
1151
+ # @param [String] name Provider name.
1152
+ # @param [] enabled Set as enabled.
1153
+ # @param [String] access_key AWS access key ID.
1154
+ # @param [String] secret_key AWS secret access key.
1155
+ # @param [String] region AWS region, for example us-east-1.
1156
+ # @param [String] from_name Sender Name.
1157
+ # @param [String] from_email Sender email address.
1158
+ # @param [String] reply_to_name Name set in the Reply To field for the mail. Default value is Sender Name.
1159
+ # @param [String] reply_to_email Email set in the Reply To field for the mail. Default value is Sender Email.
1160
+ #
1161
+ # @return [Provider]
1162
+ 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)
1163
+ api_path = '/messaging/providers/ses/{providerId}'
1164
+ .gsub('{providerId}', provider_id)
1165
+
1166
+ if provider_id.nil?
1167
+ raise Appwrite::Exception.new('Missing required parameter: "providerId"')
1168
+ end
1169
+
1170
+ api_params = {
1171
+ name: name,
1172
+ enabled: enabled,
1173
+ accessKey: access_key,
1174
+ secretKey: secret_key,
1175
+ region: region,
1176
+ fromName: from_name,
1177
+ fromEmail: from_email,
1178
+ replyToName: reply_to_name,
1179
+ replyToEmail: reply_to_email,
1180
+ }
1181
+
1182
+ api_headers = {
1183
+ "X-Appwrite-Project": @client.get_config('project'),
1058
1184
  "content-type": 'application/json',
1059
1185
  }
1060
1186
 
@@ -1119,6 +1245,7 @@ module Appwrite
1119
1245
  }
1120
1246
 
1121
1247
  api_headers = {
1248
+ "X-Appwrite-Project": @client.get_config('project'),
1122
1249
  "content-type": 'application/json',
1123
1250
  }
1124
1251
 
@@ -1175,6 +1302,7 @@ module Appwrite
1175
1302
  }
1176
1303
 
1177
1304
  api_headers = {
1305
+ "X-Appwrite-Project": @client.get_config('project'),
1178
1306
  "content-type": 'application/json',
1179
1307
  }
1180
1308
 
@@ -1219,6 +1347,7 @@ module Appwrite
1219
1347
  }
1220
1348
 
1221
1349
  api_headers = {
1350
+ "X-Appwrite-Project": @client.get_config('project'),
1222
1351
  "content-type": 'application/json',
1223
1352
  }
1224
1353
 
@@ -1259,6 +1388,7 @@ module Appwrite
1259
1388
  }
1260
1389
 
1261
1390
  api_headers = {
1391
+ "X-Appwrite-Project": @client.get_config('project'),
1262
1392
  "content-type": 'application/json',
1263
1393
  }
1264
1394
 
@@ -1303,6 +1433,7 @@ module Appwrite
1303
1433
  }
1304
1434
 
1305
1435
  api_headers = {
1436
+ "X-Appwrite-Project": @client.get_config('project'),
1306
1437
  "content-type": 'application/json',
1307
1438
  }
1308
1439
 
@@ -1343,6 +1474,7 @@ module Appwrite
1343
1474
  }
1344
1475
 
1345
1476
  api_headers = {
1477
+ "X-Appwrite-Project": @client.get_config('project'),
1346
1478
  "content-type": 'application/json',
1347
1479
  }
1348
1480
 
@@ -1387,6 +1519,7 @@ module Appwrite
1387
1519
  }
1388
1520
 
1389
1521
  api_headers = {
1522
+ "X-Appwrite-Project": @client.get_config('project'),
1390
1523
  "content-type": 'application/json',
1391
1524
  }
1392
1525
 
@@ -1427,6 +1560,7 @@ module Appwrite
1427
1560
  }
1428
1561
 
1429
1562
  api_headers = {
1563
+ "X-Appwrite-Project": @client.get_config('project'),
1430
1564
  "content-type": 'application/json',
1431
1565
  }
1432
1566
 
@@ -1471,6 +1605,7 @@ module Appwrite
1471
1605
  }
1472
1606
 
1473
1607
  api_headers = {
1608
+ "X-Appwrite-Project": @client.get_config('project'),
1474
1609
  "content-type": 'application/json',
1475
1610
  }
1476
1611
 
@@ -1511,6 +1646,7 @@ module Appwrite
1511
1646
  }
1512
1647
 
1513
1648
  api_headers = {
1649
+ "X-Appwrite-Project": @client.get_config('project'),
1514
1650
  "content-type": 'application/json',
1515
1651
  }
1516
1652
 
@@ -1542,6 +1678,7 @@ module Appwrite
1542
1678
  }
1543
1679
 
1544
1680
  api_headers = {
1681
+ "X-Appwrite-Project": @client.get_config('project'),
1545
1682
  }
1546
1683
 
1547
1684
  @client.call(
@@ -1571,6 +1708,7 @@ module Appwrite
1571
1708
  }
1572
1709
 
1573
1710
  api_headers = {
1711
+ "X-Appwrite-Project": @client.get_config('project'),
1574
1712
  "content-type": 'application/json',
1575
1713
  }
1576
1714
 
@@ -1604,6 +1742,7 @@ module Appwrite
1604
1742
  }
1605
1743
 
1606
1744
  api_headers = {
1745
+ "X-Appwrite-Project": @client.get_config('project'),
1607
1746
  }
1608
1747
 
1609
1748
  @client.call(
@@ -1637,6 +1776,7 @@ module Appwrite
1637
1776
  }
1638
1777
 
1639
1778
  api_headers = {
1779
+ "X-Appwrite-Project": @client.get_config('project'),
1640
1780
  }
1641
1781
 
1642
1782
  @client.call(
@@ -1666,6 +1806,7 @@ module Appwrite
1666
1806
  }
1667
1807
 
1668
1808
  api_headers = {
1809
+ "X-Appwrite-Project": @client.get_config('project'),
1669
1810
  }
1670
1811
 
1671
1812
  @client.call(
@@ -1703,6 +1844,7 @@ module Appwrite
1703
1844
  }
1704
1845
 
1705
1846
  api_headers = {
1847
+ "X-Appwrite-Project": @client.get_config('project'),
1706
1848
  "content-type": 'application/json',
1707
1849
  }
1708
1850
 
@@ -1734,6 +1876,7 @@ module Appwrite
1734
1876
  }
1735
1877
 
1736
1878
  api_headers = {
1879
+ "X-Appwrite-Project": @client.get_config('project'),
1737
1880
  }
1738
1881
 
1739
1882
  @client.call(
@@ -1768,6 +1911,7 @@ module Appwrite
1768
1911
  }
1769
1912
 
1770
1913
  api_headers = {
1914
+ "X-Appwrite-Project": @client.get_config('project'),
1771
1915
  "content-type": 'application/json',
1772
1916
  }
1773
1917
 
@@ -1798,6 +1942,7 @@ module Appwrite
1798
1942
  }
1799
1943
 
1800
1944
  api_headers = {
1945
+ "X-Appwrite-Project": @client.get_config('project'),
1801
1946
  "content-type": 'application/json',
1802
1947
  }
1803
1948
 
@@ -1831,6 +1976,7 @@ module Appwrite
1831
1976
  }
1832
1977
 
1833
1978
  api_headers = {
1979
+ "X-Appwrite-Project": @client.get_config('project'),
1834
1980
  }
1835
1981
 
1836
1982
  @client.call(
@@ -1866,6 +2012,7 @@ module Appwrite
1866
2012
  }
1867
2013
 
1868
2014
  api_headers = {
2015
+ "X-Appwrite-Project": @client.get_config('project'),
1869
2016
  }
1870
2017
 
1871
2018
  @client.call(
@@ -1907,6 +2054,7 @@ module Appwrite
1907
2054
  }
1908
2055
 
1909
2056
  api_headers = {
2057
+ "X-Appwrite-Project": @client.get_config('project'),
1910
2058
  "content-type": 'application/json',
1911
2059
  }
1912
2060
 
@@ -1944,6 +2092,7 @@ module Appwrite
1944
2092
  }
1945
2093
 
1946
2094
  api_headers = {
2095
+ "X-Appwrite-Project": @client.get_config('project'),
1947
2096
  }
1948
2097
 
1949
2098
  @client.call(
@@ -1979,6 +2128,7 @@ module Appwrite
1979
2128
  }
1980
2129
 
1981
2130
  api_headers = {
2131
+ "X-Appwrite-Project": @client.get_config('project'),
1982
2132
  "content-type": 'application/json',
1983
2133
  }
1984
2134
 
@@ -22,6 +22,7 @@ module Appwrite
22
22
  }
23
23
 
24
24
  api_headers = {
25
+ "X-Appwrite-Project": @client.get_config('project'),
25
26
  }
26
27
 
27
28
  @client.call(
@@ -65,6 +66,7 @@ module Appwrite
65
66
  }
66
67
 
67
68
  api_headers = {
69
+ "X-Appwrite-Project": @client.get_config('project'),
68
70
  "content-type": 'application/json',
69
71
  }
70
72
 
@@ -96,6 +98,7 @@ module Appwrite
96
98
  }
97
99
 
98
100
  api_headers = {
101
+ "X-Appwrite-Project": @client.get_config('project'),
99
102
  }
100
103
 
101
104
  @client.call(
@@ -140,6 +143,7 @@ module Appwrite
140
143
  }
141
144
 
142
145
  api_headers = {
146
+ "X-Appwrite-Project": @client.get_config('project'),
143
147
  "content-type": 'application/json',
144
148
  }
145
149
 
@@ -171,6 +175,7 @@ module Appwrite
171
175
  }
172
176
 
173
177
  api_headers = {
178
+ "X-Appwrite-Project": @client.get_config('project'),
174
179
  "content-type": 'application/json',
175
180
  }
176
181
 
@@ -201,6 +206,7 @@ module Appwrite
201
206
  }
202
207
 
203
208
  api_headers = {
209
+ "X-Appwrite-Project": @client.get_config('project'),
204
210
  }
205
211
 
206
212
  @client.call(
@@ -238,6 +244,7 @@ module Appwrite
238
244
  }
239
245
 
240
246
  api_headers = {
247
+ "X-Appwrite-Project": @client.get_config('project'),
241
248
  "content-type": 'application/json',
242
249
  }
243
250
 
@@ -268,6 +275,7 @@ module Appwrite
268
275
  }
269
276
 
270
277
  api_headers = {
278
+ "X-Appwrite-Project": @client.get_config('project'),
271
279
  }
272
280
 
273
281
  @client.call(
@@ -303,6 +311,7 @@ module Appwrite
303
311
  }
304
312
 
305
313
  api_headers = {
314
+ "X-Appwrite-Project": @client.get_config('project'),
306
315
  "content-type": 'application/json',
307
316
  }
308
317
 
@@ -333,6 +342,7 @@ module Appwrite
333
342
  }
334
343
 
335
344
  api_headers = {
345
+ "X-Appwrite-Project": @client.get_config('project'),
336
346
  "content-type": 'application/json',
337
347
  }
338
348
 
@@ -25,6 +25,7 @@ module Appwrite
25
25
  }
26
26
 
27
27
  api_headers = {
28
+ "X-Appwrite-Project": @client.get_config('project'),
28
29
  }
29
30
 
30
31
  @client.call(
@@ -56,6 +57,7 @@ module Appwrite
56
57
  }
57
58
 
58
59
  api_headers = {
60
+ "X-Appwrite-Project": @client.get_config('project'),
59
61
  }
60
62
 
61
63
  @client.call(
@@ -104,6 +106,7 @@ module Appwrite
104
106
  }
105
107
 
106
108
  api_headers = {
109
+ "X-Appwrite-Project": @client.get_config('project'),
107
110
  "content-type": 'application/json',
108
111
  }
109
112
 
@@ -152,6 +155,7 @@ module Appwrite
152
155
  }
153
156
 
154
157
  api_headers = {
158
+ "X-Appwrite-Project": @client.get_config('project'),
155
159
  "content-type": 'application/json',
156
160
  }
157
161
 
@@ -183,6 +187,7 @@ module Appwrite
183
187
  }
184
188
 
185
189
  api_headers = {
190
+ "X-Appwrite-Project": @client.get_config('project'),
186
191
  "content-type": 'application/json',
187
192
  }
188
193