node-appwrite 20.1.0 → 20.3.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 (95) hide show
  1. package/dist/client.js +2 -2
  2. package/dist/client.js.map +1 -1
  3. package/dist/client.mjs +2 -2
  4. package/dist/client.mjs.map +1 -1
  5. package/dist/enums/execution-status.d.mts +2 -1
  6. package/dist/enums/execution-status.d.ts +2 -1
  7. package/dist/enums/execution-status.js +1 -0
  8. package/dist/enums/execution-status.js.map +1 -1
  9. package/dist/enums/execution-status.mjs +1 -0
  10. package/dist/enums/execution-status.mjs.map +1 -1
  11. package/dist/enums/framework.d.mts +1 -0
  12. package/dist/enums/framework.d.ts +1 -0
  13. package/dist/enums/framework.js +1 -0
  14. package/dist/enums/framework.js.map +1 -1
  15. package/dist/enums/framework.mjs +1 -0
  16. package/dist/enums/framework.mjs.map +1 -1
  17. package/dist/index.d.mts +1 -0
  18. package/dist/index.d.ts +1 -0
  19. package/dist/index.js +9 -0
  20. package/dist/index.js.map +1 -1
  21. package/dist/index.mjs +1 -0
  22. package/dist/index.mjs.map +1 -1
  23. package/dist/models.d.mts +43 -1
  24. package/dist/models.d.ts +43 -1
  25. package/dist/operator.d.mts +181 -0
  26. package/dist/operator.d.ts +181 -0
  27. package/dist/operator.js +268 -0
  28. package/dist/operator.js.map +1 -0
  29. package/dist/operator.mjs +266 -0
  30. package/dist/operator.mjs.map +1 -0
  31. package/dist/query.js +6 -6
  32. package/dist/query.js.map +1 -1
  33. package/dist/query.mjs +6 -6
  34. package/dist/query.mjs.map +1 -1
  35. package/dist/services/account.d.mts +8 -2
  36. package/dist/services/account.d.ts +8 -2
  37. package/dist/services/account.js +14 -4
  38. package/dist/services/account.js.map +1 -1
  39. package/dist/services/account.mjs +14 -4
  40. package/dist/services/account.mjs.map +1 -1
  41. package/dist/services/databases.d.mts +192 -18
  42. package/dist/services/databases.d.ts +192 -18
  43. package/dist/services/databases.js +268 -16
  44. package/dist/services/databases.js.map +1 -1
  45. package/dist/services/databases.mjs +268 -16
  46. package/dist/services/databases.mjs.map +1 -1
  47. package/dist/services/functions.d.mts +12 -3
  48. package/dist/services/functions.d.ts +12 -3
  49. package/dist/services/functions.js +18 -3
  50. package/dist/services/functions.js.map +1 -1
  51. package/dist/services/functions.mjs +18 -3
  52. package/dist/services/functions.mjs.map +1 -1
  53. package/dist/services/messaging.d.mts +116 -9
  54. package/dist/services/messaging.d.ts +116 -9
  55. package/dist/services/messaging.js +182 -9
  56. package/dist/services/messaging.js.map +1 -1
  57. package/dist/services/messaging.mjs +182 -9
  58. package/dist/services/messaging.mjs.map +1 -1
  59. package/dist/services/sites.d.mts +12 -3
  60. package/dist/services/sites.d.ts +12 -3
  61. package/dist/services/sites.js +18 -3
  62. package/dist/services/sites.js.map +1 -1
  63. package/dist/services/sites.mjs +18 -3
  64. package/dist/services/sites.mjs.map +1 -1
  65. package/dist/services/storage.d.mts +8 -2
  66. package/dist/services/storage.d.ts +8 -2
  67. package/dist/services/storage.js +12 -2
  68. package/dist/services/storage.js.map +1 -1
  69. package/dist/services/storage.mjs +12 -2
  70. package/dist/services/storage.mjs.map +1 -1
  71. package/dist/services/tables-db.d.mts +190 -16
  72. package/dist/services/tables-db.d.ts +190 -16
  73. package/dist/services/tables-db.js +268 -16
  74. package/dist/services/tables-db.js.map +1 -1
  75. package/dist/services/tables-db.mjs +268 -16
  76. package/dist/services/tables-db.mjs.map +1 -1
  77. package/dist/services/teams.d.mts +8 -2
  78. package/dist/services/teams.d.ts +8 -2
  79. package/dist/services/teams.js +12 -2
  80. package/dist/services/teams.js.map +1 -1
  81. package/dist/services/teams.mjs +12 -2
  82. package/dist/services/teams.mjs.map +1 -1
  83. package/dist/services/tokens.d.mts +4 -1
  84. package/dist/services/tokens.d.ts +4 -1
  85. package/dist/services/tokens.js +6 -1
  86. package/dist/services/tokens.js.map +1 -1
  87. package/dist/services/tokens.mjs +6 -1
  88. package/dist/services/tokens.mjs.map +1 -1
  89. package/dist/services/users.d.mts +24 -6
  90. package/dist/services/users.d.ts +24 -6
  91. package/dist/services/users.js +37 -7
  92. package/dist/services/users.js.map +1 -1
  93. package/dist/services/users.mjs +37 -7
  94. package/dist/services/users.mjs.map +1 -1
  95. package/package.json +1 -1
@@ -22,23 +22,26 @@ declare class Messaging {
22
22
  *
23
23
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType
24
24
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
25
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
25
26
  * @throws {AppwriteException}
26
27
  * @returns {Promise<Models.MessageList>}
27
28
  */
28
29
  listMessages(params?: {
29
30
  queries?: string[];
30
31
  search?: string;
32
+ total?: boolean;
31
33
  }): Promise<Models.MessageList>;
32
34
  /**
33
35
  * Get a list of all messages from the current Appwrite project.
34
36
  *
35
37
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType
36
38
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
39
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
37
40
  * @throws {AppwriteException}
38
41
  * @returns {Promise<Models.MessageList>}
39
42
  * @deprecated Use the object parameter style method for a better developer experience.
40
43
  */
41
- listMessages(queries?: string[], search?: string): Promise<Models.MessageList>;
44
+ listMessages(queries?: string[], search?: string, total?: boolean): Promise<Models.MessageList>;
42
45
  /**
43
46
  * Create a new email message.
44
47
  *
@@ -492,67 +495,76 @@ declare class Messaging {
492
495
  *
493
496
  * @param {string} params.messageId - Message ID.
494
497
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
498
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
495
499
  * @throws {AppwriteException}
496
500
  * @returns {Promise<Models.LogList>}
497
501
  */
498
502
  listMessageLogs(params: {
499
503
  messageId: string;
500
504
  queries?: string[];
505
+ total?: boolean;
501
506
  }): Promise<Models.LogList>;
502
507
  /**
503
508
  * Get the message activity logs listed by its unique ID.
504
509
  *
505
510
  * @param {string} messageId - Message ID.
506
511
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
512
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
507
513
  * @throws {AppwriteException}
508
514
  * @returns {Promise<Models.LogList>}
509
515
  * @deprecated Use the object parameter style method for a better developer experience.
510
516
  */
511
- listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList>;
517
+ listMessageLogs(messageId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
512
518
  /**
513
519
  * Get a list of the targets associated with a message.
514
520
  *
515
521
  * @param {string} params.messageId - Message ID.
516
522
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
523
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
517
524
  * @throws {AppwriteException}
518
525
  * @returns {Promise<Models.TargetList>}
519
526
  */
520
527
  listTargets(params: {
521
528
  messageId: string;
522
529
  queries?: string[];
530
+ total?: boolean;
523
531
  }): Promise<Models.TargetList>;
524
532
  /**
525
533
  * Get a list of the targets associated with a message.
526
534
  *
527
535
  * @param {string} messageId - Message ID.
528
536
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
537
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
529
538
  * @throws {AppwriteException}
530
539
  * @returns {Promise<Models.TargetList>}
531
540
  * @deprecated Use the object parameter style method for a better developer experience.
532
541
  */
533
- listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList>;
542
+ listTargets(messageId: string, queries?: string[], total?: boolean): Promise<Models.TargetList>;
534
543
  /**
535
544
  * Get a list of all providers from the current Appwrite project.
536
545
  *
537
546
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
538
547
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
548
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
539
549
  * @throws {AppwriteException}
540
550
  * @returns {Promise<Models.ProviderList>}
541
551
  */
542
552
  listProviders(params?: {
543
553
  queries?: string[];
544
554
  search?: string;
555
+ total?: boolean;
545
556
  }): Promise<Models.ProviderList>;
546
557
  /**
547
558
  * Get a list of all providers from the current Appwrite project.
548
559
  *
549
560
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
550
561
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
562
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
551
563
  * @throws {AppwriteException}
552
564
  * @returns {Promise<Models.ProviderList>}
553
565
  * @deprecated Use the object parameter style method for a better developer experience.
554
566
  */
555
- listProviders(queries?: string[], search?: string): Promise<Models.ProviderList>;
567
+ listProviders(queries?: string[], search?: string, total?: boolean): Promise<Models.ProviderList>;
556
568
  /**
557
569
  * Create a new Apple Push Notification service provider.
558
570
  *
@@ -989,6 +1001,86 @@ declare class Messaging {
989
1001
  * @deprecated Use the object parameter style method for a better developer experience.
990
1002
  */
991
1003
  updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider>;
1004
+ /**
1005
+ * Create a new Resend provider.
1006
+ *
1007
+ * @param {string} params.providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1008
+ * @param {string} params.name - Provider name.
1009
+ * @param {string} params.apiKey - Resend API key.
1010
+ * @param {string} params.fromName - Sender Name.
1011
+ * @param {string} params.fromEmail - Sender email address.
1012
+ * @param {string} params.replyToName - Name set in the reply to field for the mail. Default value is sender name.
1013
+ * @param {string} params.replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1014
+ * @param {boolean} params.enabled - Set as enabled.
1015
+ * @throws {AppwriteException}
1016
+ * @returns {Promise<Models.Provider>}
1017
+ */
1018
+ createResendProvider(params: {
1019
+ providerId: string;
1020
+ name: string;
1021
+ apiKey?: string;
1022
+ fromName?: string;
1023
+ fromEmail?: string;
1024
+ replyToName?: string;
1025
+ replyToEmail?: string;
1026
+ enabled?: boolean;
1027
+ }): Promise<Models.Provider>;
1028
+ /**
1029
+ * Create a new Resend provider.
1030
+ *
1031
+ * @param {string} providerId - Provider ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1032
+ * @param {string} name - Provider name.
1033
+ * @param {string} apiKey - Resend API key.
1034
+ * @param {string} fromName - Sender Name.
1035
+ * @param {string} fromEmail - Sender email address.
1036
+ * @param {string} replyToName - Name set in the reply to field for the mail. Default value is sender name.
1037
+ * @param {string} replyToEmail - Email set in the reply to field for the mail. Default value is sender email.
1038
+ * @param {boolean} enabled - Set as enabled.
1039
+ * @throws {AppwriteException}
1040
+ * @returns {Promise<Models.Provider>}
1041
+ * @deprecated Use the object parameter style method for a better developer experience.
1042
+ */
1043
+ createResendProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
1044
+ /**
1045
+ * Update a Resend provider by its unique ID.
1046
+ *
1047
+ * @param {string} params.providerId - Provider ID.
1048
+ * @param {string} params.name - Provider name.
1049
+ * @param {boolean} params.enabled - Set as enabled.
1050
+ * @param {string} params.apiKey - Resend API key.
1051
+ * @param {string} params.fromName - Sender Name.
1052
+ * @param {string} params.fromEmail - Sender email address.
1053
+ * @param {string} params.replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1054
+ * @param {string} params.replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1055
+ * @throws {AppwriteException}
1056
+ * @returns {Promise<Models.Provider>}
1057
+ */
1058
+ updateResendProvider(params: {
1059
+ providerId: string;
1060
+ name?: string;
1061
+ enabled?: boolean;
1062
+ apiKey?: string;
1063
+ fromName?: string;
1064
+ fromEmail?: string;
1065
+ replyToName?: string;
1066
+ replyToEmail?: string;
1067
+ }): Promise<Models.Provider>;
1068
+ /**
1069
+ * Update a Resend provider by its unique ID.
1070
+ *
1071
+ * @param {string} providerId - Provider ID.
1072
+ * @param {string} name - Provider name.
1073
+ * @param {boolean} enabled - Set as enabled.
1074
+ * @param {string} apiKey - Resend API key.
1075
+ * @param {string} fromName - Sender Name.
1076
+ * @param {string} fromEmail - Sender email address.
1077
+ * @param {string} replyToName - Name set in the Reply To field for the mail. Default value is Sender Name.
1078
+ * @param {string} replyToEmail - Email set in the Reply To field for the mail. Default value is Sender Email.
1079
+ * @throws {AppwriteException}
1080
+ * @returns {Promise<Models.Provider>}
1081
+ * @deprecated Use the object parameter style method for a better developer experience.
1082
+ */
1083
+ updateResendProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
992
1084
  /**
993
1085
  * Create a new Sendgrid provider.
994
1086
  *
@@ -1620,67 +1712,76 @@ declare class Messaging {
1620
1712
  *
1621
1713
  * @param {string} params.providerId - Provider ID.
1622
1714
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1715
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1623
1716
  * @throws {AppwriteException}
1624
1717
  * @returns {Promise<Models.LogList>}
1625
1718
  */
1626
1719
  listProviderLogs(params: {
1627
1720
  providerId: string;
1628
1721
  queries?: string[];
1722
+ total?: boolean;
1629
1723
  }): Promise<Models.LogList>;
1630
1724
  /**
1631
1725
  * Get the provider activity logs listed by its unique ID.
1632
1726
  *
1633
1727
  * @param {string} providerId - Provider ID.
1634
1728
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1729
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1635
1730
  * @throws {AppwriteException}
1636
1731
  * @returns {Promise<Models.LogList>}
1637
1732
  * @deprecated Use the object parameter style method for a better developer experience.
1638
1733
  */
1639
- listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList>;
1734
+ listProviderLogs(providerId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
1640
1735
  /**
1641
1736
  * Get the subscriber activity logs listed by its unique ID.
1642
1737
  *
1643
1738
  * @param {string} params.subscriberId - Subscriber ID.
1644
1739
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1740
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1645
1741
  * @throws {AppwriteException}
1646
1742
  * @returns {Promise<Models.LogList>}
1647
1743
  */
1648
1744
  listSubscriberLogs(params: {
1649
1745
  subscriberId: string;
1650
1746
  queries?: string[];
1747
+ total?: boolean;
1651
1748
  }): Promise<Models.LogList>;
1652
1749
  /**
1653
1750
  * Get the subscriber activity logs listed by its unique ID.
1654
1751
  *
1655
1752
  * @param {string} subscriberId - Subscriber ID.
1656
1753
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1754
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1657
1755
  * @throws {AppwriteException}
1658
1756
  * @returns {Promise<Models.LogList>}
1659
1757
  * @deprecated Use the object parameter style method for a better developer experience.
1660
1758
  */
1661
- listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList>;
1759
+ listSubscriberLogs(subscriberId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
1662
1760
  /**
1663
1761
  * Get a list of all topics from the current Appwrite project.
1664
1762
  *
1665
1763
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
1666
1764
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
1765
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1667
1766
  * @throws {AppwriteException}
1668
1767
  * @returns {Promise<Models.TopicList>}
1669
1768
  */
1670
1769
  listTopics(params?: {
1671
1770
  queries?: string[];
1672
1771
  search?: string;
1772
+ total?: boolean;
1673
1773
  }): Promise<Models.TopicList>;
1674
1774
  /**
1675
1775
  * Get a list of all topics from the current Appwrite project.
1676
1776
  *
1677
1777
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
1678
1778
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
1779
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1679
1780
  * @throws {AppwriteException}
1680
1781
  * @returns {Promise<Models.TopicList>}
1681
1782
  * @deprecated Use the object parameter style method for a better developer experience.
1682
1783
  */
1683
- listTopics(queries?: string[], search?: string): Promise<Models.TopicList>;
1784
+ listTopics(queries?: string[], search?: string, total?: boolean): Promise<Models.TopicList>;
1684
1785
  /**
1685
1786
  * Create a new topic.
1686
1787
  *
@@ -1778,29 +1879,33 @@ declare class Messaging {
1778
1879
  *
1779
1880
  * @param {string} params.topicId - Topic ID.
1780
1881
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1882
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1781
1883
  * @throws {AppwriteException}
1782
1884
  * @returns {Promise<Models.LogList>}
1783
1885
  */
1784
1886
  listTopicLogs(params: {
1785
1887
  topicId: string;
1786
1888
  queries?: string[];
1889
+ total?: boolean;
1787
1890
  }): Promise<Models.LogList>;
1788
1891
  /**
1789
1892
  * Get the topic activity logs listed by its unique ID.
1790
1893
  *
1791
1894
  * @param {string} topicId - Topic ID.
1792
1895
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
1896
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1793
1897
  * @throws {AppwriteException}
1794
1898
  * @returns {Promise<Models.LogList>}
1795
1899
  * @deprecated Use the object parameter style method for a better developer experience.
1796
1900
  */
1797
- listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList>;
1901
+ listTopicLogs(topicId: string, queries?: string[], total?: boolean): Promise<Models.LogList>;
1798
1902
  /**
1799
1903
  * Get a list of all subscribers from the current Appwrite project.
1800
1904
  *
1801
1905
  * @param {string} params.topicId - Topic ID. The topic ID subscribed to.
1802
1906
  * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
1803
1907
  * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
1908
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1804
1909
  * @throws {AppwriteException}
1805
1910
  * @returns {Promise<Models.SubscriberList>}
1806
1911
  */
@@ -1808,6 +1913,7 @@ declare class Messaging {
1808
1913
  topicId: string;
1809
1914
  queries?: string[];
1810
1915
  search?: string;
1916
+ total?: boolean;
1811
1917
  }): Promise<Models.SubscriberList>;
1812
1918
  /**
1813
1919
  * Get a list of all subscribers from the current Appwrite project.
@@ -1815,11 +1921,12 @@ declare class Messaging {
1815
1921
  * @param {string} topicId - Topic ID. The topic ID subscribed to.
1816
1922
  * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
1817
1923
  * @param {string} search - Search term to filter your list results. Max length: 256 chars.
1924
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1818
1925
  * @throws {AppwriteException}
1819
1926
  * @returns {Promise<Models.SubscriberList>}
1820
1927
  * @deprecated Use the object parameter style method for a better developer experience.
1821
1928
  */
1822
- listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList>;
1929
+ listSubscribers(topicId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.SubscriberList>;
1823
1930
  /**
1824
1931
  * Create a new subscriber.
1825
1932
  *