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