@appwrite.io/console 1.5.2 → 1.7.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 (607) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/README.md +3 -3
  3. package/dist/cjs/sdk.js +11874 -11100
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +11872 -11101
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +11874 -11100
  8. package/docs/examples/account/create-anonymous-session.md +1 -1
  9. package/docs/examples/account/create-billing-address.md +1 -1
  10. package/docs/examples/account/create-email-password-session.md +1 -1
  11. package/docs/examples/account/create-email-token.md +1 -1
  12. package/docs/examples/account/create-j-w-t.md +1 -1
  13. package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
  14. package/docs/examples/account/create-mfa-authenticator.md +1 -1
  15. package/docs/examples/account/create-mfa-challenge.md +1 -1
  16. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  17. package/docs/examples/account/create-o-auth2session.md +1 -1
  18. package/docs/examples/account/create-o-auth2token.md +1 -1
  19. package/docs/examples/account/create-payment-method.md +1 -1
  20. package/docs/examples/account/create-phone-token.md +1 -1
  21. package/docs/examples/account/create-phone-verification.md +1 -1
  22. package/docs/examples/account/create-push-target.md +1 -1
  23. package/docs/examples/account/create-recovery.md +1 -1
  24. package/docs/examples/account/create-session.md +1 -1
  25. package/docs/examples/account/create-verification.md +1 -1
  26. package/docs/examples/account/create.md +1 -1
  27. package/docs/examples/account/delete-billing-address.md +1 -1
  28. package/docs/examples/account/delete-identity.md +1 -1
  29. package/docs/examples/account/delete-mfa-authenticator.md +1 -1
  30. package/docs/examples/account/delete-payment-method.md +1 -1
  31. package/docs/examples/account/delete-push-target.md +1 -1
  32. package/docs/examples/account/delete-session.md +1 -1
  33. package/docs/examples/account/delete-sessions.md +1 -1
  34. package/docs/examples/account/delete.md +1 -1
  35. package/docs/examples/account/get-billing-address.md +1 -1
  36. package/docs/examples/account/get-coupon.md +1 -1
  37. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  38. package/docs/examples/account/get-payment-method.md +1 -1
  39. package/docs/examples/account/get-prefs.md +1 -1
  40. package/docs/examples/account/get-session.md +1 -1
  41. package/docs/examples/account/get.md +1 -1
  42. package/docs/examples/account/list-billing-addresses.md +1 -1
  43. package/docs/examples/account/list-identities.md +1 -1
  44. package/docs/examples/account/list-invoices.md +1 -1
  45. package/docs/examples/account/list-logs.md +1 -1
  46. package/docs/examples/account/list-mfa-factors.md +1 -1
  47. package/docs/examples/account/list-payment-methods.md +1 -1
  48. package/docs/examples/account/list-sessions.md +1 -1
  49. package/docs/examples/account/update-billing-address.md +1 -1
  50. package/docs/examples/account/update-email.md +1 -1
  51. package/docs/examples/account/update-m-f-a.md +1 -1
  52. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  53. package/docs/examples/account/update-mfa-authenticator.md +1 -1
  54. package/docs/examples/account/update-mfa-challenge.md +1 -1
  55. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  56. package/docs/examples/account/update-name.md +1 -1
  57. package/docs/examples/account/update-password.md +1 -1
  58. package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
  59. package/docs/examples/account/update-payment-method-provider.md +1 -1
  60. package/docs/examples/account/update-payment-method.md +1 -1
  61. package/docs/examples/account/update-phone-session.md +1 -1
  62. package/docs/examples/account/update-phone-verification.md +1 -1
  63. package/docs/examples/account/update-phone.md +1 -1
  64. package/docs/examples/account/update-prefs.md +1 -1
  65. package/docs/examples/account/update-push-target.md +1 -1
  66. package/docs/examples/account/update-recovery.md +1 -1
  67. package/docs/examples/account/update-session.md +1 -1
  68. package/docs/examples/account/update-status.md +1 -1
  69. package/docs/examples/account/update-verification.md +1 -1
  70. package/docs/examples/assistant/chat.md +1 -1
  71. package/docs/examples/avatars/get-browser.md +2 -2
  72. package/docs/examples/avatars/get-credit-card.md +2 -2
  73. package/docs/examples/avatars/get-favicon.md +1 -1
  74. package/docs/examples/avatars/get-flag.md +2 -2
  75. package/docs/examples/avatars/get-image.md +1 -1
  76. package/docs/examples/avatars/get-initials.md +1 -1
  77. package/docs/examples/avatars/get-q-r.md +1 -1
  78. package/docs/examples/backups/create-archive.md +1 -1
  79. package/docs/examples/backups/create-policy.md +1 -1
  80. package/docs/examples/backups/create-restoration.md +1 -1
  81. package/docs/examples/backups/delete-archive.md +1 -1
  82. package/docs/examples/backups/delete-policy.md +1 -1
  83. package/docs/examples/backups/get-archive.md +1 -1
  84. package/docs/examples/backups/get-policy.md +1 -1
  85. package/docs/examples/backups/get-restoration.md +1 -1
  86. package/docs/examples/backups/list-archives.md +1 -1
  87. package/docs/examples/backups/list-policies.md +1 -1
  88. package/docs/examples/backups/list-restorations.md +1 -1
  89. package/docs/examples/backups/update-policy.md +1 -1
  90. package/docs/examples/console/create-program-membership.md +1 -1
  91. package/docs/examples/console/create-source.md +1 -1
  92. package/docs/examples/console/get-campaign.md +1 -1
  93. package/docs/examples/console/get-coupon.md +1 -1
  94. package/docs/examples/console/get-resource.md +14 -0
  95. package/docs/examples/console/plans.md +1 -1
  96. package/docs/examples/console/regions.md +1 -1
  97. package/docs/examples/console/variables.md +1 -1
  98. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  99. package/docs/examples/databases/create-collection.md +1 -1
  100. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  101. package/docs/examples/databases/create-document.md +4 -2
  102. package/docs/examples/databases/create-documents.md +15 -0
  103. package/docs/examples/databases/create-email-attribute.md +1 -1
  104. package/docs/examples/databases/create-enum-attribute.md +1 -1
  105. package/docs/examples/databases/create-float-attribute.md +1 -1
  106. package/docs/examples/databases/create-index.md +3 -2
  107. package/docs/examples/databases/create-integer-attribute.md +1 -1
  108. package/docs/examples/databases/create-ip-attribute.md +1 -1
  109. package/docs/examples/databases/create-relationship-attribute.md +1 -1
  110. package/docs/examples/databases/create-string-attribute.md +1 -1
  111. package/docs/examples/databases/create-url-attribute.md +1 -1
  112. package/docs/examples/databases/create.md +1 -1
  113. package/docs/examples/databases/delete-attribute.md +1 -1
  114. package/docs/examples/databases/delete-collection.md +1 -1
  115. package/docs/examples/databases/delete-document.md +1 -1
  116. package/docs/examples/databases/delete-documents.md +15 -0
  117. package/docs/examples/databases/delete-index.md +1 -1
  118. package/docs/examples/databases/delete.md +1 -1
  119. package/docs/examples/databases/get-attribute.md +1 -1
  120. package/docs/examples/databases/get-collection-usage.md +1 -1
  121. package/docs/examples/databases/get-collection.md +1 -1
  122. package/docs/examples/databases/get-database-usage.md +1 -1
  123. package/docs/examples/databases/get-document.md +1 -1
  124. package/docs/examples/databases/get-index.md +1 -1
  125. package/docs/examples/databases/get-usage.md +1 -1
  126. package/docs/examples/databases/get.md +1 -1
  127. package/docs/examples/databases/list-attributes.md +1 -1
  128. package/docs/examples/databases/list-collection-logs.md +1 -1
  129. package/docs/examples/databases/list-collections.md +1 -1
  130. package/docs/examples/databases/list-document-logs.md +1 -1
  131. package/docs/examples/databases/list-documents.md +1 -1
  132. package/docs/examples/databases/list-indexes.md +1 -1
  133. package/docs/examples/databases/list-logs.md +1 -1
  134. package/docs/examples/databases/list.md +1 -1
  135. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  136. package/docs/examples/databases/update-collection.md +1 -1
  137. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  138. package/docs/examples/databases/update-document.md +1 -1
  139. package/docs/examples/databases/update-documents.md +16 -0
  140. package/docs/examples/databases/update-email-attribute.md +1 -1
  141. package/docs/examples/databases/update-enum-attribute.md +1 -1
  142. package/docs/examples/databases/update-float-attribute.md +1 -1
  143. package/docs/examples/databases/update-integer-attribute.md +1 -1
  144. package/docs/examples/databases/update-ip-attribute.md +1 -1
  145. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  146. package/docs/examples/databases/update-string-attribute.md +1 -1
  147. package/docs/examples/databases/update-url-attribute.md +1 -1
  148. package/docs/examples/databases/update.md +1 -1
  149. package/docs/examples/databases/upsert-documents.md +15 -0
  150. package/docs/examples/domains/create-preset-google-workspace.md +13 -0
  151. package/docs/examples/domains/create-preset-i-cloud.md +13 -0
  152. package/docs/examples/domains/create-preset-mailgun.md +13 -0
  153. package/docs/examples/domains/create-preset-outlook.md +13 -0
  154. package/docs/examples/domains/create-preset-proton-mail.md +13 -0
  155. package/docs/examples/domains/create-preset-zoho.md +13 -0
  156. package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
  157. package/docs/examples/domains/create-record-a.md +17 -0
  158. package/docs/examples/domains/create-record-alias.md +17 -0
  159. package/docs/examples/domains/create-record-c-a-a.md +17 -0
  160. package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
  161. package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
  162. package/docs/examples/domains/create-record-m-x.md +18 -0
  163. package/docs/examples/domains/create-record-n-s.md +17 -0
  164. package/docs/examples/domains/create-record-s-r-v.md +20 -0
  165. package/docs/examples/domains/create-record-t-x-t.md +17 -0
  166. package/docs/examples/domains/create.md +14 -0
  167. package/docs/examples/domains/delete-record.md +14 -0
  168. package/docs/examples/domains/delete.md +13 -0
  169. package/docs/examples/domains/get-preset-google-workspace.md +13 -0
  170. package/docs/examples/domains/get-preset-i-cloud.md +13 -0
  171. package/docs/examples/domains/get-preset-mailgun.md +13 -0
  172. package/docs/examples/domains/get-preset-outlook.md +13 -0
  173. package/docs/examples/domains/get-preset-proton-mail.md +13 -0
  174. package/docs/examples/domains/get-preset-zoho.md +13 -0
  175. package/docs/examples/domains/get-record.md +14 -0
  176. package/docs/examples/domains/get-zone.md +13 -0
  177. package/docs/examples/domains/get.md +13 -0
  178. package/docs/examples/domains/list-records.md +14 -0
  179. package/docs/examples/domains/list.md +14 -0
  180. package/docs/examples/domains/update-nameservers.md +13 -0
  181. package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
  182. package/docs/examples/domains/update-record-a.md +18 -0
  183. package/docs/examples/domains/update-record-alias.md +18 -0
  184. package/docs/examples/domains/update-record-c-a-a.md +18 -0
  185. package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
  186. package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
  187. package/docs/examples/domains/update-record-m-x.md +19 -0
  188. package/docs/examples/domains/update-record-n-s.md +18 -0
  189. package/docs/examples/domains/update-record-s-r-v.md +21 -0
  190. package/docs/examples/domains/update-record-t-x-t.md +18 -0
  191. package/docs/examples/domains/update-team.md +14 -0
  192. package/docs/examples/domains/update-zone.md +14 -0
  193. package/docs/examples/functions/create-deployment.md +1 -1
  194. package/docs/examples/functions/create-duplicate-deployment.md +15 -0
  195. package/docs/examples/functions/create-execution.md +1 -1
  196. package/docs/examples/functions/create-template-deployment.md +18 -0
  197. package/docs/examples/functions/create-variable.md +3 -2
  198. package/docs/examples/functions/create-vcs-deployment.md +16 -0
  199. package/docs/examples/functions/create.md +3 -3
  200. package/docs/examples/functions/delete-deployment.md +1 -1
  201. package/docs/examples/functions/delete-execution.md +1 -1
  202. package/docs/examples/functions/delete-variable.md +1 -1
  203. package/docs/examples/functions/delete.md +1 -1
  204. package/docs/examples/functions/get-deployment-download.md +4 -3
  205. package/docs/examples/functions/get-deployment.md +1 -1
  206. package/docs/examples/functions/get-execution.md +1 -1
  207. package/docs/examples/functions/get-template.md +1 -1
  208. package/docs/examples/functions/get-usage.md +2 -1
  209. package/docs/examples/functions/get-variable.md +1 -1
  210. package/docs/examples/functions/get.md +1 -1
  211. package/docs/examples/functions/list-deployments.md +1 -1
  212. package/docs/examples/functions/list-executions.md +2 -3
  213. package/docs/examples/functions/list-runtimes.md +1 -1
  214. package/docs/examples/functions/list-specifications.md +1 -1
  215. package/docs/examples/functions/list-templates.md +1 -1
  216. package/docs/examples/functions/list-usage.md +13 -0
  217. package/docs/examples/functions/list-variables.md +1 -1
  218. package/docs/examples/functions/list.md +1 -1
  219. package/docs/examples/functions/update-deployment-status.md +14 -0
  220. package/docs/examples/functions/update-function-deployment.md +14 -0
  221. package/docs/examples/functions/update-variable.md +3 -2
  222. package/docs/examples/functions/update.md +1 -1
  223. package/docs/examples/graphql/mutation.md +1 -1
  224. package/docs/examples/graphql/query.md +1 -1
  225. package/docs/examples/health/get-antivirus.md +1 -1
  226. package/docs/examples/health/get-cache.md +1 -1
  227. package/docs/examples/health/get-certificate.md +1 -1
  228. package/docs/examples/health/get-d-b.md +1 -1
  229. package/docs/examples/health/get-failed-jobs.md +1 -1
  230. package/docs/examples/health/get-pub-sub.md +1 -1
  231. package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
  232. package/docs/examples/health/get-queue-builds.md +1 -1
  233. package/docs/examples/health/get-queue-certificates.md +1 -1
  234. package/docs/examples/health/get-queue-databases.md +1 -1
  235. package/docs/examples/health/get-queue-deletes.md +1 -1
  236. package/docs/examples/health/get-queue-functions.md +1 -1
  237. package/docs/examples/health/get-queue-logs.md +1 -1
  238. package/docs/examples/health/get-queue-mails.md +1 -1
  239. package/docs/examples/health/get-queue-messaging.md +1 -1
  240. package/docs/examples/health/get-queue-migrations.md +1 -1
  241. package/docs/examples/health/get-queue-priority-builds.md +1 -1
  242. package/docs/examples/health/get-queue-region-manager.md +13 -0
  243. package/docs/examples/health/get-queue-stats-resources.md +1 -1
  244. package/docs/examples/health/get-queue-usage.md +1 -1
  245. package/docs/examples/health/get-queue-webhooks.md +1 -1
  246. package/docs/examples/health/get-storage-local.md +1 -1
  247. package/docs/examples/health/get-storage.md +1 -1
  248. package/docs/examples/health/get-time.md +1 -1
  249. package/docs/examples/health/get.md +1 -1
  250. package/docs/examples/locale/get.md +1 -1
  251. package/docs/examples/locale/list-codes.md +1 -1
  252. package/docs/examples/locale/list-continents.md +1 -1
  253. package/docs/examples/locale/list-countries-e-u.md +1 -1
  254. package/docs/examples/locale/list-countries-phones.md +1 -1
  255. package/docs/examples/locale/list-countries.md +1 -1
  256. package/docs/examples/locale/list-currencies.md +1 -1
  257. package/docs/examples/locale/list-languages.md +1 -1
  258. package/docs/examples/messaging/create-apns-provider.md +1 -1
  259. package/docs/examples/messaging/create-email.md +1 -1
  260. package/docs/examples/messaging/create-fcm-provider.md +1 -1
  261. package/docs/examples/messaging/create-mailgun-provider.md +1 -1
  262. package/docs/examples/messaging/create-msg91provider.md +1 -1
  263. package/docs/examples/messaging/create-push.md +1 -1
  264. package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
  265. package/docs/examples/messaging/create-sms.md +1 -1
  266. package/docs/examples/messaging/create-smtp-provider.md +1 -1
  267. package/docs/examples/messaging/create-subscriber.md +1 -1
  268. package/docs/examples/messaging/create-telesign-provider.md +1 -1
  269. package/docs/examples/messaging/create-textmagic-provider.md +1 -1
  270. package/docs/examples/messaging/create-topic.md +1 -1
  271. package/docs/examples/messaging/create-twilio-provider.md +1 -1
  272. package/docs/examples/messaging/create-vonage-provider.md +1 -1
  273. package/docs/examples/messaging/delete-provider.md +1 -1
  274. package/docs/examples/messaging/delete-subscriber.md +1 -1
  275. package/docs/examples/messaging/delete-topic.md +1 -1
  276. package/docs/examples/messaging/delete.md +1 -1
  277. package/docs/examples/messaging/get-message.md +1 -1
  278. package/docs/examples/messaging/get-provider.md +1 -1
  279. package/docs/examples/messaging/get-subscriber.md +1 -1
  280. package/docs/examples/messaging/get-topic.md +1 -1
  281. package/docs/examples/messaging/list-message-logs.md +1 -1
  282. package/docs/examples/messaging/list-messages.md +1 -1
  283. package/docs/examples/messaging/list-provider-logs.md +1 -1
  284. package/docs/examples/messaging/list-providers.md +1 -1
  285. package/docs/examples/messaging/list-subscriber-logs.md +1 -1
  286. package/docs/examples/messaging/list-subscribers.md +1 -1
  287. package/docs/examples/messaging/list-targets.md +1 -1
  288. package/docs/examples/messaging/list-topic-logs.md +1 -1
  289. package/docs/examples/messaging/list-topics.md +1 -1
  290. package/docs/examples/messaging/update-apns-provider.md +1 -1
  291. package/docs/examples/messaging/update-email.md +1 -1
  292. package/docs/examples/messaging/update-fcm-provider.md +1 -1
  293. package/docs/examples/messaging/update-mailgun-provider.md +1 -1
  294. package/docs/examples/messaging/update-msg91provider.md +1 -1
  295. package/docs/examples/messaging/update-push.md +1 -1
  296. package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
  297. package/docs/examples/messaging/update-sms.md +1 -1
  298. package/docs/examples/messaging/update-smtp-provider.md +1 -1
  299. package/docs/examples/messaging/update-telesign-provider.md +1 -1
  300. package/docs/examples/messaging/update-textmagic-provider.md +1 -1
  301. package/docs/examples/messaging/update-topic.md +1 -1
  302. package/docs/examples/messaging/update-twilio-provider.md +1 -1
  303. package/docs/examples/messaging/update-vonage-provider.md +1 -1
  304. package/docs/examples/migrations/create-appwrite-migration.md +1 -1
  305. package/docs/examples/migrations/create-csv-migration.md +15 -0
  306. package/docs/examples/migrations/create-firebase-migration.md +1 -1
  307. package/docs/examples/migrations/create-n-host-migration.md +1 -1
  308. package/docs/examples/migrations/create-supabase-migration.md +1 -1
  309. package/docs/examples/migrations/delete.md +1 -1
  310. package/docs/examples/migrations/get-appwrite-report.md +1 -1
  311. package/docs/examples/migrations/get-firebase-report.md +1 -1
  312. package/docs/examples/migrations/get-n-host-report.md +1 -1
  313. package/docs/examples/migrations/get-supabase-report.md +1 -1
  314. package/docs/examples/migrations/get.md +1 -1
  315. package/docs/examples/migrations/list.md +1 -1
  316. package/docs/examples/migrations/retry.md +1 -1
  317. package/docs/examples/organizations/add-credit.md +1 -1
  318. package/docs/examples/organizations/create-invoice-payment.md +1 -1
  319. package/docs/examples/organizations/create.md +1 -1
  320. package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
  321. package/docs/examples/organizations/delete-billing-address.md +1 -1
  322. package/docs/examples/organizations/delete-default-payment-method.md +1 -1
  323. package/docs/examples/organizations/delete.md +1 -1
  324. package/docs/examples/organizations/get-aggregation.md +1 -1
  325. package/docs/examples/organizations/get-billing-address.md +1 -1
  326. package/docs/examples/organizations/get-credit.md +1 -1
  327. package/docs/examples/organizations/get-invoice-download.md +1 -1
  328. package/docs/examples/organizations/get-invoice-view.md +1 -1
  329. package/docs/examples/organizations/get-invoice.md +1 -1
  330. package/docs/examples/organizations/get-payment-method.md +1 -1
  331. package/docs/examples/organizations/get-plan.md +1 -1
  332. package/docs/examples/organizations/get-scopes.md +1 -1
  333. package/docs/examples/organizations/list-aggregations.md +1 -1
  334. package/docs/examples/organizations/list-credits.md +1 -1
  335. package/docs/examples/organizations/list-invoices.md +1 -1
  336. package/docs/examples/organizations/list.md +1 -1
  337. package/docs/examples/organizations/set-backup-payment-method.md +1 -1
  338. package/docs/examples/organizations/set-billing-address.md +1 -1
  339. package/docs/examples/organizations/set-billing-email.md +1 -1
  340. package/docs/examples/organizations/set-billing-tax-id.md +1 -1
  341. package/docs/examples/organizations/set-default-payment-method.md +1 -1
  342. package/docs/examples/organizations/update-budget.md +1 -1
  343. package/docs/examples/organizations/update-plan.md +1 -1
  344. package/docs/examples/organizations/validate-invoice.md +14 -0
  345. package/docs/examples/project/create-variable.md +3 -2
  346. package/docs/examples/project/delete-variable.md +1 -1
  347. package/docs/examples/project/get-usage.md +1 -1
  348. package/docs/examples/project/get-variable.md +1 -1
  349. package/docs/examples/project/list-variables.md +1 -1
  350. package/docs/examples/project/update-variable.md +3 -2
  351. package/docs/examples/projects/create-dev-key.md +15 -0
  352. package/docs/examples/projects/create-j-w-t.md +1 -1
  353. package/docs/examples/projects/create-key.md +1 -1
  354. package/docs/examples/projects/create-platform.md +1 -1
  355. package/docs/examples/projects/create-smtp-test.md +1 -1
  356. package/docs/examples/projects/create-webhook.md +1 -1
  357. package/docs/examples/projects/create.md +2 -2
  358. package/docs/examples/projects/delete-dev-key.md +14 -0
  359. package/docs/examples/projects/delete-email-template.md +1 -1
  360. package/docs/examples/projects/delete-key.md +1 -1
  361. package/docs/examples/projects/delete-platform.md +1 -1
  362. package/docs/examples/projects/delete-sms-template.md +1 -1
  363. package/docs/examples/projects/delete-webhook.md +1 -1
  364. package/docs/examples/projects/delete.md +1 -1
  365. package/docs/examples/projects/get-dev-key.md +14 -0
  366. package/docs/examples/projects/get-email-template.md +1 -1
  367. package/docs/examples/projects/get-key.md +1 -1
  368. package/docs/examples/projects/get-platform.md +1 -1
  369. package/docs/examples/projects/get-sms-template.md +1 -1
  370. package/docs/examples/projects/get-webhook.md +1 -1
  371. package/docs/examples/projects/get.md +1 -1
  372. package/docs/examples/projects/list-dev-keys.md +14 -0
  373. package/docs/examples/projects/list-keys.md +1 -1
  374. package/docs/examples/projects/list-platforms.md +1 -1
  375. package/docs/examples/projects/list-webhooks.md +1 -1
  376. package/docs/examples/projects/list.md +1 -1
  377. package/docs/examples/projects/update-api-status-all.md +1 -1
  378. package/docs/examples/projects/update-api-status.md +1 -1
  379. package/docs/examples/projects/update-auth-duration.md +1 -1
  380. package/docs/examples/projects/update-auth-limit.md +1 -1
  381. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  382. package/docs/examples/projects/update-auth-password-history.md +1 -1
  383. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  384. package/docs/examples/projects/update-auth-status.md +1 -1
  385. package/docs/examples/projects/update-dev-key.md +16 -0
  386. package/docs/examples/projects/update-email-template.md +1 -1
  387. package/docs/examples/projects/update-key.md +1 -1
  388. package/docs/examples/projects/update-memberships-privacy.md +1 -1
  389. package/docs/examples/projects/update-mock-numbers.md +1 -1
  390. package/docs/examples/projects/update-o-auth2.md +1 -1
  391. package/docs/examples/projects/update-personal-data-check.md +1 -1
  392. package/docs/examples/projects/update-platform.md +1 -1
  393. package/docs/examples/projects/update-service-status-all.md +1 -1
  394. package/docs/examples/projects/update-service-status.md +1 -1
  395. package/docs/examples/projects/update-session-alerts.md +1 -1
  396. package/docs/examples/projects/update-sms-template.md +1 -1
  397. package/docs/examples/projects/update-smtp.md +1 -1
  398. package/docs/examples/projects/update-team.md +1 -1
  399. package/docs/examples/projects/update-webhook-signature.md +1 -1
  400. package/docs/examples/projects/update-webhook.md +1 -1
  401. package/docs/examples/projects/update.md +1 -1
  402. package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
  403. package/docs/examples/proxy/create-function-rule.md +15 -0
  404. package/docs/examples/proxy/create-redirect-rule.md +15 -0
  405. package/docs/examples/proxy/create-site-rule.md +15 -0
  406. package/docs/examples/proxy/delete-rule.md +1 -1
  407. package/docs/examples/proxy/get-rule.md +1 -1
  408. package/docs/examples/proxy/list-rules.md +1 -1
  409. package/docs/examples/proxy/update-rule-verification.md +1 -1
  410. package/docs/examples/sites/create-deployment.md +18 -0
  411. package/docs/examples/sites/create-duplicate-deployment.md +14 -0
  412. package/docs/examples/sites/create-template-deployment.md +18 -0
  413. package/docs/examples/sites/create-variable.md +16 -0
  414. package/docs/examples/sites/create-vcs-deployment.md +16 -0
  415. package/docs/examples/sites/create.md +30 -0
  416. package/docs/examples/sites/delete-deployment.md +14 -0
  417. package/docs/examples/sites/delete-log.md +14 -0
  418. package/docs/examples/sites/delete-variable.md +14 -0
  419. package/docs/examples/sites/delete.md +13 -0
  420. package/docs/examples/sites/get-deployment-download.md +15 -0
  421. package/docs/examples/sites/get-deployment.md +14 -0
  422. package/docs/examples/sites/get-log.md +14 -0
  423. package/docs/examples/sites/get-template.md +13 -0
  424. package/docs/examples/sites/get-usage.md +14 -0
  425. package/docs/examples/sites/get-variable.md +14 -0
  426. package/docs/examples/sites/get.md +13 -0
  427. package/docs/examples/sites/list-deployments.md +15 -0
  428. package/docs/examples/sites/list-frameworks.md +11 -0
  429. package/docs/examples/sites/list-logs.md +14 -0
  430. package/docs/examples/sites/list-specifications.md +11 -0
  431. package/docs/examples/sites/list-templates.md +16 -0
  432. package/docs/examples/sites/list-usage.md +13 -0
  433. package/docs/examples/sites/list-variables.md +13 -0
  434. package/docs/examples/sites/list.md +14 -0
  435. package/docs/examples/sites/update-deployment-status.md +14 -0
  436. package/docs/examples/sites/update-site-deployment.md +14 -0
  437. package/docs/examples/sites/update-variable.md +17 -0
  438. package/docs/examples/sites/update.md +30 -0
  439. package/docs/examples/storage/create-bucket.md +1 -1
  440. package/docs/examples/storage/create-file.md +1 -1
  441. package/docs/examples/storage/delete-bucket.md +1 -1
  442. package/docs/examples/storage/delete-file.md +1 -1
  443. package/docs/examples/storage/get-bucket-usage.md +1 -1
  444. package/docs/examples/storage/get-bucket.md +1 -1
  445. package/docs/examples/storage/get-file-download.md +3 -2
  446. package/docs/examples/storage/get-file-preview.md +4 -3
  447. package/docs/examples/storage/get-file-view.md +3 -2
  448. package/docs/examples/storage/get-file.md +1 -1
  449. package/docs/examples/storage/get-usage.md +1 -1
  450. package/docs/examples/storage/list-buckets.md +1 -1
  451. package/docs/examples/storage/list-files.md +1 -1
  452. package/docs/examples/storage/update-bucket.md +1 -1
  453. package/docs/examples/storage/update-file.md +1 -1
  454. package/docs/examples/teams/create-membership.md +1 -1
  455. package/docs/examples/teams/create.md +1 -1
  456. package/docs/examples/teams/delete-membership.md +1 -1
  457. package/docs/examples/teams/delete.md +1 -1
  458. package/docs/examples/teams/get-membership.md +1 -1
  459. package/docs/examples/teams/get-prefs.md +1 -1
  460. package/docs/examples/teams/get.md +1 -1
  461. package/docs/examples/teams/list-logs.md +1 -1
  462. package/docs/examples/teams/list-memberships.md +1 -1
  463. package/docs/examples/teams/list.md +1 -1
  464. package/docs/examples/teams/update-membership-status.md +1 -1
  465. package/docs/examples/teams/update-membership.md +1 -1
  466. package/docs/examples/teams/update-name.md +1 -1
  467. package/docs/examples/teams/update-prefs.md +1 -1
  468. package/docs/examples/tokens/create-file-token.md +15 -0
  469. package/docs/examples/tokens/delete.md +13 -0
  470. package/docs/examples/tokens/get.md +13 -0
  471. package/docs/examples/tokens/list.md +15 -0
  472. package/docs/examples/tokens/update.md +14 -0
  473. package/docs/examples/users/create-argon2user.md +1 -1
  474. package/docs/examples/users/create-bcrypt-user.md +1 -1
  475. package/docs/examples/users/create-j-w-t.md +1 -1
  476. package/docs/examples/users/create-m-d5user.md +1 -1
  477. package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
  478. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  479. package/docs/examples/users/create-s-h-a-user.md +1 -1
  480. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  481. package/docs/examples/users/create-scrypt-user.md +1 -1
  482. package/docs/examples/users/create-session.md +1 -1
  483. package/docs/examples/users/create-target.md +1 -1
  484. package/docs/examples/users/create-token.md +1 -1
  485. package/docs/examples/users/create.md +1 -1
  486. package/docs/examples/users/delete-identity.md +1 -1
  487. package/docs/examples/users/delete-mfa-authenticator.md +1 -1
  488. package/docs/examples/users/delete-session.md +1 -1
  489. package/docs/examples/users/delete-sessions.md +1 -1
  490. package/docs/examples/users/delete-target.md +1 -1
  491. package/docs/examples/users/delete.md +1 -1
  492. package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
  493. package/docs/examples/users/get-prefs.md +1 -1
  494. package/docs/examples/users/get-target.md +1 -1
  495. package/docs/examples/users/get-usage.md +1 -1
  496. package/docs/examples/users/get.md +1 -1
  497. package/docs/examples/users/list-identities.md +1 -1
  498. package/docs/examples/users/list-logs.md +1 -1
  499. package/docs/examples/users/list-memberships.md +4 -2
  500. package/docs/examples/users/list-mfa-factors.md +1 -1
  501. package/docs/examples/users/list-sessions.md +1 -1
  502. package/docs/examples/users/list-targets.md +1 -1
  503. package/docs/examples/users/list.md +1 -1
  504. package/docs/examples/users/update-email-verification.md +1 -1
  505. package/docs/examples/users/update-email.md +1 -1
  506. package/docs/examples/users/update-labels.md +1 -1
  507. package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
  508. package/docs/examples/users/update-mfa.md +1 -1
  509. package/docs/examples/users/update-name.md +1 -1
  510. package/docs/examples/users/update-password.md +1 -1
  511. package/docs/examples/users/update-phone-verification.md +1 -1
  512. package/docs/examples/users/update-phone.md +1 -1
  513. package/docs/examples/users/update-prefs.md +1 -1
  514. package/docs/examples/users/update-status.md +1 -1
  515. package/docs/examples/users/update-target.md +1 -1
  516. package/docs/examples/vcs/create-repository-detection.md +3 -2
  517. package/docs/examples/vcs/create-repository.md +1 -1
  518. package/docs/examples/vcs/delete-installation.md +1 -1
  519. package/docs/examples/vcs/get-installation.md +1 -1
  520. package/docs/examples/vcs/get-repository-contents.md +1 -1
  521. package/docs/examples/vcs/get-repository.md +1 -1
  522. package/docs/examples/vcs/list-installations.md +1 -1
  523. package/docs/examples/vcs/list-repositories.md +3 -2
  524. package/docs/examples/vcs/list-repository-branches.md +1 -1
  525. package/docs/examples/vcs/update-external-deployments.md +1 -1
  526. package/package.json +1 -1
  527. package/src/client.ts +32 -5
  528. package/src/enums/adapter.ts +4 -0
  529. package/src/enums/api-service.ts +1 -0
  530. package/src/enums/build-runtime.ts +62 -0
  531. package/src/enums/console-resource-type.ts +3 -0
  532. package/src/enums/deployment-download-type.ts +4 -0
  533. package/src/enums/framework.ts +16 -0
  534. package/src/enums/image-format.ts +0 -1
  535. package/src/enums/name.ts +0 -1
  536. package/src/enums/o-auth-provider.ts +1 -0
  537. package/src/enums/region.ts +2 -1
  538. package/src/enums/runtime.ts +4 -3
  539. package/src/enums/site-usage-range.ts +5 -0
  540. package/src/enums/status-code.ts +6 -0
  541. package/src/enums/v-c-s-deployment-type.ts +5 -0
  542. package/src/enums/v-c-s-detection-type.ts +4 -0
  543. package/src/index.ts +13 -2
  544. package/src/models.ts +1171 -188
  545. package/src/services/account.ts +126 -446
  546. package/src/services/assistant.ts +2 -7
  547. package/src/services/avatars.ts +7 -28
  548. package/src/services/backups.ts +24 -90
  549. package/src/services/console.ts +48 -52
  550. package/src/services/databases.ts +241 -350
  551. package/src/services/domains.ts +1821 -0
  552. package/src/services/functions.ts +216 -248
  553. package/src/services/graphql.ts +4 -14
  554. package/src/services/health.ts +56 -206
  555. package/src/services/locale.ts +16 -64
  556. package/src/services/messaging.ts +92 -335
  557. package/src/services/migrations.ts +66 -89
  558. package/src/services/organizations.ts +84 -241
  559. package/src/services/project.ts +20 -45
  560. package/src/services/projects.ts +262 -330
  561. package/src/services/proxy.ts +129 -44
  562. package/src/services/sites.ts +1104 -0
  563. package/src/services/storage.ts +42 -105
  564. package/src/services/teams.ts +28 -104
  565. package/src/services/tokens.ts +160 -0
  566. package/src/services/users.ts +94 -313
  567. package/src/services/vcs.ts +70 -108
  568. package/types/enums/adapter.d.ts +4 -0
  569. package/types/enums/api-service.d.ts +1 -0
  570. package/types/enums/build-runtime.d.ts +62 -0
  571. package/types/enums/console-resource-type.d.ts +3 -0
  572. package/types/enums/deployment-download-type.d.ts +4 -0
  573. package/types/enums/framework.d.ts +16 -0
  574. package/types/enums/image-format.d.ts +0 -1
  575. package/types/enums/name.d.ts +0 -1
  576. package/types/enums/o-auth-provider.d.ts +1 -0
  577. package/types/enums/region.d.ts +3 -2
  578. package/types/enums/runtime.d.ts +5 -4
  579. package/types/enums/site-usage-range.d.ts +5 -0
  580. package/types/enums/status-code.d.ts +6 -0
  581. package/types/enums/v-c-s-deployment-type.d.ts +5 -0
  582. package/types/enums/v-c-s-detection-type.d.ts +4 -0
  583. package/types/index.d.ts +13 -2
  584. package/types/models.d.ts +1171 -188
  585. package/types/services/account.d.ts +4 -128
  586. package/types/services/assistant.d.ts +0 -2
  587. package/types/services/avatars.d.ts +0 -14
  588. package/types/services/backups.d.ts +0 -24
  589. package/types/services/console.d.ts +9 -13
  590. package/types/services/databases.d.ts +43 -97
  591. package/types/services/domains.d.ts +524 -0
  592. package/types/services/functions.d.ts +58 -84
  593. package/types/services/graphql.d.ts +0 -4
  594. package/types/services/health.d.ts +6 -56
  595. package/types/services/locale.d.ts +0 -16
  596. package/types/services/messaging.d.ts +0 -92
  597. package/types/services/migrations.d.ts +9 -23
  598. package/types/services/organizations.d.ts +11 -68
  599. package/types/services/project.d.ts +4 -14
  600. package/types/services/projects.d.ts +47 -91
  601. package/types/services/proxy.d.ts +31 -13
  602. package/types/services/sites.d.ts +319 -0
  603. package/types/services/storage.d.ts +6 -33
  604. package/types/services/teams.d.ts +0 -28
  605. package/types/services/tokens.d.ts +51 -0
  606. package/types/services/users.d.ts +3 -87
  607. package/types/services/vcs.d.ts +14 -31
@@ -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') {
@@ -33,13 +31,9 @@ export class Messaging {
33
31
  const uri = new URL(this.client.config.endpoint + apiPath);
34
32
 
35
33
  const apiHeaders: { [header: string]: string } = {
36
- 'content-type': 'application/json',
37
34
  }
38
35
 
39
- payload['project'] = this.client.config.project;
40
-
41
-
42
- return await this.client.call(
36
+ return this.client.call(
43
37
  'get',
44
38
  uri,
45
39
  apiHeaders,
@@ -47,8 +41,6 @@ export class Messaging {
47
41
  );
48
42
  }
49
43
  /**
50
- * Create email
51
- *
52
44
  * Create a new email message.
53
45
  *
54
46
  * @param {string} messageId
@@ -66,7 +58,7 @@ export class Messaging {
66
58
  * @throws {AppwriteException}
67
59
  * @returns {Promise<Models.Message>}
68
60
  */
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> {
61
+ 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
62
  if (typeof messageId === 'undefined') {
71
63
  throw new AppwriteException('Missing required parameter: "messageId"');
72
64
  }
@@ -120,10 +112,7 @@ export class Messaging {
120
112
  'content-type': 'application/json',
121
113
  }
122
114
 
123
- payload['project'] = this.client.config.project;
124
-
125
-
126
- return await this.client.call(
115
+ return this.client.call(
127
116
  'post',
128
117
  uri,
129
118
  apiHeaders,
@@ -131,8 +120,6 @@ export class Messaging {
131
120
  );
132
121
  }
133
122
  /**
134
- * Update email
135
- *
136
123
  * 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
124
 
138
125
  *
@@ -151,7 +138,7 @@ export class Messaging {
151
138
  * @throws {AppwriteException}
152
139
  * @returns {Promise<Models.Message>}
153
140
  */
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> {
141
+ 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
142
  if (typeof messageId === 'undefined') {
156
143
  throw new AppwriteException('Missing required parameter: "messageId"');
157
144
  }
@@ -196,10 +183,7 @@ export class Messaging {
196
183
  'content-type': 'application/json',
197
184
  }
198
185
 
199
- payload['project'] = this.client.config.project;
200
-
201
-
202
- return await this.client.call(
186
+ return this.client.call(
203
187
  'patch',
204
188
  uri,
205
189
  apiHeaders,
@@ -207,8 +191,6 @@ export class Messaging {
207
191
  );
208
192
  }
209
193
  /**
210
- * Create push notification
211
- *
212
194
  * Create a new push notification.
213
195
  *
214
196
  * @param {string} messageId
@@ -233,7 +215,7 @@ export class Messaging {
233
215
  * @throws {AppwriteException}
234
216
  * @returns {Promise<Models.Message>}
235
217
  */
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> {
218
+ 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
219
  if (typeof messageId === 'undefined') {
238
220
  throw new AppwriteException('Missing required parameter: "messageId"');
239
221
  }
@@ -302,10 +284,7 @@ export class Messaging {
302
284
  'content-type': 'application/json',
303
285
  }
304
286
 
305
- payload['project'] = this.client.config.project;
306
-
307
-
308
- return await this.client.call(
287
+ return this.client.call(
309
288
  'post',
310
289
  uri,
311
290
  apiHeaders,
@@ -313,8 +292,6 @@ export class Messaging {
313
292
  );
314
293
  }
315
294
  /**
316
- * Update push notification
317
- *
318
295
  * 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
296
 
320
297
  *
@@ -340,7 +317,7 @@ export class Messaging {
340
317
  * @throws {AppwriteException}
341
318
  * @returns {Promise<Models.Message>}
342
319
  */
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> {
320
+ 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
321
  if (typeof messageId === 'undefined') {
345
322
  throw new AppwriteException('Missing required parameter: "messageId"');
346
323
  }
@@ -406,10 +383,7 @@ export class Messaging {
406
383
  'content-type': 'application/json',
407
384
  }
408
385
 
409
- payload['project'] = this.client.config.project;
410
-
411
-
412
- return await this.client.call(
386
+ return this.client.call(
413
387
  'patch',
414
388
  uri,
415
389
  apiHeaders,
@@ -417,8 +391,6 @@ export class Messaging {
417
391
  );
418
392
  }
419
393
  /**
420
- * Create SMS
421
- *
422
394
  * Create a new SMS message.
423
395
  *
424
396
  * @param {string} messageId
@@ -431,7 +403,7 @@ export class Messaging {
431
403
  * @throws {AppwriteException}
432
404
  * @returns {Promise<Models.Message>}
433
405
  */
434
- async createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
406
+ createSms(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
435
407
  if (typeof messageId === 'undefined') {
436
408
  throw new AppwriteException('Missing required parameter: "messageId"');
437
409
  }
@@ -467,10 +439,7 @@ export class Messaging {
467
439
  'content-type': 'application/json',
468
440
  }
469
441
 
470
- payload['project'] = this.client.config.project;
471
-
472
-
473
- return await this.client.call(
442
+ return this.client.call(
474
443
  'post',
475
444
  uri,
476
445
  apiHeaders,
@@ -478,8 +447,6 @@ export class Messaging {
478
447
  );
479
448
  }
480
449
  /**
481
- * Update SMS
482
- *
483
450
  * 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
451
 
485
452
  *
@@ -493,7 +460,7 @@ export class Messaging {
493
460
  * @throws {AppwriteException}
494
461
  * @returns {Promise<Models.Message>}
495
462
  */
496
- async updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
463
+ updateSms(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, draft?: boolean, scheduledAt?: string): Promise<Models.Message> {
497
464
  if (typeof messageId === 'undefined') {
498
465
  throw new AppwriteException('Missing required parameter: "messageId"');
499
466
  }
@@ -523,10 +490,7 @@ export class Messaging {
523
490
  'content-type': 'application/json',
524
491
  }
525
492
 
526
- payload['project'] = this.client.config.project;
527
-
528
-
529
- return await this.client.call(
493
+ return this.client.call(
530
494
  'patch',
531
495
  uri,
532
496
  apiHeaders,
@@ -534,8 +498,6 @@ export class Messaging {
534
498
  );
535
499
  }
536
500
  /**
537
- * Get message
538
- *
539
501
  * Get a message by its unique ID.
540
502
 
541
503
  *
@@ -543,7 +505,7 @@ export class Messaging {
543
505
  * @throws {AppwriteException}
544
506
  * @returns {Promise<Models.Message>}
545
507
  */
546
- async getMessage(messageId: string): Promise<Models.Message> {
508
+ getMessage(messageId: string): Promise<Models.Message> {
547
509
  if (typeof messageId === 'undefined') {
548
510
  throw new AppwriteException('Missing required parameter: "messageId"');
549
511
  }
@@ -552,13 +514,9 @@ export class Messaging {
552
514
  const uri = new URL(this.client.config.endpoint + apiPath);
553
515
 
554
516
  const apiHeaders: { [header: string]: string } = {
555
- 'content-type': 'application/json',
556
517
  }
557
518
 
558
- payload['project'] = this.client.config.project;
559
-
560
-
561
- return await this.client.call(
519
+ return this.client.call(
562
520
  'get',
563
521
  uri,
564
522
  apiHeaders,
@@ -566,15 +524,13 @@ export class Messaging {
566
524
  );
567
525
  }
568
526
  /**
569
- * Delete message
570
- *
571
527
  * Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.
572
528
  *
573
529
  * @param {string} messageId
574
530
  * @throws {AppwriteException}
575
531
  * @returns {Promise<{}>}
576
532
  */
577
- async delete(messageId: string): Promise<{}> {
533
+ delete(messageId: string): Promise<{}> {
578
534
  if (typeof messageId === 'undefined') {
579
535
  throw new AppwriteException('Missing required parameter: "messageId"');
580
536
  }
@@ -586,10 +542,7 @@ export class Messaging {
586
542
  'content-type': 'application/json',
587
543
  }
588
544
 
589
- payload['project'] = this.client.config.project;
590
-
591
-
592
- return await this.client.call(
545
+ return this.client.call(
593
546
  'delete',
594
547
  uri,
595
548
  apiHeaders,
@@ -597,8 +550,6 @@ export class Messaging {
597
550
  );
598
551
  }
599
552
  /**
600
- * List message logs
601
- *
602
553
  * Get the message activity logs listed by its unique ID.
603
554
  *
604
555
  * @param {string} messageId
@@ -606,7 +557,7 @@ export class Messaging {
606
557
  * @throws {AppwriteException}
607
558
  * @returns {Promise<Models.LogList>}
608
559
  */
609
- async listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList> {
560
+ listMessageLogs(messageId: string, queries?: string[]): Promise<Models.LogList> {
610
561
  if (typeof messageId === 'undefined') {
611
562
  throw new AppwriteException('Missing required parameter: "messageId"');
612
563
  }
@@ -618,13 +569,9 @@ export class Messaging {
618
569
  const uri = new URL(this.client.config.endpoint + apiPath);
619
570
 
620
571
  const apiHeaders: { [header: string]: string } = {
621
- 'content-type': 'application/json',
622
572
  }
623
573
 
624
- payload['project'] = this.client.config.project;
625
-
626
-
627
- return await this.client.call(
574
+ return this.client.call(
628
575
  'get',
629
576
  uri,
630
577
  apiHeaders,
@@ -632,8 +579,6 @@ export class Messaging {
632
579
  );
633
580
  }
634
581
  /**
635
- * List message targets
636
- *
637
582
  * Get a list of the targets associated with a message.
638
583
  *
639
584
  * @param {string} messageId
@@ -641,7 +586,7 @@ export class Messaging {
641
586
  * @throws {AppwriteException}
642
587
  * @returns {Promise<Models.TargetList>}
643
588
  */
644
- async listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList> {
589
+ listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList> {
645
590
  if (typeof messageId === 'undefined') {
646
591
  throw new AppwriteException('Missing required parameter: "messageId"');
647
592
  }
@@ -653,13 +598,9 @@ export class Messaging {
653
598
  const uri = new URL(this.client.config.endpoint + apiPath);
654
599
 
655
600
  const apiHeaders: { [header: string]: string } = {
656
- 'content-type': 'application/json',
657
601
  }
658
602
 
659
- payload['project'] = this.client.config.project;
660
-
661
-
662
- return await this.client.call(
603
+ return this.client.call(
663
604
  'get',
664
605
  uri,
665
606
  apiHeaders,
@@ -667,8 +608,6 @@ export class Messaging {
667
608
  );
668
609
  }
669
610
  /**
670
- * List providers
671
- *
672
611
  * Get a list of all providers from the current Appwrite project.
673
612
  *
674
613
  * @param {string[]} queries
@@ -676,7 +615,7 @@ export class Messaging {
676
615
  * @throws {AppwriteException}
677
616
  * @returns {Promise<Models.ProviderList>}
678
617
  */
679
- async listProviders(queries?: string[], search?: string): Promise<Models.ProviderList> {
618
+ listProviders(queries?: string[], search?: string): Promise<Models.ProviderList> {
680
619
  const apiPath = '/messaging/providers';
681
620
  const payload: Payload = {};
682
621
  if (typeof queries !== 'undefined') {
@@ -688,13 +627,9 @@ export class Messaging {
688
627
  const uri = new URL(this.client.config.endpoint + apiPath);
689
628
 
690
629
  const apiHeaders: { [header: string]: string } = {
691
- 'content-type': 'application/json',
692
630
  }
693
631
 
694
- payload['project'] = this.client.config.project;
695
-
696
-
697
- return await this.client.call(
632
+ return this.client.call(
698
633
  'get',
699
634
  uri,
700
635
  apiHeaders,
@@ -702,8 +637,6 @@ export class Messaging {
702
637
  );
703
638
  }
704
639
  /**
705
- * Create APNS provider
706
- *
707
640
  * Create a new Apple Push Notification service provider.
708
641
  *
709
642
  * @param {string} providerId
@@ -717,7 +650,7 @@ export class Messaging {
717
650
  * @throws {AppwriteException}
718
651
  * @returns {Promise<Models.Provider>}
719
652
  */
720
- async createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider> {
653
+ createApnsProvider(providerId: string, name: string, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean, enabled?: boolean): Promise<Models.Provider> {
721
654
  if (typeof providerId === 'undefined') {
722
655
  throw new AppwriteException('Missing required parameter: "providerId"');
723
656
  }
@@ -756,10 +689,7 @@ export class Messaging {
756
689
  'content-type': 'application/json',
757
690
  }
758
691
 
759
- payload['project'] = this.client.config.project;
760
-
761
-
762
- return await this.client.call(
692
+ return this.client.call(
763
693
  'post',
764
694
  uri,
765
695
  apiHeaders,
@@ -767,8 +697,6 @@ export class Messaging {
767
697
  );
768
698
  }
769
699
  /**
770
- * Update APNS provider
771
- *
772
700
  * Update a Apple Push Notification service provider by its unique ID.
773
701
  *
774
702
  * @param {string} providerId
@@ -782,7 +710,7 @@ export class Messaging {
782
710
  * @throws {AppwriteException}
783
711
  * @returns {Promise<Models.Provider>}
784
712
  */
785
- async updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider> {
713
+ updateApnsProvider(providerId: string, name?: string, enabled?: boolean, authKey?: string, authKeyId?: string, teamId?: string, bundleId?: string, sandbox?: boolean): Promise<Models.Provider> {
786
714
  if (typeof providerId === 'undefined') {
787
715
  throw new AppwriteException('Missing required parameter: "providerId"');
788
716
  }
@@ -815,10 +743,7 @@ export class Messaging {
815
743
  'content-type': 'application/json',
816
744
  }
817
745
 
818
- payload['project'] = this.client.config.project;
819
-
820
-
821
- return await this.client.call(
746
+ return this.client.call(
822
747
  'patch',
823
748
  uri,
824
749
  apiHeaders,
@@ -826,8 +751,6 @@ export class Messaging {
826
751
  );
827
752
  }
828
753
  /**
829
- * Create FCM provider
830
- *
831
754
  * Create a new Firebase Cloud Messaging provider.
832
755
  *
833
756
  * @param {string} providerId
@@ -837,7 +760,7 @@ export class Messaging {
837
760
  * @throws {AppwriteException}
838
761
  * @returns {Promise<Models.Provider>}
839
762
  */
840
- async createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider> {
763
+ createFcmProvider(providerId: string, name: string, serviceAccountJSON?: object, enabled?: boolean): Promise<Models.Provider> {
841
764
  if (typeof providerId === 'undefined') {
842
765
  throw new AppwriteException('Missing required parameter: "providerId"');
843
766
  }
@@ -864,10 +787,7 @@ export class Messaging {
864
787
  'content-type': 'application/json',
865
788
  }
866
789
 
867
- payload['project'] = this.client.config.project;
868
-
869
-
870
- return await this.client.call(
790
+ return this.client.call(
871
791
  'post',
872
792
  uri,
873
793
  apiHeaders,
@@ -875,8 +795,6 @@ export class Messaging {
875
795
  );
876
796
  }
877
797
  /**
878
- * Update FCM provider
879
- *
880
798
  * Update a Firebase Cloud Messaging provider by its unique ID.
881
799
  *
882
800
  * @param {string} providerId
@@ -886,7 +804,7 @@ export class Messaging {
886
804
  * @throws {AppwriteException}
887
805
  * @returns {Promise<Models.Provider>}
888
806
  */
889
- async updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider> {
807
+ updateFcmProvider(providerId: string, name?: string, enabled?: boolean, serviceAccountJSON?: object): Promise<Models.Provider> {
890
808
  if (typeof providerId === 'undefined') {
891
809
  throw new AppwriteException('Missing required parameter: "providerId"');
892
810
  }
@@ -907,10 +825,7 @@ export class Messaging {
907
825
  'content-type': 'application/json',
908
826
  }
909
827
 
910
- payload['project'] = this.client.config.project;
911
-
912
-
913
- return await this.client.call(
828
+ return this.client.call(
914
829
  'patch',
915
830
  uri,
916
831
  apiHeaders,
@@ -918,8 +833,6 @@ export class Messaging {
918
833
  );
919
834
  }
920
835
  /**
921
- * Create Mailgun provider
922
- *
923
836
  * Create a new Mailgun provider.
924
837
  *
925
838
  * @param {string} providerId
@@ -935,7 +848,7 @@ export class Messaging {
935
848
  * @throws {AppwriteException}
936
849
  * @returns {Promise<Models.Provider>}
937
850
  */
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> {
851
+ 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
852
  if (typeof providerId === 'undefined') {
940
853
  throw new AppwriteException('Missing required parameter: "providerId"');
941
854
  }
@@ -980,10 +893,7 @@ export class Messaging {
980
893
  'content-type': 'application/json',
981
894
  }
982
895
 
983
- payload['project'] = this.client.config.project;
984
-
985
-
986
- return await this.client.call(
896
+ return this.client.call(
987
897
  'post',
988
898
  uri,
989
899
  apiHeaders,
@@ -991,8 +901,6 @@ export class Messaging {
991
901
  );
992
902
  }
993
903
  /**
994
- * Update Mailgun provider
995
- *
996
904
  * Update a Mailgun provider by its unique ID.
997
905
  *
998
906
  * @param {string} providerId
@@ -1008,7 +916,7 @@ export class Messaging {
1008
916
  * @throws {AppwriteException}
1009
917
  * @returns {Promise<Models.Provider>}
1010
918
  */
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> {
919
+ 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
920
  if (typeof providerId === 'undefined') {
1013
921
  throw new AppwriteException('Missing required parameter: "providerId"');
1014
922
  }
@@ -1047,10 +955,7 @@ export class Messaging {
1047
955
  'content-type': 'application/json',
1048
956
  }
1049
957
 
1050
- payload['project'] = this.client.config.project;
1051
-
1052
-
1053
- return await this.client.call(
958
+ return this.client.call(
1054
959
  'patch',
1055
960
  uri,
1056
961
  apiHeaders,
@@ -1058,8 +963,6 @@ export class Messaging {
1058
963
  );
1059
964
  }
1060
965
  /**
1061
- * Create Msg91 provider
1062
- *
1063
966
  * Create a new MSG91 provider.
1064
967
  *
1065
968
  * @param {string} providerId
@@ -1071,7 +974,7 @@ export class Messaging {
1071
974
  * @throws {AppwriteException}
1072
975
  * @returns {Promise<Models.Provider>}
1073
976
  */
1074
- async createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider> {
977
+ createMsg91Provider(providerId: string, name: string, templateId?: string, senderId?: string, authKey?: string, enabled?: boolean): Promise<Models.Provider> {
1075
978
  if (typeof providerId === 'undefined') {
1076
979
  throw new AppwriteException('Missing required parameter: "providerId"');
1077
980
  }
@@ -1104,10 +1007,7 @@ export class Messaging {
1104
1007
  'content-type': 'application/json',
1105
1008
  }
1106
1009
 
1107
- payload['project'] = this.client.config.project;
1108
-
1109
-
1110
- return await this.client.call(
1010
+ return this.client.call(
1111
1011
  'post',
1112
1012
  uri,
1113
1013
  apiHeaders,
@@ -1115,8 +1015,6 @@ export class Messaging {
1115
1015
  );
1116
1016
  }
1117
1017
  /**
1118
- * Update Msg91 provider
1119
- *
1120
1018
  * Update a MSG91 provider by its unique ID.
1121
1019
  *
1122
1020
  * @param {string} providerId
@@ -1128,7 +1026,7 @@ export class Messaging {
1128
1026
  * @throws {AppwriteException}
1129
1027
  * @returns {Promise<Models.Provider>}
1130
1028
  */
1131
- async updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider> {
1029
+ updateMsg91Provider(providerId: string, name?: string, enabled?: boolean, templateId?: string, senderId?: string, authKey?: string): Promise<Models.Provider> {
1132
1030
  if (typeof providerId === 'undefined') {
1133
1031
  throw new AppwriteException('Missing required parameter: "providerId"');
1134
1032
  }
@@ -1155,10 +1053,7 @@ export class Messaging {
1155
1053
  'content-type': 'application/json',
1156
1054
  }
1157
1055
 
1158
- payload['project'] = this.client.config.project;
1159
-
1160
-
1161
- return await this.client.call(
1056
+ return this.client.call(
1162
1057
  'patch',
1163
1058
  uri,
1164
1059
  apiHeaders,
@@ -1166,8 +1061,6 @@ export class Messaging {
1166
1061
  );
1167
1062
  }
1168
1063
  /**
1169
- * Create Sendgrid provider
1170
- *
1171
1064
  * Create a new Sendgrid provider.
1172
1065
  *
1173
1066
  * @param {string} providerId
@@ -1181,7 +1074,7 @@ export class Messaging {
1181
1074
  * @throws {AppwriteException}
1182
1075
  * @returns {Promise<Models.Provider>}
1183
1076
  */
1184
- async createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1077
+ createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider> {
1185
1078
  if (typeof providerId === 'undefined') {
1186
1079
  throw new AppwriteException('Missing required parameter: "providerId"');
1187
1080
  }
@@ -1220,10 +1113,7 @@ export class Messaging {
1220
1113
  'content-type': 'application/json',
1221
1114
  }
1222
1115
 
1223
- payload['project'] = this.client.config.project;
1224
-
1225
-
1226
- return await this.client.call(
1116
+ return this.client.call(
1227
1117
  'post',
1228
1118
  uri,
1229
1119
  apiHeaders,
@@ -1231,8 +1121,6 @@ export class Messaging {
1231
1121
  );
1232
1122
  }
1233
1123
  /**
1234
- * Update Sendgrid provider
1235
- *
1236
1124
  * Update a Sendgrid provider by its unique ID.
1237
1125
  *
1238
1126
  * @param {string} providerId
@@ -1246,7 +1134,7 @@ export class Messaging {
1246
1134
  * @throws {AppwriteException}
1247
1135
  * @returns {Promise<Models.Provider>}
1248
1136
  */
1249
- async updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
1137
+ updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider> {
1250
1138
  if (typeof providerId === 'undefined') {
1251
1139
  throw new AppwriteException('Missing required parameter: "providerId"');
1252
1140
  }
@@ -1279,10 +1167,7 @@ export class Messaging {
1279
1167
  'content-type': 'application/json',
1280
1168
  }
1281
1169
 
1282
- payload['project'] = this.client.config.project;
1283
-
1284
-
1285
- return await this.client.call(
1170
+ return this.client.call(
1286
1171
  'patch',
1287
1172
  uri,
1288
1173
  apiHeaders,
@@ -1290,8 +1175,6 @@ export class Messaging {
1290
1175
  );
1291
1176
  }
1292
1177
  /**
1293
- * Create SMTP provider
1294
- *
1295
1178
  * Create a new SMTP provider.
1296
1179
  *
1297
1180
  * @param {string} providerId
@@ -1311,7 +1194,7 @@ export class Messaging {
1311
1194
  * @throws {AppwriteException}
1312
1195
  * @returns {Promise<Models.Provider>}
1313
1196
  */
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> {
1197
+ 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
1198
  if (typeof providerId === 'undefined') {
1316
1199
  throw new AppwriteException('Missing required parameter: "providerId"');
1317
1200
  }
@@ -1371,10 +1254,7 @@ export class Messaging {
1371
1254
  'content-type': 'application/json',
1372
1255
  }
1373
1256
 
1374
- payload['project'] = this.client.config.project;
1375
-
1376
-
1377
- return await this.client.call(
1257
+ return this.client.call(
1378
1258
  'post',
1379
1259
  uri,
1380
1260
  apiHeaders,
@@ -1382,8 +1262,6 @@ export class Messaging {
1382
1262
  );
1383
1263
  }
1384
1264
  /**
1385
- * Update SMTP provider
1386
- *
1387
1265
  * Update a SMTP provider by its unique ID.
1388
1266
  *
1389
1267
  * @param {string} providerId
@@ -1403,7 +1281,7 @@ export class Messaging {
1403
1281
  * @throws {AppwriteException}
1404
1282
  * @returns {Promise<Models.Provider>}
1405
1283
  */
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> {
1284
+ 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
1285
  if (typeof providerId === 'undefined') {
1408
1286
  throw new AppwriteException('Missing required parameter: "providerId"');
1409
1287
  }
@@ -1454,10 +1332,7 @@ export class Messaging {
1454
1332
  'content-type': 'application/json',
1455
1333
  }
1456
1334
 
1457
- payload['project'] = this.client.config.project;
1458
-
1459
-
1460
- return await this.client.call(
1335
+ return this.client.call(
1461
1336
  'patch',
1462
1337
  uri,
1463
1338
  apiHeaders,
@@ -1465,8 +1340,6 @@ export class Messaging {
1465
1340
  );
1466
1341
  }
1467
1342
  /**
1468
- * Create Telesign provider
1469
- *
1470
1343
  * Create a new Telesign provider.
1471
1344
  *
1472
1345
  * @param {string} providerId
@@ -1478,7 +1351,7 @@ export class Messaging {
1478
1351
  * @throws {AppwriteException}
1479
1352
  * @returns {Promise<Models.Provider>}
1480
1353
  */
1481
- async createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1354
+ createTelesignProvider(providerId: string, name: string, from?: string, customerId?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1482
1355
  if (typeof providerId === 'undefined') {
1483
1356
  throw new AppwriteException('Missing required parameter: "providerId"');
1484
1357
  }
@@ -1511,10 +1384,7 @@ export class Messaging {
1511
1384
  'content-type': 'application/json',
1512
1385
  }
1513
1386
 
1514
- payload['project'] = this.client.config.project;
1515
-
1516
-
1517
- return await this.client.call(
1387
+ return this.client.call(
1518
1388
  'post',
1519
1389
  uri,
1520
1390
  apiHeaders,
@@ -1522,8 +1392,6 @@ export class Messaging {
1522
1392
  );
1523
1393
  }
1524
1394
  /**
1525
- * Update Telesign provider
1526
- *
1527
1395
  * Update a Telesign provider by its unique ID.
1528
1396
  *
1529
1397
  * @param {string} providerId
@@ -1535,7 +1403,7 @@ export class Messaging {
1535
1403
  * @throws {AppwriteException}
1536
1404
  * @returns {Promise<Models.Provider>}
1537
1405
  */
1538
- async updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1406
+ updateTelesignProvider(providerId: string, name?: string, enabled?: boolean, customerId?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1539
1407
  if (typeof providerId === 'undefined') {
1540
1408
  throw new AppwriteException('Missing required parameter: "providerId"');
1541
1409
  }
@@ -1562,10 +1430,7 @@ export class Messaging {
1562
1430
  'content-type': 'application/json',
1563
1431
  }
1564
1432
 
1565
- payload['project'] = this.client.config.project;
1566
-
1567
-
1568
- return await this.client.call(
1433
+ return this.client.call(
1569
1434
  'patch',
1570
1435
  uri,
1571
1436
  apiHeaders,
@@ -1573,8 +1438,6 @@ export class Messaging {
1573
1438
  );
1574
1439
  }
1575
1440
  /**
1576
- * Create Textmagic provider
1577
- *
1578
1441
  * Create a new Textmagic provider.
1579
1442
  *
1580
1443
  * @param {string} providerId
@@ -1586,7 +1449,7 @@ export class Messaging {
1586
1449
  * @throws {AppwriteException}
1587
1450
  * @returns {Promise<Models.Provider>}
1588
1451
  */
1589
- async createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1452
+ createTextmagicProvider(providerId: string, name: string, from?: string, username?: string, apiKey?: string, enabled?: boolean): Promise<Models.Provider> {
1590
1453
  if (typeof providerId === 'undefined') {
1591
1454
  throw new AppwriteException('Missing required parameter: "providerId"');
1592
1455
  }
@@ -1619,10 +1482,7 @@ export class Messaging {
1619
1482
  'content-type': 'application/json',
1620
1483
  }
1621
1484
 
1622
- payload['project'] = this.client.config.project;
1623
-
1624
-
1625
- return await this.client.call(
1485
+ return this.client.call(
1626
1486
  'post',
1627
1487
  uri,
1628
1488
  apiHeaders,
@@ -1630,8 +1490,6 @@ export class Messaging {
1630
1490
  );
1631
1491
  }
1632
1492
  /**
1633
- * Update Textmagic provider
1634
- *
1635
1493
  * Update a Textmagic provider by its unique ID.
1636
1494
  *
1637
1495
  * @param {string} providerId
@@ -1643,7 +1501,7 @@ export class Messaging {
1643
1501
  * @throws {AppwriteException}
1644
1502
  * @returns {Promise<Models.Provider>}
1645
1503
  */
1646
- async updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1504
+ updateTextmagicProvider(providerId: string, name?: string, enabled?: boolean, username?: string, apiKey?: string, from?: string): Promise<Models.Provider> {
1647
1505
  if (typeof providerId === 'undefined') {
1648
1506
  throw new AppwriteException('Missing required parameter: "providerId"');
1649
1507
  }
@@ -1670,10 +1528,7 @@ export class Messaging {
1670
1528
  'content-type': 'application/json',
1671
1529
  }
1672
1530
 
1673
- payload['project'] = this.client.config.project;
1674
-
1675
-
1676
- return await this.client.call(
1531
+ return this.client.call(
1677
1532
  'patch',
1678
1533
  uri,
1679
1534
  apiHeaders,
@@ -1681,8 +1536,6 @@ export class Messaging {
1681
1536
  );
1682
1537
  }
1683
1538
  /**
1684
- * Create Twilio provider
1685
- *
1686
1539
  * Create a new Twilio provider.
1687
1540
  *
1688
1541
  * @param {string} providerId
@@ -1694,7 +1547,7 @@ export class Messaging {
1694
1547
  * @throws {AppwriteException}
1695
1548
  * @returns {Promise<Models.Provider>}
1696
1549
  */
1697
- async createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider> {
1550
+ createTwilioProvider(providerId: string, name: string, from?: string, accountSid?: string, authToken?: string, enabled?: boolean): Promise<Models.Provider> {
1698
1551
  if (typeof providerId === 'undefined') {
1699
1552
  throw new AppwriteException('Missing required parameter: "providerId"');
1700
1553
  }
@@ -1727,10 +1580,7 @@ export class Messaging {
1727
1580
  'content-type': 'application/json',
1728
1581
  }
1729
1582
 
1730
- payload['project'] = this.client.config.project;
1731
-
1732
-
1733
- return await this.client.call(
1583
+ return this.client.call(
1734
1584
  'post',
1735
1585
  uri,
1736
1586
  apiHeaders,
@@ -1738,8 +1588,6 @@ export class Messaging {
1738
1588
  );
1739
1589
  }
1740
1590
  /**
1741
- * Update Twilio provider
1742
- *
1743
1591
  * Update a Twilio provider by its unique ID.
1744
1592
  *
1745
1593
  * @param {string} providerId
@@ -1751,7 +1599,7 @@ export class Messaging {
1751
1599
  * @throws {AppwriteException}
1752
1600
  * @returns {Promise<Models.Provider>}
1753
1601
  */
1754
- async updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider> {
1602
+ updateTwilioProvider(providerId: string, name?: string, enabled?: boolean, accountSid?: string, authToken?: string, from?: string): Promise<Models.Provider> {
1755
1603
  if (typeof providerId === 'undefined') {
1756
1604
  throw new AppwriteException('Missing required parameter: "providerId"');
1757
1605
  }
@@ -1778,10 +1626,7 @@ export class Messaging {
1778
1626
  'content-type': 'application/json',
1779
1627
  }
1780
1628
 
1781
- payload['project'] = this.client.config.project;
1782
-
1783
-
1784
- return await this.client.call(
1629
+ return this.client.call(
1785
1630
  'patch',
1786
1631
  uri,
1787
1632
  apiHeaders,
@@ -1789,8 +1634,6 @@ export class Messaging {
1789
1634
  );
1790
1635
  }
1791
1636
  /**
1792
- * Create Vonage provider
1793
- *
1794
1637
  * Create a new Vonage provider.
1795
1638
  *
1796
1639
  * @param {string} providerId
@@ -1802,7 +1645,7 @@ export class Messaging {
1802
1645
  * @throws {AppwriteException}
1803
1646
  * @returns {Promise<Models.Provider>}
1804
1647
  */
1805
- async createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider> {
1648
+ createVonageProvider(providerId: string, name: string, from?: string, apiKey?: string, apiSecret?: string, enabled?: boolean): Promise<Models.Provider> {
1806
1649
  if (typeof providerId === 'undefined') {
1807
1650
  throw new AppwriteException('Missing required parameter: "providerId"');
1808
1651
  }
@@ -1835,10 +1678,7 @@ export class Messaging {
1835
1678
  'content-type': 'application/json',
1836
1679
  }
1837
1680
 
1838
- payload['project'] = this.client.config.project;
1839
-
1840
-
1841
- return await this.client.call(
1681
+ return this.client.call(
1842
1682
  'post',
1843
1683
  uri,
1844
1684
  apiHeaders,
@@ -1846,8 +1686,6 @@ export class Messaging {
1846
1686
  );
1847
1687
  }
1848
1688
  /**
1849
- * Update Vonage provider
1850
- *
1851
1689
  * Update a Vonage provider by its unique ID.
1852
1690
  *
1853
1691
  * @param {string} providerId
@@ -1859,7 +1697,7 @@ export class Messaging {
1859
1697
  * @throws {AppwriteException}
1860
1698
  * @returns {Promise<Models.Provider>}
1861
1699
  */
1862
- async updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider> {
1700
+ updateVonageProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, apiSecret?: string, from?: string): Promise<Models.Provider> {
1863
1701
  if (typeof providerId === 'undefined') {
1864
1702
  throw new AppwriteException('Missing required parameter: "providerId"');
1865
1703
  }
@@ -1886,10 +1724,7 @@ export class Messaging {
1886
1724
  'content-type': 'application/json',
1887
1725
  }
1888
1726
 
1889
- payload['project'] = this.client.config.project;
1890
-
1891
-
1892
- return await this.client.call(
1727
+ return this.client.call(
1893
1728
  'patch',
1894
1729
  uri,
1895
1730
  apiHeaders,
@@ -1897,8 +1732,6 @@ export class Messaging {
1897
1732
  );
1898
1733
  }
1899
1734
  /**
1900
- * Get provider
1901
- *
1902
1735
  * Get a provider by its unique ID.
1903
1736
 
1904
1737
  *
@@ -1906,7 +1739,7 @@ export class Messaging {
1906
1739
  * @throws {AppwriteException}
1907
1740
  * @returns {Promise<Models.Provider>}
1908
1741
  */
1909
- async getProvider(providerId: string): Promise<Models.Provider> {
1742
+ getProvider(providerId: string): Promise<Models.Provider> {
1910
1743
  if (typeof providerId === 'undefined') {
1911
1744
  throw new AppwriteException('Missing required parameter: "providerId"');
1912
1745
  }
@@ -1915,13 +1748,9 @@ export class Messaging {
1915
1748
  const uri = new URL(this.client.config.endpoint + apiPath);
1916
1749
 
1917
1750
  const apiHeaders: { [header: string]: string } = {
1918
- 'content-type': 'application/json',
1919
1751
  }
1920
1752
 
1921
- payload['project'] = this.client.config.project;
1922
-
1923
-
1924
- return await this.client.call(
1753
+ return this.client.call(
1925
1754
  'get',
1926
1755
  uri,
1927
1756
  apiHeaders,
@@ -1929,15 +1758,13 @@ export class Messaging {
1929
1758
  );
1930
1759
  }
1931
1760
  /**
1932
- * Delete provider
1933
- *
1934
1761
  * Delete a provider by its unique ID.
1935
1762
  *
1936
1763
  * @param {string} providerId
1937
1764
  * @throws {AppwriteException}
1938
1765
  * @returns {Promise<{}>}
1939
1766
  */
1940
- async deleteProvider(providerId: string): Promise<{}> {
1767
+ deleteProvider(providerId: string): Promise<{}> {
1941
1768
  if (typeof providerId === 'undefined') {
1942
1769
  throw new AppwriteException('Missing required parameter: "providerId"');
1943
1770
  }
@@ -1949,10 +1776,7 @@ export class Messaging {
1949
1776
  'content-type': 'application/json',
1950
1777
  }
1951
1778
 
1952
- payload['project'] = this.client.config.project;
1953
-
1954
-
1955
- return await this.client.call(
1779
+ return this.client.call(
1956
1780
  'delete',
1957
1781
  uri,
1958
1782
  apiHeaders,
@@ -1960,8 +1784,6 @@ export class Messaging {
1960
1784
  );
1961
1785
  }
1962
1786
  /**
1963
- * List provider logs
1964
- *
1965
1787
  * Get the provider activity logs listed by its unique ID.
1966
1788
  *
1967
1789
  * @param {string} providerId
@@ -1969,7 +1791,7 @@ export class Messaging {
1969
1791
  * @throws {AppwriteException}
1970
1792
  * @returns {Promise<Models.LogList>}
1971
1793
  */
1972
- async listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList> {
1794
+ listProviderLogs(providerId: string, queries?: string[]): Promise<Models.LogList> {
1973
1795
  if (typeof providerId === 'undefined') {
1974
1796
  throw new AppwriteException('Missing required parameter: "providerId"');
1975
1797
  }
@@ -1981,13 +1803,9 @@ export class Messaging {
1981
1803
  const uri = new URL(this.client.config.endpoint + apiPath);
1982
1804
 
1983
1805
  const apiHeaders: { [header: string]: string } = {
1984
- 'content-type': 'application/json',
1985
1806
  }
1986
1807
 
1987
- payload['project'] = this.client.config.project;
1988
-
1989
-
1990
- return await this.client.call(
1808
+ return this.client.call(
1991
1809
  'get',
1992
1810
  uri,
1993
1811
  apiHeaders,
@@ -1995,8 +1813,6 @@ export class Messaging {
1995
1813
  );
1996
1814
  }
1997
1815
  /**
1998
- * List subscriber logs
1999
- *
2000
1816
  * Get the subscriber activity logs listed by its unique ID.
2001
1817
  *
2002
1818
  * @param {string} subscriberId
@@ -2004,7 +1820,7 @@ export class Messaging {
2004
1820
  * @throws {AppwriteException}
2005
1821
  * @returns {Promise<Models.LogList>}
2006
1822
  */
2007
- async listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList> {
1823
+ listSubscriberLogs(subscriberId: string, queries?: string[]): Promise<Models.LogList> {
2008
1824
  if (typeof subscriberId === 'undefined') {
2009
1825
  throw new AppwriteException('Missing required parameter: "subscriberId"');
2010
1826
  }
@@ -2016,13 +1832,9 @@ export class Messaging {
2016
1832
  const uri = new URL(this.client.config.endpoint + apiPath);
2017
1833
 
2018
1834
  const apiHeaders: { [header: string]: string } = {
2019
- 'content-type': 'application/json',
2020
1835
  }
2021
1836
 
2022
- payload['project'] = this.client.config.project;
2023
-
2024
-
2025
- return await this.client.call(
1837
+ return this.client.call(
2026
1838
  'get',
2027
1839
  uri,
2028
1840
  apiHeaders,
@@ -2030,8 +1842,6 @@ export class Messaging {
2030
1842
  );
2031
1843
  }
2032
1844
  /**
2033
- * List topics
2034
- *
2035
1845
  * Get a list of all topics from the current Appwrite project.
2036
1846
  *
2037
1847
  * @param {string[]} queries
@@ -2039,7 +1849,7 @@ export class Messaging {
2039
1849
  * @throws {AppwriteException}
2040
1850
  * @returns {Promise<Models.TopicList>}
2041
1851
  */
2042
- async listTopics(queries?: string[], search?: string): Promise<Models.TopicList> {
1852
+ listTopics(queries?: string[], search?: string): Promise<Models.TopicList> {
2043
1853
  const apiPath = '/messaging/topics';
2044
1854
  const payload: Payload = {};
2045
1855
  if (typeof queries !== 'undefined') {
@@ -2051,13 +1861,9 @@ export class Messaging {
2051
1861
  const uri = new URL(this.client.config.endpoint + apiPath);
2052
1862
 
2053
1863
  const apiHeaders: { [header: string]: string } = {
2054
- 'content-type': 'application/json',
2055
1864
  }
2056
1865
 
2057
- payload['project'] = this.client.config.project;
2058
-
2059
-
2060
- return await this.client.call(
1866
+ return this.client.call(
2061
1867
  'get',
2062
1868
  uri,
2063
1869
  apiHeaders,
@@ -2065,8 +1871,6 @@ export class Messaging {
2065
1871
  );
2066
1872
  }
2067
1873
  /**
2068
- * Create topic
2069
- *
2070
1874
  * Create a new topic.
2071
1875
  *
2072
1876
  * @param {string} topicId
@@ -2075,7 +1879,7 @@ export class Messaging {
2075
1879
  * @throws {AppwriteException}
2076
1880
  * @returns {Promise<Models.Topic>}
2077
1881
  */
2078
- async createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic> {
1882
+ createTopic(topicId: string, name: string, subscribe?: string[]): Promise<Models.Topic> {
2079
1883
  if (typeof topicId === 'undefined') {
2080
1884
  throw new AppwriteException('Missing required parameter: "topicId"');
2081
1885
  }
@@ -2099,10 +1903,7 @@ export class Messaging {
2099
1903
  'content-type': 'application/json',
2100
1904
  }
2101
1905
 
2102
- payload['project'] = this.client.config.project;
2103
-
2104
-
2105
- return await this.client.call(
1906
+ return this.client.call(
2106
1907
  'post',
2107
1908
  uri,
2108
1909
  apiHeaders,
@@ -2110,8 +1911,6 @@ export class Messaging {
2110
1911
  );
2111
1912
  }
2112
1913
  /**
2113
- * Get topic
2114
- *
2115
1914
  * Get a topic by its unique ID.
2116
1915
 
2117
1916
  *
@@ -2119,7 +1918,7 @@ export class Messaging {
2119
1918
  * @throws {AppwriteException}
2120
1919
  * @returns {Promise<Models.Topic>}
2121
1920
  */
2122
- async getTopic(topicId: string): Promise<Models.Topic> {
1921
+ getTopic(topicId: string): Promise<Models.Topic> {
2123
1922
  if (typeof topicId === 'undefined') {
2124
1923
  throw new AppwriteException('Missing required parameter: "topicId"');
2125
1924
  }
@@ -2128,13 +1927,9 @@ export class Messaging {
2128
1927
  const uri = new URL(this.client.config.endpoint + apiPath);
2129
1928
 
2130
1929
  const apiHeaders: { [header: string]: string } = {
2131
- 'content-type': 'application/json',
2132
1930
  }
2133
1931
 
2134
- payload['project'] = this.client.config.project;
2135
-
2136
-
2137
- return await this.client.call(
1932
+ return this.client.call(
2138
1933
  'get',
2139
1934
  uri,
2140
1935
  apiHeaders,
@@ -2142,8 +1937,6 @@ export class Messaging {
2142
1937
  );
2143
1938
  }
2144
1939
  /**
2145
- * Update topic
2146
- *
2147
1940
  * Update a topic by its unique ID.
2148
1941
 
2149
1942
  *
@@ -2153,7 +1946,7 @@ export class Messaging {
2153
1946
  * @throws {AppwriteException}
2154
1947
  * @returns {Promise<Models.Topic>}
2155
1948
  */
2156
- async updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic> {
1949
+ updateTopic(topicId: string, name?: string, subscribe?: string[]): Promise<Models.Topic> {
2157
1950
  if (typeof topicId === 'undefined') {
2158
1951
  throw new AppwriteException('Missing required parameter: "topicId"');
2159
1952
  }
@@ -2171,10 +1964,7 @@ export class Messaging {
2171
1964
  'content-type': 'application/json',
2172
1965
  }
2173
1966
 
2174
- payload['project'] = this.client.config.project;
2175
-
2176
-
2177
- return await this.client.call(
1967
+ return this.client.call(
2178
1968
  'patch',
2179
1969
  uri,
2180
1970
  apiHeaders,
@@ -2182,15 +1972,13 @@ export class Messaging {
2182
1972
  );
2183
1973
  }
2184
1974
  /**
2185
- * Delete topic
2186
- *
2187
1975
  * Delete a topic by its unique ID.
2188
1976
  *
2189
1977
  * @param {string} topicId
2190
1978
  * @throws {AppwriteException}
2191
1979
  * @returns {Promise<{}>}
2192
1980
  */
2193
- async deleteTopic(topicId: string): Promise<{}> {
1981
+ deleteTopic(topicId: string): Promise<{}> {
2194
1982
  if (typeof topicId === 'undefined') {
2195
1983
  throw new AppwriteException('Missing required parameter: "topicId"');
2196
1984
  }
@@ -2202,10 +1990,7 @@ export class Messaging {
2202
1990
  'content-type': 'application/json',
2203
1991
  }
2204
1992
 
2205
- payload['project'] = this.client.config.project;
2206
-
2207
-
2208
- return await this.client.call(
1993
+ return this.client.call(
2209
1994
  'delete',
2210
1995
  uri,
2211
1996
  apiHeaders,
@@ -2213,8 +1998,6 @@ export class Messaging {
2213
1998
  );
2214
1999
  }
2215
2000
  /**
2216
- * List topic logs
2217
- *
2218
2001
  * Get the topic activity logs listed by its unique ID.
2219
2002
  *
2220
2003
  * @param {string} topicId
@@ -2222,7 +2005,7 @@ export class Messaging {
2222
2005
  * @throws {AppwriteException}
2223
2006
  * @returns {Promise<Models.LogList>}
2224
2007
  */
2225
- async listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList> {
2008
+ listTopicLogs(topicId: string, queries?: string[]): Promise<Models.LogList> {
2226
2009
  if (typeof topicId === 'undefined') {
2227
2010
  throw new AppwriteException('Missing required parameter: "topicId"');
2228
2011
  }
@@ -2234,13 +2017,9 @@ export class Messaging {
2234
2017
  const uri = new URL(this.client.config.endpoint + apiPath);
2235
2018
 
2236
2019
  const apiHeaders: { [header: string]: string } = {
2237
- 'content-type': 'application/json',
2238
2020
  }
2239
2021
 
2240
- payload['project'] = this.client.config.project;
2241
-
2242
-
2243
- return await this.client.call(
2022
+ return this.client.call(
2244
2023
  'get',
2245
2024
  uri,
2246
2025
  apiHeaders,
@@ -2248,8 +2027,6 @@ export class Messaging {
2248
2027
  );
2249
2028
  }
2250
2029
  /**
2251
- * List subscribers
2252
- *
2253
2030
  * Get a list of all subscribers from the current Appwrite project.
2254
2031
  *
2255
2032
  * @param {string} topicId
@@ -2258,7 +2035,7 @@ export class Messaging {
2258
2035
  * @throws {AppwriteException}
2259
2036
  * @returns {Promise<Models.SubscriberList>}
2260
2037
  */
2261
- async listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList> {
2038
+ listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList> {
2262
2039
  if (typeof topicId === 'undefined') {
2263
2040
  throw new AppwriteException('Missing required parameter: "topicId"');
2264
2041
  }
@@ -2273,13 +2050,9 @@ export class Messaging {
2273
2050
  const uri = new URL(this.client.config.endpoint + apiPath);
2274
2051
 
2275
2052
  const apiHeaders: { [header: string]: string } = {
2276
- 'content-type': 'application/json',
2277
2053
  }
2278
2054
 
2279
- payload['project'] = this.client.config.project;
2280
-
2281
-
2282
- return await this.client.call(
2055
+ return this.client.call(
2283
2056
  'get',
2284
2057
  uri,
2285
2058
  apiHeaders,
@@ -2287,8 +2060,6 @@ export class Messaging {
2287
2060
  );
2288
2061
  }
2289
2062
  /**
2290
- * Create subscriber
2291
- *
2292
2063
  * Create a new subscriber.
2293
2064
  *
2294
2065
  * @param {string} topicId
@@ -2297,7 +2068,7 @@ export class Messaging {
2297
2068
  * @throws {AppwriteException}
2298
2069
  * @returns {Promise<Models.Subscriber>}
2299
2070
  */
2300
- async createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
2071
+ createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber> {
2301
2072
  if (typeof topicId === 'undefined') {
2302
2073
  throw new AppwriteException('Missing required parameter: "topicId"');
2303
2074
  }
@@ -2321,10 +2092,7 @@ export class Messaging {
2321
2092
  'content-type': 'application/json',
2322
2093
  }
2323
2094
 
2324
- payload['project'] = this.client.config.project;
2325
-
2326
-
2327
- return await this.client.call(
2095
+ return this.client.call(
2328
2096
  'post',
2329
2097
  uri,
2330
2098
  apiHeaders,
@@ -2332,8 +2100,6 @@ export class Messaging {
2332
2100
  );
2333
2101
  }
2334
2102
  /**
2335
- * Get subscriber
2336
- *
2337
2103
  * Get a subscriber by its unique ID.
2338
2104
 
2339
2105
  *
@@ -2342,7 +2108,7 @@ export class Messaging {
2342
2108
  * @throws {AppwriteException}
2343
2109
  * @returns {Promise<Models.Subscriber>}
2344
2110
  */
2345
- async getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber> {
2111
+ getSubscriber(topicId: string, subscriberId: string): Promise<Models.Subscriber> {
2346
2112
  if (typeof topicId === 'undefined') {
2347
2113
  throw new AppwriteException('Missing required parameter: "topicId"');
2348
2114
  }
@@ -2354,13 +2120,9 @@ export class Messaging {
2354
2120
  const uri = new URL(this.client.config.endpoint + apiPath);
2355
2121
 
2356
2122
  const apiHeaders: { [header: string]: string } = {
2357
- 'content-type': 'application/json',
2358
2123
  }
2359
2124
 
2360
- payload['project'] = this.client.config.project;
2361
-
2362
-
2363
- return await this.client.call(
2125
+ return this.client.call(
2364
2126
  'get',
2365
2127
  uri,
2366
2128
  apiHeaders,
@@ -2368,8 +2130,6 @@ export class Messaging {
2368
2130
  );
2369
2131
  }
2370
2132
  /**
2371
- * Delete subscriber
2372
- *
2373
2133
  * Delete a subscriber by its unique ID.
2374
2134
  *
2375
2135
  * @param {string} topicId
@@ -2377,7 +2137,7 @@ export class Messaging {
2377
2137
  * @throws {AppwriteException}
2378
2138
  * @returns {Promise<{}>}
2379
2139
  */
2380
- async deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
2140
+ deleteSubscriber(topicId: string, subscriberId: string): Promise<{}> {
2381
2141
  if (typeof topicId === 'undefined') {
2382
2142
  throw new AppwriteException('Missing required parameter: "topicId"');
2383
2143
  }
@@ -2392,10 +2152,7 @@ export class Messaging {
2392
2152
  'content-type': 'application/json',
2393
2153
  }
2394
2154
 
2395
- payload['project'] = this.client.config.project;
2396
-
2397
-
2398
- return await this.client.call(
2155
+ return this.client.call(
2399
2156
  'delete',
2400
2157
  uri,
2401
2158
  apiHeaders,