@appwrite.io/console 0.6.0-rc.9 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (449) hide show
  1. package/.travis.yml +32 -0
  2. package/README.md +5 -5
  3. package/dist/cjs/sdk.js +1140 -418
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +1141 -419
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +1140 -418
  8. package/docs/examples/account/create-anonymous-session.md +6 -13
  9. package/docs/examples/account/create-email-password-session.md +9 -13
  10. package/docs/examples/account/create-email-token.md +10 -13
  11. package/docs/examples/account/create-j-w-t.md +6 -13
  12. package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
  13. package/docs/examples/account/create-mfa-authenticator.md +13 -0
  14. package/docs/examples/account/create-mfa-challenge.md +13 -0
  15. package/docs/examples/account/create-mfa-recovery-codes.md +11 -0
  16. package/docs/examples/account/create-o-auth2session.md +10 -9
  17. package/docs/examples/account/create-o-auth2token.md +15 -0
  18. package/docs/examples/account/create-phone-token.md +9 -13
  19. package/docs/examples/account/create-phone-verification.md +6 -13
  20. package/docs/examples/account/create-push-target.md +10 -13
  21. package/docs/examples/account/create-recovery.md +9 -13
  22. package/docs/examples/account/create-session.md +9 -13
  23. package/docs/examples/account/create-verification.md +8 -13
  24. package/docs/examples/account/create.md +11 -13
  25. package/docs/examples/account/delete-identity.md +8 -13
  26. package/docs/examples/account/delete-mfa-authenticator.md +14 -0
  27. package/docs/examples/account/delete-push-target.md +8 -13
  28. package/docs/examples/account/delete-session.md +8 -13
  29. package/docs/examples/account/delete-sessions.md +6 -13
  30. package/docs/examples/account/delete.md +6 -13
  31. package/docs/examples/account/get-mfa-recovery-codes.md +11 -0
  32. package/docs/examples/account/get-prefs.md +6 -13
  33. package/docs/examples/account/get-session.md +8 -13
  34. package/docs/examples/account/get.md +6 -13
  35. package/docs/examples/account/list-identities.md +8 -13
  36. package/docs/examples/account/list-logs.md +8 -13
  37. package/docs/examples/account/list-mfa-factors.md +11 -0
  38. package/docs/examples/account/list-sessions.md +6 -13
  39. package/docs/examples/account/update-email.md +9 -13
  40. package/docs/examples/account/update-m-f-a.md +8 -13
  41. package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
  42. package/docs/examples/account/update-mfa-authenticator.md +14 -0
  43. package/docs/examples/account/update-mfa-challenge.md +14 -0
  44. package/docs/examples/account/update-mfa-recovery-codes.md +11 -0
  45. package/docs/examples/account/update-name.md +8 -13
  46. package/docs/examples/account/update-password.md +9 -13
  47. package/docs/examples/account/update-phone-session.md +14 -0
  48. package/docs/examples/account/update-phone-verification.md +9 -13
  49. package/docs/examples/account/update-phone.md +9 -13
  50. package/docs/examples/account/update-prefs.md +8 -13
  51. package/docs/examples/account/update-push-target.md +9 -13
  52. package/docs/examples/account/update-recovery.md +10 -13
  53. package/docs/examples/account/update-session.md +8 -13
  54. package/docs/examples/account/update-status.md +6 -13
  55. package/docs/examples/account/update-verification.md +9 -13
  56. package/docs/examples/assistant/chat.md +8 -13
  57. package/docs/examples/avatars/get-browser.md +11 -9
  58. package/docs/examples/avatars/get-credit-card.md +11 -9
  59. package/docs/examples/avatars/get-favicon.md +8 -9
  60. package/docs/examples/avatars/get-flag.md +11 -9
  61. package/docs/examples/avatars/get-image.md +10 -9
  62. package/docs/examples/avatars/get-initials.md +11 -9
  63. package/docs/examples/avatars/get-q-r.md +11 -9
  64. package/docs/examples/console/variables.md +6 -13
  65. package/docs/examples/databases/create-boolean-attribute.md +13 -13
  66. package/docs/examples/databases/create-collection.md +13 -13
  67. package/docs/examples/databases/create-datetime-attribute.md +13 -13
  68. package/docs/examples/databases/create-document.md +12 -13
  69. package/docs/examples/databases/create-email-attribute.md +13 -13
  70. package/docs/examples/databases/create-enum-attribute.md +14 -13
  71. package/docs/examples/databases/create-float-attribute.md +15 -13
  72. package/docs/examples/databases/create-index.md +13 -13
  73. package/docs/examples/databases/create-integer-attribute.md +15 -13
  74. package/docs/examples/databases/create-ip-attribute.md +13 -13
  75. package/docs/examples/databases/create-relationship-attribute.md +15 -13
  76. package/docs/examples/databases/create-string-attribute.md +15 -13
  77. package/docs/examples/databases/create-url-attribute.md +13 -13
  78. package/docs/examples/databases/create.md +10 -13
  79. package/docs/examples/databases/delete-attribute.md +10 -13
  80. package/docs/examples/databases/delete-collection.md +9 -13
  81. package/docs/examples/databases/delete-document.md +10 -13
  82. package/docs/examples/databases/delete-index.md +10 -13
  83. package/docs/examples/databases/delete.md +8 -13
  84. package/docs/examples/databases/get-attribute.md +10 -13
  85. package/docs/examples/databases/get-collection-usage.md +10 -13
  86. package/docs/examples/databases/get-collection.md +9 -13
  87. package/docs/examples/databases/get-database-usage.md +9 -13
  88. package/docs/examples/databases/get-document.md +11 -13
  89. package/docs/examples/databases/get-index.md +10 -13
  90. package/docs/examples/databases/get-usage.md +8 -13
  91. package/docs/examples/databases/get.md +8 -13
  92. package/docs/examples/databases/list-attributes.md +10 -13
  93. package/docs/examples/databases/list-collection-logs.md +10 -13
  94. package/docs/examples/databases/list-collections.md +10 -13
  95. package/docs/examples/databases/list-document-logs.md +11 -13
  96. package/docs/examples/databases/list-documents.md +10 -13
  97. package/docs/examples/databases/list-indexes.md +10 -13
  98. package/docs/examples/databases/list-logs.md +9 -13
  99. package/docs/examples/databases/list.md +9 -13
  100. package/docs/examples/databases/update-boolean-attribute.md +12 -13
  101. package/docs/examples/databases/update-collection.md +13 -13
  102. package/docs/examples/databases/update-datetime-attribute.md +12 -13
  103. package/docs/examples/databases/update-document.md +12 -13
  104. package/docs/examples/databases/update-email-attribute.md +12 -13
  105. package/docs/examples/databases/update-enum-attribute.md +13 -13
  106. package/docs/examples/databases/update-float-attribute.md +14 -13
  107. package/docs/examples/databases/update-integer-attribute.md +14 -13
  108. package/docs/examples/databases/update-ip-attribute.md +12 -13
  109. package/docs/examples/databases/update-relationship-attribute.md +11 -13
  110. package/docs/examples/databases/update-string-attribute.md +12 -13
  111. package/docs/examples/databases/update-url-attribute.md +12 -13
  112. package/docs/examples/databases/update.md +10 -13
  113. package/docs/examples/functions/create-build.md +10 -13
  114. package/docs/examples/functions/create-deployment.md +12 -13
  115. package/docs/examples/functions/create-execution.md +13 -13
  116. package/docs/examples/functions/create-variable.md +10 -13
  117. package/docs/examples/functions/create.md +27 -13
  118. package/docs/examples/functions/delete-deployment.md +9 -13
  119. package/docs/examples/functions/delete-variable.md +9 -13
  120. package/docs/examples/functions/delete.md +8 -13
  121. package/docs/examples/functions/download-deployment.md +9 -9
  122. package/docs/examples/functions/get-deployment.md +9 -13
  123. package/docs/examples/functions/get-execution.md +9 -13
  124. package/docs/examples/functions/get-function-usage.md +9 -13
  125. package/docs/examples/functions/get-usage.md +8 -13
  126. package/docs/examples/functions/get-variable.md +9 -13
  127. package/docs/examples/functions/get.md +8 -13
  128. package/docs/examples/functions/list-deployments.md +10 -13
  129. package/docs/examples/functions/list-executions.md +10 -13
  130. package/docs/examples/functions/list-runtimes.md +6 -13
  131. package/docs/examples/functions/list-variables.md +8 -13
  132. package/docs/examples/functions/list.md +9 -13
  133. package/docs/examples/functions/update-deployment.md +9 -13
  134. package/docs/examples/functions/update-variable.md +11 -13
  135. package/docs/examples/functions/update.md +23 -13
  136. package/docs/examples/graphql/mutation.md +8 -13
  137. package/docs/examples/graphql/query.md +8 -13
  138. package/docs/examples/health/get-antivirus.md +6 -13
  139. package/docs/examples/health/get-cache.md +6 -13
  140. package/docs/examples/health/get-certificate.md +13 -0
  141. package/docs/examples/health/get-d-b.md +6 -13
  142. package/docs/examples/health/get-failed-jobs.md +14 -0
  143. package/docs/examples/health/get-pub-sub.md +6 -13
  144. package/docs/examples/health/get-queue-builds.md +8 -13
  145. package/docs/examples/health/get-queue-certificates.md +8 -13
  146. package/docs/examples/health/get-queue-databases.md +9 -13
  147. package/docs/examples/health/get-queue-deletes.md +8 -13
  148. package/docs/examples/health/get-queue-functions.md +8 -13
  149. package/docs/examples/health/get-queue-logs.md +8 -13
  150. package/docs/examples/health/get-queue-mails.md +8 -13
  151. package/docs/examples/health/get-queue-messaging.md +8 -13
  152. package/docs/examples/health/get-queue-migrations.md +8 -13
  153. package/docs/examples/health/get-queue-usage-dump.md +13 -0
  154. package/docs/examples/health/get-queue-usage.md +13 -0
  155. package/docs/examples/health/get-queue-webhooks.md +8 -13
  156. package/docs/examples/health/get-queue.md +6 -13
  157. package/docs/examples/health/get-storage-local.md +6 -13
  158. package/docs/examples/health/get-storage.md +11 -0
  159. package/docs/examples/health/get-time.md +6 -13
  160. package/docs/examples/health/get.md +6 -13
  161. package/docs/examples/locale/get.md +6 -13
  162. package/docs/examples/locale/list-codes.md +6 -13
  163. package/docs/examples/locale/list-continents.md +6 -13
  164. package/docs/examples/locale/list-countries-e-u.md +6 -13
  165. package/docs/examples/locale/list-countries-phones.md +6 -13
  166. package/docs/examples/locale/list-countries.md +6 -13
  167. package/docs/examples/locale/list-currencies.md +6 -13
  168. package/docs/examples/locale/list-languages.md +6 -13
  169. package/docs/examples/messaging/create-apns-provider.md +20 -0
  170. package/docs/examples/messaging/create-email.md +19 -13
  171. package/docs/examples/messaging/create-fcm-provider.md +16 -0
  172. package/docs/examples/messaging/create-mailgun-provider.md +17 -13
  173. package/docs/examples/messaging/create-msg91provider.md +13 -13
  174. package/docs/examples/messaging/create-push.md +23 -13
  175. package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
  176. package/docs/examples/messaging/create-sms.md +19 -0
  177. package/docs/examples/messaging/create-smtp-provider.md +26 -0
  178. package/docs/examples/messaging/create-subscriber.md +10 -13
  179. package/docs/examples/messaging/create-telesign-provider.md +13 -13
  180. package/docs/examples/messaging/create-textmagic-provider.md +13 -13
  181. package/docs/examples/messaging/create-topic.md +10 -13
  182. package/docs/examples/messaging/create-twilio-provider.md +13 -13
  183. package/docs/examples/messaging/create-vonage-provider.md +13 -13
  184. package/docs/examples/messaging/delete-provider.md +8 -13
  185. package/docs/examples/messaging/delete-subscriber.md +9 -13
  186. package/docs/examples/messaging/delete-topic.md +8 -13
  187. package/docs/examples/messaging/delete.md +8 -13
  188. package/docs/examples/messaging/get-message.md +8 -13
  189. package/docs/examples/messaging/get-provider.md +8 -13
  190. package/docs/examples/messaging/get-subscriber.md +9 -13
  191. package/docs/examples/messaging/get-topic.md +8 -13
  192. package/docs/examples/messaging/list-message-logs.md +9 -13
  193. package/docs/examples/messaging/list-messages.md +9 -13
  194. package/docs/examples/messaging/list-provider-logs.md +9 -13
  195. package/docs/examples/messaging/list-providers.md +9 -13
  196. package/docs/examples/messaging/list-subscriber-logs.md +9 -13
  197. package/docs/examples/messaging/list-subscribers.md +10 -13
  198. package/docs/examples/messaging/list-targets.md +9 -13
  199. package/docs/examples/messaging/list-topic-logs.md +9 -13
  200. package/docs/examples/messaging/list-topics.md +9 -13
  201. package/docs/examples/messaging/update-apns-provider.md +20 -0
  202. package/docs/examples/messaging/update-email.md +18 -13
  203. package/docs/examples/messaging/update-fcm-provider.md +16 -0
  204. package/docs/examples/messaging/update-mailgun-provider.md +17 -13
  205. package/docs/examples/messaging/update-msg91provider.md +13 -13
  206. package/docs/examples/messaging/update-push.md +23 -13
  207. package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
  208. package/docs/examples/messaging/update-sms.md +19 -0
  209. package/docs/examples/messaging/update-smtp-provider.md +26 -0
  210. package/docs/examples/messaging/update-telesign-provider.md +13 -13
  211. package/docs/examples/messaging/update-textmagic-provider.md +13 -13
  212. package/docs/examples/messaging/update-topic.md +10 -13
  213. package/docs/examples/messaging/update-twilio-provider.md +13 -13
  214. package/docs/examples/messaging/update-vonage-provider.md +13 -13
  215. package/docs/examples/migrations/create-appwrite-migration.md +11 -13
  216. package/docs/examples/migrations/create-firebase-migration.md +9 -13
  217. package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
  218. package/docs/examples/migrations/create-n-host-migration.md +15 -13
  219. package/docs/examples/migrations/create-supabase-migration.md +14 -13
  220. package/docs/examples/migrations/delete-firebase-auth.md +6 -13
  221. package/docs/examples/migrations/delete.md +8 -13
  222. package/docs/examples/migrations/get-appwrite-report.md +11 -13
  223. package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
  224. package/docs/examples/migrations/get-firebase-report.md +9 -13
  225. package/docs/examples/migrations/get-n-host-report.md +15 -13
  226. package/docs/examples/migrations/get-supabase-report.md +14 -13
  227. package/docs/examples/migrations/get.md +8 -13
  228. package/docs/examples/migrations/list-firebase-projects.md +6 -13
  229. package/docs/examples/migrations/list.md +9 -13
  230. package/docs/examples/migrations/retry.md +8 -13
  231. package/docs/examples/project/create-variable.md +9 -13
  232. package/docs/examples/project/delete-variable.md +8 -13
  233. package/docs/examples/project/get-usage.md +10 -13
  234. package/docs/examples/project/get-variable.md +8 -13
  235. package/docs/examples/project/list-variables.md +6 -13
  236. package/docs/examples/project/update-variable.md +10 -13
  237. package/docs/examples/projects/create-key.md +11 -13
  238. package/docs/examples/projects/create-platform.md +13 -13
  239. package/docs/examples/projects/create-smtp-test.md +17 -13
  240. package/docs/examples/projects/create-webhook.md +15 -13
  241. package/docs/examples/projects/create.md +20 -13
  242. package/docs/examples/projects/delete-email-template.md +10 -13
  243. package/docs/examples/projects/delete-key.md +9 -13
  244. package/docs/examples/projects/delete-platform.md +9 -13
  245. package/docs/examples/projects/delete-sms-template.md +10 -13
  246. package/docs/examples/projects/delete-webhook.md +9 -13
  247. package/docs/examples/projects/delete.md +8 -13
  248. package/docs/examples/projects/get-email-template.md +10 -13
  249. package/docs/examples/projects/get-key.md +9 -13
  250. package/docs/examples/projects/get-platform.md +9 -13
  251. package/docs/examples/projects/get-sms-template.md +10 -13
  252. package/docs/examples/projects/get-webhook.md +9 -13
  253. package/docs/examples/projects/get.md +8 -13
  254. package/docs/examples/projects/list-keys.md +8 -13
  255. package/docs/examples/projects/list-platforms.md +8 -13
  256. package/docs/examples/projects/list-webhooks.md +8 -13
  257. package/docs/examples/projects/list.md +9 -13
  258. package/docs/examples/projects/update-api-status-all.md +14 -0
  259. package/docs/examples/projects/update-api-status.md +15 -0
  260. package/docs/examples/projects/update-auth-duration.md +9 -13
  261. package/docs/examples/projects/update-auth-limit.md +9 -13
  262. package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
  263. package/docs/examples/projects/update-auth-password-history.md +9 -13
  264. package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
  265. package/docs/examples/projects/update-auth-status.md +10 -13
  266. package/docs/examples/projects/update-email-template.md +15 -13
  267. package/docs/examples/projects/update-key.md +12 -13
  268. package/docs/examples/projects/update-o-auth2.md +12 -13
  269. package/docs/examples/projects/update-personal-data-check.md +9 -13
  270. package/docs/examples/projects/update-platform.md +13 -13
  271. package/docs/examples/projects/update-service-status-all.md +9 -13
  272. package/docs/examples/projects/update-service-status.md +10 -13
  273. package/docs/examples/projects/update-sms-template.md +11 -13
  274. package/docs/examples/projects/update-smtp.md +17 -13
  275. package/docs/examples/projects/update-team.md +9 -13
  276. package/docs/examples/projects/update-webhook-signature.md +9 -13
  277. package/docs/examples/projects/update-webhook.md +16 -13
  278. package/docs/examples/projects/update.md +18 -13
  279. package/docs/examples/proxy/create-rule.md +10 -13
  280. package/docs/examples/proxy/delete-rule.md +8 -13
  281. package/docs/examples/proxy/get-rule.md +8 -13
  282. package/docs/examples/proxy/list-rules.md +9 -13
  283. package/docs/examples/proxy/update-rule-verification.md +8 -13
  284. package/docs/examples/storage/create-bucket.md +17 -13
  285. package/docs/examples/storage/create-file.md +11 -13
  286. package/docs/examples/storage/delete-bucket.md +8 -13
  287. package/docs/examples/storage/delete-file.md +9 -13
  288. package/docs/examples/storage/get-bucket-usage.md +9 -13
  289. package/docs/examples/storage/get-bucket.md +8 -13
  290. package/docs/examples/storage/get-file-download.md +9 -9
  291. package/docs/examples/storage/get-file-preview.md +20 -9
  292. package/docs/examples/storage/get-file-view.md +9 -9
  293. package/docs/examples/storage/get-file.md +9 -13
  294. package/docs/examples/storage/get-usage.md +8 -13
  295. package/docs/examples/storage/list-buckets.md +9 -13
  296. package/docs/examples/storage/list-files.md +10 -13
  297. package/docs/examples/storage/update-bucket.md +17 -13
  298. package/docs/examples/storage/update-file.md +11 -13
  299. package/docs/examples/teams/create-membership.md +14 -13
  300. package/docs/examples/teams/create.md +10 -13
  301. package/docs/examples/teams/delete-membership.md +9 -13
  302. package/docs/examples/teams/delete.md +8 -13
  303. package/docs/examples/teams/get-membership.md +9 -13
  304. package/docs/examples/teams/get-prefs.md +8 -13
  305. package/docs/examples/teams/get.md +8 -13
  306. package/docs/examples/teams/list-logs.md +9 -13
  307. package/docs/examples/teams/list-memberships.md +10 -13
  308. package/docs/examples/teams/list.md +9 -13
  309. package/docs/examples/teams/update-membership-status.md +11 -13
  310. package/docs/examples/teams/update-membership.md +10 -13
  311. package/docs/examples/teams/update-name.md +9 -13
  312. package/docs/examples/teams/update-prefs.md +9 -13
  313. package/docs/examples/users/create-argon2user.md +11 -13
  314. package/docs/examples/users/create-bcrypt-user.md +11 -13
  315. package/docs/examples/users/create-m-d5user.md +11 -13
  316. package/docs/examples/users/create-mfa-recovery-codes.md +13 -0
  317. package/docs/examples/users/create-p-h-pass-user.md +11 -13
  318. package/docs/examples/users/create-s-h-a-user.md +12 -13
  319. package/docs/examples/users/create-scrypt-modified-user.md +14 -13
  320. package/docs/examples/users/create-scrypt-user.md +16 -13
  321. package/docs/examples/users/create-session.md +8 -13
  322. package/docs/examples/users/create-target.md +13 -13
  323. package/docs/examples/users/create-token.md +10 -13
  324. package/docs/examples/users/create.md +12 -13
  325. package/docs/examples/users/delete-identity.md +8 -13
  326. package/docs/examples/users/delete-mfa-authenticator.md +14 -0
  327. package/docs/examples/users/delete-session.md +9 -13
  328. package/docs/examples/users/delete-sessions.md +8 -13
  329. package/docs/examples/users/delete-target.md +9 -13
  330. package/docs/examples/users/delete.md +8 -13
  331. package/docs/examples/users/get-mfa-recovery-codes.md +13 -0
  332. package/docs/examples/users/get-prefs.md +8 -13
  333. package/docs/examples/users/get-target.md +9 -13
  334. package/docs/examples/users/get-usage.md +8 -13
  335. package/docs/examples/users/get.md +8 -13
  336. package/docs/examples/users/list-identities.md +9 -13
  337. package/docs/examples/users/list-logs.md +9 -13
  338. package/docs/examples/users/list-memberships.md +8 -13
  339. package/docs/examples/users/list-mfa-factors.md +13 -0
  340. package/docs/examples/users/list-sessions.md +8 -13
  341. package/docs/examples/users/list-targets.md +9 -13
  342. package/docs/examples/users/list.md +9 -13
  343. package/docs/examples/users/update-email-verification.md +9 -13
  344. package/docs/examples/users/update-email.md +9 -13
  345. package/docs/examples/users/update-labels.md +9 -13
  346. package/docs/examples/users/update-mfa-recovery-codes.md +13 -0
  347. package/docs/examples/users/update-mfa.md +9 -13
  348. package/docs/examples/users/update-name.md +9 -13
  349. package/docs/examples/users/update-password.md +9 -13
  350. package/docs/examples/users/update-phone-verification.md +9 -13
  351. package/docs/examples/users/update-phone.md +9 -13
  352. package/docs/examples/users/update-prefs.md +9 -13
  353. package/docs/examples/users/update-status.md +9 -13
  354. package/docs/examples/users/update-target.md +12 -13
  355. package/docs/examples/vcs/create-repository-detection.md +10 -13
  356. package/docs/examples/vcs/create-repository.md +10 -13
  357. package/docs/examples/vcs/delete-installation.md +8 -13
  358. package/docs/examples/vcs/get-installation.md +8 -13
  359. package/docs/examples/vcs/get-repository.md +9 -13
  360. package/docs/examples/vcs/list-installations.md +9 -13
  361. package/docs/examples/vcs/list-repositories.md +9 -13
  362. package/docs/examples/vcs/list-repository-branches.md +9 -13
  363. package/docs/examples/vcs/update-external-deployments.md +10 -13
  364. package/package.json +1 -1
  365. package/src/client.ts +3 -3
  366. package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
  367. package/src/enums/api.ts +5 -0
  368. package/src/enums/authentication-factor.ts +6 -0
  369. package/src/enums/authenticator-type.ts +3 -0
  370. package/src/enums/email-template-locale.ts +133 -0
  371. package/src/enums/email-template-type.ts +7 -0
  372. package/src/enums/index-type.ts +0 -1
  373. package/src/enums/name.ts +15 -0
  374. package/src/enums/{password-version.ts → password-hash.ts} +1 -1
  375. package/src/enums/region.ts +1 -0
  376. package/src/enums/runtime.ts +40 -0
  377. package/src/enums/{template-locale.ts → sms-template-locale.ts} +1 -1
  378. package/src/enums/{template-type.ts → sms-template-type.ts} +2 -1
  379. package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
  380. package/src/index.ts +11 -8
  381. package/src/models.ts +57 -19
  382. package/src/query.ts +2 -2
  383. package/src/service.ts +0 -3
  384. package/src/services/account.ts +239 -66
  385. package/src/services/assistant.ts +0 -1
  386. package/src/services/avatars.ts +0 -1
  387. package/src/services/console.ts +0 -1
  388. package/src/services/databases.ts +20 -4
  389. package/src/services/functions.ts +0 -1
  390. package/src/services/graphql.ts +0 -1
  391. package/src/services/health.ts +121 -1
  392. package/src/services/locale.ts +0 -1
  393. package/src/services/messaging.ts +161 -70
  394. package/src/services/migrations.ts +0 -1
  395. package/src/services/project.ts +1 -2
  396. package/src/services/projects.ts +97 -24
  397. package/src/services/proxy.ts +0 -1
  398. package/src/services/storage.ts +2 -3
  399. package/src/services/teams.ts +0 -1
  400. package/src/services/users.ts +115 -39
  401. package/src/services/vcs.ts +0 -1
  402. package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
  403. package/types/enums/api.d.ts +5 -0
  404. package/types/enums/authentication-factor.d.ts +6 -0
  405. package/types/enums/authenticator-type.d.ts +3 -0
  406. package/types/enums/email-template-locale.d.ts +133 -0
  407. package/types/enums/email-template-type.d.ts +7 -0
  408. package/types/enums/index-type.d.ts +1 -2
  409. package/types/enums/name.d.ts +15 -0
  410. package/types/enums/{password-version.d.ts → password-hash.d.ts} +1 -1
  411. package/types/enums/region.d.ts +2 -1
  412. package/types/enums/runtime.d.ts +41 -1
  413. package/types/enums/{template-locale.d.ts → sms-template-locale.d.ts} +1 -1
  414. package/types/enums/sms-template-type.d.ts +6 -0
  415. package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
  416. package/types/index.d.ts +11 -8
  417. package/types/models.d.ts +57 -19
  418. package/types/query.d.ts +2 -2
  419. package/types/services/account.d.ts +121 -28
  420. package/types/services/databases.d.ts +20 -3
  421. package/types/services/health.d.ts +56 -0
  422. package/types/services/messaging.d.ts +109 -49
  423. package/types/services/project.d.ts +1 -1
  424. package/types/services/projects.d.ts +47 -23
  425. package/types/services/storage.d.ts +2 -2
  426. package/types/services/users.d.ts +63 -17
  427. package/docs/examples/account/add-authenticator.md +0 -18
  428. package/docs/examples/account/create-challenge.md +0 -18
  429. package/docs/examples/account/delete-authenticator.md +0 -18
  430. package/docs/examples/account/list-factors.md +0 -18
  431. package/docs/examples/account/update-challenge.md +0 -18
  432. package/docs/examples/account/verify-authenticator.md +0 -18
  433. package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
  434. package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
  435. package/docs/examples/messaging/create-s-m-s.md +0 -18
  436. package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
  437. package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
  438. package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
  439. package/docs/examples/messaging/update-s-m-s.md +0 -18
  440. package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
  441. package/docs/examples/users/delete-authenticator.md +0 -18
  442. package/docs/examples/users/list-providers.md +0 -18
  443. package/src/enums/authenticator-factor.ts +0 -3
  444. package/src/enums/authenticator-provider.ts +0 -3
  445. package/src/enums/message-type.ts +0 -5
  446. package/types/enums/authenticator-factor.d.ts +0 -3
  447. package/types/enums/authenticator-provider.d.ts +0 -3
  448. package/types/enums/message-type.d.ts +0 -5
  449. package/types/enums/template-type.d.ts +0 -5
package/dist/esm/sdk.js CHANGED
@@ -26,6 +26,26 @@ function __awaiter(thisArg, _arguments, P, generator) {
26
26
  });
27
27
  }
28
28
 
29
+ class Service {
30
+ constructor(client) {
31
+ this.client = client;
32
+ }
33
+ static flatten(data, prefix = '') {
34
+ let output = {};
35
+ for (const [key, value] of Object.entries(data)) {
36
+ let finalKey = prefix ? prefix + '[' + key + ']' : key;
37
+ if (Array.isArray(value)) {
38
+ output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
39
+ }
40
+ else {
41
+ output[finalKey] = value;
42
+ }
43
+ }
44
+ return output;
45
+ }
46
+ }
47
+ Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
48
+
29
49
  class Query {
30
50
  constructor(method, attribute, values) {
31
51
  this.method = method;
@@ -67,31 +87,8 @@ Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, docume
67
87
  Query.limit = (limit) => new Query("limit", undefined, limit).toString();
68
88
  Query.offset = (offset) => new Query("offset", undefined, offset).toString();
69
89
  Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
70
- Query.or = (...queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
71
- Query.and = (...queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
72
-
73
- class Service {
74
- constructor(client) {
75
- this.client = client;
76
- }
77
- static flatten(data, prefix = '') {
78
- let output = {};
79
- for (const [key, value] of Object.entries(data)) {
80
- let finalKey = prefix ? prefix + '[' + key + ']' : key;
81
- if (Array.isArray(value)) {
82
- output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
83
- }
84
- else if (value instanceof Query) {
85
- output[finalKey] = JSON.stringify(value);
86
- }
87
- else {
88
- output[finalKey] = value;
89
- }
90
- }
91
- return output;
92
- }
93
- }
94
- Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
90
+ Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
91
+ Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
95
92
 
96
93
  class AppwriteException extends Error {
97
94
  constructor(message, code = 0, type = '', response = '') {
@@ -106,7 +103,7 @@ class AppwriteException extends Error {
106
103
  class Client {
107
104
  constructor() {
108
105
  this.config = {
109
- endpoint: 'https://HOSTNAME/v1',
106
+ endpoint: 'https://cloud.appwrite.io/v1',
110
107
  endpointRealtime: '',
111
108
  project: '',
112
109
  key: '',
@@ -118,8 +115,8 @@ class Client {
118
115
  'x-sdk-name': 'Console',
119
116
  'x-sdk-platform': 'console',
120
117
  'x-sdk-language': 'web',
121
- 'x-sdk-version': '0.6.0-rc.9',
122
- 'X-Appwrite-Response-Format': '1.4.0',
118
+ 'x-sdk-version': '0.6.0',
119
+ 'X-Appwrite-Response-Format': '1.5.0',
123
120
  };
124
121
  this.realtime = {
125
122
  socket: undefined,
@@ -671,6 +668,7 @@ class Account extends Service {
671
668
  /**
672
669
  * Update MFA
673
670
  *
671
+ * Enable or disable MFA on an account.
674
672
  *
675
673
  * @param {boolean} mfa
676
674
  * @throws {AppwriteException}
@@ -693,23 +691,24 @@ class Account extends Service {
693
691
  });
694
692
  }
695
693
  /**
696
- * Create MFA Challenge
694
+ * Add Authenticator
697
695
  *
696
+ * Add an authenticator app to be used as an MFA factor. Verify the
697
+ * authenticator using the [verify
698
+ * authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
699
+ * method.
698
700
  *
699
- * @param {AuthenticatorProvider} provider
701
+ * @param {AuthenticatorType} type
700
702
  * @throws {AppwriteException}
701
703
  * @returns {Promise}
702
704
  */
703
- createChallenge(provider) {
705
+ createMfaAuthenticator(type) {
704
706
  return __awaiter(this, void 0, void 0, function* () {
705
- if (typeof provider === 'undefined') {
706
- throw new AppwriteException('Missing required parameter: "provider"');
707
+ if (typeof type === 'undefined') {
708
+ throw new AppwriteException('Missing required parameter: "type"');
707
709
  }
708
- const apiPath = '/account/mfa/challenge';
710
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
709
711
  const payload = {};
710
- if (typeof provider !== 'undefined') {
711
- payload['provider'] = provider;
712
- }
713
712
  const uri = new URL(this.client.config.endpoint + apiPath);
714
713
  return yield this.client.call('post', uri, {
715
714
  'content-type': 'application/json',
@@ -717,27 +716,27 @@ class Account extends Service {
717
716
  });
718
717
  }
719
718
  /**
720
- * Create MFA Challenge (confirmation)
719
+ * Verify Authenticator
721
720
  *
721
+ * Verify an authenticator app after adding it using the [add
722
+ * authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
723
+ * method.
722
724
  *
723
- * @param {string} challengeId
725
+ * @param {AuthenticatorType} type
724
726
  * @param {string} otp
725
727
  * @throws {AppwriteException}
726
728
  * @returns {Promise}
727
729
  */
728
- updateChallenge(challengeId, otp) {
730
+ updateMfaAuthenticator(type, otp) {
729
731
  return __awaiter(this, void 0, void 0, function* () {
730
- if (typeof challengeId === 'undefined') {
731
- throw new AppwriteException('Missing required parameter: "challengeId"');
732
+ if (typeof type === 'undefined') {
733
+ throw new AppwriteException('Missing required parameter: "type"');
732
734
  }
733
735
  if (typeof otp === 'undefined') {
734
736
  throw new AppwriteException('Missing required parameter: "otp"');
735
737
  }
736
- const apiPath = '/account/mfa/challenge';
738
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
737
739
  const payload = {};
738
- if (typeof challengeId !== 'undefined') {
739
- payload['challengeId'] = challengeId;
740
- }
741
740
  if (typeof otp !== 'undefined') {
742
741
  payload['otp'] = otp;
743
742
  }
@@ -748,38 +747,55 @@ class Account extends Service {
748
747
  });
749
748
  }
750
749
  /**
751
- * List Factors
750
+ * Delete Authenticator
752
751
  *
753
- * Get the currently logged in user.
752
+ * Delete an authenticator for a user by ID.
754
753
  *
754
+ * @param {AuthenticatorType} type
755
+ * @param {string} otp
755
756
  * @throws {AppwriteException}
756
757
  * @returns {Promise}
757
758
  */
758
- listFactors() {
759
+ deleteMfaAuthenticator(type, otp) {
759
760
  return __awaiter(this, void 0, void 0, function* () {
760
- const apiPath = '/account/mfa/factors';
761
+ if (typeof type === 'undefined') {
762
+ throw new AppwriteException('Missing required parameter: "type"');
763
+ }
764
+ if (typeof otp === 'undefined') {
765
+ throw new AppwriteException('Missing required parameter: "otp"');
766
+ }
767
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
761
768
  const payload = {};
769
+ if (typeof otp !== 'undefined') {
770
+ payload['otp'] = otp;
771
+ }
762
772
  const uri = new URL(this.client.config.endpoint + apiPath);
763
- return yield this.client.call('get', uri, {
773
+ return yield this.client.call('delete', uri, {
764
774
  'content-type': 'application/json',
765
775
  }, payload);
766
776
  });
767
777
  }
768
778
  /**
769
- * Add Authenticator
779
+ * Create 2FA Challenge
770
780
  *
781
+ * Begin the process of MFA verification after sign-in. Finish the flow with
782
+ * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
783
+ * method.
771
784
  *
772
- * @param {AuthenticatorFactor} factor
785
+ * @param {AuthenticationFactor} factor
773
786
  * @throws {AppwriteException}
774
787
  * @returns {Promise}
775
788
  */
776
- addAuthenticator(factor) {
789
+ createMfaChallenge(factor) {
777
790
  return __awaiter(this, void 0, void 0, function* () {
778
791
  if (typeof factor === 'undefined') {
779
792
  throw new AppwriteException('Missing required parameter: "factor"');
780
793
  }
781
- const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
794
+ const apiPath = '/account/mfa/challenge';
782
795
  const payload = {};
796
+ if (typeof factor !== 'undefined') {
797
+ payload['factor'] = factor;
798
+ }
783
799
  const uri = new URL(this.client.config.endpoint + apiPath);
784
800
  return yield this.client.call('post', uri, {
785
801
  'content-type': 'application/json',
@@ -787,24 +803,32 @@ class Account extends Service {
787
803
  });
788
804
  }
789
805
  /**
790
- * Verify Authenticator
806
+ * Create MFA Challenge (confirmation)
791
807
  *
808
+ * Complete the MFA challenge by providing the one-time password. Finish the
809
+ * process of MFA verification by providing the one-time password. To begin
810
+ * the flow, use
811
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
812
+ * method.
792
813
  *
793
- * @param {AuthenticatorFactor} factor
814
+ * @param {string} challengeId
794
815
  * @param {string} otp
795
816
  * @throws {AppwriteException}
796
817
  * @returns {Promise}
797
818
  */
798
- verifyAuthenticator(factor, otp) {
819
+ updateMfaChallenge(challengeId, otp) {
799
820
  return __awaiter(this, void 0, void 0, function* () {
800
- if (typeof factor === 'undefined') {
801
- throw new AppwriteException('Missing required parameter: "factor"');
821
+ if (typeof challengeId === 'undefined') {
822
+ throw new AppwriteException('Missing required parameter: "challengeId"');
802
823
  }
803
824
  if (typeof otp === 'undefined') {
804
825
  throw new AppwriteException('Missing required parameter: "otp"');
805
826
  }
806
- const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
827
+ const apiPath = '/account/mfa/challenge';
807
828
  const payload = {};
829
+ if (typeof challengeId !== 'undefined') {
830
+ payload['challengeId'] = challengeId;
831
+ }
808
832
  if (typeof otp !== 'undefined') {
809
833
  payload['otp'] = otp;
810
834
  }
@@ -815,29 +839,83 @@ class Account extends Service {
815
839
  });
816
840
  }
817
841
  /**
818
- * Delete Authenticator
842
+ * List Factors
819
843
  *
844
+ * List the factors available on the account to be used as a MFA challange.
820
845
  *
821
- * @param {AuthenticatorProvider} provider
822
- * @param {string} otp
823
846
  * @throws {AppwriteException}
824
847
  * @returns {Promise}
825
848
  */
826
- deleteAuthenticator(provider, otp) {
849
+ listMfaFactors() {
827
850
  return __awaiter(this, void 0, void 0, function* () {
828
- if (typeof provider === 'undefined') {
829
- throw new AppwriteException('Missing required parameter: "provider"');
830
- }
831
- if (typeof otp === 'undefined') {
832
- throw new AppwriteException('Missing required parameter: "otp"');
833
- }
834
- const apiPath = '/account/mfa/{provider}'.replace('{provider}', provider);
851
+ const apiPath = '/account/mfa/factors';
835
852
  const payload = {};
836
- if (typeof otp !== 'undefined') {
837
- payload['otp'] = otp;
838
- }
839
853
  const uri = new URL(this.client.config.endpoint + apiPath);
840
- return yield this.client.call('delete', uri, {
854
+ return yield this.client.call('get', uri, {
855
+ 'content-type': 'application/json',
856
+ }, payload);
857
+ });
858
+ }
859
+ /**
860
+ * Get MFA Recovery Codes
861
+ *
862
+ * Get recovery codes that can be used as backup for MFA flow. Before getting
863
+ * codes, they must be generated using
864
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
865
+ * method. An OTP challenge is required to read recovery codes.
866
+ *
867
+ * @throws {AppwriteException}
868
+ * @returns {Promise}
869
+ */
870
+ getMfaRecoveryCodes() {
871
+ return __awaiter(this, void 0, void 0, function* () {
872
+ const apiPath = '/account/mfa/recovery-codes';
873
+ const payload = {};
874
+ const uri = new URL(this.client.config.endpoint + apiPath);
875
+ return yield this.client.call('get', uri, {
876
+ 'content-type': 'application/json',
877
+ }, payload);
878
+ });
879
+ }
880
+ /**
881
+ * Create MFA Recovery Codes
882
+ *
883
+ * Generate recovery codes as backup for MFA flow. It's recommended to
884
+ * generate and show then immediately after user successfully adds their
885
+ * authehticator. Recovery codes can be used as a MFA verification type in
886
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
887
+ * method.
888
+ *
889
+ * @throws {AppwriteException}
890
+ * @returns {Promise}
891
+ */
892
+ createMfaRecoveryCodes() {
893
+ return __awaiter(this, void 0, void 0, function* () {
894
+ const apiPath = '/account/mfa/recovery-codes';
895
+ const payload = {};
896
+ const uri = new URL(this.client.config.endpoint + apiPath);
897
+ return yield this.client.call('post', uri, {
898
+ 'content-type': 'application/json',
899
+ }, payload);
900
+ });
901
+ }
902
+ /**
903
+ * Regenerate MFA Recovery Codes
904
+ *
905
+ * Regenerate recovery codes that can be used as backup for MFA flow. Before
906
+ * regenerating codes, they must be first generated using
907
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
908
+ * method. An OTP challenge is required to regenreate recovery codes.
909
+ *
910
+ * @throws {AppwriteException}
911
+ * @returns {Promise}
912
+ */
913
+ updateMfaRecoveryCodes() {
914
+ return __awaiter(this, void 0, void 0, function* () {
915
+ const apiPath = '/account/mfa/recovery-codes';
916
+ const payload = {};
917
+ const uri = new URL(this.client.config.endpoint + apiPath);
918
+ return yield this.client.call('patch', uri, {
841
919
  'content-type': 'application/json',
842
920
  }, payload);
843
921
  });
@@ -1166,7 +1244,7 @@ class Account extends Service {
1166
1244
  });
1167
1245
  }
1168
1246
  /**
1169
- * Create session (deprecated)
1247
+ * Update magic URL session
1170
1248
  *
1171
1249
  * Use this endpoint to create a session from token. Provide the **userId**
1172
1250
  * and **secret** parameters from the successful response of authentication
@@ -1222,12 +1300,11 @@ class Account extends Service {
1222
1300
  * @param {OAuthProvider} provider
1223
1301
  * @param {string} success
1224
1302
  * @param {string} failure
1225
- * @param {boolean} token
1226
1303
  * @param {string[]} scopes
1227
1304
  * @throws {AppwriteException}
1228
1305
  * @returns {void|string}
1229
1306
  */
1230
- createOAuth2Session(provider, success, failure, token, scopes) {
1307
+ createOAuth2Session(provider, success, failure, scopes) {
1231
1308
  if (typeof provider === 'undefined') {
1232
1309
  throw new AppwriteException('Missing required parameter: "provider"');
1233
1310
  }
@@ -1239,9 +1316,6 @@ class Account extends Service {
1239
1316
  if (typeof failure !== 'undefined') {
1240
1317
  payload['failure'] = failure;
1241
1318
  }
1242
- if (typeof token !== 'undefined') {
1243
- payload['token'] = token;
1244
- }
1245
1319
  if (typeof scopes !== 'undefined') {
1246
1320
  payload['scopes'] = scopes;
1247
1321
  }
@@ -1257,6 +1331,40 @@ class Account extends Service {
1257
1331
  return uri;
1258
1332
  }
1259
1333
  }
1334
+ /**
1335
+ * Update phone session
1336
+ *
1337
+ * Use this endpoint to create a session from token. Provide the **userId**
1338
+ * and **secret** parameters from the successful response of authentication
1339
+ * flows initiated by token creation. For example, magic URL and phone login.
1340
+ *
1341
+ * @param {string} userId
1342
+ * @param {string} secret
1343
+ * @throws {AppwriteException}
1344
+ * @returns {Promise}
1345
+ */
1346
+ updatePhoneSession(userId, secret) {
1347
+ return __awaiter(this, void 0, void 0, function* () {
1348
+ if (typeof userId === 'undefined') {
1349
+ throw new AppwriteException('Missing required parameter: "userId"');
1350
+ }
1351
+ if (typeof secret === 'undefined') {
1352
+ throw new AppwriteException('Missing required parameter: "secret"');
1353
+ }
1354
+ const apiPath = '/account/sessions/phone';
1355
+ const payload = {};
1356
+ if (typeof userId !== 'undefined') {
1357
+ payload['userId'] = userId;
1358
+ }
1359
+ if (typeof secret !== 'undefined') {
1360
+ payload['secret'] = secret;
1361
+ }
1362
+ const uri = new URL(this.client.config.endpoint + apiPath);
1363
+ return yield this.client.call('put', uri, {
1364
+ 'content-type': 'application/json',
1365
+ }, payload);
1366
+ });
1367
+ }
1260
1368
  /**
1261
1369
  * Create session
1262
1370
  *
@@ -1315,10 +1423,11 @@ class Account extends Service {
1315
1423
  });
1316
1424
  }
1317
1425
  /**
1318
- * Update (or renew) a session
1426
+ * Update session
1319
1427
  *
1320
- * Extend session's expiry to increase it's lifespan. Extending a session is
1321
- * useful when session length is short such as 5 minutes.
1428
+ * Use this endpoint to extend a session's length. Extending a session is
1429
+ * useful when session expiry is short. If the session was created using an
1430
+ * OAuth provider, this endpoint refreshes the access token from the provider.
1322
1431
  *
1323
1432
  * @param {string} sessionId
1324
1433
  * @throws {AppwriteException}
@@ -1384,7 +1493,7 @@ class Account extends Service {
1384
1493
  });
1385
1494
  }
1386
1495
  /**
1387
- * Create a push target
1496
+ * Create push target
1388
1497
  *
1389
1498
  *
1390
1499
  * @param {string} targetId
@@ -1419,7 +1528,7 @@ class Account extends Service {
1419
1528
  });
1420
1529
  }
1421
1530
  /**
1422
- * Update a push target
1531
+ * Update push target
1423
1532
  *
1424
1533
  *
1425
1534
  * @param {string} targetId
@@ -1447,7 +1556,7 @@ class Account extends Service {
1447
1556
  });
1448
1557
  }
1449
1558
  /**
1450
- * Delete a push target
1559
+ * Delete push target
1451
1560
  *
1452
1561
  *
1453
1562
  * @param {string} targetId
@@ -1567,6 +1676,58 @@ class Account extends Service {
1567
1676
  }, payload);
1568
1677
  });
1569
1678
  }
1679
+ /**
1680
+ * Create OAuth2 token
1681
+ *
1682
+ * Allow the user to login to their account using the OAuth2 provider of their
1683
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
1684
+ * first. Use the success and failure arguments to provide a redirect URL's
1685
+ * back to your app when login is completed.
1686
+ *
1687
+ * If authentication succeeds, `userId` and `secret` of a token will be
1688
+ * appended to the success URL as query parameters. These can be used to
1689
+ * create a new session using the [Create
1690
+ * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
1691
+ * endpoint.
1692
+ *
1693
+ * A user is limited to 10 active sessions at a time by default. [Learn more
1694
+ * about session
1695
+ * limits](https://appwrite.io/docs/authentication-security#limits).
1696
+ *
1697
+ * @param {OAuthProvider} provider
1698
+ * @param {string} success
1699
+ * @param {string} failure
1700
+ * @param {string[]} scopes
1701
+ * @throws {AppwriteException}
1702
+ * @returns {void|string}
1703
+ */
1704
+ createOAuth2Token(provider, success, failure, scopes) {
1705
+ if (typeof provider === 'undefined') {
1706
+ throw new AppwriteException('Missing required parameter: "provider"');
1707
+ }
1708
+ const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
1709
+ const payload = {};
1710
+ if (typeof success !== 'undefined') {
1711
+ payload['success'] = success;
1712
+ }
1713
+ if (typeof failure !== 'undefined') {
1714
+ payload['failure'] = failure;
1715
+ }
1716
+ if (typeof scopes !== 'undefined') {
1717
+ payload['scopes'] = scopes;
1718
+ }
1719
+ const uri = new URL(this.client.config.endpoint + apiPath);
1720
+ payload['project'] = this.client.config.project;
1721
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
1722
+ uri.searchParams.append(key, value);
1723
+ }
1724
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
1725
+ window.location.href = uri.toString();
1726
+ }
1727
+ else {
1728
+ return uri;
1729
+ }
1730
+ }
1570
1731
  /**
1571
1732
  * Create phone token
1572
1733
  *
@@ -2158,7 +2319,7 @@ class Databases extends Service {
2158
2319
  });
2159
2320
  }
2160
2321
  /**
2161
- * Get usage stats for the database
2322
+ * Get databases usage stats
2162
2323
  *
2163
2324
  *
2164
2325
  * @param {DatabaseUsageRange} range
@@ -2441,6 +2602,7 @@ class Databases extends Service {
2441
2602
  /**
2442
2603
  * List attributes
2443
2604
  *
2605
+ * List attributes in the collection.
2444
2606
  *
2445
2607
  * @param {string} databaseId
2446
2608
  * @param {string} collectionId
@@ -2519,6 +2681,8 @@ class Databases extends Service {
2519
2681
  /**
2520
2682
  * Update boolean attribute
2521
2683
  *
2684
+ * Update a boolean attribute. Changing the `default` value will not update
2685
+ * already existing documents.
2522
2686
  *
2523
2687
  * @param {string} databaseId
2524
2688
  * @param {string} collectionId
@@ -2562,6 +2726,7 @@ class Databases extends Service {
2562
2726
  /**
2563
2727
  * Create datetime attribute
2564
2728
  *
2729
+ * Create a date time attribute according to the ISO 8601 standard.
2565
2730
  *
2566
2731
  * @param {string} databaseId
2567
2732
  * @param {string} collectionId
@@ -2609,6 +2774,8 @@ class Databases extends Service {
2609
2774
  /**
2610
2775
  * Update dateTime attribute
2611
2776
  *
2777
+ * Update a date time attribute. Changing the `default` value will not update
2778
+ * already existing documents.
2612
2779
  *
2613
2780
  * @param {string} databaseId
2614
2781
  * @param {string} collectionId
@@ -2747,6 +2914,9 @@ class Databases extends Service {
2747
2914
  /**
2748
2915
  * Create enum attribute
2749
2916
  *
2917
+ * Create an enumeration attribute. The `elements` param acts as a white-list
2918
+ * of accepted values for this attribute.
2919
+ *
2750
2920
  *
2751
2921
  * @param {string} databaseId
2752
2922
  * @param {string} collectionId
@@ -3444,6 +3614,7 @@ class Databases extends Service {
3444
3614
  /**
3445
3615
  * Get attribute
3446
3616
  *
3617
+ * Get attribute by ID.
3447
3618
  *
3448
3619
  * @param {string} databaseId
3449
3620
  * @param {string} collectionId
@@ -3473,6 +3644,7 @@ class Databases extends Service {
3473
3644
  /**
3474
3645
  * Delete attribute
3475
3646
  *
3647
+ * Deletes an attribute.
3476
3648
  *
3477
3649
  * @param {string} databaseId
3478
3650
  * @param {string} collectionId
@@ -3754,6 +3926,7 @@ class Databases extends Service {
3754
3926
  /**
3755
3927
  * List indexes
3756
3928
  *
3929
+ * List indexes in the collection.
3757
3930
  *
3758
3931
  * @param {string} databaseId
3759
3932
  * @param {string} collectionId
@@ -3783,6 +3956,9 @@ class Databases extends Service {
3783
3956
  /**
3784
3957
  * Create index
3785
3958
  *
3959
+ * Creates an index on the attributes listed. Your index should include all
3960
+ * the attributes you will query in a single request.
3961
+ * Attributes can be `key`, `fulltext`, and `unique`.
3786
3962
  *
3787
3963
  * @param {string} databaseId
3788
3964
  * @param {string} collectionId
@@ -3833,6 +4009,7 @@ class Databases extends Service {
3833
4009
  /**
3834
4010
  * Get index
3835
4011
  *
4012
+ * Get index by ID.
3836
4013
  *
3837
4014
  * @param {string} databaseId
3838
4015
  * @param {string} collectionId
@@ -3862,6 +4039,7 @@ class Databases extends Service {
3862
4039
  /**
3863
4040
  * Delete index
3864
4041
  *
4042
+ * Delete an index.
3865
4043
  *
3866
4044
  * @param {string} databaseId
3867
4045
  * @param {string} collectionId
@@ -3919,7 +4097,7 @@ class Databases extends Service {
3919
4097
  });
3920
4098
  }
3921
4099
  /**
3922
- * Get usage stats for a collection
4100
+ * Get collection usage stats
3923
4101
  *
3924
4102
  *
3925
4103
  * @param {string} databaseId
@@ -3974,7 +4152,7 @@ class Databases extends Service {
3974
4152
  });
3975
4153
  }
3976
4154
  /**
3977
- * Get usage stats for the database
4155
+ * Get database usage stats
3978
4156
  *
3979
4157
  *
3980
4158
  * @param {string} databaseId
@@ -4957,6 +5135,28 @@ class Health extends Service {
4957
5135
  }, payload);
4958
5136
  });
4959
5137
  }
5138
+ /**
5139
+ * Get the SSL certificate for a domain
5140
+ *
5141
+ * Get the SSL certificate for a domain
5142
+ *
5143
+ * @param {string} domain
5144
+ * @throws {AppwriteException}
5145
+ * @returns {Promise}
5146
+ */
5147
+ getCertificate(domain) {
5148
+ return __awaiter(this, void 0, void 0, function* () {
5149
+ const apiPath = '/health/certificate';
5150
+ const payload = {};
5151
+ if (typeof domain !== 'undefined') {
5152
+ payload['domain'] = domain;
5153
+ }
5154
+ const uri = new URL(this.client.config.endpoint + apiPath);
5155
+ return yield this.client.call('get', uri, {
5156
+ 'content-type': 'application/json',
5157
+ }, payload);
5158
+ });
5159
+ }
4960
5160
  /**
4961
5161
  * Get DB
4962
5162
  *
@@ -5110,16 +5310,91 @@ class Health extends Service {
5110
5310
  });
5111
5311
  }
5112
5312
  /**
5113
- * Get functions queue
5313
+ * Get number of failed queue jobs
5314
+ *
5315
+ * Returns the amount of failed jobs in a given queue.
5316
+ *
5317
+ *
5318
+ * @param {Name} name
5319
+ * @param {number} threshold
5320
+ * @throws {AppwriteException}
5321
+ * @returns {Promise}
5322
+ */
5323
+ getFailedJobs(name, threshold) {
5324
+ return __awaiter(this, void 0, void 0, function* () {
5325
+ if (typeof name === 'undefined') {
5326
+ throw new AppwriteException('Missing required parameter: "name"');
5327
+ }
5328
+ const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
5329
+ const payload = {};
5330
+ if (typeof threshold !== 'undefined') {
5331
+ payload['threshold'] = threshold;
5332
+ }
5333
+ const uri = new URL(this.client.config.endpoint + apiPath);
5334
+ return yield this.client.call('get', uri, {
5335
+ 'content-type': 'application/json',
5336
+ }, payload);
5337
+ });
5338
+ }
5339
+ /**
5340
+ * Get functions queue
5341
+ *
5342
+ * Get the number of function executions that are waiting to be processed in
5343
+ * the Appwrite internal queue server.
5344
+ *
5345
+ * @param {number} threshold
5346
+ * @throws {AppwriteException}
5347
+ * @returns {Promise}
5348
+ */
5349
+ getQueueFunctions(threshold) {
5350
+ return __awaiter(this, void 0, void 0, function* () {
5351
+ const apiPath = '/health/queue/functions';
5352
+ const payload = {};
5353
+ if (typeof threshold !== 'undefined') {
5354
+ payload['threshold'] = threshold;
5355
+ }
5356
+ const uri = new URL(this.client.config.endpoint + apiPath);
5357
+ return yield this.client.call('get', uri, {
5358
+ 'content-type': 'application/json',
5359
+ }, payload);
5360
+ });
5361
+ }
5362
+ /**
5363
+ * Get logs queue
5364
+ *
5365
+ * Get the number of logs that are waiting to be processed in the Appwrite
5366
+ * internal queue server.
5367
+ *
5368
+ * @param {number} threshold
5369
+ * @throws {AppwriteException}
5370
+ * @returns {Promise}
5371
+ */
5372
+ getQueueLogs(threshold) {
5373
+ return __awaiter(this, void 0, void 0, function* () {
5374
+ const apiPath = '/health/queue/logs';
5375
+ const payload = {};
5376
+ if (typeof threshold !== 'undefined') {
5377
+ payload['threshold'] = threshold;
5378
+ }
5379
+ const uri = new URL(this.client.config.endpoint + apiPath);
5380
+ return yield this.client.call('get', uri, {
5381
+ 'content-type': 'application/json',
5382
+ }, payload);
5383
+ });
5384
+ }
5385
+ /**
5386
+ * Get mails queue
5114
5387
  *
5388
+ * Get the number of mails that are waiting to be processed in the Appwrite
5389
+ * internal queue server.
5115
5390
  *
5116
5391
  * @param {number} threshold
5117
5392
  * @throws {AppwriteException}
5118
5393
  * @returns {Promise}
5119
5394
  */
5120
- getQueueFunctions(threshold) {
5395
+ getQueueMails(threshold) {
5121
5396
  return __awaiter(this, void 0, void 0, function* () {
5122
- const apiPath = '/health/queue/functions';
5397
+ const apiPath = '/health/queue/mails';
5123
5398
  const payload = {};
5124
5399
  if (typeof threshold !== 'undefined') {
5125
5400
  payload['threshold'] = threshold;
@@ -5131,18 +5406,18 @@ class Health extends Service {
5131
5406
  });
5132
5407
  }
5133
5408
  /**
5134
- * Get logs queue
5409
+ * Get messaging queue
5135
5410
  *
5136
- * Get the number of logs that are waiting to be processed in the Appwrite
5411
+ * Get the number of messages that are waiting to be processed in the Appwrite
5137
5412
  * internal queue server.
5138
5413
  *
5139
5414
  * @param {number} threshold
5140
5415
  * @throws {AppwriteException}
5141
5416
  * @returns {Promise}
5142
5417
  */
5143
- getQueueLogs(threshold) {
5418
+ getQueueMessaging(threshold) {
5144
5419
  return __awaiter(this, void 0, void 0, function* () {
5145
- const apiPath = '/health/queue/logs';
5420
+ const apiPath = '/health/queue/messaging';
5146
5421
  const payload = {};
5147
5422
  if (typeof threshold !== 'undefined') {
5148
5423
  payload['threshold'] = threshold;
@@ -5154,18 +5429,18 @@ class Health extends Service {
5154
5429
  });
5155
5430
  }
5156
5431
  /**
5157
- * Get mails queue
5432
+ * Get migrations queue
5158
5433
  *
5159
- * Get the number of mails that are waiting to be processed in the Appwrite
5160
- * internal queue server.
5434
+ * Get the number of migrations that are waiting to be processed in the
5435
+ * Appwrite internal queue server.
5161
5436
  *
5162
5437
  * @param {number} threshold
5163
5438
  * @throws {AppwriteException}
5164
5439
  * @returns {Promise}
5165
5440
  */
5166
- getQueueMails(threshold) {
5441
+ getQueueMigrations(threshold) {
5167
5442
  return __awaiter(this, void 0, void 0, function* () {
5168
- const apiPath = '/health/queue/mails';
5443
+ const apiPath = '/health/queue/migrations';
5169
5444
  const payload = {};
5170
5445
  if (typeof threshold !== 'undefined') {
5171
5446
  payload['threshold'] = threshold;
@@ -5177,18 +5452,18 @@ class Health extends Service {
5177
5452
  });
5178
5453
  }
5179
5454
  /**
5180
- * Get messaging queue
5455
+ * Get usage queue
5181
5456
  *
5182
- * Get the number of messages that are waiting to be processed in the Appwrite
5457
+ * Get the number of metrics that are waiting to be processed in the Appwrite
5183
5458
  * internal queue server.
5184
5459
  *
5185
5460
  * @param {number} threshold
5186
5461
  * @throws {AppwriteException}
5187
5462
  * @returns {Promise}
5188
5463
  */
5189
- getQueueMessaging(threshold) {
5464
+ getQueueUsage(threshold) {
5190
5465
  return __awaiter(this, void 0, void 0, function* () {
5191
- const apiPath = '/health/queue/messaging';
5466
+ const apiPath = '/health/queue/usage';
5192
5467
  const payload = {};
5193
5468
  if (typeof threshold !== 'undefined') {
5194
5469
  payload['threshold'] = threshold;
@@ -5200,18 +5475,18 @@ class Health extends Service {
5200
5475
  });
5201
5476
  }
5202
5477
  /**
5203
- * Get migrations queue
5478
+ * Get usage dump queue
5204
5479
  *
5205
- * Get the number of migrations that are waiting to be processed in the
5206
- * Appwrite internal queue server.
5480
+ * Get the number of projects containing metrics that are waiting to be
5481
+ * processed in the Appwrite internal queue server.
5207
5482
  *
5208
5483
  * @param {number} threshold
5209
5484
  * @throws {AppwriteException}
5210
5485
  * @returns {Promise}
5211
5486
  */
5212
- getQueueMigrations(threshold) {
5487
+ getQueueUsageDump(threshold) {
5213
5488
  return __awaiter(this, void 0, void 0, function* () {
5214
- const apiPath = '/health/queue/migrations';
5489
+ const apiPath = '/health/queue/usage-dump';
5215
5490
  const payload = {};
5216
5491
  if (typeof threshold !== 'undefined') {
5217
5492
  payload['threshold'] = threshold;
@@ -5245,6 +5520,24 @@ class Health extends Service {
5245
5520
  }, payload);
5246
5521
  });
5247
5522
  }
5523
+ /**
5524
+ * Get storage
5525
+ *
5526
+ * Check the Appwrite storage device is up and connection is successful.
5527
+ *
5528
+ * @throws {AppwriteException}
5529
+ * @returns {Promise}
5530
+ */
5531
+ getStorage() {
5532
+ return __awaiter(this, void 0, void 0, function* () {
5533
+ const apiPath = '/health/storage';
5534
+ const payload = {};
5535
+ const uri = new URL(this.client.config.endpoint + apiPath);
5536
+ return yield this.client.call('get', uri, {
5537
+ 'content-type': 'application/json',
5538
+ }, payload);
5539
+ });
5540
+ }
5248
5541
  /**
5249
5542
  * Get local storage
5250
5543
  *
@@ -5459,6 +5752,7 @@ class Messaging extends Service {
5459
5752
  /**
5460
5753
  * List messages
5461
5754
  *
5755
+ * Get a list of all messages from the current Appwrite project.
5462
5756
  *
5463
5757
  * @param {string[]} queries
5464
5758
  * @param {string} search
@@ -5482,8 +5776,9 @@ class Messaging extends Service {
5482
5776
  });
5483
5777
  }
5484
5778
  /**
5485
- * Create an email.
5779
+ * Create email
5486
5780
  *
5781
+ * Create a new email message.
5487
5782
  *
5488
5783
  * @param {string} messageId
5489
5784
  * @param {string} subject
@@ -5493,13 +5788,14 @@ class Messaging extends Service {
5493
5788
  * @param {string[]} targets
5494
5789
  * @param {string[]} cc
5495
5790
  * @param {string[]} bcc
5496
- * @param {MessageType} status
5791
+ * @param {string[]} attachments
5792
+ * @param {boolean} draft
5497
5793
  * @param {boolean} html
5498
5794
  * @param {string} scheduledAt
5499
5795
  * @throws {AppwriteException}
5500
5796
  * @returns {Promise}
5501
5797
  */
5502
- createEmail(messageId, subject, content, topics, users, targets, cc, bcc, status, html, scheduledAt) {
5798
+ createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
5503
5799
  return __awaiter(this, void 0, void 0, function* () {
5504
5800
  if (typeof messageId === 'undefined') {
5505
5801
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5536,8 +5832,11 @@ class Messaging extends Service {
5536
5832
  if (typeof bcc !== 'undefined') {
5537
5833
  payload['bcc'] = bcc;
5538
5834
  }
5539
- if (typeof status !== 'undefined') {
5540
- payload['status'] = status;
5835
+ if (typeof attachments !== 'undefined') {
5836
+ payload['attachments'] = attachments;
5837
+ }
5838
+ if (typeof draft !== 'undefined') {
5839
+ payload['draft'] = draft;
5541
5840
  }
5542
5841
  if (typeof html !== 'undefined') {
5543
5842
  payload['html'] = html;
@@ -5552,7 +5851,9 @@ class Messaging extends Service {
5552
5851
  });
5553
5852
  }
5554
5853
  /**
5555
- * Update an email.
5854
+ * Update email
5855
+ *
5856
+ * Update an email message by its unique ID.
5556
5857
  *
5557
5858
  *
5558
5859
  * @param {string} messageId
@@ -5561,7 +5862,7 @@ class Messaging extends Service {
5561
5862
  * @param {string[]} targets
5562
5863
  * @param {string} subject
5563
5864
  * @param {string} content
5564
- * @param {MessageType} status
5865
+ * @param {boolean} draft
5565
5866
  * @param {boolean} html
5566
5867
  * @param {string[]} cc
5567
5868
  * @param {string[]} bcc
@@ -5569,7 +5870,7 @@ class Messaging extends Service {
5569
5870
  * @throws {AppwriteException}
5570
5871
  * @returns {Promise}
5571
5872
  */
5572
- updateEmail(messageId, topics, users, targets, subject, content, status, html, cc, bcc, scheduledAt) {
5873
+ updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt) {
5573
5874
  return __awaiter(this, void 0, void 0, function* () {
5574
5875
  if (typeof messageId === 'undefined') {
5575
5876
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5591,8 +5892,8 @@ class Messaging extends Service {
5591
5892
  if (typeof content !== 'undefined') {
5592
5893
  payload['content'] = content;
5593
5894
  }
5594
- if (typeof status !== 'undefined') {
5595
- payload['status'] = status;
5895
+ if (typeof draft !== 'undefined') {
5896
+ payload['draft'] = draft;
5596
5897
  }
5597
5898
  if (typeof html !== 'undefined') {
5598
5899
  payload['html'] = html;
@@ -5613,8 +5914,9 @@ class Messaging extends Service {
5613
5914
  });
5614
5915
  }
5615
5916
  /**
5616
- * Create a push notification.
5917
+ * Create push notification
5617
5918
  *
5919
+ * Create a new push notification.
5618
5920
  *
5619
5921
  * @param {string} messageId
5620
5922
  * @param {string} title
@@ -5624,17 +5926,18 @@ class Messaging extends Service {
5624
5926
  * @param {string[]} targets
5625
5927
  * @param {object} data
5626
5928
  * @param {string} action
5929
+ * @param {string} image
5627
5930
  * @param {string} icon
5628
5931
  * @param {string} sound
5629
5932
  * @param {string} color
5630
5933
  * @param {string} tag
5631
5934
  * @param {string} badge
5632
- * @param {MessageType} status
5935
+ * @param {boolean} draft
5633
5936
  * @param {string} scheduledAt
5634
5937
  * @throws {AppwriteException}
5635
5938
  * @returns {Promise}
5636
5939
  */
5637
- createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
5940
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
5638
5941
  return __awaiter(this, void 0, void 0, function* () {
5639
5942
  if (typeof messageId === 'undefined') {
5640
5943
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5671,6 +5974,9 @@ class Messaging extends Service {
5671
5974
  if (typeof action !== 'undefined') {
5672
5975
  payload['action'] = action;
5673
5976
  }
5977
+ if (typeof image !== 'undefined') {
5978
+ payload['image'] = image;
5979
+ }
5674
5980
  if (typeof icon !== 'undefined') {
5675
5981
  payload['icon'] = icon;
5676
5982
  }
@@ -5686,8 +5992,8 @@ class Messaging extends Service {
5686
5992
  if (typeof badge !== 'undefined') {
5687
5993
  payload['badge'] = badge;
5688
5994
  }
5689
- if (typeof status !== 'undefined') {
5690
- payload['status'] = status;
5995
+ if (typeof draft !== 'undefined') {
5996
+ payload['draft'] = draft;
5691
5997
  }
5692
5998
  if (typeof scheduledAt !== 'undefined') {
5693
5999
  payload['scheduledAt'] = scheduledAt;
@@ -5699,7 +6005,9 @@ class Messaging extends Service {
5699
6005
  });
5700
6006
  }
5701
6007
  /**
5702
- * Update a push notification.
6008
+ * Update push notification
6009
+ *
6010
+ * Update a push notification by its unique ID.
5703
6011
  *
5704
6012
  *
5705
6013
  * @param {string} messageId
@@ -5710,17 +6018,18 @@ class Messaging extends Service {
5710
6018
  * @param {string} body
5711
6019
  * @param {object} data
5712
6020
  * @param {string} action
6021
+ * @param {string} image
5713
6022
  * @param {string} icon
5714
6023
  * @param {string} sound
5715
6024
  * @param {string} color
5716
6025
  * @param {string} tag
5717
6026
  * @param {number} badge
5718
- * @param {MessageType} status
6027
+ * @param {boolean} draft
5719
6028
  * @param {string} scheduledAt
5720
6029
  * @throws {AppwriteException}
5721
6030
  * @returns {Promise}
5722
6031
  */
5723
- updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
6032
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
5724
6033
  return __awaiter(this, void 0, void 0, function* () {
5725
6034
  if (typeof messageId === 'undefined') {
5726
6035
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5748,6 +6057,9 @@ class Messaging extends Service {
5748
6057
  if (typeof action !== 'undefined') {
5749
6058
  payload['action'] = action;
5750
6059
  }
6060
+ if (typeof image !== 'undefined') {
6061
+ payload['image'] = image;
6062
+ }
5751
6063
  if (typeof icon !== 'undefined') {
5752
6064
  payload['icon'] = icon;
5753
6065
  }
@@ -5763,8 +6075,8 @@ class Messaging extends Service {
5763
6075
  if (typeof badge !== 'undefined') {
5764
6076
  payload['badge'] = badge;
5765
6077
  }
5766
- if (typeof status !== 'undefined') {
5767
- payload['status'] = status;
6078
+ if (typeof draft !== 'undefined') {
6079
+ payload['draft'] = draft;
5768
6080
  }
5769
6081
  if (typeof scheduledAt !== 'undefined') {
5770
6082
  payload['scheduledAt'] = scheduledAt;
@@ -5776,20 +6088,21 @@ class Messaging extends Service {
5776
6088
  });
5777
6089
  }
5778
6090
  /**
5779
- * Create an SMS.
6091
+ * Create SMS
5780
6092
  *
6093
+ * Create a new SMS message.
5781
6094
  *
5782
6095
  * @param {string} messageId
5783
6096
  * @param {string} content
5784
6097
  * @param {string[]} topics
5785
6098
  * @param {string[]} users
5786
6099
  * @param {string[]} targets
5787
- * @param {MessageType} status
6100
+ * @param {boolean} draft
5788
6101
  * @param {string} scheduledAt
5789
6102
  * @throws {AppwriteException}
5790
6103
  * @returns {Promise}
5791
6104
  */
5792
- createSMS(messageId, content, topics, users, targets, status, scheduledAt) {
6105
+ createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
5793
6106
  return __awaiter(this, void 0, void 0, function* () {
5794
6107
  if (typeof messageId === 'undefined') {
5795
6108
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5814,8 +6127,8 @@ class Messaging extends Service {
5814
6127
  if (typeof targets !== 'undefined') {
5815
6128
  payload['targets'] = targets;
5816
6129
  }
5817
- if (typeof status !== 'undefined') {
5818
- payload['status'] = status;
6130
+ if (typeof draft !== 'undefined') {
6131
+ payload['draft'] = draft;
5819
6132
  }
5820
6133
  if (typeof scheduledAt !== 'undefined') {
5821
6134
  payload['scheduledAt'] = scheduledAt;
@@ -5827,7 +6140,9 @@ class Messaging extends Service {
5827
6140
  });
5828
6141
  }
5829
6142
  /**
5830
- * Update an SMS.
6143
+ * Update SMS
6144
+ *
6145
+ * Update an email message by its unique ID.
5831
6146
  *
5832
6147
  *
5833
6148
  * @param {string} messageId
@@ -5835,12 +6150,12 @@ class Messaging extends Service {
5835
6150
  * @param {string[]} users
5836
6151
  * @param {string[]} targets
5837
6152
  * @param {string} content
5838
- * @param {MessageType} status
6153
+ * @param {boolean} draft
5839
6154
  * @param {string} scheduledAt
5840
6155
  * @throws {AppwriteException}
5841
6156
  * @returns {Promise}
5842
6157
  */
5843
- updateSMS(messageId, topics, users, targets, content, status, scheduledAt) {
6158
+ updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
5844
6159
  return __awaiter(this, void 0, void 0, function* () {
5845
6160
  if (typeof messageId === 'undefined') {
5846
6161
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5859,8 +6174,8 @@ class Messaging extends Service {
5859
6174
  if (typeof content !== 'undefined') {
5860
6175
  payload['content'] = content;
5861
6176
  }
5862
- if (typeof status !== 'undefined') {
5863
- payload['status'] = status;
6177
+ if (typeof draft !== 'undefined') {
6178
+ payload['draft'] = draft;
5864
6179
  }
5865
6180
  if (typeof scheduledAt !== 'undefined') {
5866
6181
  payload['scheduledAt'] = scheduledAt;
@@ -5872,7 +6187,9 @@ class Messaging extends Service {
5872
6187
  });
5873
6188
  }
5874
6189
  /**
5875
- * Get a message
6190
+ * Get message
6191
+ *
6192
+ * Get a message by its unique ID.
5876
6193
  *
5877
6194
  *
5878
6195
  * @param {string} messageId
@@ -5893,8 +6210,10 @@ class Messaging extends Service {
5893
6210
  });
5894
6211
  }
5895
6212
  /**
5896
- * Delete a message
6213
+ * Delete message
5897
6214
  *
6215
+ * Delete a message. If the message is not a draft or scheduled, but has been
6216
+ * sent, this will not recall the message.
5898
6217
  *
5899
6218
  * @param {string} messageId
5900
6219
  * @throws {AppwriteException}
@@ -5916,6 +6235,7 @@ class Messaging extends Service {
5916
6235
  /**
5917
6236
  * List message logs
5918
6237
  *
6238
+ * Get the message activity logs listed by its unique ID.
5919
6239
  *
5920
6240
  * @param {string} messageId
5921
6241
  * @param {string[]} queries
@@ -5941,8 +6261,7 @@ class Messaging extends Service {
5941
6261
  /**
5942
6262
  * List message targets
5943
6263
  *
5944
- * List the targets associated with a message as set via the targets
5945
- * attribute.
6264
+ * Get a list of the targets associated with a message.
5946
6265
  *
5947
6266
  * @param {string} messageId
5948
6267
  * @param {string[]} queries
@@ -5968,6 +6287,7 @@ class Messaging extends Service {
5968
6287
  /**
5969
6288
  * List providers
5970
6289
  *
6290
+ * Get a list of all providers from the current Appwrite project.
5971
6291
  *
5972
6292
  * @param {string[]} queries
5973
6293
  * @param {string} search
@@ -5993,6 +6313,7 @@ class Messaging extends Service {
5993
6313
  /**
5994
6314
  * Create APNS provider
5995
6315
  *
6316
+ * Create a new Apple Push Notification service provider.
5996
6317
  *
5997
6318
  * @param {string} providerId
5998
6319
  * @param {string} name
@@ -6000,11 +6321,12 @@ class Messaging extends Service {
6000
6321
  * @param {string} authKeyId
6001
6322
  * @param {string} teamId
6002
6323
  * @param {string} bundleId
6324
+ * @param {boolean} sandbox
6003
6325
  * @param {boolean} enabled
6004
6326
  * @throws {AppwriteException}
6005
6327
  * @returns {Promise}
6006
6328
  */
6007
- createAPNSProvider(providerId, name, authKey, authKeyId, teamId, bundleId, enabled) {
6329
+ createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
6008
6330
  return __awaiter(this, void 0, void 0, function* () {
6009
6331
  if (typeof providerId === 'undefined') {
6010
6332
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6032,6 +6354,9 @@ class Messaging extends Service {
6032
6354
  if (typeof bundleId !== 'undefined') {
6033
6355
  payload['bundleId'] = bundleId;
6034
6356
  }
6357
+ if (typeof sandbox !== 'undefined') {
6358
+ payload['sandbox'] = sandbox;
6359
+ }
6035
6360
  if (typeof enabled !== 'undefined') {
6036
6361
  payload['enabled'] = enabled;
6037
6362
  }
@@ -6044,6 +6369,7 @@ class Messaging extends Service {
6044
6369
  /**
6045
6370
  * Update APNS provider
6046
6371
  *
6372
+ * Update a Apple Push Notification service provider by its unique ID.
6047
6373
  *
6048
6374
  * @param {string} providerId
6049
6375
  * @param {string} name
@@ -6052,10 +6378,11 @@ class Messaging extends Service {
6052
6378
  * @param {string} authKeyId
6053
6379
  * @param {string} teamId
6054
6380
  * @param {string} bundleId
6381
+ * @param {boolean} sandbox
6055
6382
  * @throws {AppwriteException}
6056
6383
  * @returns {Promise}
6057
6384
  */
6058
- updateAPNSProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId) {
6385
+ updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
6059
6386
  return __awaiter(this, void 0, void 0, function* () {
6060
6387
  if (typeof providerId === 'undefined') {
6061
6388
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6080,6 +6407,9 @@ class Messaging extends Service {
6080
6407
  if (typeof bundleId !== 'undefined') {
6081
6408
  payload['bundleId'] = bundleId;
6082
6409
  }
6410
+ if (typeof sandbox !== 'undefined') {
6411
+ payload['sandbox'] = sandbox;
6412
+ }
6083
6413
  const uri = new URL(this.client.config.endpoint + apiPath);
6084
6414
  return yield this.client.call('patch', uri, {
6085
6415
  'content-type': 'application/json',
@@ -6089,6 +6419,7 @@ class Messaging extends Service {
6089
6419
  /**
6090
6420
  * Create FCM provider
6091
6421
  *
6422
+ * Create a new Firebase Cloud Messaging provider.
6092
6423
  *
6093
6424
  * @param {string} providerId
6094
6425
  * @param {string} name
@@ -6097,7 +6428,7 @@ class Messaging extends Service {
6097
6428
  * @throws {AppwriteException}
6098
6429
  * @returns {Promise}
6099
6430
  */
6100
- createFCMProvider(providerId, name, serviceAccountJSON, enabled) {
6431
+ createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
6101
6432
  return __awaiter(this, void 0, void 0, function* () {
6102
6433
  if (typeof providerId === 'undefined') {
6103
6434
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6128,6 +6459,7 @@ class Messaging extends Service {
6128
6459
  /**
6129
6460
  * Update FCM provider
6130
6461
  *
6462
+ * Update a Firebase Cloud Messaging provider by its unique ID.
6131
6463
  *
6132
6464
  * @param {string} providerId
6133
6465
  * @param {string} name
@@ -6136,7 +6468,7 @@ class Messaging extends Service {
6136
6468
  * @throws {AppwriteException}
6137
6469
  * @returns {Promise}
6138
6470
  */
6139
- updateFCMProvider(providerId, name, enabled, serviceAccountJSON) {
6471
+ updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
6140
6472
  return __awaiter(this, void 0, void 0, function* () {
6141
6473
  if (typeof providerId === 'undefined') {
6142
6474
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6161,6 +6493,7 @@ class Messaging extends Service {
6161
6493
  /**
6162
6494
  * Create Mailgun provider
6163
6495
  *
6496
+ * Create a new Mailgun provider.
6164
6497
  *
6165
6498
  * @param {string} providerId
6166
6499
  * @param {string} name
@@ -6224,6 +6557,7 @@ class Messaging extends Service {
6224
6557
  /**
6225
6558
  * Update Mailgun provider
6226
6559
  *
6560
+ * Update a Mailgun provider by its unique ID.
6227
6561
  *
6228
6562
  * @param {string} providerId
6229
6563
  * @param {string} name
@@ -6281,6 +6615,7 @@ class Messaging extends Service {
6281
6615
  /**
6282
6616
  * Create Msg91 provider
6283
6617
  *
6618
+ * Create a new MSG91 provider.
6284
6619
  *
6285
6620
  * @param {string} providerId
6286
6621
  * @param {string} name
@@ -6328,6 +6663,7 @@ class Messaging extends Service {
6328
6663
  /**
6329
6664
  * Update Msg91 provider
6330
6665
  *
6666
+ * Update a MSG91 provider by its unique ID.
6331
6667
  *
6332
6668
  * @param {string} providerId
6333
6669
  * @param {string} name
@@ -6369,6 +6705,7 @@ class Messaging extends Service {
6369
6705
  /**
6370
6706
  * Create Sendgrid provider
6371
6707
  *
6708
+ * Create a new Sendgrid provider.
6372
6709
  *
6373
6710
  * @param {string} providerId
6374
6711
  * @param {string} name
@@ -6424,6 +6761,7 @@ class Messaging extends Service {
6424
6761
  /**
6425
6762
  * Update Sendgrid provider
6426
6763
  *
6764
+ * Update a Sendgrid provider by its unique ID.
6427
6765
  *
6428
6766
  * @param {string} providerId
6429
6767
  * @param {string} name
@@ -6473,6 +6811,7 @@ class Messaging extends Service {
6473
6811
  /**
6474
6812
  * Create SMTP provider
6475
6813
  *
6814
+ * Create a new SMTP provider.
6476
6815
  *
6477
6816
  * @param {string} providerId
6478
6817
  * @param {string} name
@@ -6480,7 +6819,7 @@ class Messaging extends Service {
6480
6819
  * @param {number} port
6481
6820
  * @param {string} username
6482
6821
  * @param {string} password
6483
- * @param {SMTPEncryption} encryption
6822
+ * @param {SmtpEncryption} encryption
6484
6823
  * @param {boolean} autoTLS
6485
6824
  * @param {string} mailer
6486
6825
  * @param {string} fromName
@@ -6491,7 +6830,7 @@ class Messaging extends Service {
6491
6830
  * @throws {AppwriteException}
6492
6831
  * @returns {Promise}
6493
6832
  */
6494
- createSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6833
+ createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6495
6834
  return __awaiter(this, void 0, void 0, function* () {
6496
6835
  if (typeof providerId === 'undefined') {
6497
6836
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6555,6 +6894,7 @@ class Messaging extends Service {
6555
6894
  /**
6556
6895
  * Update SMTP provider
6557
6896
  *
6897
+ * Update a SMTP provider by its unique ID.
6558
6898
  *
6559
6899
  * @param {string} providerId
6560
6900
  * @param {string} name
@@ -6562,8 +6902,9 @@ class Messaging extends Service {
6562
6902
  * @param {number} port
6563
6903
  * @param {string} username
6564
6904
  * @param {string} password
6565
- * @param {SMTPEncryption} encryption
6905
+ * @param {SmtpEncryption} encryption
6566
6906
  * @param {boolean} autoTLS
6907
+ * @param {string} mailer
6567
6908
  * @param {string} fromName
6568
6909
  * @param {string} fromEmail
6569
6910
  * @param {string} replyToName
@@ -6572,7 +6913,7 @@ class Messaging extends Service {
6572
6913
  * @throws {AppwriteException}
6573
6914
  * @returns {Promise}
6574
6915
  */
6575
- updateSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6916
+ updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6576
6917
  return __awaiter(this, void 0, void 0, function* () {
6577
6918
  if (typeof providerId === 'undefined') {
6578
6919
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6600,6 +6941,9 @@ class Messaging extends Service {
6600
6941
  if (typeof autoTLS !== 'undefined') {
6601
6942
  payload['autoTLS'] = autoTLS;
6602
6943
  }
6944
+ if (typeof mailer !== 'undefined') {
6945
+ payload['mailer'] = mailer;
6946
+ }
6603
6947
  if (typeof fromName !== 'undefined') {
6604
6948
  payload['fromName'] = fromName;
6605
6949
  }
@@ -6624,17 +6968,18 @@ class Messaging extends Service {
6624
6968
  /**
6625
6969
  * Create Telesign provider
6626
6970
  *
6971
+ * Create a new Telesign provider.
6627
6972
  *
6628
6973
  * @param {string} providerId
6629
6974
  * @param {string} name
6630
6975
  * @param {string} from
6631
- * @param {string} username
6632
- * @param {string} password
6976
+ * @param {string} customerId
6977
+ * @param {string} apiKey
6633
6978
  * @param {boolean} enabled
6634
6979
  * @throws {AppwriteException}
6635
6980
  * @returns {Promise}
6636
6981
  */
6637
- createTelesignProvider(providerId, name, from, username, password, enabled) {
6982
+ createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
6638
6983
  return __awaiter(this, void 0, void 0, function* () {
6639
6984
  if (typeof providerId === 'undefined') {
6640
6985
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6653,11 +6998,11 @@ class Messaging extends Service {
6653
6998
  if (typeof from !== 'undefined') {
6654
6999
  payload['from'] = from;
6655
7000
  }
6656
- if (typeof username !== 'undefined') {
6657
- payload['username'] = username;
7001
+ if (typeof customerId !== 'undefined') {
7002
+ payload['customerId'] = customerId;
6658
7003
  }
6659
- if (typeof password !== 'undefined') {
6660
- payload['password'] = password;
7004
+ if (typeof apiKey !== 'undefined') {
7005
+ payload['apiKey'] = apiKey;
6661
7006
  }
6662
7007
  if (typeof enabled !== 'undefined') {
6663
7008
  payload['enabled'] = enabled;
@@ -6671,17 +7016,18 @@ class Messaging extends Service {
6671
7016
  /**
6672
7017
  * Update Telesign provider
6673
7018
  *
7019
+ * Update a Telesign provider by its unique ID.
6674
7020
  *
6675
7021
  * @param {string} providerId
6676
7022
  * @param {string} name
6677
7023
  * @param {boolean} enabled
6678
- * @param {string} username
6679
- * @param {string} password
7024
+ * @param {string} customerId
7025
+ * @param {string} apiKey
6680
7026
  * @param {string} from
6681
7027
  * @throws {AppwriteException}
6682
7028
  * @returns {Promise}
6683
7029
  */
6684
- updateTelesignProvider(providerId, name, enabled, username, password, from) {
7030
+ updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
6685
7031
  return __awaiter(this, void 0, void 0, function* () {
6686
7032
  if (typeof providerId === 'undefined') {
6687
7033
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6694,11 +7040,11 @@ class Messaging extends Service {
6694
7040
  if (typeof enabled !== 'undefined') {
6695
7041
  payload['enabled'] = enabled;
6696
7042
  }
6697
- if (typeof username !== 'undefined') {
6698
- payload['username'] = username;
7043
+ if (typeof customerId !== 'undefined') {
7044
+ payload['customerId'] = customerId;
6699
7045
  }
6700
- if (typeof password !== 'undefined') {
6701
- payload['password'] = password;
7046
+ if (typeof apiKey !== 'undefined') {
7047
+ payload['apiKey'] = apiKey;
6702
7048
  }
6703
7049
  if (typeof from !== 'undefined') {
6704
7050
  payload['from'] = from;
@@ -6712,6 +7058,7 @@ class Messaging extends Service {
6712
7058
  /**
6713
7059
  * Create Textmagic provider
6714
7060
  *
7061
+ * Create a new Textmagic provider.
6715
7062
  *
6716
7063
  * @param {string} providerId
6717
7064
  * @param {string} name
@@ -6759,6 +7106,7 @@ class Messaging extends Service {
6759
7106
  /**
6760
7107
  * Update Textmagic provider
6761
7108
  *
7109
+ * Update a Textmagic provider by its unique ID.
6762
7110
  *
6763
7111
  * @param {string} providerId
6764
7112
  * @param {string} name
@@ -6800,6 +7148,7 @@ class Messaging extends Service {
6800
7148
  /**
6801
7149
  * Create Twilio provider
6802
7150
  *
7151
+ * Create a new Twilio provider.
6803
7152
  *
6804
7153
  * @param {string} providerId
6805
7154
  * @param {string} name
@@ -6847,6 +7196,7 @@ class Messaging extends Service {
6847
7196
  /**
6848
7197
  * Update Twilio provider
6849
7198
  *
7199
+ * Update a Twilio provider by its unique ID.
6850
7200
  *
6851
7201
  * @param {string} providerId
6852
7202
  * @param {string} name
@@ -6888,6 +7238,7 @@ class Messaging extends Service {
6888
7238
  /**
6889
7239
  * Create Vonage provider
6890
7240
  *
7241
+ * Create a new Vonage provider.
6891
7242
  *
6892
7243
  * @param {string} providerId
6893
7244
  * @param {string} name
@@ -6935,6 +7286,7 @@ class Messaging extends Service {
6935
7286
  /**
6936
7287
  * Update Vonage provider
6937
7288
  *
7289
+ * Update a Vonage provider by its unique ID.
6938
7290
  *
6939
7291
  * @param {string} providerId
6940
7292
  * @param {string} name
@@ -6976,6 +7328,8 @@ class Messaging extends Service {
6976
7328
  /**
6977
7329
  * Get provider
6978
7330
  *
7331
+ * Get a provider by its unique ID.
7332
+ *
6979
7333
  *
6980
7334
  * @param {string} providerId
6981
7335
  * @throws {AppwriteException}
@@ -6997,6 +7351,7 @@ class Messaging extends Service {
6997
7351
  /**
6998
7352
  * Delete provider
6999
7353
  *
7354
+ * Delete a provider by its unique ID.
7000
7355
  *
7001
7356
  * @param {string} providerId
7002
7357
  * @throws {AppwriteException}
@@ -7018,6 +7373,7 @@ class Messaging extends Service {
7018
7373
  /**
7019
7374
  * List provider logs
7020
7375
  *
7376
+ * Get the provider activity logs listed by its unique ID.
7021
7377
  *
7022
7378
  * @param {string} providerId
7023
7379
  * @param {string[]} queries
@@ -7043,6 +7399,7 @@ class Messaging extends Service {
7043
7399
  /**
7044
7400
  * List subscriber logs
7045
7401
  *
7402
+ * Get the subscriber activity logs listed by its unique ID.
7046
7403
  *
7047
7404
  * @param {string} subscriberId
7048
7405
  * @param {string[]} queries
@@ -7066,8 +7423,9 @@ class Messaging extends Service {
7066
7423
  });
7067
7424
  }
7068
7425
  /**
7069
- * List topics.
7426
+ * List topics
7070
7427
  *
7428
+ * Get a list of all topics from the current Appwrite project.
7071
7429
  *
7072
7430
  * @param {string[]} queries
7073
7431
  * @param {string} search
@@ -7091,15 +7449,17 @@ class Messaging extends Service {
7091
7449
  });
7092
7450
  }
7093
7451
  /**
7094
- * Create a topic.
7452
+ * Create topic
7095
7453
  *
7454
+ * Create a new topic.
7096
7455
  *
7097
7456
  * @param {string} topicId
7098
7457
  * @param {string} name
7458
+ * @param {string[]} subscribe
7099
7459
  * @throws {AppwriteException}
7100
7460
  * @returns {Promise}
7101
7461
  */
7102
- createTopic(topicId, name) {
7462
+ createTopic(topicId, name, subscribe) {
7103
7463
  return __awaiter(this, void 0, void 0, function* () {
7104
7464
  if (typeof topicId === 'undefined') {
7105
7465
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -7115,6 +7475,9 @@ class Messaging extends Service {
7115
7475
  if (typeof name !== 'undefined') {
7116
7476
  payload['name'] = name;
7117
7477
  }
7478
+ if (typeof subscribe !== 'undefined') {
7479
+ payload['subscribe'] = subscribe;
7480
+ }
7118
7481
  const uri = new URL(this.client.config.endpoint + apiPath);
7119
7482
  return yield this.client.call('post', uri, {
7120
7483
  'content-type': 'application/json',
@@ -7122,7 +7485,9 @@ class Messaging extends Service {
7122
7485
  });
7123
7486
  }
7124
7487
  /**
7125
- * Get a topic.
7488
+ * Get topic
7489
+ *
7490
+ * Get a topic by its unique ID.
7126
7491
  *
7127
7492
  *
7128
7493
  * @param {string} topicId
@@ -7143,15 +7508,18 @@ class Messaging extends Service {
7143
7508
  });
7144
7509
  }
7145
7510
  /**
7146
- * Update a topic.
7511
+ * Update topic
7512
+ *
7513
+ * Update a topic by its unique ID.
7147
7514
  *
7148
7515
  *
7149
7516
  * @param {string} topicId
7150
7517
  * @param {string} name
7518
+ * @param {string[]} subscribe
7151
7519
  * @throws {AppwriteException}
7152
7520
  * @returns {Promise}
7153
7521
  */
7154
- updateTopic(topicId, name) {
7522
+ updateTopic(topicId, name, subscribe) {
7155
7523
  return __awaiter(this, void 0, void 0, function* () {
7156
7524
  if (typeof topicId === 'undefined') {
7157
7525
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -7161,6 +7529,9 @@ class Messaging extends Service {
7161
7529
  if (typeof name !== 'undefined') {
7162
7530
  payload['name'] = name;
7163
7531
  }
7532
+ if (typeof subscribe !== 'undefined') {
7533
+ payload['subscribe'] = subscribe;
7534
+ }
7164
7535
  const uri = new URL(this.client.config.endpoint + apiPath);
7165
7536
  return yield this.client.call('patch', uri, {
7166
7537
  'content-type': 'application/json',
@@ -7168,8 +7539,9 @@ class Messaging extends Service {
7168
7539
  });
7169
7540
  }
7170
7541
  /**
7171
- * Delete a topic.
7542
+ * Delete topic
7172
7543
  *
7544
+ * Delete a topic by its unique ID.
7173
7545
  *
7174
7546
  * @param {string} topicId
7175
7547
  * @throws {AppwriteException}
@@ -7191,6 +7563,7 @@ class Messaging extends Service {
7191
7563
  /**
7192
7564
  * List topic logs
7193
7565
  *
7566
+ * Get the topic activity logs listed by its unique ID.
7194
7567
  *
7195
7568
  * @param {string} topicId
7196
7569
  * @param {string[]} queries
@@ -7214,8 +7587,9 @@ class Messaging extends Service {
7214
7587
  });
7215
7588
  }
7216
7589
  /**
7217
- * List subscribers.
7590
+ * List subscribers
7218
7591
  *
7592
+ * Get a list of all subscribers from the current Appwrite project.
7219
7593
  *
7220
7594
  * @param {string} topicId
7221
7595
  * @param {string[]} queries
@@ -7243,8 +7617,9 @@ class Messaging extends Service {
7243
7617
  });
7244
7618
  }
7245
7619
  /**
7246
- * Create a subscriber.
7620
+ * Create subscriber
7247
7621
  *
7622
+ * Create a new subscriber.
7248
7623
  *
7249
7624
  * @param {string} topicId
7250
7625
  * @param {string} subscriberId
@@ -7278,7 +7653,9 @@ class Messaging extends Service {
7278
7653
  });
7279
7654
  }
7280
7655
  /**
7281
- * Get a subscriber.
7656
+ * Get subscriber
7657
+ *
7658
+ * Get a subscriber by its unique ID.
7282
7659
  *
7283
7660
  *
7284
7661
  * @param {string} topicId
@@ -7303,8 +7680,9 @@ class Messaging extends Service {
7303
7680
  });
7304
7681
  }
7305
7682
  /**
7306
- * Delete a subscriber.
7683
+ * Delete subscriber
7307
7684
  *
7685
+ * Delete a subscriber by its unique ID.
7308
7686
  *
7309
7687
  * @param {string} topicId
7310
7688
  * @param {string} subscriberId
@@ -7942,7 +8320,7 @@ class Project extends Service {
7942
8320
  super(client);
7943
8321
  }
7944
8322
  /**
7945
- * Get usage stats for a project
8323
+ * Get project usage stats
7946
8324
  *
7947
8325
  *
7948
8326
  * @param {string} startDate
@@ -8321,6 +8699,69 @@ class Projects extends Service {
8321
8699
  }, payload);
8322
8700
  });
8323
8701
  }
8702
+ /**
8703
+ * Update API status
8704
+ *
8705
+ *
8706
+ * @param {string} projectId
8707
+ * @param {Api} api
8708
+ * @param {boolean} status
8709
+ * @throws {AppwriteException}
8710
+ * @returns {Promise}
8711
+ */
8712
+ updateApiStatus(projectId, api, status) {
8713
+ return __awaiter(this, void 0, void 0, function* () {
8714
+ if (typeof projectId === 'undefined') {
8715
+ throw new AppwriteException('Missing required parameter: "projectId"');
8716
+ }
8717
+ if (typeof api === 'undefined') {
8718
+ throw new AppwriteException('Missing required parameter: "api"');
8719
+ }
8720
+ if (typeof status === 'undefined') {
8721
+ throw new AppwriteException('Missing required parameter: "status"');
8722
+ }
8723
+ const apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
8724
+ const payload = {};
8725
+ if (typeof api !== 'undefined') {
8726
+ payload['api'] = api;
8727
+ }
8728
+ if (typeof status !== 'undefined') {
8729
+ payload['status'] = status;
8730
+ }
8731
+ const uri = new URL(this.client.config.endpoint + apiPath);
8732
+ return yield this.client.call('patch', uri, {
8733
+ 'content-type': 'application/json',
8734
+ }, payload);
8735
+ });
8736
+ }
8737
+ /**
8738
+ * Update all API status
8739
+ *
8740
+ *
8741
+ * @param {string} projectId
8742
+ * @param {boolean} status
8743
+ * @throws {AppwriteException}
8744
+ * @returns {Promise}
8745
+ */
8746
+ updateApiStatusAll(projectId, status) {
8747
+ return __awaiter(this, void 0, void 0, function* () {
8748
+ if (typeof projectId === 'undefined') {
8749
+ throw new AppwriteException('Missing required parameter: "projectId"');
8750
+ }
8751
+ if (typeof status === 'undefined') {
8752
+ throw new AppwriteException('Missing required parameter: "status"');
8753
+ }
8754
+ const apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
8755
+ const payload = {};
8756
+ if (typeof status !== 'undefined') {
8757
+ payload['status'] = status;
8758
+ }
8759
+ const uri = new URL(this.client.config.endpoint + apiPath);
8760
+ return yield this.client.call('patch', uri, {
8761
+ 'content-type': 'application/json',
8762
+ }, payload);
8763
+ });
8764
+ }
8324
8765
  /**
8325
8766
  * Update project authentication duration
8326
8767
  *
@@ -8881,7 +9322,7 @@ class Projects extends Service {
8881
9322
  *
8882
9323
  *
8883
9324
  * @param {string} projectId
8884
- * @param {APIService} service
9325
+ * @param {ApiService} service
8885
9326
  * @param {boolean} status
8886
9327
  * @throws {AppwriteException}
8887
9328
  * @returns {Promise}
@@ -9101,8 +9542,8 @@ class Projects extends Service {
9101
9542
  *
9102
9543
  *
9103
9544
  * @param {string} projectId
9104
- * @param {TemplateType} type
9105
- * @param {TemplateLocale} locale
9545
+ * @param {EmailTemplateType} type
9546
+ * @param {EmailTemplateLocale} locale
9106
9547
  * @throws {AppwriteException}
9107
9548
  * @returns {Promise}
9108
9549
  */
@@ -9130,8 +9571,8 @@ class Projects extends Service {
9130
9571
  *
9131
9572
  *
9132
9573
  * @param {string} projectId
9133
- * @param {TemplateType} type
9134
- * @param {TemplateLocale} locale
9574
+ * @param {EmailTemplateType} type
9575
+ * @param {EmailTemplateLocale} locale
9135
9576
  * @param {string} subject
9136
9577
  * @param {string} message
9137
9578
  * @param {string} senderName
@@ -9185,8 +9626,8 @@ class Projects extends Service {
9185
9626
  *
9186
9627
  *
9187
9628
  * @param {string} projectId
9188
- * @param {TemplateType} type
9189
- * @param {TemplateLocale} locale
9629
+ * @param {EmailTemplateType} type
9630
+ * @param {EmailTemplateLocale} locale
9190
9631
  * @throws {AppwriteException}
9191
9632
  * @returns {Promise}
9192
9633
  */
@@ -9214,8 +9655,8 @@ class Projects extends Service {
9214
9655
  *
9215
9656
  *
9216
9657
  * @param {string} projectId
9217
- * @param {TemplateType} type
9218
- * @param {TemplateLocale} locale
9658
+ * @param {SmsTemplateType} type
9659
+ * @param {SmsTemplateLocale} locale
9219
9660
  * @throws {AppwriteException}
9220
9661
  * @returns {Promise}
9221
9662
  */
@@ -9243,8 +9684,8 @@ class Projects extends Service {
9243
9684
  *
9244
9685
  *
9245
9686
  * @param {string} projectId
9246
- * @param {TemplateType} type
9247
- * @param {TemplateLocale} locale
9687
+ * @param {SmsTemplateType} type
9688
+ * @param {SmsTemplateLocale} locale
9248
9689
  * @param {string} message
9249
9690
  * @throws {AppwriteException}
9250
9691
  * @returns {Promise}
@@ -9279,8 +9720,8 @@ class Projects extends Service {
9279
9720
  *
9280
9721
  *
9281
9722
  * @param {string} projectId
9282
- * @param {TemplateType} type
9283
- * @param {TemplateLocale} locale
9723
+ * @param {SmsTemplateType} type
9724
+ * @param {SmsTemplateLocale} locale
9284
9725
  * @throws {AppwriteException}
9285
9726
  * @returns {Promise}
9286
9727
  */
@@ -10210,7 +10651,7 @@ class Storage extends Service {
10210
10651
  return uri;
10211
10652
  }
10212
10653
  /**
10213
- * Get usage stats for storage
10654
+ * Get storage usage stats
10214
10655
  *
10215
10656
  *
10216
10657
  * @param {StorageUsageRange} range
@@ -10231,7 +10672,7 @@ class Storage extends Service {
10231
10672
  });
10232
10673
  }
10233
10674
  /**
10234
- * Get usage stats for storage bucket
10675
+ * Get bucket usage stats
10235
10676
  *
10236
10677
  *
10237
10678
  * @param {string} bucketId
@@ -11184,7 +11625,7 @@ class Users extends Service {
11184
11625
  * @param {string} userId
11185
11626
  * @param {string} email
11186
11627
  * @param {string} password
11187
- * @param {PasswordVersion} passwordVersion
11628
+ * @param {PasswordHash} passwordVersion
11188
11629
  * @param {string} name
11189
11630
  * @throws {AppwriteException}
11190
11631
  * @returns {Promise}
@@ -11224,7 +11665,7 @@ class Users extends Service {
11224
11665
  });
11225
11666
  }
11226
11667
  /**
11227
- * Get usage stats for the users API
11668
+ * Get users usage stats
11228
11669
  *
11229
11670
  *
11230
11671
  * @param {UserUsageRange} range
@@ -11407,6 +11848,7 @@ class Users extends Service {
11407
11848
  /**
11408
11849
  * Update MFA
11409
11850
  *
11851
+ * Enable or disable MFA on a user account.
11410
11852
  *
11411
11853
  * @param {string} userId
11412
11854
  * @param {boolean} mfa
@@ -11435,31 +11877,122 @@ class Users extends Service {
11435
11877
  /**
11436
11878
  * Delete Authenticator
11437
11879
  *
11880
+ * Delete an authenticator app.
11438
11881
  *
11439
11882
  * @param {string} userId
11440
- * @param {AuthenticatorProvider} provider
11441
- * @param {string} otp
11883
+ * @param {AuthenticatorType} type
11442
11884
  * @throws {AppwriteException}
11443
11885
  * @returns {Promise}
11444
11886
  */
11445
- deleteAuthenticator(userId, provider, otp) {
11887
+ deleteMfaAuthenticator(userId, type) {
11446
11888
  return __awaiter(this, void 0, void 0, function* () {
11447
11889
  if (typeof userId === 'undefined') {
11448
11890
  throw new AppwriteException('Missing required parameter: "userId"');
11449
11891
  }
11450
- if (typeof provider === 'undefined') {
11451
- throw new AppwriteException('Missing required parameter: "provider"');
11892
+ if (typeof type === 'undefined') {
11893
+ throw new AppwriteException('Missing required parameter: "type"');
11452
11894
  }
11453
- if (typeof otp === 'undefined') {
11454
- throw new AppwriteException('Missing required parameter: "otp"');
11895
+ const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
11896
+ const payload = {};
11897
+ const uri = new URL(this.client.config.endpoint + apiPath);
11898
+ return yield this.client.call('delete', uri, {
11899
+ 'content-type': 'application/json',
11900
+ }, payload);
11901
+ });
11902
+ }
11903
+ /**
11904
+ * List Factors
11905
+ *
11906
+ * List the factors available on the account to be used as a MFA challange.
11907
+ *
11908
+ * @param {string} userId
11909
+ * @throws {AppwriteException}
11910
+ * @returns {Promise}
11911
+ */
11912
+ listMfaFactors(userId) {
11913
+ return __awaiter(this, void 0, void 0, function* () {
11914
+ if (typeof userId === 'undefined') {
11915
+ throw new AppwriteException('Missing required parameter: "userId"');
11455
11916
  }
11456
- const apiPath = '/users/{userId}/mfa/{provider}'.replace('{userId}', userId).replace('{provider}', provider);
11917
+ const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
11457
11918
  const payload = {};
11458
- if (typeof otp !== 'undefined') {
11459
- payload['otp'] = otp;
11919
+ const uri = new URL(this.client.config.endpoint + apiPath);
11920
+ return yield this.client.call('get', uri, {
11921
+ 'content-type': 'application/json',
11922
+ }, payload);
11923
+ });
11924
+ }
11925
+ /**
11926
+ * Get MFA Recovery Codes
11927
+ *
11928
+ * Get recovery codes that can be used as backup for MFA flow by User ID.
11929
+ * Before getting codes, they must be generated using
11930
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
11931
+ * method.
11932
+ *
11933
+ * @param {string} userId
11934
+ * @throws {AppwriteException}
11935
+ * @returns {Promise}
11936
+ */
11937
+ getMfaRecoveryCodes(userId) {
11938
+ return __awaiter(this, void 0, void 0, function* () {
11939
+ if (typeof userId === 'undefined') {
11940
+ throw new AppwriteException('Missing required parameter: "userId"');
11460
11941
  }
11942
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11943
+ const payload = {};
11461
11944
  const uri = new URL(this.client.config.endpoint + apiPath);
11462
- return yield this.client.call('delete', uri, {
11945
+ return yield this.client.call('get', uri, {
11946
+ 'content-type': 'application/json',
11947
+ }, payload);
11948
+ });
11949
+ }
11950
+ /**
11951
+ * Regenerate MFA Recovery Codes
11952
+ *
11953
+ * Regenerate recovery codes that can be used as backup for MFA flow by User
11954
+ * ID. Before regenerating codes, they must be first generated using
11955
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
11956
+ * method.
11957
+ *
11958
+ * @param {string} userId
11959
+ * @throws {AppwriteException}
11960
+ * @returns {Promise}
11961
+ */
11962
+ updateMfaRecoveryCodes(userId) {
11963
+ return __awaiter(this, void 0, void 0, function* () {
11964
+ if (typeof userId === 'undefined') {
11965
+ throw new AppwriteException('Missing required parameter: "userId"');
11966
+ }
11967
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11968
+ const payload = {};
11969
+ const uri = new URL(this.client.config.endpoint + apiPath);
11970
+ return yield this.client.call('put', uri, {
11971
+ 'content-type': 'application/json',
11972
+ }, payload);
11973
+ });
11974
+ }
11975
+ /**
11976
+ * Create MFA Recovery Codes
11977
+ *
11978
+ * Generate recovery codes used as backup for MFA flow for User ID. Recovery
11979
+ * codes can be used as a MFA verification type in
11980
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
11981
+ * method by client SDK.
11982
+ *
11983
+ * @param {string} userId
11984
+ * @throws {AppwriteException}
11985
+ * @returns {Promise}
11986
+ */
11987
+ createMfaRecoveryCodes(userId) {
11988
+ return __awaiter(this, void 0, void 0, function* () {
11989
+ if (typeof userId === 'undefined') {
11990
+ throw new AppwriteException('Missing required parameter: "userId"');
11991
+ }
11992
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11993
+ const payload = {};
11994
+ const uri = new URL(this.client.config.endpoint + apiPath);
11995
+ return yield this.client.call('patch', uri, {
11463
11996
  'content-type': 'application/json',
11464
11997
  }, payload);
11465
11998
  });
@@ -11604,27 +12137,6 @@ class Users extends Service {
11604
12137
  }, payload);
11605
12138
  });
11606
12139
  }
11607
- /**
11608
- * List Providers
11609
- *
11610
- *
11611
- * @param {string} userId
11612
- * @throws {AppwriteException}
11613
- * @returns {Promise}
11614
- */
11615
- listProviders(userId) {
11616
- return __awaiter(this, void 0, void 0, function* () {
11617
- if (typeof userId === 'undefined') {
11618
- throw new AppwriteException('Missing required parameter: "userId"');
11619
- }
11620
- const apiPath = '/users/{userId}/providers'.replace('{userId}', userId);
11621
- const payload = {};
11622
- const uri = new URL(this.client.config.endpoint + apiPath);
11623
- return yield this.client.call('get', uri, {
11624
- 'content-type': 'application/json',
11625
- }, payload);
11626
- });
11627
- }
11628
12140
  /**
11629
12141
  * List user sessions
11630
12142
  *
@@ -11755,6 +12267,7 @@ class Users extends Service {
11755
12267
  /**
11756
12268
  * List User Targets
11757
12269
  *
12270
+ * List the messaging targets that are associated with a user.
11758
12271
  *
11759
12272
  * @param {string} userId
11760
12273
  * @param {string[]} queries
@@ -11780,6 +12293,7 @@ class Users extends Service {
11780
12293
  /**
11781
12294
  * Create User Target
11782
12295
  *
12296
+ * Create a messaging target.
11783
12297
  *
11784
12298
  * @param {string} userId
11785
12299
  * @param {string} targetId
@@ -11830,6 +12344,7 @@ class Users extends Service {
11830
12344
  /**
11831
12345
  * Get User Target
11832
12346
  *
12347
+ * Get a user's push notification target by ID.
11833
12348
  *
11834
12349
  * @param {string} userId
11835
12350
  * @param {string} targetId
@@ -11855,6 +12370,7 @@ class Users extends Service {
11855
12370
  /**
11856
12371
  * Update User target
11857
12372
  *
12373
+ * Update a messaging target.
11858
12374
  *
11859
12375
  * @param {string} userId
11860
12376
  * @param {string} targetId
@@ -11892,6 +12408,7 @@ class Users extends Service {
11892
12408
  /**
11893
12409
  * Delete user target
11894
12410
  *
12411
+ * Delete a messaging target.
11895
12412
  *
11896
12413
  * @param {string} userId
11897
12414
  * @param {string} targetId
@@ -12373,15 +12890,18 @@ class ID {
12373
12890
  }
12374
12891
  }
12375
12892
 
12376
- var AuthenticatorProvider;
12377
- (function (AuthenticatorProvider) {
12378
- AuthenticatorProvider["Totp"] = "totp";
12379
- })(AuthenticatorProvider || (AuthenticatorProvider = {}));
12893
+ var AuthenticatorType;
12894
+ (function (AuthenticatorType) {
12895
+ AuthenticatorType["Totp"] = "totp";
12896
+ })(AuthenticatorType || (AuthenticatorType = {}));
12380
12897
 
12381
- var AuthenticatorFactor;
12382
- (function (AuthenticatorFactor) {
12383
- AuthenticatorFactor["Totp"] = "totp";
12384
- })(AuthenticatorFactor || (AuthenticatorFactor = {}));
12898
+ var AuthenticationFactor;
12899
+ (function (AuthenticationFactor) {
12900
+ AuthenticationFactor["Email"] = "email";
12901
+ AuthenticationFactor["Phone"] = "phone";
12902
+ AuthenticationFactor["Totp"] = "totp";
12903
+ AuthenticationFactor["Recoverycode"] = "recoverycode";
12904
+ })(AuthenticationFactor || (AuthenticationFactor = {}));
12385
12905
 
12386
12906
  var OAuthProvider;
12387
12907
  (function (OAuthProvider) {
@@ -12689,15 +13209,54 @@ var IndexType;
12689
13209
  IndexType["Key"] = "key";
12690
13210
  IndexType["Fulltext"] = "fulltext";
12691
13211
  IndexType["Unique"] = "unique";
12692
- IndexType["Spatial"] = "spatial";
12693
13212
  })(IndexType || (IndexType = {}));
12694
13213
 
12695
13214
  var Runtime;
12696
13215
  (function (Runtime) {
13216
+ Runtime["Node145"] = "node-14.5";
13217
+ Runtime["Node160"] = "node-16.0";
12697
13218
  Runtime["Node180"] = "node-18.0";
13219
+ Runtime["Node190"] = "node-19.0";
13220
+ Runtime["Node200"] = "node-20.0";
13221
+ Runtime["Node210"] = "node-21.0";
12698
13222
  Runtime["Php80"] = "php-8.0";
13223
+ Runtime["Php81"] = "php-8.1";
13224
+ Runtime["Php82"] = "php-8.2";
13225
+ Runtime["Php83"] = "php-8.3";
13226
+ Runtime["Ruby30"] = "ruby-3.0";
12699
13227
  Runtime["Ruby31"] = "ruby-3.1";
13228
+ Runtime["Ruby32"] = "ruby-3.2";
13229
+ Runtime["Ruby33"] = "ruby-3.3";
13230
+ Runtime["Python38"] = "python-3.8";
12700
13231
  Runtime["Python39"] = "python-3.9";
13232
+ Runtime["Python310"] = "python-3.10";
13233
+ Runtime["Python311"] = "python-3.11";
13234
+ Runtime["Python312"] = "python-3.12";
13235
+ Runtime["Deno140"] = "deno-1.40";
13236
+ Runtime["Dart215"] = "dart-2.15";
13237
+ Runtime["Dart216"] = "dart-2.16";
13238
+ Runtime["Dart217"] = "dart-2.17";
13239
+ Runtime["Dart218"] = "dart-2.18";
13240
+ Runtime["Dart30"] = "dart-3.0";
13241
+ Runtime["Dart31"] = "dart-3.1";
13242
+ Runtime["Dart33"] = "dart-3.3";
13243
+ Runtime["Dotnet31"] = "dotnet-3.1";
13244
+ Runtime["Dotnet60"] = "dotnet-6.0";
13245
+ Runtime["Dotnet70"] = "dotnet-7.0";
13246
+ Runtime["Java80"] = "java-8.0";
13247
+ Runtime["Java110"] = "java-11.0";
13248
+ Runtime["Java170"] = "java-17.0";
13249
+ Runtime["Java180"] = "java-18.0";
13250
+ Runtime["Java210"] = "java-21.0";
13251
+ Runtime["Swift55"] = "swift-5.5";
13252
+ Runtime["Swift58"] = "swift-5.8";
13253
+ Runtime["Swift59"] = "swift-5.9";
13254
+ Runtime["Kotlin16"] = "kotlin-1.6";
13255
+ Runtime["Kotlin18"] = "kotlin-1.8";
13256
+ Runtime["Kotlin19"] = "kotlin-1.9";
13257
+ Runtime["Cpp17"] = "cpp-17";
13258
+ Runtime["Cpp20"] = "cpp-20";
13259
+ Runtime["Bun10"] = "bun-1.0";
12701
13260
  })(Runtime || (Runtime = {}));
12702
13261
 
12703
13262
  var FunctionUsageRange;
@@ -12717,19 +13276,29 @@ var ExecutionMethod;
12717
13276
  ExecutionMethod["OPTIONS"] = "OPTIONS";
12718
13277
  })(ExecutionMethod || (ExecutionMethod = {}));
12719
13278
 
12720
- var MessageType;
12721
- (function (MessageType) {
12722
- MessageType["Draft"] = "draft";
12723
- MessageType["Cancelled"] = "cancelled";
12724
- MessageType["Processing"] = "processing";
12725
- })(MessageType || (MessageType = {}));
13279
+ var Name;
13280
+ (function (Name) {
13281
+ Name["V1database"] = "v1-database";
13282
+ Name["V1deletes"] = "v1-deletes";
13283
+ Name["V1audits"] = "v1-audits";
13284
+ Name["V1mails"] = "v1-mails";
13285
+ Name["V1functions"] = "v1-functions";
13286
+ Name["V1usage"] = "v1-usage";
13287
+ Name["V1usagedump"] = "v1-usage-dump";
13288
+ Name["Webhooksv1"] = "webhooksv1";
13289
+ Name["V1certificates"] = "v1-certificates";
13290
+ Name["V1builds"] = "v1-builds";
13291
+ Name["V1messaging"] = "v1-messaging";
13292
+ Name["V1migrations"] = "v1-migrations";
13293
+ Name["Hamsterv1"] = "hamsterv1";
13294
+ })(Name || (Name = {}));
12726
13295
 
12727
- var SMTPEncryption;
12728
- (function (SMTPEncryption) {
12729
- SMTPEncryption["None"] = "none";
12730
- SMTPEncryption["Ssl"] = "ssl";
12731
- SMTPEncryption["Tls"] = "tls";
12732
- })(SMTPEncryption || (SMTPEncryption = {}));
13296
+ var SmtpEncryption;
13297
+ (function (SmtpEncryption) {
13298
+ SmtpEncryption["None"] = "none";
13299
+ SmtpEncryption["Ssl"] = "ssl";
13300
+ SmtpEncryption["Tls"] = "tls";
13301
+ })(SmtpEncryption || (SmtpEncryption = {}));
12733
13302
 
12734
13303
  var ProjectUsageRange;
12735
13304
  (function (ProjectUsageRange) {
@@ -12740,8 +13309,16 @@ var ProjectUsageRange;
12740
13309
  var Region;
12741
13310
  (function (Region) {
12742
13311
  Region["Default"] = "default";
13312
+ Region["Fra"] = "fra";
12743
13313
  })(Region || (Region = {}));
12744
13314
 
13315
+ var Api;
13316
+ (function (Api) {
13317
+ Api["Rest"] = "rest";
13318
+ Api["Graphql"] = "graphql";
13319
+ Api["Realtime"] = "realtime";
13320
+ })(Api || (Api = {}));
13321
+
12745
13322
  var AuthMethod;
12746
13323
  (function (AuthMethod) {
12747
13324
  AuthMethod["Emailpassword"] = "email-password";
@@ -12770,167 +13347,312 @@ var PlatformType;
12770
13347
  PlatformType["Unity"] = "unity";
12771
13348
  })(PlatformType || (PlatformType = {}));
12772
13349
 
12773
- var APIService;
12774
- (function (APIService) {
12775
- APIService["Account"] = "account";
12776
- APIService["Avatars"] = "avatars";
12777
- APIService["Databases"] = "databases";
12778
- APIService["Locale"] = "locale";
12779
- APIService["Health"] = "health";
12780
- APIService["Storage"] = "storage";
12781
- APIService["Teams"] = "teams";
12782
- APIService["Users"] = "users";
12783
- APIService["Functions"] = "functions";
12784
- APIService["Graphql"] = "graphql";
12785
- APIService["Messaging"] = "messaging";
12786
- })(APIService || (APIService = {}));
13350
+ var ApiService;
13351
+ (function (ApiService) {
13352
+ ApiService["Account"] = "account";
13353
+ ApiService["Avatars"] = "avatars";
13354
+ ApiService["Databases"] = "databases";
13355
+ ApiService["Locale"] = "locale";
13356
+ ApiService["Health"] = "health";
13357
+ ApiService["Storage"] = "storage";
13358
+ ApiService["Teams"] = "teams";
13359
+ ApiService["Users"] = "users";
13360
+ ApiService["Functions"] = "functions";
13361
+ ApiService["Graphql"] = "graphql";
13362
+ ApiService["Messaging"] = "messaging";
13363
+ })(ApiService || (ApiService = {}));
12787
13364
 
12788
13365
  var SMTPSecure;
12789
13366
  (function (SMTPSecure) {
12790
13367
  SMTPSecure["Tls"] = "tls";
12791
13368
  })(SMTPSecure || (SMTPSecure = {}));
12792
13369
 
12793
- var TemplateType;
12794
- (function (TemplateType) {
12795
- TemplateType["Verification"] = "verification";
12796
- TemplateType["Login"] = "login";
12797
- TemplateType["Invitation"] = "invitation";
12798
- })(TemplateType || (TemplateType = {}));
13370
+ var EmailTemplateType;
13371
+ (function (EmailTemplateType) {
13372
+ EmailTemplateType["Verification"] = "verification";
13373
+ EmailTemplateType["Magicsession"] = "magicsession";
13374
+ EmailTemplateType["Recovery"] = "recovery";
13375
+ EmailTemplateType["Invitation"] = "invitation";
13376
+ EmailTemplateType["Mfachallenge"] = "mfachallenge";
13377
+ })(EmailTemplateType || (EmailTemplateType = {}));
13378
+
13379
+ var EmailTemplateLocale;
13380
+ (function (EmailTemplateLocale) {
13381
+ EmailTemplateLocale["Af"] = "af";
13382
+ EmailTemplateLocale["Arae"] = "ar-ae";
13383
+ EmailTemplateLocale["Arbh"] = "ar-bh";
13384
+ EmailTemplateLocale["Ardz"] = "ar-dz";
13385
+ EmailTemplateLocale["Areg"] = "ar-eg";
13386
+ EmailTemplateLocale["Ariq"] = "ar-iq";
13387
+ EmailTemplateLocale["Arjo"] = "ar-jo";
13388
+ EmailTemplateLocale["Arkw"] = "ar-kw";
13389
+ EmailTemplateLocale["Arlb"] = "ar-lb";
13390
+ EmailTemplateLocale["Arly"] = "ar-ly";
13391
+ EmailTemplateLocale["Arma"] = "ar-ma";
13392
+ EmailTemplateLocale["Arom"] = "ar-om";
13393
+ EmailTemplateLocale["Arqa"] = "ar-qa";
13394
+ EmailTemplateLocale["Arsa"] = "ar-sa";
13395
+ EmailTemplateLocale["Arsy"] = "ar-sy";
13396
+ EmailTemplateLocale["Artn"] = "ar-tn";
13397
+ EmailTemplateLocale["Arye"] = "ar-ye";
13398
+ EmailTemplateLocale["As"] = "as";
13399
+ EmailTemplateLocale["Az"] = "az";
13400
+ EmailTemplateLocale["Be"] = "be";
13401
+ EmailTemplateLocale["Bg"] = "bg";
13402
+ EmailTemplateLocale["Bh"] = "bh";
13403
+ EmailTemplateLocale["Bn"] = "bn";
13404
+ EmailTemplateLocale["Bs"] = "bs";
13405
+ EmailTemplateLocale["Ca"] = "ca";
13406
+ EmailTemplateLocale["Cs"] = "cs";
13407
+ EmailTemplateLocale["Cy"] = "cy";
13408
+ EmailTemplateLocale["Da"] = "da";
13409
+ EmailTemplateLocale["De"] = "de";
13410
+ EmailTemplateLocale["Deat"] = "de-at";
13411
+ EmailTemplateLocale["Dech"] = "de-ch";
13412
+ EmailTemplateLocale["Deli"] = "de-li";
13413
+ EmailTemplateLocale["Delu"] = "de-lu";
13414
+ EmailTemplateLocale["El"] = "el";
13415
+ EmailTemplateLocale["En"] = "en";
13416
+ EmailTemplateLocale["Enau"] = "en-au";
13417
+ EmailTemplateLocale["Enbz"] = "en-bz";
13418
+ EmailTemplateLocale["Enca"] = "en-ca";
13419
+ EmailTemplateLocale["Engb"] = "en-gb";
13420
+ EmailTemplateLocale["Enie"] = "en-ie";
13421
+ EmailTemplateLocale["Enjm"] = "en-jm";
13422
+ EmailTemplateLocale["Ennz"] = "en-nz";
13423
+ EmailTemplateLocale["Entt"] = "en-tt";
13424
+ EmailTemplateLocale["Enus"] = "en-us";
13425
+ EmailTemplateLocale["Enza"] = "en-za";
13426
+ EmailTemplateLocale["Eo"] = "eo";
13427
+ EmailTemplateLocale["Es"] = "es";
13428
+ EmailTemplateLocale["Esar"] = "es-ar";
13429
+ EmailTemplateLocale["Esbo"] = "es-bo";
13430
+ EmailTemplateLocale["Escl"] = "es-cl";
13431
+ EmailTemplateLocale["Esco"] = "es-co";
13432
+ EmailTemplateLocale["Escr"] = "es-cr";
13433
+ EmailTemplateLocale["Esdo"] = "es-do";
13434
+ EmailTemplateLocale["Esec"] = "es-ec";
13435
+ EmailTemplateLocale["Esgt"] = "es-gt";
13436
+ EmailTemplateLocale["Eshn"] = "es-hn";
13437
+ EmailTemplateLocale["Esmx"] = "es-mx";
13438
+ EmailTemplateLocale["Esni"] = "es-ni";
13439
+ EmailTemplateLocale["Espa"] = "es-pa";
13440
+ EmailTemplateLocale["Espe"] = "es-pe";
13441
+ EmailTemplateLocale["Espr"] = "es-pr";
13442
+ EmailTemplateLocale["Espy"] = "es-py";
13443
+ EmailTemplateLocale["Essv"] = "es-sv";
13444
+ EmailTemplateLocale["Esuy"] = "es-uy";
13445
+ EmailTemplateLocale["Esve"] = "es-ve";
13446
+ EmailTemplateLocale["Et"] = "et";
13447
+ EmailTemplateLocale["Eu"] = "eu";
13448
+ EmailTemplateLocale["Fa"] = "fa";
13449
+ EmailTemplateLocale["Fi"] = "fi";
13450
+ EmailTemplateLocale["Fo"] = "fo";
13451
+ EmailTemplateLocale["Fr"] = "fr";
13452
+ EmailTemplateLocale["Frbe"] = "fr-be";
13453
+ EmailTemplateLocale["Frca"] = "fr-ca";
13454
+ EmailTemplateLocale["Frch"] = "fr-ch";
13455
+ EmailTemplateLocale["Frlu"] = "fr-lu";
13456
+ EmailTemplateLocale["Ga"] = "ga";
13457
+ EmailTemplateLocale["Gd"] = "gd";
13458
+ EmailTemplateLocale["He"] = "he";
13459
+ EmailTemplateLocale["Hi"] = "hi";
13460
+ EmailTemplateLocale["Hr"] = "hr";
13461
+ EmailTemplateLocale["Hu"] = "hu";
13462
+ EmailTemplateLocale["Id"] = "id";
13463
+ EmailTemplateLocale["Is"] = "is";
13464
+ EmailTemplateLocale["It"] = "it";
13465
+ EmailTemplateLocale["Itch"] = "it-ch";
13466
+ EmailTemplateLocale["Ja"] = "ja";
13467
+ EmailTemplateLocale["Ji"] = "ji";
13468
+ EmailTemplateLocale["Ko"] = "ko";
13469
+ EmailTemplateLocale["Ku"] = "ku";
13470
+ EmailTemplateLocale["Lt"] = "lt";
13471
+ EmailTemplateLocale["Lv"] = "lv";
13472
+ EmailTemplateLocale["Mk"] = "mk";
13473
+ EmailTemplateLocale["Ml"] = "ml";
13474
+ EmailTemplateLocale["Ms"] = "ms";
13475
+ EmailTemplateLocale["Mt"] = "mt";
13476
+ EmailTemplateLocale["Nb"] = "nb";
13477
+ EmailTemplateLocale["Ne"] = "ne";
13478
+ EmailTemplateLocale["Nl"] = "nl";
13479
+ EmailTemplateLocale["Nlbe"] = "nl-be";
13480
+ EmailTemplateLocale["Nn"] = "nn";
13481
+ EmailTemplateLocale["No"] = "no";
13482
+ EmailTemplateLocale["Pa"] = "pa";
13483
+ EmailTemplateLocale["Pl"] = "pl";
13484
+ EmailTemplateLocale["Pt"] = "pt";
13485
+ EmailTemplateLocale["Ptbr"] = "pt-br";
13486
+ EmailTemplateLocale["Rm"] = "rm";
13487
+ EmailTemplateLocale["Ro"] = "ro";
13488
+ EmailTemplateLocale["Romd"] = "ro-md";
13489
+ EmailTemplateLocale["Ru"] = "ru";
13490
+ EmailTemplateLocale["Rumd"] = "ru-md";
13491
+ EmailTemplateLocale["Sb"] = "sb";
13492
+ EmailTemplateLocale["Sk"] = "sk";
13493
+ EmailTemplateLocale["Sl"] = "sl";
13494
+ EmailTemplateLocale["Sq"] = "sq";
13495
+ EmailTemplateLocale["Sr"] = "sr";
13496
+ EmailTemplateLocale["Sv"] = "sv";
13497
+ EmailTemplateLocale["Svfi"] = "sv-fi";
13498
+ EmailTemplateLocale["Th"] = "th";
13499
+ EmailTemplateLocale["Tn"] = "tn";
13500
+ EmailTemplateLocale["Tr"] = "tr";
13501
+ EmailTemplateLocale["Ts"] = "ts";
13502
+ EmailTemplateLocale["Ua"] = "ua";
13503
+ EmailTemplateLocale["Ur"] = "ur";
13504
+ EmailTemplateLocale["Ve"] = "ve";
13505
+ EmailTemplateLocale["Vi"] = "vi";
13506
+ EmailTemplateLocale["Xh"] = "xh";
13507
+ EmailTemplateLocale["Zhcn"] = "zh-cn";
13508
+ EmailTemplateLocale["Zhhk"] = "zh-hk";
13509
+ EmailTemplateLocale["Zhsg"] = "zh-sg";
13510
+ EmailTemplateLocale["Zhtw"] = "zh-tw";
13511
+ EmailTemplateLocale["Zu"] = "zu";
13512
+ })(EmailTemplateLocale || (EmailTemplateLocale = {}));
13513
+
13514
+ var SmsTemplateType;
13515
+ (function (SmsTemplateType) {
13516
+ SmsTemplateType["Verification"] = "verification";
13517
+ SmsTemplateType["Login"] = "login";
13518
+ SmsTemplateType["Invitation"] = "invitation";
13519
+ SmsTemplateType["Mfachallenge"] = "mfachallenge";
13520
+ })(SmsTemplateType || (SmsTemplateType = {}));
12799
13521
 
12800
- var TemplateLocale;
12801
- (function (TemplateLocale) {
12802
- TemplateLocale["Af"] = "af";
12803
- TemplateLocale["Arae"] = "ar-ae";
12804
- TemplateLocale["Arbh"] = "ar-bh";
12805
- TemplateLocale["Ardz"] = "ar-dz";
12806
- TemplateLocale["Areg"] = "ar-eg";
12807
- TemplateLocale["Ariq"] = "ar-iq";
12808
- TemplateLocale["Arjo"] = "ar-jo";
12809
- TemplateLocale["Arkw"] = "ar-kw";
12810
- TemplateLocale["Arlb"] = "ar-lb";
12811
- TemplateLocale["Arly"] = "ar-ly";
12812
- TemplateLocale["Arma"] = "ar-ma";
12813
- TemplateLocale["Arom"] = "ar-om";
12814
- TemplateLocale["Arqa"] = "ar-qa";
12815
- TemplateLocale["Arsa"] = "ar-sa";
12816
- TemplateLocale["Arsy"] = "ar-sy";
12817
- TemplateLocale["Artn"] = "ar-tn";
12818
- TemplateLocale["Arye"] = "ar-ye";
12819
- TemplateLocale["As"] = "as";
12820
- TemplateLocale["Az"] = "az";
12821
- TemplateLocale["Be"] = "be";
12822
- TemplateLocale["Bg"] = "bg";
12823
- TemplateLocale["Bh"] = "bh";
12824
- TemplateLocale["Bn"] = "bn";
12825
- TemplateLocale["Bs"] = "bs";
12826
- TemplateLocale["Ca"] = "ca";
12827
- TemplateLocale["Cs"] = "cs";
12828
- TemplateLocale["Cy"] = "cy";
12829
- TemplateLocale["Da"] = "da";
12830
- TemplateLocale["De"] = "de";
12831
- TemplateLocale["Deat"] = "de-at";
12832
- TemplateLocale["Dech"] = "de-ch";
12833
- TemplateLocale["Deli"] = "de-li";
12834
- TemplateLocale["Delu"] = "de-lu";
12835
- TemplateLocale["El"] = "el";
12836
- TemplateLocale["En"] = "en";
12837
- TemplateLocale["Enau"] = "en-au";
12838
- TemplateLocale["Enbz"] = "en-bz";
12839
- TemplateLocale["Enca"] = "en-ca";
12840
- TemplateLocale["Engb"] = "en-gb";
12841
- TemplateLocale["Enie"] = "en-ie";
12842
- TemplateLocale["Enjm"] = "en-jm";
12843
- TemplateLocale["Ennz"] = "en-nz";
12844
- TemplateLocale["Entt"] = "en-tt";
12845
- TemplateLocale["Enus"] = "en-us";
12846
- TemplateLocale["Enza"] = "en-za";
12847
- TemplateLocale["Eo"] = "eo";
12848
- TemplateLocale["Es"] = "es";
12849
- TemplateLocale["Esar"] = "es-ar";
12850
- TemplateLocale["Esbo"] = "es-bo";
12851
- TemplateLocale["Escl"] = "es-cl";
12852
- TemplateLocale["Esco"] = "es-co";
12853
- TemplateLocale["Escr"] = "es-cr";
12854
- TemplateLocale["Esdo"] = "es-do";
12855
- TemplateLocale["Esec"] = "es-ec";
12856
- TemplateLocale["Esgt"] = "es-gt";
12857
- TemplateLocale["Eshn"] = "es-hn";
12858
- TemplateLocale["Esmx"] = "es-mx";
12859
- TemplateLocale["Esni"] = "es-ni";
12860
- TemplateLocale["Espa"] = "es-pa";
12861
- TemplateLocale["Espe"] = "es-pe";
12862
- TemplateLocale["Espr"] = "es-pr";
12863
- TemplateLocale["Espy"] = "es-py";
12864
- TemplateLocale["Essv"] = "es-sv";
12865
- TemplateLocale["Esuy"] = "es-uy";
12866
- TemplateLocale["Esve"] = "es-ve";
12867
- TemplateLocale["Et"] = "et";
12868
- TemplateLocale["Eu"] = "eu";
12869
- TemplateLocale["Fa"] = "fa";
12870
- TemplateLocale["Fi"] = "fi";
12871
- TemplateLocale["Fo"] = "fo";
12872
- TemplateLocale["Fr"] = "fr";
12873
- TemplateLocale["Frbe"] = "fr-be";
12874
- TemplateLocale["Frca"] = "fr-ca";
12875
- TemplateLocale["Frch"] = "fr-ch";
12876
- TemplateLocale["Frlu"] = "fr-lu";
12877
- TemplateLocale["Ga"] = "ga";
12878
- TemplateLocale["Gd"] = "gd";
12879
- TemplateLocale["He"] = "he";
12880
- TemplateLocale["Hi"] = "hi";
12881
- TemplateLocale["Hr"] = "hr";
12882
- TemplateLocale["Hu"] = "hu";
12883
- TemplateLocale["Id"] = "id";
12884
- TemplateLocale["Is"] = "is";
12885
- TemplateLocale["It"] = "it";
12886
- TemplateLocale["Itch"] = "it-ch";
12887
- TemplateLocale["Ja"] = "ja";
12888
- TemplateLocale["Ji"] = "ji";
12889
- TemplateLocale["Ko"] = "ko";
12890
- TemplateLocale["Ku"] = "ku";
12891
- TemplateLocale["Lt"] = "lt";
12892
- TemplateLocale["Lv"] = "lv";
12893
- TemplateLocale["Mk"] = "mk";
12894
- TemplateLocale["Ml"] = "ml";
12895
- TemplateLocale["Ms"] = "ms";
12896
- TemplateLocale["Mt"] = "mt";
12897
- TemplateLocale["Nb"] = "nb";
12898
- TemplateLocale["Ne"] = "ne";
12899
- TemplateLocale["Nl"] = "nl";
12900
- TemplateLocale["Nlbe"] = "nl-be";
12901
- TemplateLocale["Nn"] = "nn";
12902
- TemplateLocale["No"] = "no";
12903
- TemplateLocale["Pa"] = "pa";
12904
- TemplateLocale["Pl"] = "pl";
12905
- TemplateLocale["Pt"] = "pt";
12906
- TemplateLocale["Ptbr"] = "pt-br";
12907
- TemplateLocale["Rm"] = "rm";
12908
- TemplateLocale["Ro"] = "ro";
12909
- TemplateLocale["Romd"] = "ro-md";
12910
- TemplateLocale["Ru"] = "ru";
12911
- TemplateLocale["Rumd"] = "ru-md";
12912
- TemplateLocale["Sb"] = "sb";
12913
- TemplateLocale["Sk"] = "sk";
12914
- TemplateLocale["Sl"] = "sl";
12915
- TemplateLocale["Sq"] = "sq";
12916
- TemplateLocale["Sr"] = "sr";
12917
- TemplateLocale["Sv"] = "sv";
12918
- TemplateLocale["Svfi"] = "sv-fi";
12919
- TemplateLocale["Th"] = "th";
12920
- TemplateLocale["Tn"] = "tn";
12921
- TemplateLocale["Tr"] = "tr";
12922
- TemplateLocale["Ts"] = "ts";
12923
- TemplateLocale["Ua"] = "ua";
12924
- TemplateLocale["Ur"] = "ur";
12925
- TemplateLocale["Ve"] = "ve";
12926
- TemplateLocale["Vi"] = "vi";
12927
- TemplateLocale["Xh"] = "xh";
12928
- TemplateLocale["Zhcn"] = "zh-cn";
12929
- TemplateLocale["Zhhk"] = "zh-hk";
12930
- TemplateLocale["Zhsg"] = "zh-sg";
12931
- TemplateLocale["Zhtw"] = "zh-tw";
12932
- TemplateLocale["Zu"] = "zu";
12933
- })(TemplateLocale || (TemplateLocale = {}));
13522
+ var SmsTemplateLocale;
13523
+ (function (SmsTemplateLocale) {
13524
+ SmsTemplateLocale["Af"] = "af";
13525
+ SmsTemplateLocale["Arae"] = "ar-ae";
13526
+ SmsTemplateLocale["Arbh"] = "ar-bh";
13527
+ SmsTemplateLocale["Ardz"] = "ar-dz";
13528
+ SmsTemplateLocale["Areg"] = "ar-eg";
13529
+ SmsTemplateLocale["Ariq"] = "ar-iq";
13530
+ SmsTemplateLocale["Arjo"] = "ar-jo";
13531
+ SmsTemplateLocale["Arkw"] = "ar-kw";
13532
+ SmsTemplateLocale["Arlb"] = "ar-lb";
13533
+ SmsTemplateLocale["Arly"] = "ar-ly";
13534
+ SmsTemplateLocale["Arma"] = "ar-ma";
13535
+ SmsTemplateLocale["Arom"] = "ar-om";
13536
+ SmsTemplateLocale["Arqa"] = "ar-qa";
13537
+ SmsTemplateLocale["Arsa"] = "ar-sa";
13538
+ SmsTemplateLocale["Arsy"] = "ar-sy";
13539
+ SmsTemplateLocale["Artn"] = "ar-tn";
13540
+ SmsTemplateLocale["Arye"] = "ar-ye";
13541
+ SmsTemplateLocale["As"] = "as";
13542
+ SmsTemplateLocale["Az"] = "az";
13543
+ SmsTemplateLocale["Be"] = "be";
13544
+ SmsTemplateLocale["Bg"] = "bg";
13545
+ SmsTemplateLocale["Bh"] = "bh";
13546
+ SmsTemplateLocale["Bn"] = "bn";
13547
+ SmsTemplateLocale["Bs"] = "bs";
13548
+ SmsTemplateLocale["Ca"] = "ca";
13549
+ SmsTemplateLocale["Cs"] = "cs";
13550
+ SmsTemplateLocale["Cy"] = "cy";
13551
+ SmsTemplateLocale["Da"] = "da";
13552
+ SmsTemplateLocale["De"] = "de";
13553
+ SmsTemplateLocale["Deat"] = "de-at";
13554
+ SmsTemplateLocale["Dech"] = "de-ch";
13555
+ SmsTemplateLocale["Deli"] = "de-li";
13556
+ SmsTemplateLocale["Delu"] = "de-lu";
13557
+ SmsTemplateLocale["El"] = "el";
13558
+ SmsTemplateLocale["En"] = "en";
13559
+ SmsTemplateLocale["Enau"] = "en-au";
13560
+ SmsTemplateLocale["Enbz"] = "en-bz";
13561
+ SmsTemplateLocale["Enca"] = "en-ca";
13562
+ SmsTemplateLocale["Engb"] = "en-gb";
13563
+ SmsTemplateLocale["Enie"] = "en-ie";
13564
+ SmsTemplateLocale["Enjm"] = "en-jm";
13565
+ SmsTemplateLocale["Ennz"] = "en-nz";
13566
+ SmsTemplateLocale["Entt"] = "en-tt";
13567
+ SmsTemplateLocale["Enus"] = "en-us";
13568
+ SmsTemplateLocale["Enza"] = "en-za";
13569
+ SmsTemplateLocale["Eo"] = "eo";
13570
+ SmsTemplateLocale["Es"] = "es";
13571
+ SmsTemplateLocale["Esar"] = "es-ar";
13572
+ SmsTemplateLocale["Esbo"] = "es-bo";
13573
+ SmsTemplateLocale["Escl"] = "es-cl";
13574
+ SmsTemplateLocale["Esco"] = "es-co";
13575
+ SmsTemplateLocale["Escr"] = "es-cr";
13576
+ SmsTemplateLocale["Esdo"] = "es-do";
13577
+ SmsTemplateLocale["Esec"] = "es-ec";
13578
+ SmsTemplateLocale["Esgt"] = "es-gt";
13579
+ SmsTemplateLocale["Eshn"] = "es-hn";
13580
+ SmsTemplateLocale["Esmx"] = "es-mx";
13581
+ SmsTemplateLocale["Esni"] = "es-ni";
13582
+ SmsTemplateLocale["Espa"] = "es-pa";
13583
+ SmsTemplateLocale["Espe"] = "es-pe";
13584
+ SmsTemplateLocale["Espr"] = "es-pr";
13585
+ SmsTemplateLocale["Espy"] = "es-py";
13586
+ SmsTemplateLocale["Essv"] = "es-sv";
13587
+ SmsTemplateLocale["Esuy"] = "es-uy";
13588
+ SmsTemplateLocale["Esve"] = "es-ve";
13589
+ SmsTemplateLocale["Et"] = "et";
13590
+ SmsTemplateLocale["Eu"] = "eu";
13591
+ SmsTemplateLocale["Fa"] = "fa";
13592
+ SmsTemplateLocale["Fi"] = "fi";
13593
+ SmsTemplateLocale["Fo"] = "fo";
13594
+ SmsTemplateLocale["Fr"] = "fr";
13595
+ SmsTemplateLocale["Frbe"] = "fr-be";
13596
+ SmsTemplateLocale["Frca"] = "fr-ca";
13597
+ SmsTemplateLocale["Frch"] = "fr-ch";
13598
+ SmsTemplateLocale["Frlu"] = "fr-lu";
13599
+ SmsTemplateLocale["Ga"] = "ga";
13600
+ SmsTemplateLocale["Gd"] = "gd";
13601
+ SmsTemplateLocale["He"] = "he";
13602
+ SmsTemplateLocale["Hi"] = "hi";
13603
+ SmsTemplateLocale["Hr"] = "hr";
13604
+ SmsTemplateLocale["Hu"] = "hu";
13605
+ SmsTemplateLocale["Id"] = "id";
13606
+ SmsTemplateLocale["Is"] = "is";
13607
+ SmsTemplateLocale["It"] = "it";
13608
+ SmsTemplateLocale["Itch"] = "it-ch";
13609
+ SmsTemplateLocale["Ja"] = "ja";
13610
+ SmsTemplateLocale["Ji"] = "ji";
13611
+ SmsTemplateLocale["Ko"] = "ko";
13612
+ SmsTemplateLocale["Ku"] = "ku";
13613
+ SmsTemplateLocale["Lt"] = "lt";
13614
+ SmsTemplateLocale["Lv"] = "lv";
13615
+ SmsTemplateLocale["Mk"] = "mk";
13616
+ SmsTemplateLocale["Ml"] = "ml";
13617
+ SmsTemplateLocale["Ms"] = "ms";
13618
+ SmsTemplateLocale["Mt"] = "mt";
13619
+ SmsTemplateLocale["Nb"] = "nb";
13620
+ SmsTemplateLocale["Ne"] = "ne";
13621
+ SmsTemplateLocale["Nl"] = "nl";
13622
+ SmsTemplateLocale["Nlbe"] = "nl-be";
13623
+ SmsTemplateLocale["Nn"] = "nn";
13624
+ SmsTemplateLocale["No"] = "no";
13625
+ SmsTemplateLocale["Pa"] = "pa";
13626
+ SmsTemplateLocale["Pl"] = "pl";
13627
+ SmsTemplateLocale["Pt"] = "pt";
13628
+ SmsTemplateLocale["Ptbr"] = "pt-br";
13629
+ SmsTemplateLocale["Rm"] = "rm";
13630
+ SmsTemplateLocale["Ro"] = "ro";
13631
+ SmsTemplateLocale["Romd"] = "ro-md";
13632
+ SmsTemplateLocale["Ru"] = "ru";
13633
+ SmsTemplateLocale["Rumd"] = "ru-md";
13634
+ SmsTemplateLocale["Sb"] = "sb";
13635
+ SmsTemplateLocale["Sk"] = "sk";
13636
+ SmsTemplateLocale["Sl"] = "sl";
13637
+ SmsTemplateLocale["Sq"] = "sq";
13638
+ SmsTemplateLocale["Sr"] = "sr";
13639
+ SmsTemplateLocale["Sv"] = "sv";
13640
+ SmsTemplateLocale["Svfi"] = "sv-fi";
13641
+ SmsTemplateLocale["Th"] = "th";
13642
+ SmsTemplateLocale["Tn"] = "tn";
13643
+ SmsTemplateLocale["Tr"] = "tr";
13644
+ SmsTemplateLocale["Ts"] = "ts";
13645
+ SmsTemplateLocale["Ua"] = "ua";
13646
+ SmsTemplateLocale["Ur"] = "ur";
13647
+ SmsTemplateLocale["Ve"] = "ve";
13648
+ SmsTemplateLocale["Vi"] = "vi";
13649
+ SmsTemplateLocale["Xh"] = "xh";
13650
+ SmsTemplateLocale["Zhcn"] = "zh-cn";
13651
+ SmsTemplateLocale["Zhhk"] = "zh-hk";
13652
+ SmsTemplateLocale["Zhsg"] = "zh-sg";
13653
+ SmsTemplateLocale["Zhtw"] = "zh-tw";
13654
+ SmsTemplateLocale["Zu"] = "zu";
13655
+ })(SmsTemplateLocale || (SmsTemplateLocale = {}));
12934
13656
 
12935
13657
  var ResourceType;
12936
13658
  (function (ResourceType) {
@@ -12974,20 +13696,20 @@ var StorageUsageRange;
12974
13696
  StorageUsageRange["NinetyDays"] = "90d";
12975
13697
  })(StorageUsageRange || (StorageUsageRange = {}));
12976
13698
 
12977
- var PasswordVersion;
12978
- (function (PasswordVersion) {
12979
- PasswordVersion["Sha1"] = "sha1";
12980
- PasswordVersion["Sha224"] = "sha224";
12981
- PasswordVersion["Sha256"] = "sha256";
12982
- PasswordVersion["Sha384"] = "sha384";
12983
- PasswordVersion["Sha512224"] = "sha512/224";
12984
- PasswordVersion["Sha512256"] = "sha512/256";
12985
- PasswordVersion["Sha512"] = "sha512";
12986
- PasswordVersion["Sha3224"] = "sha3-224";
12987
- PasswordVersion["Sha3256"] = "sha3-256";
12988
- PasswordVersion["Sha3384"] = "sha3-384";
12989
- PasswordVersion["Sha3512"] = "sha3-512";
12990
- })(PasswordVersion || (PasswordVersion = {}));
13699
+ var PasswordHash;
13700
+ (function (PasswordHash) {
13701
+ PasswordHash["Sha1"] = "sha1";
13702
+ PasswordHash["Sha224"] = "sha224";
13703
+ PasswordHash["Sha256"] = "sha256";
13704
+ PasswordHash["Sha384"] = "sha384";
13705
+ PasswordHash["Sha512224"] = "sha512/224";
13706
+ PasswordHash["Sha512256"] = "sha512/256";
13707
+ PasswordHash["Sha512"] = "sha512";
13708
+ PasswordHash["Sha3224"] = "sha3-224";
13709
+ PasswordHash["Sha3256"] = "sha3-256";
13710
+ PasswordHash["Sha3384"] = "sha3-384";
13711
+ PasswordHash["Sha3512"] = "sha3-512";
13712
+ })(PasswordHash || (PasswordHash = {}));
12991
13713
 
12992
13714
  var UserUsageRange;
12993
13715
  (function (UserUsageRange) {
@@ -13003,5 +13725,5 @@ var MessagingProviderType;
13003
13725
  MessagingProviderType["Push"] = "push";
13004
13726
  })(MessagingProviderType || (MessagingProviderType = {}));
13005
13727
 
13006
- export { APIService, Account, AppwriteException, Assistant, AuthMethod, AuthenticatorFactor, AuthenticatorProvider, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, MessageType, Messaging, MessagingProviderType, Migrations, OAuthProvider, PasswordVersion, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPEncryption, SMTPSecure, Storage, StorageUsageRange, Teams, TemplateLocale, TemplateType, UserUsageRange, Users, Vcs };
13728
+ export { Account, Api, ApiService, AppwriteException, Assistant, AuthMethod, AuthenticationFactor, AuthenticatorType, Avatars, Browser, Client, Compression, Console, CreditCard, DatabaseUsageRange, Databases, EmailTemplateLocale, EmailTemplateType, ExecutionMethod, Flag, FunctionUsageRange, Functions, Graphql, Health, ID, ImageFormat, ImageGravity, IndexType, Locale, Messaging, MessagingProviderType, Migrations, Name, OAuthProvider, PasswordHash, Permission, PlatformType, Project, ProjectUsageRange, Projects, Proxy, Query, Region, RelationMutate, RelationshipType, ResourceType, Role, Runtime, SMTPSecure, SmsTemplateLocale, SmsTemplateType, SmtpEncryption, Storage, StorageUsageRange, Teams, UserUsageRange, Users, Vcs };
13007
13729
  //# sourceMappingURL=sdk.js.map