node-appwrite 17.0.0 → 17.2.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 (100) hide show
  1. package/README.md +1 -1
  2. package/dist/client.js +6 -5
  3. package/dist/client.js.map +1 -1
  4. package/dist/client.mjs +6 -5
  5. package/dist/client.mjs.map +1 -1
  6. package/dist/enums/build-runtime.d.mts +3 -1
  7. package/dist/enums/build-runtime.d.ts +3 -1
  8. package/dist/enums/build-runtime.js +2 -0
  9. package/dist/enums/build-runtime.js.map +1 -1
  10. package/dist/enums/build-runtime.mjs +2 -0
  11. package/dist/enums/build-runtime.mjs.map +1 -1
  12. package/dist/enums/image-format.d.mts +2 -1
  13. package/dist/enums/image-format.d.ts +2 -1
  14. package/dist/enums/image-format.js +1 -0
  15. package/dist/enums/image-format.js.map +1 -1
  16. package/dist/enums/image-format.mjs +1 -0
  17. package/dist/enums/image-format.mjs.map +1 -1
  18. package/dist/enums/runtime.d.mts +3 -1
  19. package/dist/enums/runtime.d.ts +3 -1
  20. package/dist/enums/runtime.js +2 -0
  21. package/dist/enums/runtime.js.map +1 -1
  22. package/dist/enums/runtime.mjs +2 -0
  23. package/dist/enums/runtime.mjs.map +1 -1
  24. package/dist/models.d.mts +122 -97
  25. package/dist/models.d.ts +122 -97
  26. package/dist/services/account.d.mts +31 -31
  27. package/dist/services/account.d.ts +31 -31
  28. package/dist/services/account.js +81 -81
  29. package/dist/services/account.js.map +1 -1
  30. package/dist/services/account.mjs +81 -81
  31. package/dist/services/account.mjs.map +1 -1
  32. package/dist/services/avatars.d.mts +20 -20
  33. package/dist/services/avatars.d.ts +20 -20
  34. package/dist/services/avatars.js +79 -79
  35. package/dist/services/avatars.js.map +1 -1
  36. package/dist/services/avatars.mjs +79 -79
  37. package/dist/services/avatars.mjs.map +1 -1
  38. package/dist/services/databases.d.mts +78 -30
  39. package/dist/services/databases.d.ts +78 -30
  40. package/dist/services/databases.js +395 -251
  41. package/dist/services/databases.js.map +1 -1
  42. package/dist/services/databases.mjs +395 -251
  43. package/dist/services/databases.mjs.map +1 -1
  44. package/dist/services/functions.d.mts +8 -8
  45. package/dist/services/functions.d.ts +8 -8
  46. package/dist/services/functions.js +38 -38
  47. package/dist/services/functions.js.map +1 -1
  48. package/dist/services/functions.mjs +38 -38
  49. package/dist/services/functions.mjs.map +1 -1
  50. package/dist/services/graphql.js.map +1 -1
  51. package/dist/services/graphql.mjs.map +1 -1
  52. package/dist/services/health.d.mts +1 -1
  53. package/dist/services/health.d.ts +1 -1
  54. package/dist/services/health.js +8 -8
  55. package/dist/services/health.js.map +1 -1
  56. package/dist/services/health.mjs +8 -8
  57. package/dist/services/health.mjs.map +1 -1
  58. package/dist/services/locale.d.mts +2 -2
  59. package/dist/services/locale.d.ts +2 -2
  60. package/dist/services/locale.js +7 -7
  61. package/dist/services/locale.js.map +1 -1
  62. package/dist/services/locale.mjs +7 -7
  63. package/dist/services/locale.mjs.map +1 -1
  64. package/dist/services/messaging.d.mts +8 -8
  65. package/dist/services/messaging.d.ts +8 -8
  66. package/dist/services/messaging.js +94 -94
  67. package/dist/services/messaging.js.map +1 -1
  68. package/dist/services/messaging.mjs +94 -94
  69. package/dist/services/messaging.mjs.map +1 -1
  70. package/dist/services/sites.d.mts +4 -4
  71. package/dist/services/sites.d.ts +4 -4
  72. package/dist/services/sites.js +24 -24
  73. package/dist/services/sites.js.map +1 -1
  74. package/dist/services/sites.mjs +24 -24
  75. package/dist/services/sites.mjs.map +1 -1
  76. package/dist/services/storage.d.mts +7 -7
  77. package/dist/services/storage.d.ts +7 -7
  78. package/dist/services/storage.js +16 -16
  79. package/dist/services/storage.js.map +1 -1
  80. package/dist/services/storage.mjs +16 -16
  81. package/dist/services/storage.mjs.map +1 -1
  82. package/dist/services/teams.d.mts +17 -17
  83. package/dist/services/teams.d.ts +17 -17
  84. package/dist/services/teams.js +40 -40
  85. package/dist/services/teams.js.map +1 -1
  86. package/dist/services/teams.mjs +40 -40
  87. package/dist/services/teams.mjs.map +1 -1
  88. package/dist/services/tokens.d.mts +1 -1
  89. package/dist/services/tokens.d.ts +1 -1
  90. package/dist/services/tokens.js +1 -1
  91. package/dist/services/tokens.js.map +1 -1
  92. package/dist/services/tokens.mjs +1 -1
  93. package/dist/services/tokens.mjs.map +1 -1
  94. package/dist/services/users.d.mts +26 -26
  95. package/dist/services/users.d.ts +26 -26
  96. package/dist/services/users.js +26 -26
  97. package/dist/services/users.js.map +1 -1
  98. package/dist/services/users.mjs +26 -26
  99. package/dist/services/users.mjs.map +1 -1
  100. package/package.json +1 -1
@@ -109,24 +109,24 @@ var Messaging = class {
109
109
  );
110
110
  }
111
111
  /**
112
- * 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.
113
-
114
- *
115
- * @param {string} messageId
116
- * @param {string[]} topics
117
- * @param {string[]} users
118
- * @param {string[]} targets
119
- * @param {string} subject
120
- * @param {string} content
121
- * @param {boolean} draft
122
- * @param {boolean} html
123
- * @param {string[]} cc
124
- * @param {string[]} bcc
125
- * @param {string} scheduledAt
126
- * @param {string[]} attachments
127
- * @throws {AppwriteException}
128
- * @returns {Promise<Models.Message>}
129
- */
112
+ * 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.
113
+ *
114
+ *
115
+ * @param {string} messageId
116
+ * @param {string[]} topics
117
+ * @param {string[]} users
118
+ * @param {string[]} targets
119
+ * @param {string} subject
120
+ * @param {string} content
121
+ * @param {boolean} draft
122
+ * @param {boolean} html
123
+ * @param {string[]} cc
124
+ * @param {string[]} bcc
125
+ * @param {string} scheduledAt
126
+ * @param {string[]} attachments
127
+ * @throws {AppwriteException}
128
+ * @returns {Promise<Models.Message>}
129
+ */
130
130
  updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments) {
131
131
  if (typeof messageId === "undefined") {
132
132
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -277,31 +277,31 @@ var Messaging = class {
277
277
  );
278
278
  }
279
279
  /**
280
- * 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.
281
-
282
- *
283
- * @param {string} messageId
284
- * @param {string[]} topics
285
- * @param {string[]} users
286
- * @param {string[]} targets
287
- * @param {string} title
288
- * @param {string} body
289
- * @param {object} data
290
- * @param {string} action
291
- * @param {string} image
292
- * @param {string} icon
293
- * @param {string} sound
294
- * @param {string} color
295
- * @param {string} tag
296
- * @param {number} badge
297
- * @param {boolean} draft
298
- * @param {string} scheduledAt
299
- * @param {boolean} contentAvailable
300
- * @param {boolean} critical
301
- * @param {MessagePriority} priority
302
- * @throws {AppwriteException}
303
- * @returns {Promise<Models.Message>}
304
- */
280
+ * 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.
281
+ *
282
+ *
283
+ * @param {string} messageId
284
+ * @param {string[]} topics
285
+ * @param {string[]} users
286
+ * @param {string[]} targets
287
+ * @param {string} title
288
+ * @param {string} body
289
+ * @param {object} data
290
+ * @param {string} action
291
+ * @param {string} image
292
+ * @param {string} icon
293
+ * @param {string} sound
294
+ * @param {string} color
295
+ * @param {string} tag
296
+ * @param {number} badge
297
+ * @param {boolean} draft
298
+ * @param {string} scheduledAt
299
+ * @param {boolean} contentAvailable
300
+ * @param {boolean} critical
301
+ * @param {MessagePriority} priority
302
+ * @throws {AppwriteException}
303
+ * @returns {Promise<Models.Message>}
304
+ */
305
305
  updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt, contentAvailable, critical, priority) {
306
306
  if (typeof messageId === "undefined") {
307
307
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -428,19 +428,19 @@ var Messaging = class {
428
428
  );
429
429
  }
430
430
  /**
431
- * 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.
432
-
433
- *
434
- * @param {string} messageId
435
- * @param {string[]} topics
436
- * @param {string[]} users
437
- * @param {string[]} targets
438
- * @param {string} content
439
- * @param {boolean} draft
440
- * @param {string} scheduledAt
441
- * @throws {AppwriteException}
442
- * @returns {Promise<Models.Message>}
443
- */
431
+ * 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.
432
+ *
433
+ *
434
+ * @param {string} messageId
435
+ * @param {string[]} topics
436
+ * @param {string[]} users
437
+ * @param {string[]} targets
438
+ * @param {string} content
439
+ * @param {boolean} draft
440
+ * @param {string} scheduledAt
441
+ * @throws {AppwriteException}
442
+ * @returns {Promise<Models.Message>}
443
+ */
444
444
  updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
445
445
  if (typeof messageId === "undefined") {
446
446
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -477,13 +477,13 @@ var Messaging = class {
477
477
  );
478
478
  }
479
479
  /**
480
- * Get a message by its unique ID.
481
-
482
- *
483
- * @param {string} messageId
484
- * @throws {AppwriteException}
485
- * @returns {Promise<Models.Message>}
486
- */
480
+ * Get a message by its unique ID.
481
+ *
482
+ *
483
+ * @param {string} messageId
484
+ * @throws {AppwriteException}
485
+ * @returns {Promise<Models.Message>}
486
+ */
487
487
  getMessage(messageId) {
488
488
  if (typeof messageId === "undefined") {
489
489
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -1657,13 +1657,13 @@ var Messaging = class {
1657
1657
  );
1658
1658
  }
1659
1659
  /**
1660
- * Get a provider by its unique ID.
1661
-
1662
- *
1663
- * @param {string} providerId
1664
- * @throws {AppwriteException}
1665
- * @returns {Promise<Models.Provider>}
1666
- */
1660
+ * Get a provider by its unique ID.
1661
+ *
1662
+ *
1663
+ * @param {string} providerId
1664
+ * @throws {AppwriteException}
1665
+ * @returns {Promise<Models.Provider>}
1666
+ */
1667
1667
  getProvider(providerId) {
1668
1668
  if (typeof providerId === "undefined") {
1669
1669
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -1820,13 +1820,13 @@ var Messaging = class {
1820
1820
  );
1821
1821
  }
1822
1822
  /**
1823
- * Get a topic by its unique ID.
1824
-
1825
- *
1826
- * @param {string} topicId
1827
- * @throws {AppwriteException}
1828
- * @returns {Promise<Models.Topic>}
1829
- */
1823
+ * Get a topic by its unique ID.
1824
+ *
1825
+ *
1826
+ * @param {string} topicId
1827
+ * @throws {AppwriteException}
1828
+ * @returns {Promise<Models.Topic>}
1829
+ */
1830
1830
  getTopic(topicId) {
1831
1831
  if (typeof topicId === "undefined") {
1832
1832
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -1843,15 +1843,15 @@ var Messaging = class {
1843
1843
  );
1844
1844
  }
1845
1845
  /**
1846
- * Update a topic by its unique ID.
1847
-
1848
- *
1849
- * @param {string} topicId
1850
- * @param {string} name
1851
- * @param {string[]} subscribe
1852
- * @throws {AppwriteException}
1853
- * @returns {Promise<Models.Topic>}
1854
- */
1846
+ * Update a topic by its unique ID.
1847
+ *
1848
+ *
1849
+ * @param {string} topicId
1850
+ * @param {string} name
1851
+ * @param {string[]} subscribe
1852
+ * @throws {AppwriteException}
1853
+ * @returns {Promise<Models.Topic>}
1854
+ */
1855
1855
  updateTopic(topicId, name, subscribe) {
1856
1856
  if (typeof topicId === "undefined") {
1857
1857
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -1994,14 +1994,14 @@ var Messaging = class {
1994
1994
  );
1995
1995
  }
1996
1996
  /**
1997
- * Get a subscriber by its unique ID.
1998
-
1999
- *
2000
- * @param {string} topicId
2001
- * @param {string} subscriberId
2002
- * @throws {AppwriteException}
2003
- * @returns {Promise<Models.Subscriber>}
2004
- */
1997
+ * Get a subscriber by its unique ID.
1998
+ *
1999
+ *
2000
+ * @param {string} topicId
2001
+ * @param {string} subscriberId
2002
+ * @throws {AppwriteException}
2003
+ * @returns {Promise<Models.Subscriber>}
2004
+ */
2005
2005
  getSubscriber(topicId, subscriberId) {
2006
2006
  if (typeof topicId === "undefined") {
2007
2007
  throw new AppwriteException('Missing required parameter: "topicId"');