@appwrite.io/console 1.5.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/README.md +4 -4
  2. package/dist/cjs/sdk.js +7714 -9758
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +7714 -9758
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +7714 -9758
  7. package/docs/examples/databases/update-float-attribute.md +2 -2
  8. package/docs/examples/databases/update-integer-attribute.md +2 -2
  9. package/docs/examples/health/{get-queue-usage-count.md → get-queue-stats-resources.md} +1 -1
  10. package/docs/examples/health/{get-queue-usage-dump.md → get-queue-stats-usage-dump.md} +1 -1
  11. package/docs/examples/organizations/create.md +5 -1
  12. package/docs/examples/organizations/update-plan.md +5 -1
  13. package/docs/examples/organizations/validate-invoice.md +14 -0
  14. package/package.json +1 -1
  15. package/src/client.ts +21 -4
  16. package/src/enums/credit-card.ts +1 -0
  17. package/src/enums/name.ts +3 -2
  18. package/src/enums/o-auth-provider.ts +1 -0
  19. package/src/enums/runtime.ts +3 -0
  20. package/src/models.ts +202 -5
  21. package/src/services/account.ts +126 -430
  22. package/src/services/assistant.ts +2 -7
  23. package/src/services/avatars.ts +7 -21
  24. package/src/services/backups.ts +24 -84
  25. package/src/services/console.ts +14 -49
  26. package/src/services/databases.ts +99 -350
  27. package/src/services/functions.ts +55 -192
  28. package/src/services/graphql.ts +4 -14
  29. package/src/services/health.ts +55 -207
  30. package/src/services/locale.ts +16 -56
  31. package/src/services/messaging.ts +92 -322
  32. package/src/services/migrations.ts +24 -84
  33. package/src/services/organizations.ts +118 -196
  34. package/src/services/project.ts +12 -42
  35. package/src/services/projects.ts +92 -322
  36. package/src/services/proxy.ts +10 -35
  37. package/src/services/storage.ts +27 -93
  38. package/src/services/teams.ts +28 -98
  39. package/src/services/users.ts +86 -301
  40. package/src/services/vcs.ts +20 -70
  41. package/types/enums/credit-card.d.ts +2 -1
  42. package/types/enums/name.d.ts +3 -2
  43. package/types/enums/o-auth-provider.d.ts +1 -0
  44. package/types/enums/runtime.d.ts +3 -0
  45. package/types/models.d.ts +202 -5
  46. package/types/services/account.d.ts +4 -128
  47. package/types/services/assistant.d.ts +0 -2
  48. package/types/services/avatars.d.ts +0 -14
  49. package/types/services/backups.d.ts +0 -24
  50. package/types/services/console.d.ts +0 -14
  51. package/types/services/databases.d.ts +5 -100
  52. package/types/services/functions.d.ts +0 -56
  53. package/types/services/graphql.d.ts +0 -4
  54. package/types/services/health.d.ts +5 -64
  55. package/types/services/locale.d.ts +0 -16
  56. package/types/services/messaging.d.ts +0 -92
  57. package/types/services/migrations.d.ts +0 -24
  58. package/types/services/organizations.d.ts +21 -60
  59. package/types/services/project.d.ts +0 -12
  60. package/types/services/projects.d.ts +0 -92
  61. package/types/services/proxy.d.ts +0 -10
  62. package/types/services/storage.d.ts +0 -30
  63. package/types/services/teams.d.ts +0 -28
  64. package/types/services/users.d.ts +0 -86
  65. package/types/services/vcs.d.ts +0 -20
  66. package/docs/examples/health/get-queue.md +0 -11
@@ -12,8 +12,6 @@ export class Messaging {
12
12
  }
13
13
 
14
14
  /**
15
- * List messages
16
- *
17
15
  * Get a list of all messages from the current Appwrite project.
18
16
  *
19
17
  * @param {string[]} queries
@@ -21,7 +19,7 @@ export class Messaging {
21
19
  * @throws {AppwriteException}
22
20
  * @returns {Promise<Models.MessageList>}
23
21
  */
24
- async listMessages(queries?: string[], search?: string): Promise<Models.MessageList> {
22
+ listMessages(queries?: string[], search?: string): Promise<Models.MessageList> {
25
23
  const apiPath = '/messaging/messages';
26
24
  const payload: Payload = {};
27
25
  if (typeof queries !== 'undefined') {
@@ -36,10 +34,7 @@ export class Messaging {
36
34
  'content-type': 'application/json',
37
35
  }
38
36
 
39
- payload['project'] = this.client.config.project;
40
-
41
-
42
- return await this.client.call(
37
+ return this.client.call(
43
38
  'get',
44
39
  uri,
45
40
  apiHeaders,
@@ -47,8 +42,6 @@ export class Messaging {
47
42
  );
48
43
  }
49
44
  /**
50
- * Create email
51
- *
52
45
  * Create a new email message.
53
46
  *
54
47
  * @param {string} messageId
@@ -66,7 +59,7 @@ export class Messaging {
66
59
  * @throws {AppwriteException}
67
60
  * @returns {Promise<Models.Message>}
68
61
  */
69
- async createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message> {
62
+ createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], attachments?: string[], draft?: boolean, html?: boolean, scheduledAt?: string): Promise<Models.Message> {
70
63
  if (typeof messageId === 'undefined') {
71
64
  throw new AppwriteException('Missing required parameter: "messageId"');
72
65
  }
@@ -120,10 +113,7 @@ export class Messaging {
120
113
  'content-type': 'application/json',
121
114
  }
122
115
 
123
- payload['project'] = this.client.config.project;
124
-
125
-
126
- return await this.client.call(
116
+ return this.client.call(
127
117
  'post',
128
118
  uri,
129
119
  apiHeaders,
@@ -131,8 +121,6 @@ export class Messaging {
131
121
  );
132
122
  }
133
123
  /**
134
- * Update email
135
- *
136
124
  * 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.
137
125
 
138
126
  *
@@ -151,7 +139,7 @@ export class Messaging {
151
139
  * @throws {AppwriteException}
152
140
  * @returns {Promise<Models.Message>}
153
141
  */
154
- async updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string, attachments?: string[]): Promise<Models.Message> {
142
+ updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, draft?: boolean, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string, attachments?: string[]): Promise<Models.Message> {
155
143
  if (typeof messageId === 'undefined') {
156
144
  throw new AppwriteException('Missing required parameter: "messageId"');
157
145
  }
@@ -196,10 +184,7 @@ export class Messaging {
196
184
  'content-type': 'application/json',
197
185
  }
198
186
 
199
- payload['project'] = this.client.config.project;
200
-
201
-
202
- return await this.client.call(
187
+ return this.client.call(
203
188
  'patch',
204
189
  uri,
205
190
  apiHeaders,
@@ -207,8 +192,6 @@ export class Messaging {
207
192
  );
208
193
  }
209
194
  /**
210
- * Create push notification
211
- *
212
195
  * Create a new push notification.
213
196
  *
214
197
  * @param {string} messageId
@@ -233,7 +216,7 @@ export class Messaging {
233
216
  * @throws {AppwriteException}
234
217
  * @returns {Promise<Models.Message>}
235
218
  */
236
- async createPush(messageId: string, title?: string, body?: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority): Promise<Models.Message> {
219
+ createPush(messageId: string, title?: string, body?: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority): Promise<Models.Message> {
237
220
  if (typeof messageId === 'undefined') {
238
221
  throw new AppwriteException('Missing required parameter: "messageId"');
239
222
  }
@@ -302,10 +285,7 @@ export class Messaging {
302
285
  'content-type': 'application/json',
303
286
  }
304
287
 
305
- payload['project'] = this.client.config.project;
306
-
307
-
308
- return await this.client.call(
288
+ return this.client.call(
309
289
  'post',
310
290
  uri,
311
291
  apiHeaders,
@@ -313,8 +293,6 @@ export class Messaging {
313
293
  );
314
294
  }
315
295
  /**
316
- * Update push notification
317
- *
318
296
  * 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.
319
297
 
320
298
  *
@@ -340,7 +318,7 @@ export class Messaging {
340
318
  * @throws {AppwriteException}
341
319
  * @returns {Promise<Models.Message>}
342
320
  */
343
- async updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority): Promise<Models.Message> {
321
+ updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, image?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, draft?: boolean, scheduledAt?: string, contentAvailable?: boolean, critical?: boolean, priority?: MessagePriority): Promise<Models.Message> {
344
322
  if (typeof messageId === 'undefined') {
345
323
  throw new AppwriteException('Missing required parameter: "messageId"');
346
324
  }
@@ -406,10 +384,7 @@ export class Messaging {
406
384
  'content-type': 'application/json',
407
385
  }
408
386
 
409
- payload['project'] = this.client.config.project;
410
-
411
-
412
- return await this.client.call(
387
+ return this.client.call(
413
388
  'patch',
414
389
  uri,
415
390
  apiHeaders,
@@ -417,8 +392,6 @@ export class Messaging {
417
392
  );
418
393
  }
419
394
  /**
420
- * Create SMS
421
- *
422
395
  * Create a new SMS message.
423
396
  *
424
397
  * @param {string} messageId
@@ -431,7 +404,7 @@ export class Messaging {
431
404
  * @throws {AppwriteException}
432
405
  * @returns {Promise<Models.Message>}
433
406
  */
434
- async createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
407
+ createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
435
408
  if (typeof messageId === 'undefined') {
436
409
  throw new AppwriteException('Missing required parameter: "messageId"');
437
410
  }
@@ -467,10 +440,7 @@ export class Messaging {
467
440
  'content-type': 'application/json',
468
441
  }
469
442
 
470
- payload['project'] = this.client.config.project;
471
-
472
-
473
- return await this.client.call(
443
+ return this.client.call(
474
444
  'post',
475
445
  uri,
476
446
  apiHeaders,
@@ -478,8 +448,6 @@ export class Messaging {
478
448
  );
479
449
  }
480
450
  /**
481
- * Update SMS
482
- *
483
451
  * 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.
484
452
 
485
453
  *
@@ -493,7 +461,7 @@ export class Messaging {
493
461
  * @throws {AppwriteException}
494
462
  * @returns {Promise<Models.Message>}
495
463
  */
496
- async updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
464
+ updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
497
465
  if (typeof messageId === 'undefined') {
498
466
  throw new AppwriteException('Missing required parameter: "messageId"');
499
467
  }
@@ -523,10 +491,7 @@ export class Messaging {
523
491
  'content-type': 'application/json',
524
492
  }
525
493
 
526
- payload['project'] = this.client.config.project;
527
-
528
-
529
- return await this.client.call(
494
+ return this.client.call(
530
495
  'patch',
531
496
  uri,
532
497
  apiHeaders,
@@ -534,8 +499,6 @@ export class Messaging {
534
499
  );
535
500
  }
536
501
  /**
537
- * Get message
538
- *
539
502
  * Get a message by its unique ID.
540
503
 
541
504
  *
@@ -543,7 +506,7 @@ export class Messaging {
543
506
  * @throws {AppwriteException}
544
507
  * @returns {Promise<Models.Message>}
545
508
  */
546
- async getMessage(messageId: string): Promise<Models.Message> {
509
+ getMessage(messageId: string): Promise<Models.Message> {
547
510
  if (typeof messageId === 'undefined') {
548
511
  throw new AppwriteException('Missing required parameter: "messageId"');
549
512
  }
@@ -555,10 +518,7 @@ export class Messaging {
555
518
  'content-type': 'application/json',
556
519
  }
557
520
 
558
- payload['project'] = this.client.config.project;
559
-
560
-
561
- return await this.client.call(
521
+ return this.client.call(
562
522
  'get',
563
523
  uri,
564
524
  apiHeaders,
@@ -566,15 +526,13 @@ export class Messaging {
566
526
  );
567
527
  }
568
528
  /**
569
- * Delete message
570
- *
571
529
  * Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
572
530
  *
573
531
  * @param {string} messageId
574
532
  * @throws {AppwriteException}
575
533
  * @returns {Promise<{}>}
576
534
  */
577
- async delete(messageId: string): Promise<{}> {
535
+ delete(messageId: string): Promise<{}> {
578
536
  if (typeof messageId === 'undefined') {
579
537
  throw new AppwriteException('Missing required parameter: "messageId"');
580
538
  }
@@ -586,10 +544,7 @@ export class Messaging {
586
544
  'content-type': 'application/json',
587
545
  }
588
546
 
589
- payload['project'] = this.client.config.project;
590
-
591
-
592
- return await this.client.call(
547
+ return this.client.call(
593
548
  'delete',
594
549
  uri,
595
550
  apiHeaders,
@@ -597,8 +552,6 @@ export class Messaging {
597
552
  );
598
553
  }
599
554
  /**
600
- * List message logs
601
- *
602
555
  * Get the message activity logs listed by its unique ID.
603
556
  *
604
557
  * @param {string} messageId
@@ -606,7 +559,7 @@ export class Messaging {
606
559
  * @throws {AppwriteException}
607
560
  * @returns {Promise<Models.LogList>}
608
561
  */
609
- async listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList> {
562
+ listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList> {
610
563
  if (typeof messageId === 'undefined') {
611
564
  throw new AppwriteException('Missing required parameter: "messageId"');
612
565
  }
@@ -621,10 +574,7 @@ export class Messaging {
621
574
  'content-type': 'application/json',
622
575
  }
623
576
 
624
- payload['project'] = this.client.config.project;
625
-
626
-
627
- return await this.client.call(
577
+ return this.client.call(
628
578
  'get',
629
579
  uri,
630
580
  apiHeaders,
@@ -632,8 +582,6 @@ export class Messaging {
632
582
  );
633
583
  }
634
584
  /**
635
- * List message targets
636
- *
637
585
  * Get a list of the targets associated with a message.
638
586
  *
639
587
  * @param {string} messageId
@@ -641,7 +589,7 @@ export class Messaging {
641
589
  * @throws {AppwriteException}
642
590
  * @returns {Promise<Models.TargetList>}
643
591
  */
644
- async listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList> {
592
+ listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList> {
645
593
  if (typeof messageId === 'undefined') {
646
594
  throw new AppwriteException('Missing required parameter: "messageId"');
647
595
  }
@@ -656,10 +604,7 @@ export class Messaging {
656
604
  'content-type': 'application/json',
657
605
  }
658
606
 
659
- payload['project'] = this.client.config.project;
660
-
661
-
662
- return await this.client.call(
607
+ return this.client.call(
663
608
  'get',
664
609
  uri,
665
610
  apiHeaders,
@@ -667,8 +612,6 @@ export class Messaging {
667
612
  );
668
613
  }
669
614
  /**
670
- * List providers
671
- *
672
615
  * Get a list of all providers from the current Appwrite project.
673
616
  *
674
617
  * @param {string[]} queries
@@ -676,7 +619,7 @@ export class Messaging {
676
619
  * @throws {AppwriteException}
677
620
  * @returns {Promise<Models.ProviderList>}
678
621
  */
679
- async listProviders(queries?: string[], search?: string): Promise<Models.ProviderList> {
622
+ listProviders(queries?: string[], search?: string): Promise<Models.ProviderList> {
680
623
  const apiPath = '/messaging/providers';
681
624
  const payload: Payload = {};
682
625
  if (typeof queries !== 'undefined') {
@@ -691,10 +634,7 @@ export class Messaging {
691
634
  'content-type': 'application/json',
692
635
  }
693
636
 
694
- payload['project'] = this.client.config.project;
695
-
696
-
697
- return await this.client.call(
637
+ return this.client.call(
698
638
  'get',
699
639
  uri,
700
640
  apiHeaders,
@@ -702,8 +642,6 @@ export class Messaging {
702
642
  );
703
643
  }
704
644
  /**
705
- * Create APNS provider
706
- *
707
645
  * Create a new Apple Push Notification service provider.
708
646
  *
709
647
  * @param {string} providerId
@@ -717,7 +655,7 @@ export class Messaging {
717
655
  * @throws {AppwriteException}
718
656
  * @returns {Promise<Models.Provider>}
719
657
  */
720
- async createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider> {
658
+ createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider> {
721
659
  if (typeof providerId === 'undefined') {
722
660
  throw new AppwriteException('Missing required parameter: "providerId"');
723
661
  }
@@ -756,10 +694,7 @@ export class Messaging {
756
694
  'content-type': 'application/json',
757
695
  }
758
696
 
759
- payload['project'] = this.client.config.project;
760
-
761
-
762
- return await this.client.call(
697
+ return this.client.call(
763
698
  'post',
764
699
  uri,
765
700
  apiHeaders,
@@ -767,8 +702,6 @@ export class Messaging {
767
702
  );
768
703
  }
769
704
  /**
770
- * Update APNS provider
771
- *
772
705
  * Update a Apple Push Notification service provider by its unique ID.
773
706
  *
774
707
  * @param {string} providerId
@@ -782,7 +715,7 @@ export class Messaging {
782
715
  * @throws {AppwriteException}
783
716
  * @returns {Promise<Models.Provider>}
784
717
  */
785
- async updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider> {
718
+ updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider> {
786
719
  if (typeof providerId === 'undefined') {
787
720
  throw new AppwriteException('Missing required parameter: "providerId"');
788
721
  }
@@ -815,10 +748,7 @@ export class Messaging {
815
748
  'content-type': 'application/json',
816
749
  }
817
750
 
818
- payload['project'] = this.client.config.project;
819
-
820
-
821
- return await this.client.call(
751
+ return this.client.call(
822
752
  'patch',
823
753
  uri,
824
754
  apiHeaders,
@@ -826,8 +756,6 @@ export class Messaging {
826
756
  );
827
757
  }
828
758
  /**
829
- * Create FCM provider
830
- *
831
759
  * Create a new Firebase Cloud Messaging provider.
832
760
  *
833
761
  * @param {string} providerId
@@ -837,7 +765,7 @@ export class Messaging {
837
765
  * @throws {AppwriteException}
838
766
  * @returns {Promise<Models.Provider>}
839
767
  */
840
- async createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider> {
768
+ createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider> {
841
769
  if (typeof providerId === 'undefined') {
842
770
  throw new AppwriteException('Missing required parameter: "providerId"');
843
771
  }
@@ -864,10 +792,7 @@ export class Messaging {
864
792
  'content-type': 'application/json',
865
793
  }
866
794
 
867
- payload['project'] = this.client.config.project;
868
-
869
-
870
- return await this.client.call(
795
+ return this.client.call(
871
796
  'post',
872
797
  uri,
873
798
  apiHeaders,
@@ -875,8 +800,6 @@ export class Messaging {
875
800
  );
876
801
  }
877
802
  /**
878
- * Update FCM provider
879
- *
880
803
  * Update a Firebase Cloud Messaging provider by its unique ID.
881
804
  *
882
805
  * @param {string} providerId
@@ -886,7 +809,7 @@ export class Messaging {
886
809
  * @throws {AppwriteException}
887
810
  * @returns {Promise<Models.Provider>}
888
811
  */
889
- async updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider> {
812
+ updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider> {
890
813
  if (typeof providerId === 'undefined') {
891
814
  throw new AppwriteException('Missing required parameter: "providerId"');
892
815
  }
@@ -907,10 +830,7 @@ export class Messaging {
907
830
  'content-type': 'application/json',
908
831
  }
909
832
 
910
- payload['project'] = this.client.config.project;
911
-
912
-
913
- return await this.client.call(
833
+ return this.client.call(
914
834
  'patch',
915
835
  uri,
916
836
  apiHeaders,
@@ -918,8 +838,6 @@ export class Messaging {
918
838
  );
919
839
  }
920
840
  /**
921
- * Create Mailgun provider
922
- *
923
841
  * Create a new Mailgun provider.
924
842
  *
925
843
  * @param {string} providerId
@@ -935,7 +853,7 @@ export class Messaging {
935
853
  * @throws {AppwriteException}
936
854
  * @returns {Promise<Models.Provider>}
937
855
  */
938
- async createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
856
+ createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
939
857
  if (typeof providerId === 'undefined') {
940
858
  throw new AppwriteException('Missing required parameter: "providerId"');
941
859
  }
@@ -980,10 +898,7 @@ export class Messaging {
980
898
  'content-type': 'application/json',
981
899
  }
982
900
 
983
- payload['project'] = this.client.config.project;
984
-
985
-
986
- return await this.client.call(
901
+ return this.client.call(
987
902
  'post',
988
903
  uri,
989
904
  apiHeaders,
@@ -991,8 +906,6 @@ export class Messaging {
991
906
  );
992
907
  }
993
908
  /**
994
- * Update Mailgun provider
995
- *
996
909
  * Update a Mailgun provider by its unique ID.
997
910
  *
998
911
  * @param {string} providerId
@@ -1008,7 +921,7 @@ export class Messaging {
1008
921
  * @throws {AppwriteException}
1009
922
  * @returns {Promise<Models.Provider>}
1010
923
  */
1011
- async updateMailgunProvider(providerId: string, name?: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
924
+ updateMailgunProvider(providerId: string, name?: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
1012
925
  if (typeof providerId === 'undefined') {
1013
926
  throw new AppwriteException('Missing required parameter: "providerId"');
1014
927
  }
@@ -1047,10 +960,7 @@ export class Messaging {
1047
960
  'content-type': 'application/json',
1048
961
  }
1049
962
 
1050
- payload['project'] = this.client.config.project;
1051
-
1052
-
1053
- return await this.client.call(
963
+ return this.client.call(
1054
964
  'patch',
1055
965
  uri,
1056
966
  apiHeaders,
@@ -1058,8 +968,6 @@ export class Messaging {
1058
968
  );
1059
969
  }
1060
970
  /**
1061
- * Create Msg91 provider
1062
- *
1063
971
  * Create a new MSG91 provider.
1064
972
  *
1065
973
  * @param {string} providerId
@@ -1071,7 +979,7 @@ export class Messaging {
1071
979
  * @throws {AppwriteException}
1072
980
  * @returns {Promise<Models.Provider>}
1073
981
  */
1074
- async createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider> {
982
+ createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider> {
1075
983
  if (typeof providerId === 'undefined') {
1076
984
  throw new AppwriteException('Missing required parameter: "providerId"');
1077
985
  }
@@ -1104,10 +1012,7 @@ export class Messaging {
1104
1012
  'content-type': 'application/json',
1105
1013
  }
1106
1014
 
1107
- payload['project'] = this.client.config.project;
1108
-
1109
-
1110
- return await this.client.call(
1015
+ return this.client.call(
1111
1016
  'post',
1112
1017
  uri,
1113
1018
  apiHeaders,
@@ -1115,8 +1020,6 @@ export class Messaging {
1115
1020
  );
1116
1021
  }
1117
1022
  /**
1118
- * Update Msg91 provider
1119
- *
1120
1023
  * Update a MSG91 provider by its unique ID.
1121
1024
  *
1122
1025
  * @param {string} providerId
@@ -1128,7 +1031,7 @@ export class Messaging {
1128
1031
  * @throws {AppwriteException}
1129
1032
  * @returns {Promise<Models.Provider>}
1130
1033
  */
1131
- async updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider> {
1034
+ updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider> {
1132
1035
  if (typeof providerId === 'undefined') {
1133
1036
  throw new AppwriteException('Missing required parameter: "providerId"');
1134
1037
  }
@@ -1155,10 +1058,7 @@ export class Messaging {
1155
1058
  'content-type': 'application/json',
1156
1059
  }
1157
1060
 
1158
- payload['project'] = this.client.config.project;
1159
-
1160
-
1161
- return await this.client.call(
1061
+ return this.client.call(
1162
1062
  'patch',
1163
1063
  uri,
1164
1064
  apiHeaders,
@@ -1166,8 +1066,6 @@ export class Messaging {
1166
1066
  );
1167
1067
  }
1168
1068
  /**
1169
- * Create Sendgrid provider
1170
- *
1171
1069
  * Create a new Sendgrid provider.
1172
1070
  *
1173
1071
  * @param {string} providerId
@@ -1181,7 +1079,7 @@ export class Messaging {
1181
1079
  * @throws {AppwriteException}
1182
1080
  * @returns {Promise<Models.Provider>}
1183
1081
  */
1184
- async createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1082
+ createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1185
1083
  if (typeof providerId === 'undefined') {
1186
1084
  throw new AppwriteException('Missing required parameter: "providerId"');
1187
1085
  }
@@ -1220,10 +1118,7 @@ export class Messaging {
1220
1118
  'content-type': 'application/json',
1221
1119
  }
1222
1120
 
1223
- payload['project'] = this.client.config.project;
1224
-
1225
-
1226
- return await this.client.call(
1121
+ return this.client.call(
1227
1122
  'post',
1228
1123
  uri,
1229
1124
  apiHeaders,
@@ -1231,8 +1126,6 @@ export class Messaging {
1231
1126
  );
1232
1127
  }
1233
1128
  /**
1234
- * Update Sendgrid provider
1235
- *
1236
1129
  * Update a Sendgrid provider by its unique ID.
1237
1130
  *
1238
1131
  * @param {string} providerId
@@ -1246,7 +1139,7 @@ export class Messaging {
1246
1139
  * @throws {AppwriteException}
1247
1140
  * @returns {Promise<Models.Provider>}
1248
1141
  */
1249
- async updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
1142
+ updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
1250
1143
  if (typeof providerId === 'undefined') {
1251
1144
  throw new AppwriteException('Missing required parameter: "providerId"');
1252
1145
  }
@@ -1279,10 +1172,7 @@ export class Messaging {
1279
1172
  'content-type': 'application/json',
1280
1173
  }
1281
1174
 
1282
- payload['project'] = this.client.config.project;
1283
-
1284
-
1285
- return await this.client.call(
1175
+ return this.client.call(
1286
1176
  'patch',
1287
1177
  uri,
1288
1178
  apiHeaders,
@@ -1290,8 +1180,6 @@ export class Messaging {
1290
1180
  );
1291
1181
  }
1292
1182
  /**
1293
- * Create SMTP provider
1294
- *
1295
1183
  * Create a new SMTP provider.
1296
1184
  *
1297
1185
  * @param {string} providerId
@@ -1311,7 +1199,7 @@ export class Messaging {
1311
1199
  * @throws {AppwriteException}
1312
1200
  * @returns {Promise<Models.Provider>}
1313
1201
  */
1314
- async createSmtpProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1202
+ createSmtpProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1315
1203
  if (typeof providerId === 'undefined') {
1316
1204
  throw new AppwriteException('Missing required parameter: "providerId"');
1317
1205
  }
@@ -1371,10 +1259,7 @@ export class Messaging {
1371
1259
  'content-type': 'application/json',
1372
1260
  }
1373
1261
 
1374
- payload['project'] = this.client.config.project;
1375
-
1376
-
1377
- return await this.client.call(
1262
+ return this.client.call(
1378
1263
  'post',
1379
1264
  uri,
1380
1265
  apiHeaders,
@@ -1382,8 +1267,6 @@ export class Messaging {
1382
1267
  );
1383
1268
  }
1384
1269
  /**
1385
- * Update SMTP provider
1386
- *
1387
1270
  * Update a SMTP provider by its unique ID.
1388
1271
  *
1389
1272
  * @param {string} providerId
@@ -1403,7 +1286,7 @@ export class Messaging {
1403
1286
  * @throws {AppwriteException}
1404
1287
  * @returns {Promise<Models.Provider>}
1405
1288
  */
1406
- async updateSmtpProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1289
+ updateSmtpProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SmtpEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1407
1290
  if (typeof providerId === 'undefined') {
1408
1291
  throw new AppwriteException('Missing required parameter: "providerId"');
1409
1292
  }
@@ -1454,10 +1337,7 @@ export class Messaging {
1454
1337
  'content-type': 'application/json',
1455
1338
  }
1456
1339
 
1457
- payload['project'] = this.client.config.project;
1458
-
1459
-
1460
- return await this.client.call(
1340
+ return this.client.call(
1461
1341
  'patch',
1462
1342
  uri,
1463
1343
  apiHeaders,
@@ -1465,8 +1345,6 @@ export class Messaging {
1465
1345
  );
1466
1346
  }
1467
1347
  /**
1468
- * Create Telesign provider
1469
- *
1470
1348
  * Create a new Telesign provider.
1471
1349
  *
1472
1350
  * @param {string} providerId
@@ -1478,7 +1356,7 @@ export class Messaging {
1478
1356
  * @throws {AppwriteException}
1479
1357
  * @returns {Promise<Models.Provider>}
1480
1358
  */
1481
- async createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1359
+ createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1482
1360
  if (typeof providerId === 'undefined') {
1483
1361
  throw new AppwriteException('Missing required parameter: "providerId"');
1484
1362
  }
@@ -1511,10 +1389,7 @@ export class Messaging {
1511
1389
  'content-type': 'application/json',
1512
1390
  }
1513
1391
 
1514
- payload['project'] = this.client.config.project;
1515
-
1516
-
1517
- return await this.client.call(
1392
+ return this.client.call(
1518
1393
  'post',
1519
1394
  uri,
1520
1395
  apiHeaders,
@@ -1522,8 +1397,6 @@ export class Messaging {
1522
1397
  );
1523
1398
  }
1524
1399
  /**
1525
- * Update Telesign provider
1526
- *
1527
1400
  * Update a Telesign provider by its unique ID.
1528
1401
  *
1529
1402
  * @param {string} providerId
@@ -1535,7 +1408,7 @@ export class Messaging {
1535
1408
  * @throws {AppwriteException}
1536
1409
  * @returns {Promise<Models.Provider>}
1537
1410
  */
1538
- async updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1411
+ updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1539
1412
  if (typeof providerId === 'undefined') {
1540
1413
  throw new AppwriteException('Missing required parameter: "providerId"');
1541
1414
  }
@@ -1562,10 +1435,7 @@ export class Messaging {
1562
1435
  'content-type': 'application/json',
1563
1436
  }
1564
1437
 
1565
- payload['project'] = this.client.config.project;
1566
-
1567
-
1568
- return await this.client.call(
1438
+ return this.client.call(
1569
1439
  'patch',
1570
1440
  uri,
1571
1441
  apiHeaders,
@@ -1573,8 +1443,6 @@ export class Messaging {
1573
1443
  );
1574
1444
  }
1575
1445
  /**
1576
- * Create Textmagic provider
1577
- *
1578
1446
  * Create a new Textmagic provider.
1579
1447
  *
1580
1448
  * @param {string} providerId
@@ -1586,7 +1454,7 @@ export class Messaging {
1586
1454
  * @throws {AppwriteException}
1587
1455
  * @returns {Promise<Models.Provider>}
1588
1456
  */
1589
- async createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1457
+ createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1590
1458
  if (typeof providerId === 'undefined') {
1591
1459
  throw new AppwriteException('Missing required parameter: "providerId"');
1592
1460
  }
@@ -1619,10 +1487,7 @@ export class Messaging {
1619
1487
  'content-type': 'application/json',
1620
1488
  }
1621
1489
 
1622
- payload['project'] = this.client.config.project;
1623
-
1624
-
1625
- return await this.client.call(
1490
+ return this.client.call(
1626
1491
  'post',
1627
1492
  uri,
1628
1493
  apiHeaders,
@@ -1630,8 +1495,6 @@ export class Messaging {
1630
1495
  );
1631
1496
  }
1632
1497
  /**
1633
- * Update Textmagic provider
1634
- *
1635
1498
  * Update a Textmagic provider by its unique ID.
1636
1499
  *
1637
1500
  * @param {string} providerId
@@ -1643,7 +1506,7 @@ export class Messaging {
1643
1506
  * @throws {AppwriteException}
1644
1507
  * @returns {Promise<Models.Provider>}
1645
1508
  */
1646
- async updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1509
+ updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1647
1510
  if (typeof providerId === 'undefined') {
1648
1511
  throw new AppwriteException('Missing required parameter: "providerId"');
1649
1512
  }
@@ -1670,10 +1533,7 @@ export class Messaging {
1670
1533
  'content-type': 'application/json',
1671
1534
  }
1672
1535
 
1673
- payload['project'] = this.client.config.project;
1674
-
1675
-
1676
- return await this.client.call(
1536
+ return this.client.call(
1677
1537
  'patch',
1678
1538
  uri,
1679
1539
  apiHeaders,
@@ -1681,8 +1541,6 @@ export class Messaging {
1681
1541
  );
1682
1542
  }
1683
1543
  /**
1684
- * Create Twilio provider
1685
- *
1686
1544
  * Create a new Twilio provider.
1687
1545
  *
1688
1546
  * @param {string} providerId
@@ -1694,7 +1552,7 @@ export class Messaging {
1694
1552
  * @throws {AppwriteException}
1695
1553
  * @returns {Promise<Models.Provider>}
1696
1554
  */
1697
- async createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider> {
1555
+ createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider> {
1698
1556
  if (typeof providerId === 'undefined') {
1699
1557
  throw new AppwriteException('Missing required parameter: "providerId"');
1700
1558
  }
@@ -1727,10 +1585,7 @@ export class Messaging {
1727
1585
  'content-type': 'application/json',
1728
1586
  }
1729
1587
 
1730
- payload['project'] = this.client.config.project;
1731
-
1732
-
1733
- return await this.client.call(
1588
+ return this.client.call(
1734
1589
  'post',
1735
1590
  uri,
1736
1591
  apiHeaders,
@@ -1738,8 +1593,6 @@ export class Messaging {
1738
1593
  );
1739
1594
  }
1740
1595
  /**
1741
- * Update Twilio provider
1742
- *
1743
1596
  * Update a Twilio provider by its unique ID.
1744
1597
  *
1745
1598
  * @param {string} providerId
@@ -1751,7 +1604,7 @@ export class Messaging {
1751
1604
  * @throws {AppwriteException}
1752
1605
  * @returns {Promise<Models.Provider>}
1753
1606
  */
1754
- async updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider> {
1607
+ updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider> {
1755
1608
  if (typeof providerId === 'undefined') {
1756
1609
  throw new AppwriteException('Missing required parameter: "providerId"');
1757
1610
  }
@@ -1778,10 +1631,7 @@ export class Messaging {
1778
1631
  'content-type': 'application/json',
1779
1632
  }
1780
1633
 
1781
- payload['project'] = this.client.config.project;
1782
-
1783
-
1784
- return await this.client.call(
1634
+ return this.client.call(
1785
1635
  'patch',
1786
1636
  uri,
1787
1637
  apiHeaders,
@@ -1789,8 +1639,6 @@ export class Messaging {
1789
1639
  );
1790
1640
  }
1791
1641
  /**
1792
- * Create Vonage provider
1793
- *
1794
1642
  * Create a new Vonage provider.
1795
1643
  *
1796
1644
  * @param {string} providerId
@@ -1802,7 +1650,7 @@ export class Messaging {
1802
1650
  * @throws {AppwriteException}
1803
1651
  * @returns {Promise<Models.Provider>}
1804
1652
  */
1805
- async createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider> {
1653
+ createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider> {
1806
1654
  if (typeof providerId === 'undefined') {
1807
1655
  throw new AppwriteException('Missing required parameter: "providerId"');
1808
1656
  }
@@ -1835,10 +1683,7 @@ export class Messaging {
1835
1683
  'content-type': 'application/json',
1836
1684
  }
1837
1685
 
1838
- payload['project'] = this.client.config.project;
1839
-
1840
-
1841
- return await this.client.call(
1686
+ return this.client.call(
1842
1687
  'post',
1843
1688
  uri,
1844
1689
  apiHeaders,
@@ -1846,8 +1691,6 @@ export class Messaging {
1846
1691
  );
1847
1692
  }
1848
1693
  /**
1849
- * Update Vonage provider
1850
- *
1851
1694
  * Update a Vonage provider by its unique ID.
1852
1695
  *
1853
1696
  * @param {string} providerId
@@ -1859,7 +1702,7 @@ export class Messaging {
1859
1702
  * @throws {AppwriteException}
1860
1703
  * @returns {Promise<Models.Provider>}
1861
1704
  */
1862
- async updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider> {
1705
+ updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider> {
1863
1706
  if (typeof providerId === 'undefined') {
1864
1707
  throw new AppwriteException('Missing required parameter: "providerId"');
1865
1708
  }
@@ -1886,10 +1729,7 @@ export class Messaging {
1886
1729
  'content-type': 'application/json',
1887
1730
  }
1888
1731
 
1889
- payload['project'] = this.client.config.project;
1890
-
1891
-
1892
- return await this.client.call(
1732
+ return this.client.call(
1893
1733
  'patch',
1894
1734
  uri,
1895
1735
  apiHeaders,
@@ -1897,8 +1737,6 @@ export class Messaging {
1897
1737
  );
1898
1738
  }
1899
1739
  /**
1900
- * Get provider
1901
- *
1902
1740
  * Get a provider by its unique ID.
1903
1741
 
1904
1742
  *
@@ -1906,7 +1744,7 @@ export class Messaging {
1906
1744
  * @throws {AppwriteException}
1907
1745
  * @returns {Promise<Models.Provider>}
1908
1746
  */
1909
- async getProvider(providerId: string): Promise<Models.Provider> {
1747
+ getProvider(providerId: string): Promise<Models.Provider> {
1910
1748
  if (typeof providerId === 'undefined') {
1911
1749
  throw new AppwriteException('Missing required parameter: "providerId"');
1912
1750
  }
@@ -1918,10 +1756,7 @@ export class Messaging {
1918
1756
  'content-type': 'application/json',
1919
1757
  }
1920
1758
 
1921
- payload['project'] = this.client.config.project;
1922
-
1923
-
1924
- return await this.client.call(
1759
+ return this.client.call(
1925
1760
  'get',
1926
1761
  uri,
1927
1762
  apiHeaders,
@@ -1929,15 +1764,13 @@ export class Messaging {
1929
1764
  );
1930
1765
  }
1931
1766
  /**
1932
- * Delete provider
1933
- *
1934
1767
  * Delete a provider by its unique ID.
1935
1768
  *
1936
1769
  * @param {string} providerId
1937
1770
  * @throws {AppwriteException}
1938
1771
  * @returns {Promise<{}>}
1939
1772
  */
1940
- async deleteProvider(providerId: string): Promise<{}> {
1773
+ deleteProvider(providerId: string): Promise<{}> {
1941
1774
  if (typeof providerId === 'undefined') {
1942
1775
  throw new AppwriteException('Missing required parameter: "providerId"');
1943
1776
  }
@@ -1949,10 +1782,7 @@ export class Messaging {
1949
1782
  'content-type': 'application/json',
1950
1783
  }
1951
1784
 
1952
- payload['project'] = this.client.config.project;
1953
-
1954
-
1955
- return await this.client.call(
1785
+ return this.client.call(
1956
1786
  'delete',
1957
1787
  uri,
1958
1788
  apiHeaders,
@@ -1960,8 +1790,6 @@ export class Messaging {
1960
1790
  );
1961
1791
  }
1962
1792
  /**
1963
- * List provider logs
1964
- *
1965
1793
  * Get the provider activity logs listed by its unique ID.
1966
1794
  *
1967
1795
  * @param {string} providerId
@@ -1969,7 +1797,7 @@ export class Messaging {
1969
1797
  * @throws {AppwriteException}
1970
1798
  * @returns {Promise<Models.LogList>}
1971
1799
  */
1972
- async listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList> {
1800
+ listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList> {
1973
1801
  if (typeof providerId === 'undefined') {
1974
1802
  throw new AppwriteException('Missing required parameter: "providerId"');
1975
1803
  }
@@ -1984,10 +1812,7 @@ export class Messaging {
1984
1812
  'content-type': 'application/json',
1985
1813
  }
1986
1814
 
1987
- payload['project'] = this.client.config.project;
1988
-
1989
-
1990
- return await this.client.call(
1815
+ return this.client.call(
1991
1816
  'get',
1992
1817
  uri,
1993
1818
  apiHeaders,
@@ -1995,8 +1820,6 @@ export class Messaging {
1995
1820
  );
1996
1821
  }
1997
1822
  /**
1998
- * List subscriber logs
1999
- *
2000
1823
  * Get the subscriber activity logs listed by its unique ID.
2001
1824
  *
2002
1825
  * @param {string} subscriberId
@@ -2004,7 +1827,7 @@ export class Messaging {
2004
1827
  * @throws {AppwriteException}
2005
1828
  * @returns {Promise<Models.LogList>}
2006
1829
  */
2007
- async listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList> {
1830
+ listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList> {
2008
1831
  if (typeof subscriberId === 'undefined') {
2009
1832
  throw new AppwriteException('Missing required parameter: "subscriberId"');
2010
1833
  }
@@ -2019,10 +1842,7 @@ export class Messaging {
2019
1842
  'content-type': 'application/json',
2020
1843
  }
2021
1844
 
2022
- payload['project'] = this.client.config.project;
2023
-
2024
-
2025
- return await this.client.call(
1845
+ return this.client.call(
2026
1846
  'get',
2027
1847
  uri,
2028
1848
  apiHeaders,
@@ -2030,8 +1850,6 @@ export class Messaging {
2030
1850
  );
2031
1851
  }
2032
1852
  /**
2033
- * List topics
2034
- *
2035
1853
  * Get a list of all topics from the current Appwrite project.
2036
1854
  *
2037
1855
  * @param {string[]} queries
@@ -2039,7 +1857,7 @@ export class Messaging {
2039
1857
  * @throws {AppwriteException}
2040
1858
  * @returns {Promise<Models.TopicList>}
2041
1859
  */
2042
- async listTopics(queries?: string[], search?: string): Promise<Models.TopicList> {
1860
+ listTopics(queries?: string[], search?: string): Promise<Models.TopicList> {
2043
1861
  const apiPath = '/messaging/topics';
2044
1862
  const payload: Payload = {};
2045
1863
  if (typeof queries !== 'undefined') {
@@ -2054,10 +1872,7 @@ export class Messaging {
2054
1872
  'content-type': 'application/json',
2055
1873
  }
2056
1874
 
2057
- payload['project'] = this.client.config.project;
2058
-
2059
-
2060
- return await this.client.call(
1875
+ return this.client.call(
2061
1876
  'get',
2062
1877
  uri,
2063
1878
  apiHeaders,
@@ -2065,8 +1880,6 @@ export class Messaging {
2065
1880
  );
2066
1881
  }
2067
1882
  /**
2068
- * Create topic
2069
- *
2070
1883
  * Create a new topic.
2071
1884
  *
2072
1885
  * @param {string} topicId
@@ -2075,7 +1888,7 @@ export class Messaging {
2075
1888
  * @throws {AppwriteException}
2076
1889
  * @returns {Promise<Models.Topic>}
2077
1890
  */
2078
- async createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic> {
1891
+ createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic> {
2079
1892
  if (typeof topicId === 'undefined') {
2080
1893
  throw new AppwriteException('Missing required parameter: "topicId"');
2081
1894
  }
@@ -2099,10 +1912,7 @@ export class Messaging {
2099
1912
  'content-type': 'application/json',
2100
1913
  }
2101
1914
 
2102
- payload['project'] = this.client.config.project;
2103
-
2104
-
2105
- return await this.client.call(
1915
+ return this.client.call(
2106
1916
  'post',
2107
1917
  uri,
2108
1918
  apiHeaders,
@@ -2110,8 +1920,6 @@ export class Messaging {
2110
1920
  );
2111
1921
  }
2112
1922
  /**
2113
- * Get topic
2114
- *
2115
1923
  * Get a topic by its unique ID.
2116
1924
 
2117
1925
  *
@@ -2119,7 +1927,7 @@ export class Messaging {
2119
1927
  * @throws {AppwriteException}
2120
1928
  * @returns {Promise<Models.Topic>}
2121
1929
  */
2122
- async getTopic(topicId: string): Promise<Models.Topic> {
1930
+ getTopic(topicId: string): Promise<Models.Topic> {
2123
1931
  if (typeof topicId === 'undefined') {
2124
1932
  throw new AppwriteException('Missing required parameter: "topicId"');
2125
1933
  }
@@ -2131,10 +1939,7 @@ export class Messaging {
2131
1939
  'content-type': 'application/json',
2132
1940
  }
2133
1941
 
2134
- payload['project'] = this.client.config.project;
2135
-
2136
-
2137
- return await this.client.call(
1942
+ return this.client.call(
2138
1943
  'get',
2139
1944
  uri,
2140
1945
  apiHeaders,
@@ -2142,8 +1947,6 @@ export class Messaging {
2142
1947
  );
2143
1948
  }
2144
1949
  /**
2145
- * Update topic
2146
- *
2147
1950
  * Update a topic by its unique ID.
2148
1951
 
2149
1952
  *
@@ -2153,7 +1956,7 @@ export class Messaging {
2153
1956
  * @throws {AppwriteException}
2154
1957
  * @returns {Promise<Models.Topic>}
2155
1958
  */
2156
- async updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic> {
1959
+ updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic> {
2157
1960
  if (typeof topicId === 'undefined') {
2158
1961
  throw new AppwriteException('Missing required parameter: "topicId"');
2159
1962
  }
@@ -2171,10 +1974,7 @@ export class Messaging {
2171
1974
  'content-type': 'application/json',
2172
1975
  }
2173
1976
 
2174
- payload['project'] = this.client.config.project;
2175
-
2176
-
2177
- return await this.client.call(
1977
+ return this.client.call(
2178
1978
  'patch',
2179
1979
  uri,
2180
1980
  apiHeaders,
@@ -2182,15 +1982,13 @@ export class Messaging {
2182
1982
  );
2183
1983
  }
2184
1984
  /**
2185
- * Delete topic
2186
- *
2187
1985
  * Delete a topic by its unique ID.
2188
1986
  *
2189
1987
  * @param {string} topicId
2190
1988
  * @throws {AppwriteException}
2191
1989
  * @returns {Promise<{}>}
2192
1990
  */
2193
- async deleteTopic(topicId: string): Promise<{}> {
1991
+ deleteTopic(topicId: string): Promise<{}> {
2194
1992
  if (typeof topicId === 'undefined') {
2195
1993
  throw new AppwriteException('Missing required parameter: "topicId"');
2196
1994
  }
@@ -2202,10 +2000,7 @@ export class Messaging {
2202
2000
  'content-type': 'application/json',
2203
2001
  }
2204
2002
 
2205
- payload['project'] = this.client.config.project;
2206
-
2207
-
2208
- return await this.client.call(
2003
+ return this.client.call(
2209
2004
  'delete',
2210
2005
  uri,
2211
2006
  apiHeaders,
@@ -2213,8 +2008,6 @@ export class Messaging {
2213
2008
  );
2214
2009
  }
2215
2010
  /**
2216
- * List topic logs
2217
- *
2218
2011
  * Get the topic activity logs listed by its unique ID.
2219
2012
  *
2220
2013
  * @param {string} topicId
@@ -2222,7 +2015,7 @@ export class Messaging {
2222
2015
  * @throws {AppwriteException}
2223
2016
  * @returns {Promise<Models.LogList>}
2224
2017
  */
2225
- async listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList> {
2018
+ listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList> {
2226
2019
  if (typeof topicId === 'undefined') {
2227
2020
  throw new AppwriteException('Missing required parameter: "topicId"');
2228
2021
  }
@@ -2237,10 +2030,7 @@ export class Messaging {
2237
2030
  'content-type': 'application/json',
2238
2031
  }
2239
2032
 
2240
- payload['project'] = this.client.config.project;
2241
-
2242
-
2243
- return await this.client.call(
2033
+ return this.client.call(
2244
2034
  'get',
2245
2035
  uri,
2246
2036
  apiHeaders,
@@ -2248,8 +2038,6 @@ export class Messaging {
2248
2038
  );
2249
2039
  }
2250
2040
  /**
2251
- * List subscribers
2252
- *
2253
2041
  * Get a list of all subscribers from the current Appwrite project.
2254
2042
  *
2255
2043
  * @param {string} topicId
@@ -2258,7 +2046,7 @@ export class Messaging {
2258
2046
  * @throws {AppwriteException}
2259
2047
  * @returns {Promise<Models.SubscriberList>}
2260
2048
  */
2261
- async listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList> {
2049
+ listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList> {
2262
2050
  if (typeof topicId === 'undefined') {
2263
2051
  throw new AppwriteException('Missing required parameter: "topicId"');
2264
2052
  }
@@ -2276,10 +2064,7 @@ export class Messaging {
2276
2064
  'content-type': 'application/json',
2277
2065
  }
2278
2066
 
2279
- payload['project'] = this.client.config.project;
2280
-
2281
-
2282
- return await this.client.call(
2067
+ return this.client.call(
2283
2068
  'get',
2284
2069
  uri,
2285
2070
  apiHeaders,
@@ -2287,8 +2072,6 @@ export class Messaging {
2287
2072
  );
2288
2073
  }
2289
2074
  /**
2290
- * Create subscriber
2291
- *
2292
2075
  * Create a new subscriber.
2293
2076
  *
2294
2077
  * @param {string} topicId
@@ -2297,7 +2080,7 @@ export class Messaging {
2297
2080
  * @throws {AppwriteException}
2298
2081
  * @returns {Promise<Models.Subscriber>}
2299
2082
  */
2300
- async createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
2083
+ createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
2301
2084
  if (typeof topicId === 'undefined') {
2302
2085
  throw new AppwriteException('Missing required parameter: "topicId"');
2303
2086
  }
@@ -2321,10 +2104,7 @@ export class Messaging {
2321
2104
  'content-type': 'application/json',
2322
2105
  }
2323
2106
 
2324
- payload['project'] = this.client.config.project;
2325
-
2326
-
2327
- return await this.client.call(
2107
+ return this.client.call(
2328
2108
  'post',
2329
2109
  uri,
2330
2110
  apiHeaders,
@@ -2332,8 +2112,6 @@ export class Messaging {
2332
2112
  );
2333
2113
  }
2334
2114
  /**
2335
- * Get subscriber
2336
- *
2337
2115
  * Get a subscriber by its unique ID.
2338
2116
 
2339
2117
  *
@@ -2342,7 +2120,7 @@ export class Messaging {
2342
2120
  * @throws {AppwriteException}
2343
2121
  * @returns {Promise<Models.Subscriber>}
2344
2122
  */
2345
- async getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber> {
2123
+ getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber> {
2346
2124
  if (typeof topicId === 'undefined') {
2347
2125
  throw new AppwriteException('Missing required parameter: "topicId"');
2348
2126
  }
@@ -2357,10 +2135,7 @@ export class Messaging {
2357
2135
  'content-type': 'application/json',
2358
2136
  }
2359
2137
 
2360
- payload['project'] = this.client.config.project;
2361
-
2362
-
2363
- return await this.client.call(
2138
+ return this.client.call(
2364
2139
  'get',
2365
2140
  uri,
2366
2141
  apiHeaders,
@@ -2368,8 +2143,6 @@ export class Messaging {
2368
2143
  );
2369
2144
  }
2370
2145
  /**
2371
- * Delete subscriber
2372
- *
2373
2146
  * Delete a subscriber by its unique ID.
2374
2147
  *
2375
2148
  * @param {string} topicId
@@ -2377,7 +2150,7 @@ export class Messaging {
2377
2150
  * @throws {AppwriteException}
2378
2151
  * @returns {Promise<{}>}
2379
2152
  */
2380
- async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
2153
+ deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
2381
2154
  if (typeof topicId === 'undefined') {
2382
2155
  throw new AppwriteException('Missing required parameter: "topicId"');
2383
2156
  }
@@ -2392,10 +2165,7 @@ export class Messaging {
2392
2165
  'content-type': 'application/json',
2393
2166
  }
2394
2167
 
2395
- payload['project'] = this.client.config.project;
2396
-
2397
-
2398
- return await this.client.call(
2168
+ return this.client.call(
2399
2169
  'delete',
2400
2170
  uri,
2401
2171
  apiHeaders,