node-appwrite 15.0.0 → 15.0.1

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 (73) hide show
  1. package/dist/client.js +7 -4
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +7 -4
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/models.d.mts +2 -2
  6. package/dist/models.d.ts +2 -2
  7. package/dist/services/account.d.mts +0 -86
  8. package/dist/services/account.d.ts +0 -86
  9. package/dist/services/account.js +86 -172
  10. package/dist/services/account.js.map +1 -1
  11. package/dist/services/account.mjs +86 -172
  12. package/dist/services/account.mjs.map +1 -1
  13. package/dist/services/avatars.d.mts +0 -14
  14. package/dist/services/avatars.d.ts +0 -14
  15. package/dist/services/avatars.js +14 -28
  16. package/dist/services/avatars.js.map +1 -1
  17. package/dist/services/avatars.mjs +14 -28
  18. package/dist/services/avatars.mjs.map +1 -1
  19. package/dist/services/databases.d.mts +0 -84
  20. package/dist/services/databases.d.ts +0 -84
  21. package/dist/services/databases.js +84 -168
  22. package/dist/services/databases.js.map +1 -1
  23. package/dist/services/databases.mjs +84 -168
  24. package/dist/services/databases.mjs.map +1 -1
  25. package/dist/services/functions.d.mts +0 -48
  26. package/dist/services/functions.d.ts +0 -48
  27. package/dist/services/functions.js +48 -96
  28. package/dist/services/functions.js.map +1 -1
  29. package/dist/services/functions.mjs +48 -96
  30. package/dist/services/functions.mjs.map +1 -1
  31. package/dist/services/graphql.d.mts +0 -4
  32. package/dist/services/graphql.d.ts +0 -4
  33. package/dist/services/graphql.js +4 -8
  34. package/dist/services/graphql.js.map +1 -1
  35. package/dist/services/graphql.mjs +4 -8
  36. package/dist/services/graphql.mjs.map +1 -1
  37. package/dist/services/health.d.mts +0 -46
  38. package/dist/services/health.d.ts +0 -46
  39. package/dist/services/health.js +46 -92
  40. package/dist/services/health.js.map +1 -1
  41. package/dist/services/health.mjs +46 -92
  42. package/dist/services/health.mjs.map +1 -1
  43. package/dist/services/locale.d.mts +0 -16
  44. package/dist/services/locale.d.ts +0 -16
  45. package/dist/services/locale.js +16 -32
  46. package/dist/services/locale.js.map +1 -1
  47. package/dist/services/locale.mjs +16 -32
  48. package/dist/services/locale.mjs.map +1 -1
  49. package/dist/services/messaging.d.mts +3 -95
  50. package/dist/services/messaging.d.ts +3 -95
  51. package/dist/services/messaging.js +95 -187
  52. package/dist/services/messaging.js.map +1 -1
  53. package/dist/services/messaging.mjs +95 -187
  54. package/dist/services/messaging.mjs.map +1 -1
  55. package/dist/services/storage.d.mts +0 -26
  56. package/dist/services/storage.d.ts +0 -26
  57. package/dist/services/storage.js +26 -52
  58. package/dist/services/storage.js.map +1 -1
  59. package/dist/services/storage.mjs +26 -52
  60. package/dist/services/storage.mjs.map +1 -1
  61. package/dist/services/teams.d.mts +0 -26
  62. package/dist/services/teams.d.ts +0 -26
  63. package/dist/services/teams.js +26 -52
  64. package/dist/services/teams.js.map +1 -1
  65. package/dist/services/teams.mjs +26 -52
  66. package/dist/services/teams.mjs.map +1 -1
  67. package/dist/services/users.d.mts +0 -84
  68. package/dist/services/users.d.ts +0 -84
  69. package/dist/services/users.js +84 -168
  70. package/dist/services/users.js.map +1 -1
  71. package/dist/services/users.mjs +84 -168
  72. package/dist/services/users.mjs.map +1 -1
  73. package/package.json +1 -1
@@ -7,8 +7,6 @@ class Messaging {
7
7
  this.client = client;
8
8
  }
9
9
  /**
10
- * List messages
11
- *
12
10
  * Get a list of all messages from the current Appwrite project.
13
11
  *
14
12
  * @param {string[]} queries
@@ -16,7 +14,7 @@ class Messaging {
16
14
  * @throws {AppwriteException}
17
15
  * @returns {Promise<Models.MessageList>}
18
16
  */
19
- async listMessages(queries, search) {
17
+ listMessages(queries, search) {
20
18
  const apiPath = "/messaging/messages";
21
19
  const payload = {};
22
20
  if (typeof queries !== "undefined") {
@@ -29,7 +27,7 @@ class Messaging {
29
27
  const apiHeaders = {
30
28
  "content-type": "application/json"
31
29
  };
32
- return await this.client.call(
30
+ return this.client.call(
33
31
  "get",
34
32
  uri,
35
33
  apiHeaders,
@@ -37,8 +35,6 @@ class Messaging {
37
35
  );
38
36
  }
39
37
  /**
40
- * Create email
41
- *
42
38
  * Create a new email message.
43
39
  *
44
40
  * @param {string} messageId
@@ -56,7 +52,7 @@ class Messaging {
56
52
  * @throws {AppwriteException}
57
53
  * @returns {Promise<Models.Message>}
58
54
  */
59
- async createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
55
+ createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
60
56
  if (typeof messageId === "undefined") {
61
57
  throw new client.AppwriteException('Missing required parameter: "messageId"');
62
58
  }
@@ -108,7 +104,7 @@ class Messaging {
108
104
  const apiHeaders = {
109
105
  "content-type": "application/json"
110
106
  };
111
- return await this.client.call(
107
+ return this.client.call(
112
108
  "post",
113
109
  uri,
114
110
  apiHeaders,
@@ -116,9 +112,7 @@ class Messaging {
116
112
  );
117
113
  }
118
114
  /**
119
- * Update email
120
- *
121
- * Update an email message by its unique ID.
115
+ * Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
122
116
 
123
117
  *
124
118
  * @param {string} messageId
@@ -136,7 +130,7 @@ class Messaging {
136
130
  * @throws {AppwriteException}
137
131
  * @returns {Promise<Models.Message>}
138
132
  */
139
- async updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
133
+ updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
140
134
  if (typeof messageId === "undefined") {
141
135
  throw new client.AppwriteException('Missing required parameter: "messageId"');
142
136
  }
@@ -179,7 +173,7 @@ class Messaging {
179
173
  const apiHeaders = {
180
174
  "content-type": "application/json"
181
175
  };
182
- return await this.client.call(
176
+ return this.client.call(
183
177
  "patch",
184
178
  uri,
185
179
  apiHeaders,
@@ -187,8 +181,6 @@ class Messaging {
187
181
  );
188
182
  }
189
183
  /**
190
- * Create push notification
191
- *
192
184
  * Create a new push notification.
193
185
  *
194
186
  * @param {string} messageId
@@ -213,7 +205,7 @@ class Messaging {
213
205
  * @throws {AppwriteException}
214
206
  * @returns {Promise<Models.Message>}
215
207
  */
216
- async createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
208
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
217
209
  if (typeof messageId === "undefined") {
218
210
  throw new client.AppwriteException('Missing required parameter: "messageId"');
219
211
  }
@@ -280,7 +272,7 @@ class Messaging {
280
272
  const apiHeaders = {
281
273
  "content-type": "application/json"
282
274
  };
283
- return await this.client.call(
275
+ return this.client.call(
284
276
  "post",
285
277
  uri,
286
278
  apiHeaders,
@@ -288,9 +280,7 @@ class Messaging {
288
280
  );
289
281
  }
290
282
  /**
291
- * Update push notification
292
- *
293
- * Update a push notification by its unique ID.
283
+ * Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
294
284
 
295
285
  *
296
286
  * @param {string} messageId
@@ -315,7 +305,7 @@ class Messaging {
315
305
  * @throws {AppwriteException}
316
306
  * @returns {Promise<Models.Message>}
317
307
  */
318
- async updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
308
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
319
309
  if (typeof messageId === "undefined") {
320
310
  throw new client.AppwriteException('Missing required parameter: "messageId"');
321
311
  }
@@ -379,7 +369,7 @@ class Messaging {
379
369
  const apiHeaders = {
380
370
  "content-type": "application/json"
381
371
  };
382
- return await this.client.call(
372
+ return this.client.call(
383
373
  "patch",
384
374
  uri,
385
375
  apiHeaders,
@@ -387,8 +377,6 @@ class Messaging {
387
377
  );
388
378
  }
389
379
  /**
390
- * Create SMS
391
- *
392
380
  * Create a new SMS message.
393
381
  *
394
382
  * @param {string} messageId
@@ -401,7 +389,7 @@ class Messaging {
401
389
  * @throws {AppwriteException}
402
390
  * @returns {Promise<Models.Message>}
403
391
  */
404
- async createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
392
+ createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
405
393
  if (typeof messageId === "undefined") {
406
394
  throw new client.AppwriteException('Missing required parameter: "messageId"');
407
395
  }
@@ -435,7 +423,7 @@ class Messaging {
435
423
  const apiHeaders = {
436
424
  "content-type": "application/json"
437
425
  };
438
- return await this.client.call(
426
+ return this.client.call(
439
427
  "post",
440
428
  uri,
441
429
  apiHeaders,
@@ -443,9 +431,7 @@ class Messaging {
443
431
  );
444
432
  }
445
433
  /**
446
- * Update SMS
447
- *
448
- * Update an SMS message by its unique ID.
434
+ * Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated.
449
435
 
450
436
  *
451
437
  * @param {string} messageId
@@ -458,7 +444,7 @@ class Messaging {
458
444
  * @throws {AppwriteException}
459
445
  * @returns {Promise<Models.Message>}
460
446
  */
461
- async updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
447
+ updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
462
448
  if (typeof messageId === "undefined") {
463
449
  throw new client.AppwriteException('Missing required parameter: "messageId"');
464
450
  }
@@ -486,7 +472,7 @@ class Messaging {
486
472
  const apiHeaders = {
487
473
  "content-type": "application/json"
488
474
  };
489
- return await this.client.call(
475
+ return this.client.call(
490
476
  "patch",
491
477
  uri,
492
478
  apiHeaders,
@@ -494,8 +480,6 @@ class Messaging {
494
480
  );
495
481
  }
496
482
  /**
497
- * Get message
498
- *
499
483
  * Get a message by its unique ID.
500
484
 
501
485
  *
@@ -503,7 +487,7 @@ class Messaging {
503
487
  * @throws {AppwriteException}
504
488
  * @returns {Promise<Models.Message>}
505
489
  */
506
- async getMessage(messageId) {
490
+ getMessage(messageId) {
507
491
  if (typeof messageId === "undefined") {
508
492
  throw new client.AppwriteException('Missing required parameter: "messageId"');
509
493
  }
@@ -513,7 +497,7 @@ class Messaging {
513
497
  const apiHeaders = {
514
498
  "content-type": "application/json"
515
499
  };
516
- return await this.client.call(
500
+ return this.client.call(
517
501
  "get",
518
502
  uri,
519
503
  apiHeaders,
@@ -521,15 +505,13 @@ class Messaging {
521
505
  );
522
506
  }
523
507
  /**
524
- * Delete message
525
- *
526
508
  * Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
527
509
  *
528
510
  * @param {string} messageId
529
511
  * @throws {AppwriteException}
530
512
  * @returns {Promise<{}>}
531
513
  */
532
- async delete(messageId) {
514
+ delete(messageId) {
533
515
  if (typeof messageId === "undefined") {
534
516
  throw new client.AppwriteException('Missing required parameter: "messageId"');
535
517
  }
@@ -539,7 +521,7 @@ class Messaging {
539
521
  const apiHeaders = {
540
522
  "content-type": "application/json"
541
523
  };
542
- return await this.client.call(
524
+ return this.client.call(
543
525
  "delete",
544
526
  uri,
545
527
  apiHeaders,
@@ -547,8 +529,6 @@ class Messaging {
547
529
  );
548
530
  }
549
531
  /**
550
- * List message logs
551
- *
552
532
  * Get the message activity logs listed by its unique ID.
553
533
  *
554
534
  * @param {string} messageId
@@ -556,7 +536,7 @@ class Messaging {
556
536
  * @throws {AppwriteException}
557
537
  * @returns {Promise<Models.LogList>}
558
538
  */
559
- async listMessageLogs(messageId, queries) {
539
+ listMessageLogs(messageId, queries) {
560
540
  if (typeof messageId === "undefined") {
561
541
  throw new client.AppwriteException('Missing required parameter: "messageId"');
562
542
  }
@@ -569,7 +549,7 @@ class Messaging {
569
549
  const apiHeaders = {
570
550
  "content-type": "application/json"
571
551
  };
572
- return await this.client.call(
552
+ return this.client.call(
573
553
  "get",
574
554
  uri,
575
555
  apiHeaders,
@@ -577,8 +557,6 @@ class Messaging {
577
557
  );
578
558
  }
579
559
  /**
580
- * List message targets
581
- *
582
560
  * Get a list of the targets associated with a message.
583
561
  *
584
562
  * @param {string} messageId
@@ -586,7 +564,7 @@ class Messaging {
586
564
  * @throws {AppwriteException}
587
565
  * @returns {Promise<Models.TargetList>}
588
566
  */
589
- async listTargets(messageId, queries) {
567
+ listTargets(messageId, queries) {
590
568
  if (typeof messageId === "undefined") {
591
569
  throw new client.AppwriteException('Missing required parameter: "messageId"');
592
570
  }
@@ -599,7 +577,7 @@ class Messaging {
599
577
  const apiHeaders = {
600
578
  "content-type": "application/json"
601
579
  };
602
- return await this.client.call(
580
+ return this.client.call(
603
581
  "get",
604
582
  uri,
605
583
  apiHeaders,
@@ -607,8 +585,6 @@ class Messaging {
607
585
  );
608
586
  }
609
587
  /**
610
- * List providers
611
- *
612
588
  * Get a list of all providers from the current Appwrite project.
613
589
  *
614
590
  * @param {string[]} queries
@@ -616,7 +592,7 @@ class Messaging {
616
592
  * @throws {AppwriteException}
617
593
  * @returns {Promise<Models.ProviderList>}
618
594
  */
619
- async listProviders(queries, search) {
595
+ listProviders(queries, search) {
620
596
  const apiPath = "/messaging/providers";
621
597
  const payload = {};
622
598
  if (typeof queries !== "undefined") {
@@ -629,7 +605,7 @@ class Messaging {
629
605
  const apiHeaders = {
630
606
  "content-type": "application/json"
631
607
  };
632
- return await this.client.call(
608
+ return this.client.call(
633
609
  "get",
634
610
  uri,
635
611
  apiHeaders,
@@ -637,8 +613,6 @@ class Messaging {
637
613
  );
638
614
  }
639
615
  /**
640
- * Create APNS provider
641
- *
642
616
  * Create a new Apple Push Notification service provider.
643
617
  *
644
618
  * @param {string} providerId
@@ -652,7 +626,7 @@ class Messaging {
652
626
  * @throws {AppwriteException}
653
627
  * @returns {Promise<Models.Provider>}
654
628
  */
655
- async createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
629
+ createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
656
630
  if (typeof providerId === "undefined") {
657
631
  throw new client.AppwriteException('Missing required parameter: "providerId"');
658
632
  }
@@ -689,7 +663,7 @@ class Messaging {
689
663
  const apiHeaders = {
690
664
  "content-type": "application/json"
691
665
  };
692
- return await this.client.call(
666
+ return this.client.call(
693
667
  "post",
694
668
  uri,
695
669
  apiHeaders,
@@ -697,8 +671,6 @@ class Messaging {
697
671
  );
698
672
  }
699
673
  /**
700
- * Update APNS provider
701
- *
702
674
  * Update a Apple Push Notification service provider by its unique ID.
703
675
  *
704
676
  * @param {string} providerId
@@ -712,7 +684,7 @@ class Messaging {
712
684
  * @throws {AppwriteException}
713
685
  * @returns {Promise<Models.Provider>}
714
686
  */
715
- async updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
687
+ updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
716
688
  if (typeof providerId === "undefined") {
717
689
  throw new client.AppwriteException('Missing required parameter: "providerId"');
718
690
  }
@@ -743,7 +715,7 @@ class Messaging {
743
715
  const apiHeaders = {
744
716
  "content-type": "application/json"
745
717
  };
746
- return await this.client.call(
718
+ return this.client.call(
747
719
  "patch",
748
720
  uri,
749
721
  apiHeaders,
@@ -751,8 +723,6 @@ class Messaging {
751
723
  );
752
724
  }
753
725
  /**
754
- * Create FCM provider
755
- *
756
726
  * Create a new Firebase Cloud Messaging provider.
757
727
  *
758
728
  * @param {string} providerId
@@ -762,7 +732,7 @@ class Messaging {
762
732
  * @throws {AppwriteException}
763
733
  * @returns {Promise<Models.Provider>}
764
734
  */
765
- async createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
735
+ createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
766
736
  if (typeof providerId === "undefined") {
767
737
  throw new client.AppwriteException('Missing required parameter: "providerId"');
768
738
  }
@@ -787,7 +757,7 @@ class Messaging {
787
757
  const apiHeaders = {
788
758
  "content-type": "application/json"
789
759
  };
790
- return await this.client.call(
760
+ return this.client.call(
791
761
  "post",
792
762
  uri,
793
763
  apiHeaders,
@@ -795,8 +765,6 @@ class Messaging {
795
765
  );
796
766
  }
797
767
  /**
798
- * Update FCM provider
799
- *
800
768
  * Update a Firebase Cloud Messaging provider by its unique ID.
801
769
  *
802
770
  * @param {string} providerId
@@ -806,7 +774,7 @@ class Messaging {
806
774
  * @throws {AppwriteException}
807
775
  * @returns {Promise<Models.Provider>}
808
776
  */
809
- async updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
777
+ updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
810
778
  if (typeof providerId === "undefined") {
811
779
  throw new client.AppwriteException('Missing required parameter: "providerId"');
812
780
  }
@@ -825,7 +793,7 @@ class Messaging {
825
793
  const apiHeaders = {
826
794
  "content-type": "application/json"
827
795
  };
828
- return await this.client.call(
796
+ return this.client.call(
829
797
  "patch",
830
798
  uri,
831
799
  apiHeaders,
@@ -833,8 +801,6 @@ class Messaging {
833
801
  );
834
802
  }
835
803
  /**
836
- * Create Mailgun provider
837
- *
838
804
  * Create a new Mailgun provider.
839
805
  *
840
806
  * @param {string} providerId
@@ -850,7 +816,7 @@ class Messaging {
850
816
  * @throws {AppwriteException}
851
817
  * @returns {Promise<Models.Provider>}
852
818
  */
853
- async createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled) {
819
+ createMailgunProvider(providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled) {
854
820
  if (typeof providerId === "undefined") {
855
821
  throw new client.AppwriteException('Missing required parameter: "providerId"');
856
822
  }
@@ -893,7 +859,7 @@ class Messaging {
893
859
  const apiHeaders = {
894
860
  "content-type": "application/json"
895
861
  };
896
- return await this.client.call(
862
+ return this.client.call(
897
863
  "post",
898
864
  uri,
899
865
  apiHeaders,
@@ -901,8 +867,6 @@ class Messaging {
901
867
  );
902
868
  }
903
869
  /**
904
- * Update Mailgun provider
905
- *
906
870
  * Update a Mailgun provider by its unique ID.
907
871
  *
908
872
  * @param {string} providerId
@@ -918,7 +882,7 @@ class Messaging {
918
882
  * @throws {AppwriteException}
919
883
  * @returns {Promise<Models.Provider>}
920
884
  */
921
- async updateMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {
885
+ updateMailgunProvider(providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail) {
922
886
  if (typeof providerId === "undefined") {
923
887
  throw new client.AppwriteException('Missing required parameter: "providerId"');
924
888
  }
@@ -955,7 +919,7 @@ class Messaging {
955
919
  const apiHeaders = {
956
920
  "content-type": "application/json"
957
921
  };
958
- return await this.client.call(
922
+ return this.client.call(
959
923
  "patch",
960
924
  uri,
961
925
  apiHeaders,
@@ -963,8 +927,6 @@ class Messaging {
963
927
  );
964
928
  }
965
929
  /**
966
- * Create Msg91 provider
967
- *
968
930
  * Create a new MSG91 provider.
969
931
  *
970
932
  * @param {string} providerId
@@ -976,7 +938,7 @@ class Messaging {
976
938
  * @throws {AppwriteException}
977
939
  * @returns {Promise<Models.Provider>}
978
940
  */
979
- async createMsg91Provider(providerId, name, templateId, senderId, authKey, enabled) {
941
+ createMsg91Provider(providerId, name, templateId, senderId, authKey, enabled) {
980
942
  if (typeof providerId === "undefined") {
981
943
  throw new client.AppwriteException('Missing required parameter: "providerId"');
982
944
  }
@@ -1007,7 +969,7 @@ class Messaging {
1007
969
  const apiHeaders = {
1008
970
  "content-type": "application/json"
1009
971
  };
1010
- return await this.client.call(
972
+ return this.client.call(
1011
973
  "post",
1012
974
  uri,
1013
975
  apiHeaders,
@@ -1015,8 +977,6 @@ class Messaging {
1015
977
  );
1016
978
  }
1017
979
  /**
1018
- * Update Msg91 provider
1019
- *
1020
980
  * Update a MSG91 provider by its unique ID.
1021
981
  *
1022
982
  * @param {string} providerId
@@ -1028,7 +988,7 @@ class Messaging {
1028
988
  * @throws {AppwriteException}
1029
989
  * @returns {Promise<Models.Provider>}
1030
990
  */
1031
- async updateMsg91Provider(providerId, name, enabled, templateId, senderId, authKey) {
991
+ updateMsg91Provider(providerId, name, enabled, templateId, senderId, authKey) {
1032
992
  if (typeof providerId === "undefined") {
1033
993
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1034
994
  }
@@ -1053,7 +1013,7 @@ class Messaging {
1053
1013
  const apiHeaders = {
1054
1014
  "content-type": "application/json"
1055
1015
  };
1056
- return await this.client.call(
1016
+ return this.client.call(
1057
1017
  "patch",
1058
1018
  uri,
1059
1019
  apiHeaders,
@@ -1061,8 +1021,6 @@ class Messaging {
1061
1021
  );
1062
1022
  }
1063
1023
  /**
1064
- * Create Sendgrid provider
1065
- *
1066
1024
  * Create a new Sendgrid provider.
1067
1025
  *
1068
1026
  * @param {string} providerId
@@ -1076,7 +1034,7 @@ class Messaging {
1076
1034
  * @throws {AppwriteException}
1077
1035
  * @returns {Promise<Models.Provider>}
1078
1036
  */
1079
- async createSendgridProvider(providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1037
+ createSendgridProvider(providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1080
1038
  if (typeof providerId === "undefined") {
1081
1039
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1082
1040
  }
@@ -1113,7 +1071,7 @@ class Messaging {
1113
1071
  const apiHeaders = {
1114
1072
  "content-type": "application/json"
1115
1073
  };
1116
- return await this.client.call(
1074
+ return this.client.call(
1117
1075
  "post",
1118
1076
  uri,
1119
1077
  apiHeaders,
@@ -1121,8 +1079,6 @@ class Messaging {
1121
1079
  );
1122
1080
  }
1123
1081
  /**
1124
- * Update Sendgrid provider
1125
- *
1126
1082
  * Update a Sendgrid provider by its unique ID.
1127
1083
  *
1128
1084
  * @param {string} providerId
@@ -1136,7 +1092,7 @@ class Messaging {
1136
1092
  * @throws {AppwriteException}
1137
1093
  * @returns {Promise<Models.Provider>}
1138
1094
  */
1139
- async updateSendgridProvider(providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail) {
1095
+ updateSendgridProvider(providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail) {
1140
1096
  if (typeof providerId === "undefined") {
1141
1097
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1142
1098
  }
@@ -1167,7 +1123,7 @@ class Messaging {
1167
1123
  const apiHeaders = {
1168
1124
  "content-type": "application/json"
1169
1125
  };
1170
- return await this.client.call(
1126
+ return this.client.call(
1171
1127
  "patch",
1172
1128
  uri,
1173
1129
  apiHeaders,
@@ -1175,8 +1131,6 @@ class Messaging {
1175
1131
  );
1176
1132
  }
1177
1133
  /**
1178
- * Create SMTP provider
1179
- *
1180
1134
  * Create a new SMTP provider.
1181
1135
  *
1182
1136
  * @param {string} providerId
@@ -1196,7 +1150,7 @@ class Messaging {
1196
1150
  * @throws {AppwriteException}
1197
1151
  * @returns {Promise<Models.Provider>}
1198
1152
  */
1199
- async createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1153
+ createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1200
1154
  if (typeof providerId === "undefined") {
1201
1155
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1202
1156
  }
@@ -1254,7 +1208,7 @@ class Messaging {
1254
1208
  const apiHeaders = {
1255
1209
  "content-type": "application/json"
1256
1210
  };
1257
- return await this.client.call(
1211
+ return this.client.call(
1258
1212
  "post",
1259
1213
  uri,
1260
1214
  apiHeaders,
@@ -1262,8 +1216,6 @@ class Messaging {
1262
1216
  );
1263
1217
  }
1264
1218
  /**
1265
- * Update SMTP provider
1266
- *
1267
1219
  * Update a SMTP provider by its unique ID.
1268
1220
  *
1269
1221
  * @param {string} providerId
@@ -1283,7 +1235,7 @@ class Messaging {
1283
1235
  * @throws {AppwriteException}
1284
1236
  * @returns {Promise<Models.Provider>}
1285
1237
  */
1286
- async updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1238
+ updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
1287
1239
  if (typeof providerId === "undefined") {
1288
1240
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1289
1241
  }
@@ -1332,7 +1284,7 @@ class Messaging {
1332
1284
  const apiHeaders = {
1333
1285
  "content-type": "application/json"
1334
1286
  };
1335
- return await this.client.call(
1287
+ return this.client.call(
1336
1288
  "patch",
1337
1289
  uri,
1338
1290
  apiHeaders,
@@ -1340,8 +1292,6 @@ class Messaging {
1340
1292
  );
1341
1293
  }
1342
1294
  /**
1343
- * Create Telesign provider
1344
- *
1345
1295
  * Create a new Telesign provider.
1346
1296
  *
1347
1297
  * @param {string} providerId
@@ -1353,7 +1303,7 @@ class Messaging {
1353
1303
  * @throws {AppwriteException}
1354
1304
  * @returns {Promise<Models.Provider>}
1355
1305
  */
1356
- async createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
1306
+ createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
1357
1307
  if (typeof providerId === "undefined") {
1358
1308
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1359
1309
  }
@@ -1384,7 +1334,7 @@ class Messaging {
1384
1334
  const apiHeaders = {
1385
1335
  "content-type": "application/json"
1386
1336
  };
1387
- return await this.client.call(
1337
+ return this.client.call(
1388
1338
  "post",
1389
1339
  uri,
1390
1340
  apiHeaders,
@@ -1392,8 +1342,6 @@ class Messaging {
1392
1342
  );
1393
1343
  }
1394
1344
  /**
1395
- * Update Telesign provider
1396
- *
1397
1345
  * Update a Telesign provider by its unique ID.
1398
1346
  *
1399
1347
  * @param {string} providerId
@@ -1405,7 +1353,7 @@ class Messaging {
1405
1353
  * @throws {AppwriteException}
1406
1354
  * @returns {Promise<Models.Provider>}
1407
1355
  */
1408
- async updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
1356
+ updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
1409
1357
  if (typeof providerId === "undefined") {
1410
1358
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1411
1359
  }
@@ -1430,7 +1378,7 @@ class Messaging {
1430
1378
  const apiHeaders = {
1431
1379
  "content-type": "application/json"
1432
1380
  };
1433
- return await this.client.call(
1381
+ return this.client.call(
1434
1382
  "patch",
1435
1383
  uri,
1436
1384
  apiHeaders,
@@ -1438,8 +1386,6 @@ class Messaging {
1438
1386
  );
1439
1387
  }
1440
1388
  /**
1441
- * Create Textmagic provider
1442
- *
1443
1389
  * Create a new Textmagic provider.
1444
1390
  *
1445
1391
  * @param {string} providerId
@@ -1451,7 +1397,7 @@ class Messaging {
1451
1397
  * @throws {AppwriteException}
1452
1398
  * @returns {Promise<Models.Provider>}
1453
1399
  */
1454
- async createTextmagicProvider(providerId, name, from, username, apiKey, enabled) {
1400
+ createTextmagicProvider(providerId, name, from, username, apiKey, enabled) {
1455
1401
  if (typeof providerId === "undefined") {
1456
1402
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1457
1403
  }
@@ -1482,7 +1428,7 @@ class Messaging {
1482
1428
  const apiHeaders = {
1483
1429
  "content-type": "application/json"
1484
1430
  };
1485
- return await this.client.call(
1431
+ return this.client.call(
1486
1432
  "post",
1487
1433
  uri,
1488
1434
  apiHeaders,
@@ -1490,8 +1436,6 @@ class Messaging {
1490
1436
  );
1491
1437
  }
1492
1438
  /**
1493
- * Update Textmagic provider
1494
- *
1495
1439
  * Update a Textmagic provider by its unique ID.
1496
1440
  *
1497
1441
  * @param {string} providerId
@@ -1503,7 +1447,7 @@ class Messaging {
1503
1447
  * @throws {AppwriteException}
1504
1448
  * @returns {Promise<Models.Provider>}
1505
1449
  */
1506
- async updateTextmagicProvider(providerId, name, enabled, username, apiKey, from) {
1450
+ updateTextmagicProvider(providerId, name, enabled, username, apiKey, from) {
1507
1451
  if (typeof providerId === "undefined") {
1508
1452
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1509
1453
  }
@@ -1528,7 +1472,7 @@ class Messaging {
1528
1472
  const apiHeaders = {
1529
1473
  "content-type": "application/json"
1530
1474
  };
1531
- return await this.client.call(
1475
+ return this.client.call(
1532
1476
  "patch",
1533
1477
  uri,
1534
1478
  apiHeaders,
@@ -1536,8 +1480,6 @@ class Messaging {
1536
1480
  );
1537
1481
  }
1538
1482
  /**
1539
- * Create Twilio provider
1540
- *
1541
1483
  * Create a new Twilio provider.
1542
1484
  *
1543
1485
  * @param {string} providerId
@@ -1549,7 +1491,7 @@ class Messaging {
1549
1491
  * @throws {AppwriteException}
1550
1492
  * @returns {Promise<Models.Provider>}
1551
1493
  */
1552
- async createTwilioProvider(providerId, name, from, accountSid, authToken, enabled) {
1494
+ createTwilioProvider(providerId, name, from, accountSid, authToken, enabled) {
1553
1495
  if (typeof providerId === "undefined") {
1554
1496
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1555
1497
  }
@@ -1580,7 +1522,7 @@ class Messaging {
1580
1522
  const apiHeaders = {
1581
1523
  "content-type": "application/json"
1582
1524
  };
1583
- return await this.client.call(
1525
+ return this.client.call(
1584
1526
  "post",
1585
1527
  uri,
1586
1528
  apiHeaders,
@@ -1588,8 +1530,6 @@ class Messaging {
1588
1530
  );
1589
1531
  }
1590
1532
  /**
1591
- * Update Twilio provider
1592
- *
1593
1533
  * Update a Twilio provider by its unique ID.
1594
1534
  *
1595
1535
  * @param {string} providerId
@@ -1601,7 +1541,7 @@ class Messaging {
1601
1541
  * @throws {AppwriteException}
1602
1542
  * @returns {Promise<Models.Provider>}
1603
1543
  */
1604
- async updateTwilioProvider(providerId, name, enabled, accountSid, authToken, from) {
1544
+ updateTwilioProvider(providerId, name, enabled, accountSid, authToken, from) {
1605
1545
  if (typeof providerId === "undefined") {
1606
1546
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1607
1547
  }
@@ -1626,7 +1566,7 @@ class Messaging {
1626
1566
  const apiHeaders = {
1627
1567
  "content-type": "application/json"
1628
1568
  };
1629
- return await this.client.call(
1569
+ return this.client.call(
1630
1570
  "patch",
1631
1571
  uri,
1632
1572
  apiHeaders,
@@ -1634,8 +1574,6 @@ class Messaging {
1634
1574
  );
1635
1575
  }
1636
1576
  /**
1637
- * Create Vonage provider
1638
- *
1639
1577
  * Create a new Vonage provider.
1640
1578
  *
1641
1579
  * @param {string} providerId
@@ -1647,7 +1585,7 @@ class Messaging {
1647
1585
  * @throws {AppwriteException}
1648
1586
  * @returns {Promise<Models.Provider>}
1649
1587
  */
1650
- async createVonageProvider(providerId, name, from, apiKey, apiSecret, enabled) {
1588
+ createVonageProvider(providerId, name, from, apiKey, apiSecret, enabled) {
1651
1589
  if (typeof providerId === "undefined") {
1652
1590
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1653
1591
  }
@@ -1678,7 +1616,7 @@ class Messaging {
1678
1616
  const apiHeaders = {
1679
1617
  "content-type": "application/json"
1680
1618
  };
1681
- return await this.client.call(
1619
+ return this.client.call(
1682
1620
  "post",
1683
1621
  uri,
1684
1622
  apiHeaders,
@@ -1686,8 +1624,6 @@ class Messaging {
1686
1624
  );
1687
1625
  }
1688
1626
  /**
1689
- * Update Vonage provider
1690
- *
1691
1627
  * Update a Vonage provider by its unique ID.
1692
1628
  *
1693
1629
  * @param {string} providerId
@@ -1699,7 +1635,7 @@ class Messaging {
1699
1635
  * @throws {AppwriteException}
1700
1636
  * @returns {Promise<Models.Provider>}
1701
1637
  */
1702
- async updateVonageProvider(providerId, name, enabled, apiKey, apiSecret, from) {
1638
+ updateVonageProvider(providerId, name, enabled, apiKey, apiSecret, from) {
1703
1639
  if (typeof providerId === "undefined") {
1704
1640
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1705
1641
  }
@@ -1724,7 +1660,7 @@ class Messaging {
1724
1660
  const apiHeaders = {
1725
1661
  "content-type": "application/json"
1726
1662
  };
1727
- return await this.client.call(
1663
+ return this.client.call(
1728
1664
  "patch",
1729
1665
  uri,
1730
1666
  apiHeaders,
@@ -1732,8 +1668,6 @@ class Messaging {
1732
1668
  );
1733
1669
  }
1734
1670
  /**
1735
- * Get provider
1736
- *
1737
1671
  * Get a provider by its unique ID.
1738
1672
 
1739
1673
  *
@@ -1741,7 +1675,7 @@ class Messaging {
1741
1675
  * @throws {AppwriteException}
1742
1676
  * @returns {Promise<Models.Provider>}
1743
1677
  */
1744
- async getProvider(providerId) {
1678
+ getProvider(providerId) {
1745
1679
  if (typeof providerId === "undefined") {
1746
1680
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1747
1681
  }
@@ -1751,7 +1685,7 @@ class Messaging {
1751
1685
  const apiHeaders = {
1752
1686
  "content-type": "application/json"
1753
1687
  };
1754
- return await this.client.call(
1688
+ return this.client.call(
1755
1689
  "get",
1756
1690
  uri,
1757
1691
  apiHeaders,
@@ -1759,15 +1693,13 @@ class Messaging {
1759
1693
  );
1760
1694
  }
1761
1695
  /**
1762
- * Delete provider
1763
- *
1764
1696
  * Delete a provider by its unique ID.
1765
1697
  *
1766
1698
  * @param {string} providerId
1767
1699
  * @throws {AppwriteException}
1768
1700
  * @returns {Promise<{}>}
1769
1701
  */
1770
- async deleteProvider(providerId) {
1702
+ deleteProvider(providerId) {
1771
1703
  if (typeof providerId === "undefined") {
1772
1704
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1773
1705
  }
@@ -1777,7 +1709,7 @@ class Messaging {
1777
1709
  const apiHeaders = {
1778
1710
  "content-type": "application/json"
1779
1711
  };
1780
- return await this.client.call(
1712
+ return this.client.call(
1781
1713
  "delete",
1782
1714
  uri,
1783
1715
  apiHeaders,
@@ -1785,8 +1717,6 @@ class Messaging {
1785
1717
  );
1786
1718
  }
1787
1719
  /**
1788
- * List provider logs
1789
- *
1790
1720
  * Get the provider activity logs listed by its unique ID.
1791
1721
  *
1792
1722
  * @param {string} providerId
@@ -1794,7 +1724,7 @@ class Messaging {
1794
1724
  * @throws {AppwriteException}
1795
1725
  * @returns {Promise<Models.LogList>}
1796
1726
  */
1797
- async listProviderLogs(providerId, queries) {
1727
+ listProviderLogs(providerId, queries) {
1798
1728
  if (typeof providerId === "undefined") {
1799
1729
  throw new client.AppwriteException('Missing required parameter: "providerId"');
1800
1730
  }
@@ -1807,7 +1737,7 @@ class Messaging {
1807
1737
  const apiHeaders = {
1808
1738
  "content-type": "application/json"
1809
1739
  };
1810
- return await this.client.call(
1740
+ return this.client.call(
1811
1741
  "get",
1812
1742
  uri,
1813
1743
  apiHeaders,
@@ -1815,8 +1745,6 @@ class Messaging {
1815
1745
  );
1816
1746
  }
1817
1747
  /**
1818
- * List subscriber logs
1819
- *
1820
1748
  * Get the subscriber activity logs listed by its unique ID.
1821
1749
  *
1822
1750
  * @param {string} subscriberId
@@ -1824,7 +1752,7 @@ class Messaging {
1824
1752
  * @throws {AppwriteException}
1825
1753
  * @returns {Promise<Models.LogList>}
1826
1754
  */
1827
- async listSubscriberLogs(subscriberId, queries) {
1755
+ listSubscriberLogs(subscriberId, queries) {
1828
1756
  if (typeof subscriberId === "undefined") {
1829
1757
  throw new client.AppwriteException('Missing required parameter: "subscriberId"');
1830
1758
  }
@@ -1837,7 +1765,7 @@ class Messaging {
1837
1765
  const apiHeaders = {
1838
1766
  "content-type": "application/json"
1839
1767
  };
1840
- return await this.client.call(
1768
+ return this.client.call(
1841
1769
  "get",
1842
1770
  uri,
1843
1771
  apiHeaders,
@@ -1845,8 +1773,6 @@ class Messaging {
1845
1773
  );
1846
1774
  }
1847
1775
  /**
1848
- * List topics
1849
- *
1850
1776
  * Get a list of all topics from the current Appwrite project.
1851
1777
  *
1852
1778
  * @param {string[]} queries
@@ -1854,7 +1780,7 @@ class Messaging {
1854
1780
  * @throws {AppwriteException}
1855
1781
  * @returns {Promise<Models.TopicList>}
1856
1782
  */
1857
- async listTopics(queries, search) {
1783
+ listTopics(queries, search) {
1858
1784
  const apiPath = "/messaging/topics";
1859
1785
  const payload = {};
1860
1786
  if (typeof queries !== "undefined") {
@@ -1867,7 +1793,7 @@ class Messaging {
1867
1793
  const apiHeaders = {
1868
1794
  "content-type": "application/json"
1869
1795
  };
1870
- return await this.client.call(
1796
+ return this.client.call(
1871
1797
  "get",
1872
1798
  uri,
1873
1799
  apiHeaders,
@@ -1875,8 +1801,6 @@ class Messaging {
1875
1801
  );
1876
1802
  }
1877
1803
  /**
1878
- * Create topic
1879
- *
1880
1804
  * Create a new topic.
1881
1805
  *
1882
1806
  * @param {string} topicId
@@ -1885,7 +1809,7 @@ class Messaging {
1885
1809
  * @throws {AppwriteException}
1886
1810
  * @returns {Promise<Models.Topic>}
1887
1811
  */
1888
- async createTopic(topicId, name, subscribe) {
1812
+ createTopic(topicId, name, subscribe) {
1889
1813
  if (typeof topicId === "undefined") {
1890
1814
  throw new client.AppwriteException('Missing required parameter: "topicId"');
1891
1815
  }
@@ -1907,7 +1831,7 @@ class Messaging {
1907
1831
  const apiHeaders = {
1908
1832
  "content-type": "application/json"
1909
1833
  };
1910
- return await this.client.call(
1834
+ return this.client.call(
1911
1835
  "post",
1912
1836
  uri,
1913
1837
  apiHeaders,
@@ -1915,8 +1839,6 @@ class Messaging {
1915
1839
  );
1916
1840
  }
1917
1841
  /**
1918
- * Get topic
1919
- *
1920
1842
  * Get a topic by its unique ID.
1921
1843
 
1922
1844
  *
@@ -1924,7 +1846,7 @@ class Messaging {
1924
1846
  * @throws {AppwriteException}
1925
1847
  * @returns {Promise<Models.Topic>}
1926
1848
  */
1927
- async getTopic(topicId) {
1849
+ getTopic(topicId) {
1928
1850
  if (typeof topicId === "undefined") {
1929
1851
  throw new client.AppwriteException('Missing required parameter: "topicId"');
1930
1852
  }
@@ -1934,7 +1856,7 @@ class Messaging {
1934
1856
  const apiHeaders = {
1935
1857
  "content-type": "application/json"
1936
1858
  };
1937
- return await this.client.call(
1859
+ return this.client.call(
1938
1860
  "get",
1939
1861
  uri,
1940
1862
  apiHeaders,
@@ -1942,8 +1864,6 @@ class Messaging {
1942
1864
  );
1943
1865
  }
1944
1866
  /**
1945
- * Update topic
1946
- *
1947
1867
  * Update a topic by its unique ID.
1948
1868
 
1949
1869
  *
@@ -1953,7 +1873,7 @@ class Messaging {
1953
1873
  * @throws {AppwriteException}
1954
1874
  * @returns {Promise<Models.Topic>}
1955
1875
  */
1956
- async updateTopic(topicId, name, subscribe) {
1876
+ updateTopic(topicId, name, subscribe) {
1957
1877
  if (typeof topicId === "undefined") {
1958
1878
  throw new client.AppwriteException('Missing required parameter: "topicId"');
1959
1879
  }
@@ -1969,7 +1889,7 @@ class Messaging {
1969
1889
  const apiHeaders = {
1970
1890
  "content-type": "application/json"
1971
1891
  };
1972
- return await this.client.call(
1892
+ return this.client.call(
1973
1893
  "patch",
1974
1894
  uri,
1975
1895
  apiHeaders,
@@ -1977,15 +1897,13 @@ class Messaging {
1977
1897
  );
1978
1898
  }
1979
1899
  /**
1980
- * Delete topic
1981
- *
1982
1900
  * Delete a topic by its unique ID.
1983
1901
  *
1984
1902
  * @param {string} topicId
1985
1903
  * @throws {AppwriteException}
1986
1904
  * @returns {Promise<{}>}
1987
1905
  */
1988
- async deleteTopic(topicId) {
1906
+ deleteTopic(topicId) {
1989
1907
  if (typeof topicId === "undefined") {
1990
1908
  throw new client.AppwriteException('Missing required parameter: "topicId"');
1991
1909
  }
@@ -1995,7 +1913,7 @@ class Messaging {
1995
1913
  const apiHeaders = {
1996
1914
  "content-type": "application/json"
1997
1915
  };
1998
- return await this.client.call(
1916
+ return this.client.call(
1999
1917
  "delete",
2000
1918
  uri,
2001
1919
  apiHeaders,
@@ -2003,8 +1921,6 @@ class Messaging {
2003
1921
  );
2004
1922
  }
2005
1923
  /**
2006
- * List topic logs
2007
- *
2008
1924
  * Get the topic activity logs listed by its unique ID.
2009
1925
  *
2010
1926
  * @param {string} topicId
@@ -2012,7 +1928,7 @@ class Messaging {
2012
1928
  * @throws {AppwriteException}
2013
1929
  * @returns {Promise<Models.LogList>}
2014
1930
  */
2015
- async listTopicLogs(topicId, queries) {
1931
+ listTopicLogs(topicId, queries) {
2016
1932
  if (typeof topicId === "undefined") {
2017
1933
  throw new client.AppwriteException('Missing required parameter: "topicId"');
2018
1934
  }
@@ -2025,7 +1941,7 @@ class Messaging {
2025
1941
  const apiHeaders = {
2026
1942
  "content-type": "application/json"
2027
1943
  };
2028
- return await this.client.call(
1944
+ return this.client.call(
2029
1945
  "get",
2030
1946
  uri,
2031
1947
  apiHeaders,
@@ -2033,8 +1949,6 @@ class Messaging {
2033
1949
  );
2034
1950
  }
2035
1951
  /**
2036
- * List subscribers
2037
- *
2038
1952
  * Get a list of all subscribers from the current Appwrite project.
2039
1953
  *
2040
1954
  * @param {string} topicId
@@ -2043,7 +1957,7 @@ class Messaging {
2043
1957
  * @throws {AppwriteException}
2044
1958
  * @returns {Promise<Models.SubscriberList>}
2045
1959
  */
2046
- async listSubscribers(topicId, queries, search) {
1960
+ listSubscribers(topicId, queries, search) {
2047
1961
  if (typeof topicId === "undefined") {
2048
1962
  throw new client.AppwriteException('Missing required parameter: "topicId"');
2049
1963
  }
@@ -2059,7 +1973,7 @@ class Messaging {
2059
1973
  const apiHeaders = {
2060
1974
  "content-type": "application/json"
2061
1975
  };
2062
- return await this.client.call(
1976
+ return this.client.call(
2063
1977
  "get",
2064
1978
  uri,
2065
1979
  apiHeaders,
@@ -2067,8 +1981,6 @@ class Messaging {
2067
1981
  );
2068
1982
  }
2069
1983
  /**
2070
- * Create subscriber
2071
- *
2072
1984
  * Create a new subscriber.
2073
1985
  *
2074
1986
  * @param {string} topicId
@@ -2077,7 +1989,7 @@ class Messaging {
2077
1989
  * @throws {AppwriteException}
2078
1990
  * @returns {Promise<Models.Subscriber>}
2079
1991
  */
2080
- async createSubscriber(topicId, subscriberId, targetId) {
1992
+ createSubscriber(topicId, subscriberId, targetId) {
2081
1993
  if (typeof topicId === "undefined") {
2082
1994
  throw new client.AppwriteException('Missing required parameter: "topicId"');
2083
1995
  }
@@ -2099,7 +2011,7 @@ class Messaging {
2099
2011
  const apiHeaders = {
2100
2012
  "content-type": "application/json"
2101
2013
  };
2102
- return await this.client.call(
2014
+ return this.client.call(
2103
2015
  "post",
2104
2016
  uri,
2105
2017
  apiHeaders,
@@ -2107,8 +2019,6 @@ class Messaging {
2107
2019
  );
2108
2020
  }
2109
2021
  /**
2110
- * Get subscriber
2111
- *
2112
2022
  * Get a subscriber by its unique ID.
2113
2023
 
2114
2024
  *
@@ -2117,7 +2027,7 @@ class Messaging {
2117
2027
  * @throws {AppwriteException}
2118
2028
  * @returns {Promise<Models.Subscriber>}
2119
2029
  */
2120
- async getSubscriber(topicId, subscriberId) {
2030
+ getSubscriber(topicId, subscriberId) {
2121
2031
  if (typeof topicId === "undefined") {
2122
2032
  throw new client.AppwriteException('Missing required parameter: "topicId"');
2123
2033
  }
@@ -2130,7 +2040,7 @@ class Messaging {
2130
2040
  const apiHeaders = {
2131
2041
  "content-type": "application/json"
2132
2042
  };
2133
- return await this.client.call(
2043
+ return this.client.call(
2134
2044
  "get",
2135
2045
  uri,
2136
2046
  apiHeaders,
@@ -2138,8 +2048,6 @@ class Messaging {
2138
2048
  );
2139
2049
  }
2140
2050
  /**
2141
- * Delete subscriber
2142
- *
2143
2051
  * Delete a subscriber by its unique ID.
2144
2052
  *
2145
2053
  * @param {string} topicId
@@ -2147,7 +2055,7 @@ class Messaging {
2147
2055
  * @throws {AppwriteException}
2148
2056
  * @returns {Promise<{}>}
2149
2057
  */
2150
- async deleteSubscriber(topicId, subscriberId) {
2058
+ deleteSubscriber(topicId, subscriberId) {
2151
2059
  if (typeof topicId === "undefined") {
2152
2060
  throw new client.AppwriteException('Missing required parameter: "topicId"');
2153
2061
  }
@@ -2160,7 +2068,7 @@ class Messaging {
2160
2068
  const apiHeaders = {
2161
2069
  "content-type": "application/json"
2162
2070
  };
2163
- return await this.client.call(
2071
+ return this.client.call(
2164
2072
  "delete",
2165
2073
  uri,
2166
2074
  apiHeaders,