@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/cjs/sdk.js CHANGED
@@ -28,6 +28,26 @@ function __awaiter(thisArg, _arguments, P, generator) {
28
28
  });
29
29
  }
30
30
 
31
+ class Service {
32
+ constructor(client) {
33
+ this.client = client;
34
+ }
35
+ static flatten(data, prefix = '') {
36
+ let output = {};
37
+ for (const [key, value] of Object.entries(data)) {
38
+ let finalKey = prefix ? prefix + '[' + key + ']' : key;
39
+ if (Array.isArray(value)) {
40
+ output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
41
+ }
42
+ else {
43
+ output[finalKey] = value;
44
+ }
45
+ }
46
+ return output;
47
+ }
48
+ }
49
+ Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
50
+
31
51
  class Query {
32
52
  constructor(method, attribute, values) {
33
53
  this.method = method;
@@ -69,31 +89,8 @@ Query.cursorBefore = (documentId) => new Query("cursorBefore", undefined, docume
69
89
  Query.limit = (limit) => new Query("limit", undefined, limit).toString();
70
90
  Query.offset = (offset) => new Query("offset", undefined, offset).toString();
71
91
  Query.contains = (attribute, value) => new Query("contains", attribute, value).toString();
72
- Query.or = (...queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
73
- Query.and = (...queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
74
-
75
- class Service {
76
- constructor(client) {
77
- this.client = client;
78
- }
79
- static flatten(data, prefix = '') {
80
- let output = {};
81
- for (const [key, value] of Object.entries(data)) {
82
- let finalKey = prefix ? prefix + '[' + key + ']' : key;
83
- if (Array.isArray(value)) {
84
- output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
85
- }
86
- else if (value instanceof Query) {
87
- output[finalKey] = JSON.stringify(value);
88
- }
89
- else {
90
- output[finalKey] = value;
91
- }
92
- }
93
- return output;
94
- }
95
- }
96
- Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
92
+ Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
93
+ Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
97
94
 
98
95
  class AppwriteException extends Error {
99
96
  constructor(message, code = 0, type = '', response = '') {
@@ -108,7 +105,7 @@ class AppwriteException extends Error {
108
105
  class Client {
109
106
  constructor() {
110
107
  this.config = {
111
- endpoint: 'https://HOSTNAME/v1',
108
+ endpoint: 'https://cloud.appwrite.io/v1',
112
109
  endpointRealtime: '',
113
110
  project: '',
114
111
  key: '',
@@ -120,8 +117,8 @@ class Client {
120
117
  'x-sdk-name': 'Console',
121
118
  'x-sdk-platform': 'console',
122
119
  'x-sdk-language': 'web',
123
- 'x-sdk-version': '0.6.0-rc.9',
124
- 'X-Appwrite-Response-Format': '1.4.0',
120
+ 'x-sdk-version': '0.6.0',
121
+ 'X-Appwrite-Response-Format': '1.5.0',
125
122
  };
126
123
  this.realtime = {
127
124
  socket: undefined,
@@ -673,6 +670,7 @@ class Account extends Service {
673
670
  /**
674
671
  * Update MFA
675
672
  *
673
+ * Enable or disable MFA on an account.
676
674
  *
677
675
  * @param {boolean} mfa
678
676
  * @throws {AppwriteException}
@@ -695,23 +693,24 @@ class Account extends Service {
695
693
  });
696
694
  }
697
695
  /**
698
- * Create MFA Challenge
696
+ * Add Authenticator
699
697
  *
698
+ * Add an authenticator app to be used as an MFA factor. Verify the
699
+ * authenticator using the [verify
700
+ * authenticator](/docs/references/cloud/client-web/account#verifyAuthenticator)
701
+ * method.
700
702
  *
701
- * @param {AuthenticatorProvider} provider
703
+ * @param {AuthenticatorType} type
702
704
  * @throws {AppwriteException}
703
705
  * @returns {Promise}
704
706
  */
705
- createChallenge(provider) {
707
+ createMfaAuthenticator(type) {
706
708
  return __awaiter(this, void 0, void 0, function* () {
707
- if (typeof provider === 'undefined') {
708
- throw new AppwriteException('Missing required parameter: "provider"');
709
+ if (typeof type === 'undefined') {
710
+ throw new AppwriteException('Missing required parameter: "type"');
709
711
  }
710
- const apiPath = '/account/mfa/challenge';
712
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
711
713
  const payload = {};
712
- if (typeof provider !== 'undefined') {
713
- payload['provider'] = provider;
714
- }
715
714
  const uri = new URL(this.client.config.endpoint + apiPath);
716
715
  return yield this.client.call('post', uri, {
717
716
  'content-type': 'application/json',
@@ -719,27 +718,27 @@ class Account extends Service {
719
718
  });
720
719
  }
721
720
  /**
722
- * Create MFA Challenge (confirmation)
721
+ * Verify Authenticator
723
722
  *
723
+ * Verify an authenticator app after adding it using the [add
724
+ * authenticator](/docs/references/cloud/client-web/account#addAuthenticator)
725
+ * method.
724
726
  *
725
- * @param {string} challengeId
727
+ * @param {AuthenticatorType} type
726
728
  * @param {string} otp
727
729
  * @throws {AppwriteException}
728
730
  * @returns {Promise}
729
731
  */
730
- updateChallenge(challengeId, otp) {
732
+ updateMfaAuthenticator(type, otp) {
731
733
  return __awaiter(this, void 0, void 0, function* () {
732
- if (typeof challengeId === 'undefined') {
733
- throw new AppwriteException('Missing required parameter: "challengeId"');
734
+ if (typeof type === 'undefined') {
735
+ throw new AppwriteException('Missing required parameter: "type"');
734
736
  }
735
737
  if (typeof otp === 'undefined') {
736
738
  throw new AppwriteException('Missing required parameter: "otp"');
737
739
  }
738
- const apiPath = '/account/mfa/challenge';
740
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
739
741
  const payload = {};
740
- if (typeof challengeId !== 'undefined') {
741
- payload['challengeId'] = challengeId;
742
- }
743
742
  if (typeof otp !== 'undefined') {
744
743
  payload['otp'] = otp;
745
744
  }
@@ -750,38 +749,55 @@ class Account extends Service {
750
749
  });
751
750
  }
752
751
  /**
753
- * List Factors
752
+ * Delete Authenticator
754
753
  *
755
- * Get the currently logged in user.
754
+ * Delete an authenticator for a user by ID.
756
755
  *
756
+ * @param {AuthenticatorType} type
757
+ * @param {string} otp
757
758
  * @throws {AppwriteException}
758
759
  * @returns {Promise}
759
760
  */
760
- listFactors() {
761
+ deleteMfaAuthenticator(type, otp) {
761
762
  return __awaiter(this, void 0, void 0, function* () {
762
- const apiPath = '/account/mfa/factors';
763
+ if (typeof type === 'undefined') {
764
+ throw new AppwriteException('Missing required parameter: "type"');
765
+ }
766
+ if (typeof otp === 'undefined') {
767
+ throw new AppwriteException('Missing required parameter: "otp"');
768
+ }
769
+ const apiPath = '/account/mfa/authenticators/{type}'.replace('{type}', type);
763
770
  const payload = {};
771
+ if (typeof otp !== 'undefined') {
772
+ payload['otp'] = otp;
773
+ }
764
774
  const uri = new URL(this.client.config.endpoint + apiPath);
765
- return yield this.client.call('get', uri, {
775
+ return yield this.client.call('delete', uri, {
766
776
  'content-type': 'application/json',
767
777
  }, payload);
768
778
  });
769
779
  }
770
780
  /**
771
- * Add Authenticator
781
+ * Create 2FA Challenge
772
782
  *
783
+ * Begin the process of MFA verification after sign-in. Finish the flow with
784
+ * [updateMfaChallenge](/docs/references/cloud/client-web/account#updateMfaChallenge)
785
+ * method.
773
786
  *
774
- * @param {AuthenticatorFactor} factor
787
+ * @param {AuthenticationFactor} factor
775
788
  * @throws {AppwriteException}
776
789
  * @returns {Promise}
777
790
  */
778
- addAuthenticator(factor) {
791
+ createMfaChallenge(factor) {
779
792
  return __awaiter(this, void 0, void 0, function* () {
780
793
  if (typeof factor === 'undefined') {
781
794
  throw new AppwriteException('Missing required parameter: "factor"');
782
795
  }
783
- const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
796
+ const apiPath = '/account/mfa/challenge';
784
797
  const payload = {};
798
+ if (typeof factor !== 'undefined') {
799
+ payload['factor'] = factor;
800
+ }
785
801
  const uri = new URL(this.client.config.endpoint + apiPath);
786
802
  return yield this.client.call('post', uri, {
787
803
  'content-type': 'application/json',
@@ -789,24 +805,32 @@ class Account extends Service {
789
805
  });
790
806
  }
791
807
  /**
792
- * Verify Authenticator
808
+ * Create MFA Challenge (confirmation)
793
809
  *
810
+ * Complete the MFA challenge by providing the one-time password. Finish the
811
+ * process of MFA verification by providing the one-time password. To begin
812
+ * the flow, use
813
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
814
+ * method.
794
815
  *
795
- * @param {AuthenticatorFactor} factor
816
+ * @param {string} challengeId
796
817
  * @param {string} otp
797
818
  * @throws {AppwriteException}
798
819
  * @returns {Promise}
799
820
  */
800
- verifyAuthenticator(factor, otp) {
821
+ updateMfaChallenge(challengeId, otp) {
801
822
  return __awaiter(this, void 0, void 0, function* () {
802
- if (typeof factor === 'undefined') {
803
- throw new AppwriteException('Missing required parameter: "factor"');
823
+ if (typeof challengeId === 'undefined') {
824
+ throw new AppwriteException('Missing required parameter: "challengeId"');
804
825
  }
805
826
  if (typeof otp === 'undefined') {
806
827
  throw new AppwriteException('Missing required parameter: "otp"');
807
828
  }
808
- const apiPath = '/account/mfa/{factor}'.replace('{factor}', factor);
829
+ const apiPath = '/account/mfa/challenge';
809
830
  const payload = {};
831
+ if (typeof challengeId !== 'undefined') {
832
+ payload['challengeId'] = challengeId;
833
+ }
810
834
  if (typeof otp !== 'undefined') {
811
835
  payload['otp'] = otp;
812
836
  }
@@ -817,29 +841,83 @@ class Account extends Service {
817
841
  });
818
842
  }
819
843
  /**
820
- * Delete Authenticator
844
+ * List Factors
821
845
  *
846
+ * List the factors available on the account to be used as a MFA challange.
822
847
  *
823
- * @param {AuthenticatorProvider} provider
824
- * @param {string} otp
825
848
  * @throws {AppwriteException}
826
849
  * @returns {Promise}
827
850
  */
828
- deleteAuthenticator(provider, otp) {
851
+ listMfaFactors() {
829
852
  return __awaiter(this, void 0, void 0, function* () {
830
- if (typeof provider === 'undefined') {
831
- throw new AppwriteException('Missing required parameter: "provider"');
832
- }
833
- if (typeof otp === 'undefined') {
834
- throw new AppwriteException('Missing required parameter: "otp"');
835
- }
836
- const apiPath = '/account/mfa/{provider}'.replace('{provider}', provider);
853
+ const apiPath = '/account/mfa/factors';
837
854
  const payload = {};
838
- if (typeof otp !== 'undefined') {
839
- payload['otp'] = otp;
840
- }
841
855
  const uri = new URL(this.client.config.endpoint + apiPath);
842
- return yield this.client.call('delete', uri, {
856
+ return yield this.client.call('get', uri, {
857
+ 'content-type': 'application/json',
858
+ }, payload);
859
+ });
860
+ }
861
+ /**
862
+ * Get MFA Recovery Codes
863
+ *
864
+ * Get recovery codes that can be used as backup for MFA flow. Before getting
865
+ * codes, they must be generated using
866
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
867
+ * method. An OTP challenge is required to read recovery codes.
868
+ *
869
+ * @throws {AppwriteException}
870
+ * @returns {Promise}
871
+ */
872
+ getMfaRecoveryCodes() {
873
+ return __awaiter(this, void 0, void 0, function* () {
874
+ const apiPath = '/account/mfa/recovery-codes';
875
+ const payload = {};
876
+ const uri = new URL(this.client.config.endpoint + apiPath);
877
+ return yield this.client.call('get', uri, {
878
+ 'content-type': 'application/json',
879
+ }, payload);
880
+ });
881
+ }
882
+ /**
883
+ * Create MFA Recovery Codes
884
+ *
885
+ * Generate recovery codes as backup for MFA flow. It's recommended to
886
+ * generate and show then immediately after user successfully adds their
887
+ * authehticator. Recovery codes can be used as a MFA verification type in
888
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
889
+ * method.
890
+ *
891
+ * @throws {AppwriteException}
892
+ * @returns {Promise}
893
+ */
894
+ createMfaRecoveryCodes() {
895
+ return __awaiter(this, void 0, void 0, function* () {
896
+ const apiPath = '/account/mfa/recovery-codes';
897
+ const payload = {};
898
+ const uri = new URL(this.client.config.endpoint + apiPath);
899
+ return yield this.client.call('post', uri, {
900
+ 'content-type': 'application/json',
901
+ }, payload);
902
+ });
903
+ }
904
+ /**
905
+ * Regenerate MFA Recovery Codes
906
+ *
907
+ * Regenerate recovery codes that can be used as backup for MFA flow. Before
908
+ * regenerating codes, they must be first generated using
909
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
910
+ * method. An OTP challenge is required to regenreate recovery codes.
911
+ *
912
+ * @throws {AppwriteException}
913
+ * @returns {Promise}
914
+ */
915
+ updateMfaRecoveryCodes() {
916
+ return __awaiter(this, void 0, void 0, function* () {
917
+ const apiPath = '/account/mfa/recovery-codes';
918
+ const payload = {};
919
+ const uri = new URL(this.client.config.endpoint + apiPath);
920
+ return yield this.client.call('patch', uri, {
843
921
  'content-type': 'application/json',
844
922
  }, payload);
845
923
  });
@@ -1168,7 +1246,7 @@ class Account extends Service {
1168
1246
  });
1169
1247
  }
1170
1248
  /**
1171
- * Create session (deprecated)
1249
+ * Update magic URL session
1172
1250
  *
1173
1251
  * Use this endpoint to create a session from token. Provide the **userId**
1174
1252
  * and **secret** parameters from the successful response of authentication
@@ -1224,12 +1302,11 @@ class Account extends Service {
1224
1302
  * @param {OAuthProvider} provider
1225
1303
  * @param {string} success
1226
1304
  * @param {string} failure
1227
- * @param {boolean} token
1228
1305
  * @param {string[]} scopes
1229
1306
  * @throws {AppwriteException}
1230
1307
  * @returns {void|string}
1231
1308
  */
1232
- createOAuth2Session(provider, success, failure, token, scopes) {
1309
+ createOAuth2Session(provider, success, failure, scopes) {
1233
1310
  if (typeof provider === 'undefined') {
1234
1311
  throw new AppwriteException('Missing required parameter: "provider"');
1235
1312
  }
@@ -1241,9 +1318,6 @@ class Account extends Service {
1241
1318
  if (typeof failure !== 'undefined') {
1242
1319
  payload['failure'] = failure;
1243
1320
  }
1244
- if (typeof token !== 'undefined') {
1245
- payload['token'] = token;
1246
- }
1247
1321
  if (typeof scopes !== 'undefined') {
1248
1322
  payload['scopes'] = scopes;
1249
1323
  }
@@ -1259,6 +1333,40 @@ class Account extends Service {
1259
1333
  return uri;
1260
1334
  }
1261
1335
  }
1336
+ /**
1337
+ * Update phone session
1338
+ *
1339
+ * Use this endpoint to create a session from token. Provide the **userId**
1340
+ * and **secret** parameters from the successful response of authentication
1341
+ * flows initiated by token creation. For example, magic URL and phone login.
1342
+ *
1343
+ * @param {string} userId
1344
+ * @param {string} secret
1345
+ * @throws {AppwriteException}
1346
+ * @returns {Promise}
1347
+ */
1348
+ updatePhoneSession(userId, secret) {
1349
+ return __awaiter(this, void 0, void 0, function* () {
1350
+ if (typeof userId === 'undefined') {
1351
+ throw new AppwriteException('Missing required parameter: "userId"');
1352
+ }
1353
+ if (typeof secret === 'undefined') {
1354
+ throw new AppwriteException('Missing required parameter: "secret"');
1355
+ }
1356
+ const apiPath = '/account/sessions/phone';
1357
+ const payload = {};
1358
+ if (typeof userId !== 'undefined') {
1359
+ payload['userId'] = userId;
1360
+ }
1361
+ if (typeof secret !== 'undefined') {
1362
+ payload['secret'] = secret;
1363
+ }
1364
+ const uri = new URL(this.client.config.endpoint + apiPath);
1365
+ return yield this.client.call('put', uri, {
1366
+ 'content-type': 'application/json',
1367
+ }, payload);
1368
+ });
1369
+ }
1262
1370
  /**
1263
1371
  * Create session
1264
1372
  *
@@ -1317,10 +1425,11 @@ class Account extends Service {
1317
1425
  });
1318
1426
  }
1319
1427
  /**
1320
- * Update (or renew) a session
1428
+ * Update session
1321
1429
  *
1322
- * Extend session's expiry to increase it's lifespan. Extending a session is
1323
- * useful when session length is short such as 5 minutes.
1430
+ * Use this endpoint to extend a session's length. Extending a session is
1431
+ * useful when session expiry is short. If the session was created using an
1432
+ * OAuth provider, this endpoint refreshes the access token from the provider.
1324
1433
  *
1325
1434
  * @param {string} sessionId
1326
1435
  * @throws {AppwriteException}
@@ -1386,7 +1495,7 @@ class Account extends Service {
1386
1495
  });
1387
1496
  }
1388
1497
  /**
1389
- * Create a push target
1498
+ * Create push target
1390
1499
  *
1391
1500
  *
1392
1501
  * @param {string} targetId
@@ -1421,7 +1530,7 @@ class Account extends Service {
1421
1530
  });
1422
1531
  }
1423
1532
  /**
1424
- * Update a push target
1533
+ * Update push target
1425
1534
  *
1426
1535
  *
1427
1536
  * @param {string} targetId
@@ -1449,7 +1558,7 @@ class Account extends Service {
1449
1558
  });
1450
1559
  }
1451
1560
  /**
1452
- * Delete a push target
1561
+ * Delete push target
1453
1562
  *
1454
1563
  *
1455
1564
  * @param {string} targetId
@@ -1569,6 +1678,58 @@ class Account extends Service {
1569
1678
  }, payload);
1570
1679
  });
1571
1680
  }
1681
+ /**
1682
+ * Create OAuth2 token
1683
+ *
1684
+ * Allow the user to login to their account using the OAuth2 provider of their
1685
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
1686
+ * first. Use the success and failure arguments to provide a redirect URL's
1687
+ * back to your app when login is completed.
1688
+ *
1689
+ * If authentication succeeds, `userId` and `secret` of a token will be
1690
+ * appended to the success URL as query parameters. These can be used to
1691
+ * create a new session using the [Create
1692
+ * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
1693
+ * endpoint.
1694
+ *
1695
+ * A user is limited to 10 active sessions at a time by default. [Learn more
1696
+ * about session
1697
+ * limits](https://appwrite.io/docs/authentication-security#limits).
1698
+ *
1699
+ * @param {OAuthProvider} provider
1700
+ * @param {string} success
1701
+ * @param {string} failure
1702
+ * @param {string[]} scopes
1703
+ * @throws {AppwriteException}
1704
+ * @returns {void|string}
1705
+ */
1706
+ createOAuth2Token(provider, success, failure, scopes) {
1707
+ if (typeof provider === 'undefined') {
1708
+ throw new AppwriteException('Missing required parameter: "provider"');
1709
+ }
1710
+ const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
1711
+ const payload = {};
1712
+ if (typeof success !== 'undefined') {
1713
+ payload['success'] = success;
1714
+ }
1715
+ if (typeof failure !== 'undefined') {
1716
+ payload['failure'] = failure;
1717
+ }
1718
+ if (typeof scopes !== 'undefined') {
1719
+ payload['scopes'] = scopes;
1720
+ }
1721
+ const uri = new URL(this.client.config.endpoint + apiPath);
1722
+ payload['project'] = this.client.config.project;
1723
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
1724
+ uri.searchParams.append(key, value);
1725
+ }
1726
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
1727
+ window.location.href = uri.toString();
1728
+ }
1729
+ else {
1730
+ return uri;
1731
+ }
1732
+ }
1572
1733
  /**
1573
1734
  * Create phone token
1574
1735
  *
@@ -2160,7 +2321,7 @@ class Databases extends Service {
2160
2321
  });
2161
2322
  }
2162
2323
  /**
2163
- * Get usage stats for the database
2324
+ * Get databases usage stats
2164
2325
  *
2165
2326
  *
2166
2327
  * @param {DatabaseUsageRange} range
@@ -2443,6 +2604,7 @@ class Databases extends Service {
2443
2604
  /**
2444
2605
  * List attributes
2445
2606
  *
2607
+ * List attributes in the collection.
2446
2608
  *
2447
2609
  * @param {string} databaseId
2448
2610
  * @param {string} collectionId
@@ -2521,6 +2683,8 @@ class Databases extends Service {
2521
2683
  /**
2522
2684
  * Update boolean attribute
2523
2685
  *
2686
+ * Update a boolean attribute. Changing the `default` value will not update
2687
+ * already existing documents.
2524
2688
  *
2525
2689
  * @param {string} databaseId
2526
2690
  * @param {string} collectionId
@@ -2564,6 +2728,7 @@ class Databases extends Service {
2564
2728
  /**
2565
2729
  * Create datetime attribute
2566
2730
  *
2731
+ * Create a date time attribute according to the ISO 8601 standard.
2567
2732
  *
2568
2733
  * @param {string} databaseId
2569
2734
  * @param {string} collectionId
@@ -2611,6 +2776,8 @@ class Databases extends Service {
2611
2776
  /**
2612
2777
  * Update dateTime attribute
2613
2778
  *
2779
+ * Update a date time attribute. Changing the `default` value will not update
2780
+ * already existing documents.
2614
2781
  *
2615
2782
  * @param {string} databaseId
2616
2783
  * @param {string} collectionId
@@ -2749,6 +2916,9 @@ class Databases extends Service {
2749
2916
  /**
2750
2917
  * Create enum attribute
2751
2918
  *
2919
+ * Create an enumeration attribute. The `elements` param acts as a white-list
2920
+ * of accepted values for this attribute.
2921
+ *
2752
2922
  *
2753
2923
  * @param {string} databaseId
2754
2924
  * @param {string} collectionId
@@ -3446,6 +3616,7 @@ class Databases extends Service {
3446
3616
  /**
3447
3617
  * Get attribute
3448
3618
  *
3619
+ * Get attribute by ID.
3449
3620
  *
3450
3621
  * @param {string} databaseId
3451
3622
  * @param {string} collectionId
@@ -3475,6 +3646,7 @@ class Databases extends Service {
3475
3646
  /**
3476
3647
  * Delete attribute
3477
3648
  *
3649
+ * Deletes an attribute.
3478
3650
  *
3479
3651
  * @param {string} databaseId
3480
3652
  * @param {string} collectionId
@@ -3756,6 +3928,7 @@ class Databases extends Service {
3756
3928
  /**
3757
3929
  * List indexes
3758
3930
  *
3931
+ * List indexes in the collection.
3759
3932
  *
3760
3933
  * @param {string} databaseId
3761
3934
  * @param {string} collectionId
@@ -3785,6 +3958,9 @@ class Databases extends Service {
3785
3958
  /**
3786
3959
  * Create index
3787
3960
  *
3961
+ * Creates an index on the attributes listed. Your index should include all
3962
+ * the attributes you will query in a single request.
3963
+ * Attributes can be `key`, `fulltext`, and `unique`.
3788
3964
  *
3789
3965
  * @param {string} databaseId
3790
3966
  * @param {string} collectionId
@@ -3835,6 +4011,7 @@ class Databases extends Service {
3835
4011
  /**
3836
4012
  * Get index
3837
4013
  *
4014
+ * Get index by ID.
3838
4015
  *
3839
4016
  * @param {string} databaseId
3840
4017
  * @param {string} collectionId
@@ -3864,6 +4041,7 @@ class Databases extends Service {
3864
4041
  /**
3865
4042
  * Delete index
3866
4043
  *
4044
+ * Delete an index.
3867
4045
  *
3868
4046
  * @param {string} databaseId
3869
4047
  * @param {string} collectionId
@@ -3921,7 +4099,7 @@ class Databases extends Service {
3921
4099
  });
3922
4100
  }
3923
4101
  /**
3924
- * Get usage stats for a collection
4102
+ * Get collection usage stats
3925
4103
  *
3926
4104
  *
3927
4105
  * @param {string} databaseId
@@ -3976,7 +4154,7 @@ class Databases extends Service {
3976
4154
  });
3977
4155
  }
3978
4156
  /**
3979
- * Get usage stats for the database
4157
+ * Get database usage stats
3980
4158
  *
3981
4159
  *
3982
4160
  * @param {string} databaseId
@@ -4959,6 +5137,28 @@ class Health extends Service {
4959
5137
  }, payload);
4960
5138
  });
4961
5139
  }
5140
+ /**
5141
+ * Get the SSL certificate for a domain
5142
+ *
5143
+ * Get the SSL certificate for a domain
5144
+ *
5145
+ * @param {string} domain
5146
+ * @throws {AppwriteException}
5147
+ * @returns {Promise}
5148
+ */
5149
+ getCertificate(domain) {
5150
+ return __awaiter(this, void 0, void 0, function* () {
5151
+ const apiPath = '/health/certificate';
5152
+ const payload = {};
5153
+ if (typeof domain !== 'undefined') {
5154
+ payload['domain'] = domain;
5155
+ }
5156
+ const uri = new URL(this.client.config.endpoint + apiPath);
5157
+ return yield this.client.call('get', uri, {
5158
+ 'content-type': 'application/json',
5159
+ }, payload);
5160
+ });
5161
+ }
4962
5162
  /**
4963
5163
  * Get DB
4964
5164
  *
@@ -5112,16 +5312,91 @@ class Health extends Service {
5112
5312
  });
5113
5313
  }
5114
5314
  /**
5115
- * Get functions queue
5315
+ * Get number of failed queue jobs
5316
+ *
5317
+ * Returns the amount of failed jobs in a given queue.
5318
+ *
5319
+ *
5320
+ * @param {Name} name
5321
+ * @param {number} threshold
5322
+ * @throws {AppwriteException}
5323
+ * @returns {Promise}
5324
+ */
5325
+ getFailedJobs(name, threshold) {
5326
+ return __awaiter(this, void 0, void 0, function* () {
5327
+ if (typeof name === 'undefined') {
5328
+ throw new AppwriteException('Missing required parameter: "name"');
5329
+ }
5330
+ const apiPath = '/health/queue/failed/{name}'.replace('{name}', name);
5331
+ const payload = {};
5332
+ if (typeof threshold !== 'undefined') {
5333
+ payload['threshold'] = threshold;
5334
+ }
5335
+ const uri = new URL(this.client.config.endpoint + apiPath);
5336
+ return yield this.client.call('get', uri, {
5337
+ 'content-type': 'application/json',
5338
+ }, payload);
5339
+ });
5340
+ }
5341
+ /**
5342
+ * Get functions queue
5343
+ *
5344
+ * Get the number of function executions that are waiting to be processed in
5345
+ * the Appwrite internal queue server.
5346
+ *
5347
+ * @param {number} threshold
5348
+ * @throws {AppwriteException}
5349
+ * @returns {Promise}
5350
+ */
5351
+ getQueueFunctions(threshold) {
5352
+ return __awaiter(this, void 0, void 0, function* () {
5353
+ const apiPath = '/health/queue/functions';
5354
+ const payload = {};
5355
+ if (typeof threshold !== 'undefined') {
5356
+ payload['threshold'] = threshold;
5357
+ }
5358
+ const uri = new URL(this.client.config.endpoint + apiPath);
5359
+ return yield this.client.call('get', uri, {
5360
+ 'content-type': 'application/json',
5361
+ }, payload);
5362
+ });
5363
+ }
5364
+ /**
5365
+ * Get logs queue
5366
+ *
5367
+ * Get the number of logs that are waiting to be processed in the Appwrite
5368
+ * internal queue server.
5369
+ *
5370
+ * @param {number} threshold
5371
+ * @throws {AppwriteException}
5372
+ * @returns {Promise}
5373
+ */
5374
+ getQueueLogs(threshold) {
5375
+ return __awaiter(this, void 0, void 0, function* () {
5376
+ const apiPath = '/health/queue/logs';
5377
+ const payload = {};
5378
+ if (typeof threshold !== 'undefined') {
5379
+ payload['threshold'] = threshold;
5380
+ }
5381
+ const uri = new URL(this.client.config.endpoint + apiPath);
5382
+ return yield this.client.call('get', uri, {
5383
+ 'content-type': 'application/json',
5384
+ }, payload);
5385
+ });
5386
+ }
5387
+ /**
5388
+ * Get mails queue
5116
5389
  *
5390
+ * Get the number of mails that are waiting to be processed in the Appwrite
5391
+ * internal queue server.
5117
5392
  *
5118
5393
  * @param {number} threshold
5119
5394
  * @throws {AppwriteException}
5120
5395
  * @returns {Promise}
5121
5396
  */
5122
- getQueueFunctions(threshold) {
5397
+ getQueueMails(threshold) {
5123
5398
  return __awaiter(this, void 0, void 0, function* () {
5124
- const apiPath = '/health/queue/functions';
5399
+ const apiPath = '/health/queue/mails';
5125
5400
  const payload = {};
5126
5401
  if (typeof threshold !== 'undefined') {
5127
5402
  payload['threshold'] = threshold;
@@ -5133,18 +5408,18 @@ class Health extends Service {
5133
5408
  });
5134
5409
  }
5135
5410
  /**
5136
- * Get logs queue
5411
+ * Get messaging queue
5137
5412
  *
5138
- * Get the number of logs that are waiting to be processed in the Appwrite
5413
+ * Get the number of messages that are waiting to be processed in the Appwrite
5139
5414
  * internal queue server.
5140
5415
  *
5141
5416
  * @param {number} threshold
5142
5417
  * @throws {AppwriteException}
5143
5418
  * @returns {Promise}
5144
5419
  */
5145
- getQueueLogs(threshold) {
5420
+ getQueueMessaging(threshold) {
5146
5421
  return __awaiter(this, void 0, void 0, function* () {
5147
- const apiPath = '/health/queue/logs';
5422
+ const apiPath = '/health/queue/messaging';
5148
5423
  const payload = {};
5149
5424
  if (typeof threshold !== 'undefined') {
5150
5425
  payload['threshold'] = threshold;
@@ -5156,18 +5431,18 @@ class Health extends Service {
5156
5431
  });
5157
5432
  }
5158
5433
  /**
5159
- * Get mails queue
5434
+ * Get migrations queue
5160
5435
  *
5161
- * Get the number of mails that are waiting to be processed in the Appwrite
5162
- * internal queue server.
5436
+ * Get the number of migrations that are waiting to be processed in the
5437
+ * Appwrite internal queue server.
5163
5438
  *
5164
5439
  * @param {number} threshold
5165
5440
  * @throws {AppwriteException}
5166
5441
  * @returns {Promise}
5167
5442
  */
5168
- getQueueMails(threshold) {
5443
+ getQueueMigrations(threshold) {
5169
5444
  return __awaiter(this, void 0, void 0, function* () {
5170
- const apiPath = '/health/queue/mails';
5445
+ const apiPath = '/health/queue/migrations';
5171
5446
  const payload = {};
5172
5447
  if (typeof threshold !== 'undefined') {
5173
5448
  payload['threshold'] = threshold;
@@ -5179,18 +5454,18 @@ class Health extends Service {
5179
5454
  });
5180
5455
  }
5181
5456
  /**
5182
- * Get messaging queue
5457
+ * Get usage queue
5183
5458
  *
5184
- * Get the number of messages that are waiting to be processed in the Appwrite
5459
+ * Get the number of metrics that are waiting to be processed in the Appwrite
5185
5460
  * internal queue server.
5186
5461
  *
5187
5462
  * @param {number} threshold
5188
5463
  * @throws {AppwriteException}
5189
5464
  * @returns {Promise}
5190
5465
  */
5191
- getQueueMessaging(threshold) {
5466
+ getQueueUsage(threshold) {
5192
5467
  return __awaiter(this, void 0, void 0, function* () {
5193
- const apiPath = '/health/queue/messaging';
5468
+ const apiPath = '/health/queue/usage';
5194
5469
  const payload = {};
5195
5470
  if (typeof threshold !== 'undefined') {
5196
5471
  payload['threshold'] = threshold;
@@ -5202,18 +5477,18 @@ class Health extends Service {
5202
5477
  });
5203
5478
  }
5204
5479
  /**
5205
- * Get migrations queue
5480
+ * Get usage dump queue
5206
5481
  *
5207
- * Get the number of migrations that are waiting to be processed in the
5208
- * Appwrite internal queue server.
5482
+ * Get the number of projects containing metrics that are waiting to be
5483
+ * processed in the Appwrite internal queue server.
5209
5484
  *
5210
5485
  * @param {number} threshold
5211
5486
  * @throws {AppwriteException}
5212
5487
  * @returns {Promise}
5213
5488
  */
5214
- getQueueMigrations(threshold) {
5489
+ getQueueUsageDump(threshold) {
5215
5490
  return __awaiter(this, void 0, void 0, function* () {
5216
- const apiPath = '/health/queue/migrations';
5491
+ const apiPath = '/health/queue/usage-dump';
5217
5492
  const payload = {};
5218
5493
  if (typeof threshold !== 'undefined') {
5219
5494
  payload['threshold'] = threshold;
@@ -5247,6 +5522,24 @@ class Health extends Service {
5247
5522
  }, payload);
5248
5523
  });
5249
5524
  }
5525
+ /**
5526
+ * Get storage
5527
+ *
5528
+ * Check the Appwrite storage device is up and connection is successful.
5529
+ *
5530
+ * @throws {AppwriteException}
5531
+ * @returns {Promise}
5532
+ */
5533
+ getStorage() {
5534
+ return __awaiter(this, void 0, void 0, function* () {
5535
+ const apiPath = '/health/storage';
5536
+ const payload = {};
5537
+ const uri = new URL(this.client.config.endpoint + apiPath);
5538
+ return yield this.client.call('get', uri, {
5539
+ 'content-type': 'application/json',
5540
+ }, payload);
5541
+ });
5542
+ }
5250
5543
  /**
5251
5544
  * Get local storage
5252
5545
  *
@@ -5461,6 +5754,7 @@ class Messaging extends Service {
5461
5754
  /**
5462
5755
  * List messages
5463
5756
  *
5757
+ * Get a list of all messages from the current Appwrite project.
5464
5758
  *
5465
5759
  * @param {string[]} queries
5466
5760
  * @param {string} search
@@ -5484,8 +5778,9 @@ class Messaging extends Service {
5484
5778
  });
5485
5779
  }
5486
5780
  /**
5487
- * Create an email.
5781
+ * Create email
5488
5782
  *
5783
+ * Create a new email message.
5489
5784
  *
5490
5785
  * @param {string} messageId
5491
5786
  * @param {string} subject
@@ -5495,13 +5790,14 @@ class Messaging extends Service {
5495
5790
  * @param {string[]} targets
5496
5791
  * @param {string[]} cc
5497
5792
  * @param {string[]} bcc
5498
- * @param {MessageType} status
5793
+ * @param {string[]} attachments
5794
+ * @param {boolean} draft
5499
5795
  * @param {boolean} html
5500
5796
  * @param {string} scheduledAt
5501
5797
  * @throws {AppwriteException}
5502
5798
  * @returns {Promise}
5503
5799
  */
5504
- createEmail(messageId, subject, content, topics, users, targets, cc, bcc, status, html, scheduledAt) {
5800
+ createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt) {
5505
5801
  return __awaiter(this, void 0, void 0, function* () {
5506
5802
  if (typeof messageId === 'undefined') {
5507
5803
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5538,8 +5834,11 @@ class Messaging extends Service {
5538
5834
  if (typeof bcc !== 'undefined') {
5539
5835
  payload['bcc'] = bcc;
5540
5836
  }
5541
- if (typeof status !== 'undefined') {
5542
- payload['status'] = status;
5837
+ if (typeof attachments !== 'undefined') {
5838
+ payload['attachments'] = attachments;
5839
+ }
5840
+ if (typeof draft !== 'undefined') {
5841
+ payload['draft'] = draft;
5543
5842
  }
5544
5843
  if (typeof html !== 'undefined') {
5545
5844
  payload['html'] = html;
@@ -5554,7 +5853,9 @@ class Messaging extends Service {
5554
5853
  });
5555
5854
  }
5556
5855
  /**
5557
- * Update an email.
5856
+ * Update email
5857
+ *
5858
+ * Update an email message by its unique ID.
5558
5859
  *
5559
5860
  *
5560
5861
  * @param {string} messageId
@@ -5563,7 +5864,7 @@ class Messaging extends Service {
5563
5864
  * @param {string[]} targets
5564
5865
  * @param {string} subject
5565
5866
  * @param {string} content
5566
- * @param {MessageType} status
5867
+ * @param {boolean} draft
5567
5868
  * @param {boolean} html
5568
5869
  * @param {string[]} cc
5569
5870
  * @param {string[]} bcc
@@ -5571,7 +5872,7 @@ class Messaging extends Service {
5571
5872
  * @throws {AppwriteException}
5572
5873
  * @returns {Promise}
5573
5874
  */
5574
- updateEmail(messageId, topics, users, targets, subject, content, status, html, cc, bcc, scheduledAt) {
5875
+ updateEmail(messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt) {
5575
5876
  return __awaiter(this, void 0, void 0, function* () {
5576
5877
  if (typeof messageId === 'undefined') {
5577
5878
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5593,8 +5894,8 @@ class Messaging extends Service {
5593
5894
  if (typeof content !== 'undefined') {
5594
5895
  payload['content'] = content;
5595
5896
  }
5596
- if (typeof status !== 'undefined') {
5597
- payload['status'] = status;
5897
+ if (typeof draft !== 'undefined') {
5898
+ payload['draft'] = draft;
5598
5899
  }
5599
5900
  if (typeof html !== 'undefined') {
5600
5901
  payload['html'] = html;
@@ -5615,8 +5916,9 @@ class Messaging extends Service {
5615
5916
  });
5616
5917
  }
5617
5918
  /**
5618
- * Create a push notification.
5919
+ * Create push notification
5619
5920
  *
5921
+ * Create a new push notification.
5620
5922
  *
5621
5923
  * @param {string} messageId
5622
5924
  * @param {string} title
@@ -5626,17 +5928,18 @@ class Messaging extends Service {
5626
5928
  * @param {string[]} targets
5627
5929
  * @param {object} data
5628
5930
  * @param {string} action
5931
+ * @param {string} image
5629
5932
  * @param {string} icon
5630
5933
  * @param {string} sound
5631
5934
  * @param {string} color
5632
5935
  * @param {string} tag
5633
5936
  * @param {string} badge
5634
- * @param {MessageType} status
5937
+ * @param {boolean} draft
5635
5938
  * @param {string} scheduledAt
5636
5939
  * @throws {AppwriteException}
5637
5940
  * @returns {Promise}
5638
5941
  */
5639
- createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
5942
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
5640
5943
  return __awaiter(this, void 0, void 0, function* () {
5641
5944
  if (typeof messageId === 'undefined') {
5642
5945
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5673,6 +5976,9 @@ class Messaging extends Service {
5673
5976
  if (typeof action !== 'undefined') {
5674
5977
  payload['action'] = action;
5675
5978
  }
5979
+ if (typeof image !== 'undefined') {
5980
+ payload['image'] = image;
5981
+ }
5676
5982
  if (typeof icon !== 'undefined') {
5677
5983
  payload['icon'] = icon;
5678
5984
  }
@@ -5688,8 +5994,8 @@ class Messaging extends Service {
5688
5994
  if (typeof badge !== 'undefined') {
5689
5995
  payload['badge'] = badge;
5690
5996
  }
5691
- if (typeof status !== 'undefined') {
5692
- payload['status'] = status;
5997
+ if (typeof draft !== 'undefined') {
5998
+ payload['draft'] = draft;
5693
5999
  }
5694
6000
  if (typeof scheduledAt !== 'undefined') {
5695
6001
  payload['scheduledAt'] = scheduledAt;
@@ -5701,7 +6007,9 @@ class Messaging extends Service {
5701
6007
  });
5702
6008
  }
5703
6009
  /**
5704
- * Update a push notification.
6010
+ * Update push notification
6011
+ *
6012
+ * Update a push notification by its unique ID.
5705
6013
  *
5706
6014
  *
5707
6015
  * @param {string} messageId
@@ -5712,17 +6020,18 @@ class Messaging extends Service {
5712
6020
  * @param {string} body
5713
6021
  * @param {object} data
5714
6022
  * @param {string} action
6023
+ * @param {string} image
5715
6024
  * @param {string} icon
5716
6025
  * @param {string} sound
5717
6026
  * @param {string} color
5718
6027
  * @param {string} tag
5719
6028
  * @param {number} badge
5720
- * @param {MessageType} status
6029
+ * @param {boolean} draft
5721
6030
  * @param {string} scheduledAt
5722
6031
  * @throws {AppwriteException}
5723
6032
  * @returns {Promise}
5724
6033
  */
5725
- updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
6034
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, draft, scheduledAt) {
5726
6035
  return __awaiter(this, void 0, void 0, function* () {
5727
6036
  if (typeof messageId === 'undefined') {
5728
6037
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5750,6 +6059,9 @@ class Messaging extends Service {
5750
6059
  if (typeof action !== 'undefined') {
5751
6060
  payload['action'] = action;
5752
6061
  }
6062
+ if (typeof image !== 'undefined') {
6063
+ payload['image'] = image;
6064
+ }
5753
6065
  if (typeof icon !== 'undefined') {
5754
6066
  payload['icon'] = icon;
5755
6067
  }
@@ -5765,8 +6077,8 @@ class Messaging extends Service {
5765
6077
  if (typeof badge !== 'undefined') {
5766
6078
  payload['badge'] = badge;
5767
6079
  }
5768
- if (typeof status !== 'undefined') {
5769
- payload['status'] = status;
6080
+ if (typeof draft !== 'undefined') {
6081
+ payload['draft'] = draft;
5770
6082
  }
5771
6083
  if (typeof scheduledAt !== 'undefined') {
5772
6084
  payload['scheduledAt'] = scheduledAt;
@@ -5778,20 +6090,21 @@ class Messaging extends Service {
5778
6090
  });
5779
6091
  }
5780
6092
  /**
5781
- * Create an SMS.
6093
+ * Create SMS
5782
6094
  *
6095
+ * Create a new SMS message.
5783
6096
  *
5784
6097
  * @param {string} messageId
5785
6098
  * @param {string} content
5786
6099
  * @param {string[]} topics
5787
6100
  * @param {string[]} users
5788
6101
  * @param {string[]} targets
5789
- * @param {MessageType} status
6102
+ * @param {boolean} draft
5790
6103
  * @param {string} scheduledAt
5791
6104
  * @throws {AppwriteException}
5792
6105
  * @returns {Promise}
5793
6106
  */
5794
- createSMS(messageId, content, topics, users, targets, status, scheduledAt) {
6107
+ createSms(messageId, content, topics, users, targets, draft, scheduledAt) {
5795
6108
  return __awaiter(this, void 0, void 0, function* () {
5796
6109
  if (typeof messageId === 'undefined') {
5797
6110
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5816,8 +6129,8 @@ class Messaging extends Service {
5816
6129
  if (typeof targets !== 'undefined') {
5817
6130
  payload['targets'] = targets;
5818
6131
  }
5819
- if (typeof status !== 'undefined') {
5820
- payload['status'] = status;
6132
+ if (typeof draft !== 'undefined') {
6133
+ payload['draft'] = draft;
5821
6134
  }
5822
6135
  if (typeof scheduledAt !== 'undefined') {
5823
6136
  payload['scheduledAt'] = scheduledAt;
@@ -5829,7 +6142,9 @@ class Messaging extends Service {
5829
6142
  });
5830
6143
  }
5831
6144
  /**
5832
- * Update an SMS.
6145
+ * Update SMS
6146
+ *
6147
+ * Update an email message by its unique ID.
5833
6148
  *
5834
6149
  *
5835
6150
  * @param {string} messageId
@@ -5837,12 +6152,12 @@ class Messaging extends Service {
5837
6152
  * @param {string[]} users
5838
6153
  * @param {string[]} targets
5839
6154
  * @param {string} content
5840
- * @param {MessageType} status
6155
+ * @param {boolean} draft
5841
6156
  * @param {string} scheduledAt
5842
6157
  * @throws {AppwriteException}
5843
6158
  * @returns {Promise}
5844
6159
  */
5845
- updateSMS(messageId, topics, users, targets, content, status, scheduledAt) {
6160
+ updateSms(messageId, topics, users, targets, content, draft, scheduledAt) {
5846
6161
  return __awaiter(this, void 0, void 0, function* () {
5847
6162
  if (typeof messageId === 'undefined') {
5848
6163
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5861,8 +6176,8 @@ class Messaging extends Service {
5861
6176
  if (typeof content !== 'undefined') {
5862
6177
  payload['content'] = content;
5863
6178
  }
5864
- if (typeof status !== 'undefined') {
5865
- payload['status'] = status;
6179
+ if (typeof draft !== 'undefined') {
6180
+ payload['draft'] = draft;
5866
6181
  }
5867
6182
  if (typeof scheduledAt !== 'undefined') {
5868
6183
  payload['scheduledAt'] = scheduledAt;
@@ -5874,7 +6189,9 @@ class Messaging extends Service {
5874
6189
  });
5875
6190
  }
5876
6191
  /**
5877
- * Get a message
6192
+ * Get message
6193
+ *
6194
+ * Get a message by its unique ID.
5878
6195
  *
5879
6196
  *
5880
6197
  * @param {string} messageId
@@ -5895,8 +6212,10 @@ class Messaging extends Service {
5895
6212
  });
5896
6213
  }
5897
6214
  /**
5898
- * Delete a message
6215
+ * Delete message
5899
6216
  *
6217
+ * Delete a message. If the message is not a draft or scheduled, but has been
6218
+ * sent, this will not recall the message.
5900
6219
  *
5901
6220
  * @param {string} messageId
5902
6221
  * @throws {AppwriteException}
@@ -5918,6 +6237,7 @@ class Messaging extends Service {
5918
6237
  /**
5919
6238
  * List message logs
5920
6239
  *
6240
+ * Get the message activity logs listed by its unique ID.
5921
6241
  *
5922
6242
  * @param {string} messageId
5923
6243
  * @param {string[]} queries
@@ -5943,8 +6263,7 @@ class Messaging extends Service {
5943
6263
  /**
5944
6264
  * List message targets
5945
6265
  *
5946
- * List the targets associated with a message as set via the targets
5947
- * attribute.
6266
+ * Get a list of the targets associated with a message.
5948
6267
  *
5949
6268
  * @param {string} messageId
5950
6269
  * @param {string[]} queries
@@ -5970,6 +6289,7 @@ class Messaging extends Service {
5970
6289
  /**
5971
6290
  * List providers
5972
6291
  *
6292
+ * Get a list of all providers from the current Appwrite project.
5973
6293
  *
5974
6294
  * @param {string[]} queries
5975
6295
  * @param {string} search
@@ -5995,6 +6315,7 @@ class Messaging extends Service {
5995
6315
  /**
5996
6316
  * Create APNS provider
5997
6317
  *
6318
+ * Create a new Apple Push Notification service provider.
5998
6319
  *
5999
6320
  * @param {string} providerId
6000
6321
  * @param {string} name
@@ -6002,11 +6323,12 @@ class Messaging extends Service {
6002
6323
  * @param {string} authKeyId
6003
6324
  * @param {string} teamId
6004
6325
  * @param {string} bundleId
6326
+ * @param {boolean} sandbox
6005
6327
  * @param {boolean} enabled
6006
6328
  * @throws {AppwriteException}
6007
6329
  * @returns {Promise}
6008
6330
  */
6009
- createAPNSProvider(providerId, name, authKey, authKeyId, teamId, bundleId, enabled) {
6331
+ createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
6010
6332
  return __awaiter(this, void 0, void 0, function* () {
6011
6333
  if (typeof providerId === 'undefined') {
6012
6334
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6034,6 +6356,9 @@ class Messaging extends Service {
6034
6356
  if (typeof bundleId !== 'undefined') {
6035
6357
  payload['bundleId'] = bundleId;
6036
6358
  }
6359
+ if (typeof sandbox !== 'undefined') {
6360
+ payload['sandbox'] = sandbox;
6361
+ }
6037
6362
  if (typeof enabled !== 'undefined') {
6038
6363
  payload['enabled'] = enabled;
6039
6364
  }
@@ -6046,6 +6371,7 @@ class Messaging extends Service {
6046
6371
  /**
6047
6372
  * Update APNS provider
6048
6373
  *
6374
+ * Update a Apple Push Notification service provider by its unique ID.
6049
6375
  *
6050
6376
  * @param {string} providerId
6051
6377
  * @param {string} name
@@ -6054,10 +6380,11 @@ class Messaging extends Service {
6054
6380
  * @param {string} authKeyId
6055
6381
  * @param {string} teamId
6056
6382
  * @param {string} bundleId
6383
+ * @param {boolean} sandbox
6057
6384
  * @throws {AppwriteException}
6058
6385
  * @returns {Promise}
6059
6386
  */
6060
- updateAPNSProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId) {
6387
+ updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
6061
6388
  return __awaiter(this, void 0, void 0, function* () {
6062
6389
  if (typeof providerId === 'undefined') {
6063
6390
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6082,6 +6409,9 @@ class Messaging extends Service {
6082
6409
  if (typeof bundleId !== 'undefined') {
6083
6410
  payload['bundleId'] = bundleId;
6084
6411
  }
6412
+ if (typeof sandbox !== 'undefined') {
6413
+ payload['sandbox'] = sandbox;
6414
+ }
6085
6415
  const uri = new URL(this.client.config.endpoint + apiPath);
6086
6416
  return yield this.client.call('patch', uri, {
6087
6417
  'content-type': 'application/json',
@@ -6091,6 +6421,7 @@ class Messaging extends Service {
6091
6421
  /**
6092
6422
  * Create FCM provider
6093
6423
  *
6424
+ * Create a new Firebase Cloud Messaging provider.
6094
6425
  *
6095
6426
  * @param {string} providerId
6096
6427
  * @param {string} name
@@ -6099,7 +6430,7 @@ class Messaging extends Service {
6099
6430
  * @throws {AppwriteException}
6100
6431
  * @returns {Promise}
6101
6432
  */
6102
- createFCMProvider(providerId, name, serviceAccountJSON, enabled) {
6433
+ createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
6103
6434
  return __awaiter(this, void 0, void 0, function* () {
6104
6435
  if (typeof providerId === 'undefined') {
6105
6436
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6130,6 +6461,7 @@ class Messaging extends Service {
6130
6461
  /**
6131
6462
  * Update FCM provider
6132
6463
  *
6464
+ * Update a Firebase Cloud Messaging provider by its unique ID.
6133
6465
  *
6134
6466
  * @param {string} providerId
6135
6467
  * @param {string} name
@@ -6138,7 +6470,7 @@ class Messaging extends Service {
6138
6470
  * @throws {AppwriteException}
6139
6471
  * @returns {Promise}
6140
6472
  */
6141
- updateFCMProvider(providerId, name, enabled, serviceAccountJSON) {
6473
+ updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
6142
6474
  return __awaiter(this, void 0, void 0, function* () {
6143
6475
  if (typeof providerId === 'undefined') {
6144
6476
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6163,6 +6495,7 @@ class Messaging extends Service {
6163
6495
  /**
6164
6496
  * Create Mailgun provider
6165
6497
  *
6498
+ * Create a new Mailgun provider.
6166
6499
  *
6167
6500
  * @param {string} providerId
6168
6501
  * @param {string} name
@@ -6226,6 +6559,7 @@ class Messaging extends Service {
6226
6559
  /**
6227
6560
  * Update Mailgun provider
6228
6561
  *
6562
+ * Update a Mailgun provider by its unique ID.
6229
6563
  *
6230
6564
  * @param {string} providerId
6231
6565
  * @param {string} name
@@ -6283,6 +6617,7 @@ class Messaging extends Service {
6283
6617
  /**
6284
6618
  * Create Msg91 provider
6285
6619
  *
6620
+ * Create a new MSG91 provider.
6286
6621
  *
6287
6622
  * @param {string} providerId
6288
6623
  * @param {string} name
@@ -6330,6 +6665,7 @@ class Messaging extends Service {
6330
6665
  /**
6331
6666
  * Update Msg91 provider
6332
6667
  *
6668
+ * Update a MSG91 provider by its unique ID.
6333
6669
  *
6334
6670
  * @param {string} providerId
6335
6671
  * @param {string} name
@@ -6371,6 +6707,7 @@ class Messaging extends Service {
6371
6707
  /**
6372
6708
  * Create Sendgrid provider
6373
6709
  *
6710
+ * Create a new Sendgrid provider.
6374
6711
  *
6375
6712
  * @param {string} providerId
6376
6713
  * @param {string} name
@@ -6426,6 +6763,7 @@ class Messaging extends Service {
6426
6763
  /**
6427
6764
  * Update Sendgrid provider
6428
6765
  *
6766
+ * Update a Sendgrid provider by its unique ID.
6429
6767
  *
6430
6768
  * @param {string} providerId
6431
6769
  * @param {string} name
@@ -6475,6 +6813,7 @@ class Messaging extends Service {
6475
6813
  /**
6476
6814
  * Create SMTP provider
6477
6815
  *
6816
+ * Create a new SMTP provider.
6478
6817
  *
6479
6818
  * @param {string} providerId
6480
6819
  * @param {string} name
@@ -6482,7 +6821,7 @@ class Messaging extends Service {
6482
6821
  * @param {number} port
6483
6822
  * @param {string} username
6484
6823
  * @param {string} password
6485
- * @param {SMTPEncryption} encryption
6824
+ * @param {SmtpEncryption} encryption
6486
6825
  * @param {boolean} autoTLS
6487
6826
  * @param {string} mailer
6488
6827
  * @param {string} fromName
@@ -6493,7 +6832,7 @@ class Messaging extends Service {
6493
6832
  * @throws {AppwriteException}
6494
6833
  * @returns {Promise}
6495
6834
  */
6496
- createSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6835
+ createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6497
6836
  return __awaiter(this, void 0, void 0, function* () {
6498
6837
  if (typeof providerId === 'undefined') {
6499
6838
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6557,6 +6896,7 @@ class Messaging extends Service {
6557
6896
  /**
6558
6897
  * Update SMTP provider
6559
6898
  *
6899
+ * Update a SMTP provider by its unique ID.
6560
6900
  *
6561
6901
  * @param {string} providerId
6562
6902
  * @param {string} name
@@ -6564,8 +6904,9 @@ class Messaging extends Service {
6564
6904
  * @param {number} port
6565
6905
  * @param {string} username
6566
6906
  * @param {string} password
6567
- * @param {SMTPEncryption} encryption
6907
+ * @param {SmtpEncryption} encryption
6568
6908
  * @param {boolean} autoTLS
6909
+ * @param {string} mailer
6569
6910
  * @param {string} fromName
6570
6911
  * @param {string} fromEmail
6571
6912
  * @param {string} replyToName
@@ -6574,7 +6915,7 @@ class Messaging extends Service {
6574
6915
  * @throws {AppwriteException}
6575
6916
  * @returns {Promise}
6576
6917
  */
6577
- updateSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6918
+ updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6578
6919
  return __awaiter(this, void 0, void 0, function* () {
6579
6920
  if (typeof providerId === 'undefined') {
6580
6921
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6602,6 +6943,9 @@ class Messaging extends Service {
6602
6943
  if (typeof autoTLS !== 'undefined') {
6603
6944
  payload['autoTLS'] = autoTLS;
6604
6945
  }
6946
+ if (typeof mailer !== 'undefined') {
6947
+ payload['mailer'] = mailer;
6948
+ }
6605
6949
  if (typeof fromName !== 'undefined') {
6606
6950
  payload['fromName'] = fromName;
6607
6951
  }
@@ -6626,17 +6970,18 @@ class Messaging extends Service {
6626
6970
  /**
6627
6971
  * Create Telesign provider
6628
6972
  *
6973
+ * Create a new Telesign provider.
6629
6974
  *
6630
6975
  * @param {string} providerId
6631
6976
  * @param {string} name
6632
6977
  * @param {string} from
6633
- * @param {string} username
6634
- * @param {string} password
6978
+ * @param {string} customerId
6979
+ * @param {string} apiKey
6635
6980
  * @param {boolean} enabled
6636
6981
  * @throws {AppwriteException}
6637
6982
  * @returns {Promise}
6638
6983
  */
6639
- createTelesignProvider(providerId, name, from, username, password, enabled) {
6984
+ createTelesignProvider(providerId, name, from, customerId, apiKey, enabled) {
6640
6985
  return __awaiter(this, void 0, void 0, function* () {
6641
6986
  if (typeof providerId === 'undefined') {
6642
6987
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6655,11 +7000,11 @@ class Messaging extends Service {
6655
7000
  if (typeof from !== 'undefined') {
6656
7001
  payload['from'] = from;
6657
7002
  }
6658
- if (typeof username !== 'undefined') {
6659
- payload['username'] = username;
7003
+ if (typeof customerId !== 'undefined') {
7004
+ payload['customerId'] = customerId;
6660
7005
  }
6661
- if (typeof password !== 'undefined') {
6662
- payload['password'] = password;
7006
+ if (typeof apiKey !== 'undefined') {
7007
+ payload['apiKey'] = apiKey;
6663
7008
  }
6664
7009
  if (typeof enabled !== 'undefined') {
6665
7010
  payload['enabled'] = enabled;
@@ -6673,17 +7018,18 @@ class Messaging extends Service {
6673
7018
  /**
6674
7019
  * Update Telesign provider
6675
7020
  *
7021
+ * Update a Telesign provider by its unique ID.
6676
7022
  *
6677
7023
  * @param {string} providerId
6678
7024
  * @param {string} name
6679
7025
  * @param {boolean} enabled
6680
- * @param {string} username
6681
- * @param {string} password
7026
+ * @param {string} customerId
7027
+ * @param {string} apiKey
6682
7028
  * @param {string} from
6683
7029
  * @throws {AppwriteException}
6684
7030
  * @returns {Promise}
6685
7031
  */
6686
- updateTelesignProvider(providerId, name, enabled, username, password, from) {
7032
+ updateTelesignProvider(providerId, name, enabled, customerId, apiKey, from) {
6687
7033
  return __awaiter(this, void 0, void 0, function* () {
6688
7034
  if (typeof providerId === 'undefined') {
6689
7035
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6696,11 +7042,11 @@ class Messaging extends Service {
6696
7042
  if (typeof enabled !== 'undefined') {
6697
7043
  payload['enabled'] = enabled;
6698
7044
  }
6699
- if (typeof username !== 'undefined') {
6700
- payload['username'] = username;
7045
+ if (typeof customerId !== 'undefined') {
7046
+ payload['customerId'] = customerId;
6701
7047
  }
6702
- if (typeof password !== 'undefined') {
6703
- payload['password'] = password;
7048
+ if (typeof apiKey !== 'undefined') {
7049
+ payload['apiKey'] = apiKey;
6704
7050
  }
6705
7051
  if (typeof from !== 'undefined') {
6706
7052
  payload['from'] = from;
@@ -6714,6 +7060,7 @@ class Messaging extends Service {
6714
7060
  /**
6715
7061
  * Create Textmagic provider
6716
7062
  *
7063
+ * Create a new Textmagic provider.
6717
7064
  *
6718
7065
  * @param {string} providerId
6719
7066
  * @param {string} name
@@ -6761,6 +7108,7 @@ class Messaging extends Service {
6761
7108
  /**
6762
7109
  * Update Textmagic provider
6763
7110
  *
7111
+ * Update a Textmagic provider by its unique ID.
6764
7112
  *
6765
7113
  * @param {string} providerId
6766
7114
  * @param {string} name
@@ -6802,6 +7150,7 @@ class Messaging extends Service {
6802
7150
  /**
6803
7151
  * Create Twilio provider
6804
7152
  *
7153
+ * Create a new Twilio provider.
6805
7154
  *
6806
7155
  * @param {string} providerId
6807
7156
  * @param {string} name
@@ -6849,6 +7198,7 @@ class Messaging extends Service {
6849
7198
  /**
6850
7199
  * Update Twilio provider
6851
7200
  *
7201
+ * Update a Twilio provider by its unique ID.
6852
7202
  *
6853
7203
  * @param {string} providerId
6854
7204
  * @param {string} name
@@ -6890,6 +7240,7 @@ class Messaging extends Service {
6890
7240
  /**
6891
7241
  * Create Vonage provider
6892
7242
  *
7243
+ * Create a new Vonage provider.
6893
7244
  *
6894
7245
  * @param {string} providerId
6895
7246
  * @param {string} name
@@ -6937,6 +7288,7 @@ class Messaging extends Service {
6937
7288
  /**
6938
7289
  * Update Vonage provider
6939
7290
  *
7291
+ * Update a Vonage provider by its unique ID.
6940
7292
  *
6941
7293
  * @param {string} providerId
6942
7294
  * @param {string} name
@@ -6978,6 +7330,8 @@ class Messaging extends Service {
6978
7330
  /**
6979
7331
  * Get provider
6980
7332
  *
7333
+ * Get a provider by its unique ID.
7334
+ *
6981
7335
  *
6982
7336
  * @param {string} providerId
6983
7337
  * @throws {AppwriteException}
@@ -6999,6 +7353,7 @@ class Messaging extends Service {
6999
7353
  /**
7000
7354
  * Delete provider
7001
7355
  *
7356
+ * Delete a provider by its unique ID.
7002
7357
  *
7003
7358
  * @param {string} providerId
7004
7359
  * @throws {AppwriteException}
@@ -7020,6 +7375,7 @@ class Messaging extends Service {
7020
7375
  /**
7021
7376
  * List provider logs
7022
7377
  *
7378
+ * Get the provider activity logs listed by its unique ID.
7023
7379
  *
7024
7380
  * @param {string} providerId
7025
7381
  * @param {string[]} queries
@@ -7045,6 +7401,7 @@ class Messaging extends Service {
7045
7401
  /**
7046
7402
  * List subscriber logs
7047
7403
  *
7404
+ * Get the subscriber activity logs listed by its unique ID.
7048
7405
  *
7049
7406
  * @param {string} subscriberId
7050
7407
  * @param {string[]} queries
@@ -7068,8 +7425,9 @@ class Messaging extends Service {
7068
7425
  });
7069
7426
  }
7070
7427
  /**
7071
- * List topics.
7428
+ * List topics
7072
7429
  *
7430
+ * Get a list of all topics from the current Appwrite project.
7073
7431
  *
7074
7432
  * @param {string[]} queries
7075
7433
  * @param {string} search
@@ -7093,15 +7451,17 @@ class Messaging extends Service {
7093
7451
  });
7094
7452
  }
7095
7453
  /**
7096
- * Create a topic.
7454
+ * Create topic
7097
7455
  *
7456
+ * Create a new topic.
7098
7457
  *
7099
7458
  * @param {string} topicId
7100
7459
  * @param {string} name
7460
+ * @param {string[]} subscribe
7101
7461
  * @throws {AppwriteException}
7102
7462
  * @returns {Promise}
7103
7463
  */
7104
- createTopic(topicId, name) {
7464
+ createTopic(topicId, name, subscribe) {
7105
7465
  return __awaiter(this, void 0, void 0, function* () {
7106
7466
  if (typeof topicId === 'undefined') {
7107
7467
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -7117,6 +7477,9 @@ class Messaging extends Service {
7117
7477
  if (typeof name !== 'undefined') {
7118
7478
  payload['name'] = name;
7119
7479
  }
7480
+ if (typeof subscribe !== 'undefined') {
7481
+ payload['subscribe'] = subscribe;
7482
+ }
7120
7483
  const uri = new URL(this.client.config.endpoint + apiPath);
7121
7484
  return yield this.client.call('post', uri, {
7122
7485
  'content-type': 'application/json',
@@ -7124,7 +7487,9 @@ class Messaging extends Service {
7124
7487
  });
7125
7488
  }
7126
7489
  /**
7127
- * Get a topic.
7490
+ * Get topic
7491
+ *
7492
+ * Get a topic by its unique ID.
7128
7493
  *
7129
7494
  *
7130
7495
  * @param {string} topicId
@@ -7145,15 +7510,18 @@ class Messaging extends Service {
7145
7510
  });
7146
7511
  }
7147
7512
  /**
7148
- * Update a topic.
7513
+ * Update topic
7514
+ *
7515
+ * Update a topic by its unique ID.
7149
7516
  *
7150
7517
  *
7151
7518
  * @param {string} topicId
7152
7519
  * @param {string} name
7520
+ * @param {string[]} subscribe
7153
7521
  * @throws {AppwriteException}
7154
7522
  * @returns {Promise}
7155
7523
  */
7156
- updateTopic(topicId, name) {
7524
+ updateTopic(topicId, name, subscribe) {
7157
7525
  return __awaiter(this, void 0, void 0, function* () {
7158
7526
  if (typeof topicId === 'undefined') {
7159
7527
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -7163,6 +7531,9 @@ class Messaging extends Service {
7163
7531
  if (typeof name !== 'undefined') {
7164
7532
  payload['name'] = name;
7165
7533
  }
7534
+ if (typeof subscribe !== 'undefined') {
7535
+ payload['subscribe'] = subscribe;
7536
+ }
7166
7537
  const uri = new URL(this.client.config.endpoint + apiPath);
7167
7538
  return yield this.client.call('patch', uri, {
7168
7539
  'content-type': 'application/json',
@@ -7170,8 +7541,9 @@ class Messaging extends Service {
7170
7541
  });
7171
7542
  }
7172
7543
  /**
7173
- * Delete a topic.
7544
+ * Delete topic
7174
7545
  *
7546
+ * Delete a topic by its unique ID.
7175
7547
  *
7176
7548
  * @param {string} topicId
7177
7549
  * @throws {AppwriteException}
@@ -7193,6 +7565,7 @@ class Messaging extends Service {
7193
7565
  /**
7194
7566
  * List topic logs
7195
7567
  *
7568
+ * Get the topic activity logs listed by its unique ID.
7196
7569
  *
7197
7570
  * @param {string} topicId
7198
7571
  * @param {string[]} queries
@@ -7216,8 +7589,9 @@ class Messaging extends Service {
7216
7589
  });
7217
7590
  }
7218
7591
  /**
7219
- * List subscribers.
7592
+ * List subscribers
7220
7593
  *
7594
+ * Get a list of all subscribers from the current Appwrite project.
7221
7595
  *
7222
7596
  * @param {string} topicId
7223
7597
  * @param {string[]} queries
@@ -7245,8 +7619,9 @@ class Messaging extends Service {
7245
7619
  });
7246
7620
  }
7247
7621
  /**
7248
- * Create a subscriber.
7622
+ * Create subscriber
7249
7623
  *
7624
+ * Create a new subscriber.
7250
7625
  *
7251
7626
  * @param {string} topicId
7252
7627
  * @param {string} subscriberId
@@ -7280,7 +7655,9 @@ class Messaging extends Service {
7280
7655
  });
7281
7656
  }
7282
7657
  /**
7283
- * Get a subscriber.
7658
+ * Get subscriber
7659
+ *
7660
+ * Get a subscriber by its unique ID.
7284
7661
  *
7285
7662
  *
7286
7663
  * @param {string} topicId
@@ -7305,8 +7682,9 @@ class Messaging extends Service {
7305
7682
  });
7306
7683
  }
7307
7684
  /**
7308
- * Delete a subscriber.
7685
+ * Delete subscriber
7309
7686
  *
7687
+ * Delete a subscriber by its unique ID.
7310
7688
  *
7311
7689
  * @param {string} topicId
7312
7690
  * @param {string} subscriberId
@@ -7944,7 +8322,7 @@ class Project extends Service {
7944
8322
  super(client);
7945
8323
  }
7946
8324
  /**
7947
- * Get usage stats for a project
8325
+ * Get project usage stats
7948
8326
  *
7949
8327
  *
7950
8328
  * @param {string} startDate
@@ -8323,6 +8701,69 @@ class Projects extends Service {
8323
8701
  }, payload);
8324
8702
  });
8325
8703
  }
8704
+ /**
8705
+ * Update API status
8706
+ *
8707
+ *
8708
+ * @param {string} projectId
8709
+ * @param {Api} api
8710
+ * @param {boolean} status
8711
+ * @throws {AppwriteException}
8712
+ * @returns {Promise}
8713
+ */
8714
+ updateApiStatus(projectId, api, status) {
8715
+ return __awaiter(this, void 0, void 0, function* () {
8716
+ if (typeof projectId === 'undefined') {
8717
+ throw new AppwriteException('Missing required parameter: "projectId"');
8718
+ }
8719
+ if (typeof api === 'undefined') {
8720
+ throw new AppwriteException('Missing required parameter: "api"');
8721
+ }
8722
+ if (typeof status === 'undefined') {
8723
+ throw new AppwriteException('Missing required parameter: "status"');
8724
+ }
8725
+ const apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
8726
+ const payload = {};
8727
+ if (typeof api !== 'undefined') {
8728
+ payload['api'] = api;
8729
+ }
8730
+ if (typeof status !== 'undefined') {
8731
+ payload['status'] = status;
8732
+ }
8733
+ const uri = new URL(this.client.config.endpoint + apiPath);
8734
+ return yield this.client.call('patch', uri, {
8735
+ 'content-type': 'application/json',
8736
+ }, payload);
8737
+ });
8738
+ }
8739
+ /**
8740
+ * Update all API status
8741
+ *
8742
+ *
8743
+ * @param {string} projectId
8744
+ * @param {boolean} status
8745
+ * @throws {AppwriteException}
8746
+ * @returns {Promise}
8747
+ */
8748
+ updateApiStatusAll(projectId, status) {
8749
+ return __awaiter(this, void 0, void 0, function* () {
8750
+ if (typeof projectId === 'undefined') {
8751
+ throw new AppwriteException('Missing required parameter: "projectId"');
8752
+ }
8753
+ if (typeof status === 'undefined') {
8754
+ throw new AppwriteException('Missing required parameter: "status"');
8755
+ }
8756
+ const apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
8757
+ const payload = {};
8758
+ if (typeof status !== 'undefined') {
8759
+ payload['status'] = status;
8760
+ }
8761
+ const uri = new URL(this.client.config.endpoint + apiPath);
8762
+ return yield this.client.call('patch', uri, {
8763
+ 'content-type': 'application/json',
8764
+ }, payload);
8765
+ });
8766
+ }
8326
8767
  /**
8327
8768
  * Update project authentication duration
8328
8769
  *
@@ -8883,7 +9324,7 @@ class Projects extends Service {
8883
9324
  *
8884
9325
  *
8885
9326
  * @param {string} projectId
8886
- * @param {APIService} service
9327
+ * @param {ApiService} service
8887
9328
  * @param {boolean} status
8888
9329
  * @throws {AppwriteException}
8889
9330
  * @returns {Promise}
@@ -9103,8 +9544,8 @@ class Projects extends Service {
9103
9544
  *
9104
9545
  *
9105
9546
  * @param {string} projectId
9106
- * @param {TemplateType} type
9107
- * @param {TemplateLocale} locale
9547
+ * @param {EmailTemplateType} type
9548
+ * @param {EmailTemplateLocale} locale
9108
9549
  * @throws {AppwriteException}
9109
9550
  * @returns {Promise}
9110
9551
  */
@@ -9132,8 +9573,8 @@ class Projects extends Service {
9132
9573
  *
9133
9574
  *
9134
9575
  * @param {string} projectId
9135
- * @param {TemplateType} type
9136
- * @param {TemplateLocale} locale
9576
+ * @param {EmailTemplateType} type
9577
+ * @param {EmailTemplateLocale} locale
9137
9578
  * @param {string} subject
9138
9579
  * @param {string} message
9139
9580
  * @param {string} senderName
@@ -9187,8 +9628,8 @@ class Projects extends Service {
9187
9628
  *
9188
9629
  *
9189
9630
  * @param {string} projectId
9190
- * @param {TemplateType} type
9191
- * @param {TemplateLocale} locale
9631
+ * @param {EmailTemplateType} type
9632
+ * @param {EmailTemplateLocale} locale
9192
9633
  * @throws {AppwriteException}
9193
9634
  * @returns {Promise}
9194
9635
  */
@@ -9216,8 +9657,8 @@ class Projects extends Service {
9216
9657
  *
9217
9658
  *
9218
9659
  * @param {string} projectId
9219
- * @param {TemplateType} type
9220
- * @param {TemplateLocale} locale
9660
+ * @param {SmsTemplateType} type
9661
+ * @param {SmsTemplateLocale} locale
9221
9662
  * @throws {AppwriteException}
9222
9663
  * @returns {Promise}
9223
9664
  */
@@ -9245,8 +9686,8 @@ class Projects extends Service {
9245
9686
  *
9246
9687
  *
9247
9688
  * @param {string} projectId
9248
- * @param {TemplateType} type
9249
- * @param {TemplateLocale} locale
9689
+ * @param {SmsTemplateType} type
9690
+ * @param {SmsTemplateLocale} locale
9250
9691
  * @param {string} message
9251
9692
  * @throws {AppwriteException}
9252
9693
  * @returns {Promise}
@@ -9281,8 +9722,8 @@ class Projects extends Service {
9281
9722
  *
9282
9723
  *
9283
9724
  * @param {string} projectId
9284
- * @param {TemplateType} type
9285
- * @param {TemplateLocale} locale
9725
+ * @param {SmsTemplateType} type
9726
+ * @param {SmsTemplateLocale} locale
9286
9727
  * @throws {AppwriteException}
9287
9728
  * @returns {Promise}
9288
9729
  */
@@ -10212,7 +10653,7 @@ class Storage extends Service {
10212
10653
  return uri;
10213
10654
  }
10214
10655
  /**
10215
- * Get usage stats for storage
10656
+ * Get storage usage stats
10216
10657
  *
10217
10658
  *
10218
10659
  * @param {StorageUsageRange} range
@@ -10233,7 +10674,7 @@ class Storage extends Service {
10233
10674
  });
10234
10675
  }
10235
10676
  /**
10236
- * Get usage stats for storage bucket
10677
+ * Get bucket usage stats
10237
10678
  *
10238
10679
  *
10239
10680
  * @param {string} bucketId
@@ -11186,7 +11627,7 @@ class Users extends Service {
11186
11627
  * @param {string} userId
11187
11628
  * @param {string} email
11188
11629
  * @param {string} password
11189
- * @param {PasswordVersion} passwordVersion
11630
+ * @param {PasswordHash} passwordVersion
11190
11631
  * @param {string} name
11191
11632
  * @throws {AppwriteException}
11192
11633
  * @returns {Promise}
@@ -11226,7 +11667,7 @@ class Users extends Service {
11226
11667
  });
11227
11668
  }
11228
11669
  /**
11229
- * Get usage stats for the users API
11670
+ * Get users usage stats
11230
11671
  *
11231
11672
  *
11232
11673
  * @param {UserUsageRange} range
@@ -11409,6 +11850,7 @@ class Users extends Service {
11409
11850
  /**
11410
11851
  * Update MFA
11411
11852
  *
11853
+ * Enable or disable MFA on a user account.
11412
11854
  *
11413
11855
  * @param {string} userId
11414
11856
  * @param {boolean} mfa
@@ -11437,31 +11879,122 @@ class Users extends Service {
11437
11879
  /**
11438
11880
  * Delete Authenticator
11439
11881
  *
11882
+ * Delete an authenticator app.
11440
11883
  *
11441
11884
  * @param {string} userId
11442
- * @param {AuthenticatorProvider} provider
11443
- * @param {string} otp
11885
+ * @param {AuthenticatorType} type
11444
11886
  * @throws {AppwriteException}
11445
11887
  * @returns {Promise}
11446
11888
  */
11447
- deleteAuthenticator(userId, provider, otp) {
11889
+ deleteMfaAuthenticator(userId, type) {
11448
11890
  return __awaiter(this, void 0, void 0, function* () {
11449
11891
  if (typeof userId === 'undefined') {
11450
11892
  throw new AppwriteException('Missing required parameter: "userId"');
11451
11893
  }
11452
- if (typeof provider === 'undefined') {
11453
- throw new AppwriteException('Missing required parameter: "provider"');
11894
+ if (typeof type === 'undefined') {
11895
+ throw new AppwriteException('Missing required parameter: "type"');
11454
11896
  }
11455
- if (typeof otp === 'undefined') {
11456
- throw new AppwriteException('Missing required parameter: "otp"');
11897
+ const apiPath = '/users/{userId}/mfa/authenticators/{type}'.replace('{userId}', userId).replace('{type}', type);
11898
+ const payload = {};
11899
+ const uri = new URL(this.client.config.endpoint + apiPath);
11900
+ return yield this.client.call('delete', uri, {
11901
+ 'content-type': 'application/json',
11902
+ }, payload);
11903
+ });
11904
+ }
11905
+ /**
11906
+ * List Factors
11907
+ *
11908
+ * List the factors available on the account to be used as a MFA challange.
11909
+ *
11910
+ * @param {string} userId
11911
+ * @throws {AppwriteException}
11912
+ * @returns {Promise}
11913
+ */
11914
+ listMfaFactors(userId) {
11915
+ return __awaiter(this, void 0, void 0, function* () {
11916
+ if (typeof userId === 'undefined') {
11917
+ throw new AppwriteException('Missing required parameter: "userId"');
11457
11918
  }
11458
- const apiPath = '/users/{userId}/mfa/{provider}'.replace('{userId}', userId).replace('{provider}', provider);
11919
+ const apiPath = '/users/{userId}/mfa/factors'.replace('{userId}', userId);
11459
11920
  const payload = {};
11460
- if (typeof otp !== 'undefined') {
11461
- payload['otp'] = otp;
11921
+ const uri = new URL(this.client.config.endpoint + apiPath);
11922
+ return yield this.client.call('get', uri, {
11923
+ 'content-type': 'application/json',
11924
+ }, payload);
11925
+ });
11926
+ }
11927
+ /**
11928
+ * Get MFA Recovery Codes
11929
+ *
11930
+ * Get recovery codes that can be used as backup for MFA flow by User ID.
11931
+ * Before getting codes, they must be generated using
11932
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
11933
+ * method.
11934
+ *
11935
+ * @param {string} userId
11936
+ * @throws {AppwriteException}
11937
+ * @returns {Promise}
11938
+ */
11939
+ getMfaRecoveryCodes(userId) {
11940
+ return __awaiter(this, void 0, void 0, function* () {
11941
+ if (typeof userId === 'undefined') {
11942
+ throw new AppwriteException('Missing required parameter: "userId"');
11462
11943
  }
11944
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11945
+ const payload = {};
11463
11946
  const uri = new URL(this.client.config.endpoint + apiPath);
11464
- return yield this.client.call('delete', uri, {
11947
+ return yield this.client.call('get', uri, {
11948
+ 'content-type': 'application/json',
11949
+ }, payload);
11950
+ });
11951
+ }
11952
+ /**
11953
+ * Regenerate MFA Recovery Codes
11954
+ *
11955
+ * Regenerate recovery codes that can be used as backup for MFA flow by User
11956
+ * ID. Before regenerating codes, they must be first generated using
11957
+ * [createMfaRecoveryCodes](/docs/references/cloud/client-web/account#createMfaRecoveryCodes)
11958
+ * method.
11959
+ *
11960
+ * @param {string} userId
11961
+ * @throws {AppwriteException}
11962
+ * @returns {Promise}
11963
+ */
11964
+ updateMfaRecoveryCodes(userId) {
11965
+ return __awaiter(this, void 0, void 0, function* () {
11966
+ if (typeof userId === 'undefined') {
11967
+ throw new AppwriteException('Missing required parameter: "userId"');
11968
+ }
11969
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11970
+ const payload = {};
11971
+ const uri = new URL(this.client.config.endpoint + apiPath);
11972
+ return yield this.client.call('put', uri, {
11973
+ 'content-type': 'application/json',
11974
+ }, payload);
11975
+ });
11976
+ }
11977
+ /**
11978
+ * Create MFA Recovery Codes
11979
+ *
11980
+ * Generate recovery codes used as backup for MFA flow for User ID. Recovery
11981
+ * codes can be used as a MFA verification type in
11982
+ * [createMfaChallenge](/docs/references/cloud/client-web/account#createMfaChallenge)
11983
+ * method by client SDK.
11984
+ *
11985
+ * @param {string} userId
11986
+ * @throws {AppwriteException}
11987
+ * @returns {Promise}
11988
+ */
11989
+ createMfaRecoveryCodes(userId) {
11990
+ return __awaiter(this, void 0, void 0, function* () {
11991
+ if (typeof userId === 'undefined') {
11992
+ throw new AppwriteException('Missing required parameter: "userId"');
11993
+ }
11994
+ const apiPath = '/users/{userId}/mfa/recovery-codes'.replace('{userId}', userId);
11995
+ const payload = {};
11996
+ const uri = new URL(this.client.config.endpoint + apiPath);
11997
+ return yield this.client.call('patch', uri, {
11465
11998
  'content-type': 'application/json',
11466
11999
  }, payload);
11467
12000
  });
@@ -11606,27 +12139,6 @@ class Users extends Service {
11606
12139
  }, payload);
11607
12140
  });
11608
12141
  }
11609
- /**
11610
- * List Providers
11611
- *
11612
- *
11613
- * @param {string} userId
11614
- * @throws {AppwriteException}
11615
- * @returns {Promise}
11616
- */
11617
- listProviders(userId) {
11618
- return __awaiter(this, void 0, void 0, function* () {
11619
- if (typeof userId === 'undefined') {
11620
- throw new AppwriteException('Missing required parameter: "userId"');
11621
- }
11622
- const apiPath = '/users/{userId}/providers'.replace('{userId}', userId);
11623
- const payload = {};
11624
- const uri = new URL(this.client.config.endpoint + apiPath);
11625
- return yield this.client.call('get', uri, {
11626
- 'content-type': 'application/json',
11627
- }, payload);
11628
- });
11629
- }
11630
12142
  /**
11631
12143
  * List user sessions
11632
12144
  *
@@ -11757,6 +12269,7 @@ class Users extends Service {
11757
12269
  /**
11758
12270
  * List User Targets
11759
12271
  *
12272
+ * List the messaging targets that are associated with a user.
11760
12273
  *
11761
12274
  * @param {string} userId
11762
12275
  * @param {string[]} queries
@@ -11782,6 +12295,7 @@ class Users extends Service {
11782
12295
  /**
11783
12296
  * Create User Target
11784
12297
  *
12298
+ * Create a messaging target.
11785
12299
  *
11786
12300
  * @param {string} userId
11787
12301
  * @param {string} targetId
@@ -11832,6 +12346,7 @@ class Users extends Service {
11832
12346
  /**
11833
12347
  * Get User Target
11834
12348
  *
12349
+ * Get a user's push notification target by ID.
11835
12350
  *
11836
12351
  * @param {string} userId
11837
12352
  * @param {string} targetId
@@ -11857,6 +12372,7 @@ class Users extends Service {
11857
12372
  /**
11858
12373
  * Update User target
11859
12374
  *
12375
+ * Update a messaging target.
11860
12376
  *
11861
12377
  * @param {string} userId
11862
12378
  * @param {string} targetId
@@ -11894,6 +12410,7 @@ class Users extends Service {
11894
12410
  /**
11895
12411
  * Delete user target
11896
12412
  *
12413
+ * Delete a messaging target.
11897
12414
  *
11898
12415
  * @param {string} userId
11899
12416
  * @param {string} targetId
@@ -12375,15 +12892,18 @@ class ID {
12375
12892
  }
12376
12893
  }
12377
12894
 
12378
- exports.AuthenticatorProvider = void 0;
12379
- (function (AuthenticatorProvider) {
12380
- AuthenticatorProvider["Totp"] = "totp";
12381
- })(exports.AuthenticatorProvider || (exports.AuthenticatorProvider = {}));
12895
+ exports.AuthenticatorType = void 0;
12896
+ (function (AuthenticatorType) {
12897
+ AuthenticatorType["Totp"] = "totp";
12898
+ })(exports.AuthenticatorType || (exports.AuthenticatorType = {}));
12382
12899
 
12383
- exports.AuthenticatorFactor = void 0;
12384
- (function (AuthenticatorFactor) {
12385
- AuthenticatorFactor["Totp"] = "totp";
12386
- })(exports.AuthenticatorFactor || (exports.AuthenticatorFactor = {}));
12900
+ exports.AuthenticationFactor = void 0;
12901
+ (function (AuthenticationFactor) {
12902
+ AuthenticationFactor["Email"] = "email";
12903
+ AuthenticationFactor["Phone"] = "phone";
12904
+ AuthenticationFactor["Totp"] = "totp";
12905
+ AuthenticationFactor["Recoverycode"] = "recoverycode";
12906
+ })(exports.AuthenticationFactor || (exports.AuthenticationFactor = {}));
12387
12907
 
12388
12908
  exports.OAuthProvider = void 0;
12389
12909
  (function (OAuthProvider) {
@@ -12691,15 +13211,54 @@ exports.IndexType = void 0;
12691
13211
  IndexType["Key"] = "key";
12692
13212
  IndexType["Fulltext"] = "fulltext";
12693
13213
  IndexType["Unique"] = "unique";
12694
- IndexType["Spatial"] = "spatial";
12695
13214
  })(exports.IndexType || (exports.IndexType = {}));
12696
13215
 
12697
13216
  exports.Runtime = void 0;
12698
13217
  (function (Runtime) {
13218
+ Runtime["Node145"] = "node-14.5";
13219
+ Runtime["Node160"] = "node-16.0";
12699
13220
  Runtime["Node180"] = "node-18.0";
13221
+ Runtime["Node190"] = "node-19.0";
13222
+ Runtime["Node200"] = "node-20.0";
13223
+ Runtime["Node210"] = "node-21.0";
12700
13224
  Runtime["Php80"] = "php-8.0";
13225
+ Runtime["Php81"] = "php-8.1";
13226
+ Runtime["Php82"] = "php-8.2";
13227
+ Runtime["Php83"] = "php-8.3";
13228
+ Runtime["Ruby30"] = "ruby-3.0";
12701
13229
  Runtime["Ruby31"] = "ruby-3.1";
13230
+ Runtime["Ruby32"] = "ruby-3.2";
13231
+ Runtime["Ruby33"] = "ruby-3.3";
13232
+ Runtime["Python38"] = "python-3.8";
12702
13233
  Runtime["Python39"] = "python-3.9";
13234
+ Runtime["Python310"] = "python-3.10";
13235
+ Runtime["Python311"] = "python-3.11";
13236
+ Runtime["Python312"] = "python-3.12";
13237
+ Runtime["Deno140"] = "deno-1.40";
13238
+ Runtime["Dart215"] = "dart-2.15";
13239
+ Runtime["Dart216"] = "dart-2.16";
13240
+ Runtime["Dart217"] = "dart-2.17";
13241
+ Runtime["Dart218"] = "dart-2.18";
13242
+ Runtime["Dart30"] = "dart-3.0";
13243
+ Runtime["Dart31"] = "dart-3.1";
13244
+ Runtime["Dart33"] = "dart-3.3";
13245
+ Runtime["Dotnet31"] = "dotnet-3.1";
13246
+ Runtime["Dotnet60"] = "dotnet-6.0";
13247
+ Runtime["Dotnet70"] = "dotnet-7.0";
13248
+ Runtime["Java80"] = "java-8.0";
13249
+ Runtime["Java110"] = "java-11.0";
13250
+ Runtime["Java170"] = "java-17.0";
13251
+ Runtime["Java180"] = "java-18.0";
13252
+ Runtime["Java210"] = "java-21.0";
13253
+ Runtime["Swift55"] = "swift-5.5";
13254
+ Runtime["Swift58"] = "swift-5.8";
13255
+ Runtime["Swift59"] = "swift-5.9";
13256
+ Runtime["Kotlin16"] = "kotlin-1.6";
13257
+ Runtime["Kotlin18"] = "kotlin-1.8";
13258
+ Runtime["Kotlin19"] = "kotlin-1.9";
13259
+ Runtime["Cpp17"] = "cpp-17";
13260
+ Runtime["Cpp20"] = "cpp-20";
13261
+ Runtime["Bun10"] = "bun-1.0";
12703
13262
  })(exports.Runtime || (exports.Runtime = {}));
12704
13263
 
12705
13264
  exports.FunctionUsageRange = void 0;
@@ -12719,19 +13278,29 @@ exports.ExecutionMethod = void 0;
12719
13278
  ExecutionMethod["OPTIONS"] = "OPTIONS";
12720
13279
  })(exports.ExecutionMethod || (exports.ExecutionMethod = {}));
12721
13280
 
12722
- exports.MessageType = void 0;
12723
- (function (MessageType) {
12724
- MessageType["Draft"] = "draft";
12725
- MessageType["Cancelled"] = "cancelled";
12726
- MessageType["Processing"] = "processing";
12727
- })(exports.MessageType || (exports.MessageType = {}));
13281
+ exports.Name = void 0;
13282
+ (function (Name) {
13283
+ Name["V1database"] = "v1-database";
13284
+ Name["V1deletes"] = "v1-deletes";
13285
+ Name["V1audits"] = "v1-audits";
13286
+ Name["V1mails"] = "v1-mails";
13287
+ Name["V1functions"] = "v1-functions";
13288
+ Name["V1usage"] = "v1-usage";
13289
+ Name["V1usagedump"] = "v1-usage-dump";
13290
+ Name["Webhooksv1"] = "webhooksv1";
13291
+ Name["V1certificates"] = "v1-certificates";
13292
+ Name["V1builds"] = "v1-builds";
13293
+ Name["V1messaging"] = "v1-messaging";
13294
+ Name["V1migrations"] = "v1-migrations";
13295
+ Name["Hamsterv1"] = "hamsterv1";
13296
+ })(exports.Name || (exports.Name = {}));
12728
13297
 
12729
- exports.SMTPEncryption = void 0;
12730
- (function (SMTPEncryption) {
12731
- SMTPEncryption["None"] = "none";
12732
- SMTPEncryption["Ssl"] = "ssl";
12733
- SMTPEncryption["Tls"] = "tls";
12734
- })(exports.SMTPEncryption || (exports.SMTPEncryption = {}));
13298
+ exports.SmtpEncryption = void 0;
13299
+ (function (SmtpEncryption) {
13300
+ SmtpEncryption["None"] = "none";
13301
+ SmtpEncryption["Ssl"] = "ssl";
13302
+ SmtpEncryption["Tls"] = "tls";
13303
+ })(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
12735
13304
 
12736
13305
  exports.ProjectUsageRange = void 0;
12737
13306
  (function (ProjectUsageRange) {
@@ -12742,8 +13311,16 @@ exports.ProjectUsageRange = void 0;
12742
13311
  exports.Region = void 0;
12743
13312
  (function (Region) {
12744
13313
  Region["Default"] = "default";
13314
+ Region["Fra"] = "fra";
12745
13315
  })(exports.Region || (exports.Region = {}));
12746
13316
 
13317
+ exports.Api = void 0;
13318
+ (function (Api) {
13319
+ Api["Rest"] = "rest";
13320
+ Api["Graphql"] = "graphql";
13321
+ Api["Realtime"] = "realtime";
13322
+ })(exports.Api || (exports.Api = {}));
13323
+
12747
13324
  exports.AuthMethod = void 0;
12748
13325
  (function (AuthMethod) {
12749
13326
  AuthMethod["Emailpassword"] = "email-password";
@@ -12772,167 +13349,312 @@ exports.PlatformType = void 0;
12772
13349
  PlatformType["Unity"] = "unity";
12773
13350
  })(exports.PlatformType || (exports.PlatformType = {}));
12774
13351
 
12775
- exports.APIService = void 0;
12776
- (function (APIService) {
12777
- APIService["Account"] = "account";
12778
- APIService["Avatars"] = "avatars";
12779
- APIService["Databases"] = "databases";
12780
- APIService["Locale"] = "locale";
12781
- APIService["Health"] = "health";
12782
- APIService["Storage"] = "storage";
12783
- APIService["Teams"] = "teams";
12784
- APIService["Users"] = "users";
12785
- APIService["Functions"] = "functions";
12786
- APIService["Graphql"] = "graphql";
12787
- APIService["Messaging"] = "messaging";
12788
- })(exports.APIService || (exports.APIService = {}));
13352
+ exports.ApiService = void 0;
13353
+ (function (ApiService) {
13354
+ ApiService["Account"] = "account";
13355
+ ApiService["Avatars"] = "avatars";
13356
+ ApiService["Databases"] = "databases";
13357
+ ApiService["Locale"] = "locale";
13358
+ ApiService["Health"] = "health";
13359
+ ApiService["Storage"] = "storage";
13360
+ ApiService["Teams"] = "teams";
13361
+ ApiService["Users"] = "users";
13362
+ ApiService["Functions"] = "functions";
13363
+ ApiService["Graphql"] = "graphql";
13364
+ ApiService["Messaging"] = "messaging";
13365
+ })(exports.ApiService || (exports.ApiService = {}));
12789
13366
 
12790
13367
  exports.SMTPSecure = void 0;
12791
13368
  (function (SMTPSecure) {
12792
13369
  SMTPSecure["Tls"] = "tls";
12793
13370
  })(exports.SMTPSecure || (exports.SMTPSecure = {}));
12794
13371
 
12795
- exports.TemplateType = void 0;
12796
- (function (TemplateType) {
12797
- TemplateType["Verification"] = "verification";
12798
- TemplateType["Login"] = "login";
12799
- TemplateType["Invitation"] = "invitation";
12800
- })(exports.TemplateType || (exports.TemplateType = {}));
13372
+ exports.EmailTemplateType = void 0;
13373
+ (function (EmailTemplateType) {
13374
+ EmailTemplateType["Verification"] = "verification";
13375
+ EmailTemplateType["Magicsession"] = "magicsession";
13376
+ EmailTemplateType["Recovery"] = "recovery";
13377
+ EmailTemplateType["Invitation"] = "invitation";
13378
+ EmailTemplateType["Mfachallenge"] = "mfachallenge";
13379
+ })(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
13380
+
13381
+ exports.EmailTemplateLocale = void 0;
13382
+ (function (EmailTemplateLocale) {
13383
+ EmailTemplateLocale["Af"] = "af";
13384
+ EmailTemplateLocale["Arae"] = "ar-ae";
13385
+ EmailTemplateLocale["Arbh"] = "ar-bh";
13386
+ EmailTemplateLocale["Ardz"] = "ar-dz";
13387
+ EmailTemplateLocale["Areg"] = "ar-eg";
13388
+ EmailTemplateLocale["Ariq"] = "ar-iq";
13389
+ EmailTemplateLocale["Arjo"] = "ar-jo";
13390
+ EmailTemplateLocale["Arkw"] = "ar-kw";
13391
+ EmailTemplateLocale["Arlb"] = "ar-lb";
13392
+ EmailTemplateLocale["Arly"] = "ar-ly";
13393
+ EmailTemplateLocale["Arma"] = "ar-ma";
13394
+ EmailTemplateLocale["Arom"] = "ar-om";
13395
+ EmailTemplateLocale["Arqa"] = "ar-qa";
13396
+ EmailTemplateLocale["Arsa"] = "ar-sa";
13397
+ EmailTemplateLocale["Arsy"] = "ar-sy";
13398
+ EmailTemplateLocale["Artn"] = "ar-tn";
13399
+ EmailTemplateLocale["Arye"] = "ar-ye";
13400
+ EmailTemplateLocale["As"] = "as";
13401
+ EmailTemplateLocale["Az"] = "az";
13402
+ EmailTemplateLocale["Be"] = "be";
13403
+ EmailTemplateLocale["Bg"] = "bg";
13404
+ EmailTemplateLocale["Bh"] = "bh";
13405
+ EmailTemplateLocale["Bn"] = "bn";
13406
+ EmailTemplateLocale["Bs"] = "bs";
13407
+ EmailTemplateLocale["Ca"] = "ca";
13408
+ EmailTemplateLocale["Cs"] = "cs";
13409
+ EmailTemplateLocale["Cy"] = "cy";
13410
+ EmailTemplateLocale["Da"] = "da";
13411
+ EmailTemplateLocale["De"] = "de";
13412
+ EmailTemplateLocale["Deat"] = "de-at";
13413
+ EmailTemplateLocale["Dech"] = "de-ch";
13414
+ EmailTemplateLocale["Deli"] = "de-li";
13415
+ EmailTemplateLocale["Delu"] = "de-lu";
13416
+ EmailTemplateLocale["El"] = "el";
13417
+ EmailTemplateLocale["En"] = "en";
13418
+ EmailTemplateLocale["Enau"] = "en-au";
13419
+ EmailTemplateLocale["Enbz"] = "en-bz";
13420
+ EmailTemplateLocale["Enca"] = "en-ca";
13421
+ EmailTemplateLocale["Engb"] = "en-gb";
13422
+ EmailTemplateLocale["Enie"] = "en-ie";
13423
+ EmailTemplateLocale["Enjm"] = "en-jm";
13424
+ EmailTemplateLocale["Ennz"] = "en-nz";
13425
+ EmailTemplateLocale["Entt"] = "en-tt";
13426
+ EmailTemplateLocale["Enus"] = "en-us";
13427
+ EmailTemplateLocale["Enza"] = "en-za";
13428
+ EmailTemplateLocale["Eo"] = "eo";
13429
+ EmailTemplateLocale["Es"] = "es";
13430
+ EmailTemplateLocale["Esar"] = "es-ar";
13431
+ EmailTemplateLocale["Esbo"] = "es-bo";
13432
+ EmailTemplateLocale["Escl"] = "es-cl";
13433
+ EmailTemplateLocale["Esco"] = "es-co";
13434
+ EmailTemplateLocale["Escr"] = "es-cr";
13435
+ EmailTemplateLocale["Esdo"] = "es-do";
13436
+ EmailTemplateLocale["Esec"] = "es-ec";
13437
+ EmailTemplateLocale["Esgt"] = "es-gt";
13438
+ EmailTemplateLocale["Eshn"] = "es-hn";
13439
+ EmailTemplateLocale["Esmx"] = "es-mx";
13440
+ EmailTemplateLocale["Esni"] = "es-ni";
13441
+ EmailTemplateLocale["Espa"] = "es-pa";
13442
+ EmailTemplateLocale["Espe"] = "es-pe";
13443
+ EmailTemplateLocale["Espr"] = "es-pr";
13444
+ EmailTemplateLocale["Espy"] = "es-py";
13445
+ EmailTemplateLocale["Essv"] = "es-sv";
13446
+ EmailTemplateLocale["Esuy"] = "es-uy";
13447
+ EmailTemplateLocale["Esve"] = "es-ve";
13448
+ EmailTemplateLocale["Et"] = "et";
13449
+ EmailTemplateLocale["Eu"] = "eu";
13450
+ EmailTemplateLocale["Fa"] = "fa";
13451
+ EmailTemplateLocale["Fi"] = "fi";
13452
+ EmailTemplateLocale["Fo"] = "fo";
13453
+ EmailTemplateLocale["Fr"] = "fr";
13454
+ EmailTemplateLocale["Frbe"] = "fr-be";
13455
+ EmailTemplateLocale["Frca"] = "fr-ca";
13456
+ EmailTemplateLocale["Frch"] = "fr-ch";
13457
+ EmailTemplateLocale["Frlu"] = "fr-lu";
13458
+ EmailTemplateLocale["Ga"] = "ga";
13459
+ EmailTemplateLocale["Gd"] = "gd";
13460
+ EmailTemplateLocale["He"] = "he";
13461
+ EmailTemplateLocale["Hi"] = "hi";
13462
+ EmailTemplateLocale["Hr"] = "hr";
13463
+ EmailTemplateLocale["Hu"] = "hu";
13464
+ EmailTemplateLocale["Id"] = "id";
13465
+ EmailTemplateLocale["Is"] = "is";
13466
+ EmailTemplateLocale["It"] = "it";
13467
+ EmailTemplateLocale["Itch"] = "it-ch";
13468
+ EmailTemplateLocale["Ja"] = "ja";
13469
+ EmailTemplateLocale["Ji"] = "ji";
13470
+ EmailTemplateLocale["Ko"] = "ko";
13471
+ EmailTemplateLocale["Ku"] = "ku";
13472
+ EmailTemplateLocale["Lt"] = "lt";
13473
+ EmailTemplateLocale["Lv"] = "lv";
13474
+ EmailTemplateLocale["Mk"] = "mk";
13475
+ EmailTemplateLocale["Ml"] = "ml";
13476
+ EmailTemplateLocale["Ms"] = "ms";
13477
+ EmailTemplateLocale["Mt"] = "mt";
13478
+ EmailTemplateLocale["Nb"] = "nb";
13479
+ EmailTemplateLocale["Ne"] = "ne";
13480
+ EmailTemplateLocale["Nl"] = "nl";
13481
+ EmailTemplateLocale["Nlbe"] = "nl-be";
13482
+ EmailTemplateLocale["Nn"] = "nn";
13483
+ EmailTemplateLocale["No"] = "no";
13484
+ EmailTemplateLocale["Pa"] = "pa";
13485
+ EmailTemplateLocale["Pl"] = "pl";
13486
+ EmailTemplateLocale["Pt"] = "pt";
13487
+ EmailTemplateLocale["Ptbr"] = "pt-br";
13488
+ EmailTemplateLocale["Rm"] = "rm";
13489
+ EmailTemplateLocale["Ro"] = "ro";
13490
+ EmailTemplateLocale["Romd"] = "ro-md";
13491
+ EmailTemplateLocale["Ru"] = "ru";
13492
+ EmailTemplateLocale["Rumd"] = "ru-md";
13493
+ EmailTemplateLocale["Sb"] = "sb";
13494
+ EmailTemplateLocale["Sk"] = "sk";
13495
+ EmailTemplateLocale["Sl"] = "sl";
13496
+ EmailTemplateLocale["Sq"] = "sq";
13497
+ EmailTemplateLocale["Sr"] = "sr";
13498
+ EmailTemplateLocale["Sv"] = "sv";
13499
+ EmailTemplateLocale["Svfi"] = "sv-fi";
13500
+ EmailTemplateLocale["Th"] = "th";
13501
+ EmailTemplateLocale["Tn"] = "tn";
13502
+ EmailTemplateLocale["Tr"] = "tr";
13503
+ EmailTemplateLocale["Ts"] = "ts";
13504
+ EmailTemplateLocale["Ua"] = "ua";
13505
+ EmailTemplateLocale["Ur"] = "ur";
13506
+ EmailTemplateLocale["Ve"] = "ve";
13507
+ EmailTemplateLocale["Vi"] = "vi";
13508
+ EmailTemplateLocale["Xh"] = "xh";
13509
+ EmailTemplateLocale["Zhcn"] = "zh-cn";
13510
+ EmailTemplateLocale["Zhhk"] = "zh-hk";
13511
+ EmailTemplateLocale["Zhsg"] = "zh-sg";
13512
+ EmailTemplateLocale["Zhtw"] = "zh-tw";
13513
+ EmailTemplateLocale["Zu"] = "zu";
13514
+ })(exports.EmailTemplateLocale || (exports.EmailTemplateLocale = {}));
13515
+
13516
+ exports.SmsTemplateType = void 0;
13517
+ (function (SmsTemplateType) {
13518
+ SmsTemplateType["Verification"] = "verification";
13519
+ SmsTemplateType["Login"] = "login";
13520
+ SmsTemplateType["Invitation"] = "invitation";
13521
+ SmsTemplateType["Mfachallenge"] = "mfachallenge";
13522
+ })(exports.SmsTemplateType || (exports.SmsTemplateType = {}));
12801
13523
 
12802
- exports.TemplateLocale = void 0;
12803
- (function (TemplateLocale) {
12804
- TemplateLocale["Af"] = "af";
12805
- TemplateLocale["Arae"] = "ar-ae";
12806
- TemplateLocale["Arbh"] = "ar-bh";
12807
- TemplateLocale["Ardz"] = "ar-dz";
12808
- TemplateLocale["Areg"] = "ar-eg";
12809
- TemplateLocale["Ariq"] = "ar-iq";
12810
- TemplateLocale["Arjo"] = "ar-jo";
12811
- TemplateLocale["Arkw"] = "ar-kw";
12812
- TemplateLocale["Arlb"] = "ar-lb";
12813
- TemplateLocale["Arly"] = "ar-ly";
12814
- TemplateLocale["Arma"] = "ar-ma";
12815
- TemplateLocale["Arom"] = "ar-om";
12816
- TemplateLocale["Arqa"] = "ar-qa";
12817
- TemplateLocale["Arsa"] = "ar-sa";
12818
- TemplateLocale["Arsy"] = "ar-sy";
12819
- TemplateLocale["Artn"] = "ar-tn";
12820
- TemplateLocale["Arye"] = "ar-ye";
12821
- TemplateLocale["As"] = "as";
12822
- TemplateLocale["Az"] = "az";
12823
- TemplateLocale["Be"] = "be";
12824
- TemplateLocale["Bg"] = "bg";
12825
- TemplateLocale["Bh"] = "bh";
12826
- TemplateLocale["Bn"] = "bn";
12827
- TemplateLocale["Bs"] = "bs";
12828
- TemplateLocale["Ca"] = "ca";
12829
- TemplateLocale["Cs"] = "cs";
12830
- TemplateLocale["Cy"] = "cy";
12831
- TemplateLocale["Da"] = "da";
12832
- TemplateLocale["De"] = "de";
12833
- TemplateLocale["Deat"] = "de-at";
12834
- TemplateLocale["Dech"] = "de-ch";
12835
- TemplateLocale["Deli"] = "de-li";
12836
- TemplateLocale["Delu"] = "de-lu";
12837
- TemplateLocale["El"] = "el";
12838
- TemplateLocale["En"] = "en";
12839
- TemplateLocale["Enau"] = "en-au";
12840
- TemplateLocale["Enbz"] = "en-bz";
12841
- TemplateLocale["Enca"] = "en-ca";
12842
- TemplateLocale["Engb"] = "en-gb";
12843
- TemplateLocale["Enie"] = "en-ie";
12844
- TemplateLocale["Enjm"] = "en-jm";
12845
- TemplateLocale["Ennz"] = "en-nz";
12846
- TemplateLocale["Entt"] = "en-tt";
12847
- TemplateLocale["Enus"] = "en-us";
12848
- TemplateLocale["Enza"] = "en-za";
12849
- TemplateLocale["Eo"] = "eo";
12850
- TemplateLocale["Es"] = "es";
12851
- TemplateLocale["Esar"] = "es-ar";
12852
- TemplateLocale["Esbo"] = "es-bo";
12853
- TemplateLocale["Escl"] = "es-cl";
12854
- TemplateLocale["Esco"] = "es-co";
12855
- TemplateLocale["Escr"] = "es-cr";
12856
- TemplateLocale["Esdo"] = "es-do";
12857
- TemplateLocale["Esec"] = "es-ec";
12858
- TemplateLocale["Esgt"] = "es-gt";
12859
- TemplateLocale["Eshn"] = "es-hn";
12860
- TemplateLocale["Esmx"] = "es-mx";
12861
- TemplateLocale["Esni"] = "es-ni";
12862
- TemplateLocale["Espa"] = "es-pa";
12863
- TemplateLocale["Espe"] = "es-pe";
12864
- TemplateLocale["Espr"] = "es-pr";
12865
- TemplateLocale["Espy"] = "es-py";
12866
- TemplateLocale["Essv"] = "es-sv";
12867
- TemplateLocale["Esuy"] = "es-uy";
12868
- TemplateLocale["Esve"] = "es-ve";
12869
- TemplateLocale["Et"] = "et";
12870
- TemplateLocale["Eu"] = "eu";
12871
- TemplateLocale["Fa"] = "fa";
12872
- TemplateLocale["Fi"] = "fi";
12873
- TemplateLocale["Fo"] = "fo";
12874
- TemplateLocale["Fr"] = "fr";
12875
- TemplateLocale["Frbe"] = "fr-be";
12876
- TemplateLocale["Frca"] = "fr-ca";
12877
- TemplateLocale["Frch"] = "fr-ch";
12878
- TemplateLocale["Frlu"] = "fr-lu";
12879
- TemplateLocale["Ga"] = "ga";
12880
- TemplateLocale["Gd"] = "gd";
12881
- TemplateLocale["He"] = "he";
12882
- TemplateLocale["Hi"] = "hi";
12883
- TemplateLocale["Hr"] = "hr";
12884
- TemplateLocale["Hu"] = "hu";
12885
- TemplateLocale["Id"] = "id";
12886
- TemplateLocale["Is"] = "is";
12887
- TemplateLocale["It"] = "it";
12888
- TemplateLocale["Itch"] = "it-ch";
12889
- TemplateLocale["Ja"] = "ja";
12890
- TemplateLocale["Ji"] = "ji";
12891
- TemplateLocale["Ko"] = "ko";
12892
- TemplateLocale["Ku"] = "ku";
12893
- TemplateLocale["Lt"] = "lt";
12894
- TemplateLocale["Lv"] = "lv";
12895
- TemplateLocale["Mk"] = "mk";
12896
- TemplateLocale["Ml"] = "ml";
12897
- TemplateLocale["Ms"] = "ms";
12898
- TemplateLocale["Mt"] = "mt";
12899
- TemplateLocale["Nb"] = "nb";
12900
- TemplateLocale["Ne"] = "ne";
12901
- TemplateLocale["Nl"] = "nl";
12902
- TemplateLocale["Nlbe"] = "nl-be";
12903
- TemplateLocale["Nn"] = "nn";
12904
- TemplateLocale["No"] = "no";
12905
- TemplateLocale["Pa"] = "pa";
12906
- TemplateLocale["Pl"] = "pl";
12907
- TemplateLocale["Pt"] = "pt";
12908
- TemplateLocale["Ptbr"] = "pt-br";
12909
- TemplateLocale["Rm"] = "rm";
12910
- TemplateLocale["Ro"] = "ro";
12911
- TemplateLocale["Romd"] = "ro-md";
12912
- TemplateLocale["Ru"] = "ru";
12913
- TemplateLocale["Rumd"] = "ru-md";
12914
- TemplateLocale["Sb"] = "sb";
12915
- TemplateLocale["Sk"] = "sk";
12916
- TemplateLocale["Sl"] = "sl";
12917
- TemplateLocale["Sq"] = "sq";
12918
- TemplateLocale["Sr"] = "sr";
12919
- TemplateLocale["Sv"] = "sv";
12920
- TemplateLocale["Svfi"] = "sv-fi";
12921
- TemplateLocale["Th"] = "th";
12922
- TemplateLocale["Tn"] = "tn";
12923
- TemplateLocale["Tr"] = "tr";
12924
- TemplateLocale["Ts"] = "ts";
12925
- TemplateLocale["Ua"] = "ua";
12926
- TemplateLocale["Ur"] = "ur";
12927
- TemplateLocale["Ve"] = "ve";
12928
- TemplateLocale["Vi"] = "vi";
12929
- TemplateLocale["Xh"] = "xh";
12930
- TemplateLocale["Zhcn"] = "zh-cn";
12931
- TemplateLocale["Zhhk"] = "zh-hk";
12932
- TemplateLocale["Zhsg"] = "zh-sg";
12933
- TemplateLocale["Zhtw"] = "zh-tw";
12934
- TemplateLocale["Zu"] = "zu";
12935
- })(exports.TemplateLocale || (exports.TemplateLocale = {}));
13524
+ exports.SmsTemplateLocale = void 0;
13525
+ (function (SmsTemplateLocale) {
13526
+ SmsTemplateLocale["Af"] = "af";
13527
+ SmsTemplateLocale["Arae"] = "ar-ae";
13528
+ SmsTemplateLocale["Arbh"] = "ar-bh";
13529
+ SmsTemplateLocale["Ardz"] = "ar-dz";
13530
+ SmsTemplateLocale["Areg"] = "ar-eg";
13531
+ SmsTemplateLocale["Ariq"] = "ar-iq";
13532
+ SmsTemplateLocale["Arjo"] = "ar-jo";
13533
+ SmsTemplateLocale["Arkw"] = "ar-kw";
13534
+ SmsTemplateLocale["Arlb"] = "ar-lb";
13535
+ SmsTemplateLocale["Arly"] = "ar-ly";
13536
+ SmsTemplateLocale["Arma"] = "ar-ma";
13537
+ SmsTemplateLocale["Arom"] = "ar-om";
13538
+ SmsTemplateLocale["Arqa"] = "ar-qa";
13539
+ SmsTemplateLocale["Arsa"] = "ar-sa";
13540
+ SmsTemplateLocale["Arsy"] = "ar-sy";
13541
+ SmsTemplateLocale["Artn"] = "ar-tn";
13542
+ SmsTemplateLocale["Arye"] = "ar-ye";
13543
+ SmsTemplateLocale["As"] = "as";
13544
+ SmsTemplateLocale["Az"] = "az";
13545
+ SmsTemplateLocale["Be"] = "be";
13546
+ SmsTemplateLocale["Bg"] = "bg";
13547
+ SmsTemplateLocale["Bh"] = "bh";
13548
+ SmsTemplateLocale["Bn"] = "bn";
13549
+ SmsTemplateLocale["Bs"] = "bs";
13550
+ SmsTemplateLocale["Ca"] = "ca";
13551
+ SmsTemplateLocale["Cs"] = "cs";
13552
+ SmsTemplateLocale["Cy"] = "cy";
13553
+ SmsTemplateLocale["Da"] = "da";
13554
+ SmsTemplateLocale["De"] = "de";
13555
+ SmsTemplateLocale["Deat"] = "de-at";
13556
+ SmsTemplateLocale["Dech"] = "de-ch";
13557
+ SmsTemplateLocale["Deli"] = "de-li";
13558
+ SmsTemplateLocale["Delu"] = "de-lu";
13559
+ SmsTemplateLocale["El"] = "el";
13560
+ SmsTemplateLocale["En"] = "en";
13561
+ SmsTemplateLocale["Enau"] = "en-au";
13562
+ SmsTemplateLocale["Enbz"] = "en-bz";
13563
+ SmsTemplateLocale["Enca"] = "en-ca";
13564
+ SmsTemplateLocale["Engb"] = "en-gb";
13565
+ SmsTemplateLocale["Enie"] = "en-ie";
13566
+ SmsTemplateLocale["Enjm"] = "en-jm";
13567
+ SmsTemplateLocale["Ennz"] = "en-nz";
13568
+ SmsTemplateLocale["Entt"] = "en-tt";
13569
+ SmsTemplateLocale["Enus"] = "en-us";
13570
+ SmsTemplateLocale["Enza"] = "en-za";
13571
+ SmsTemplateLocale["Eo"] = "eo";
13572
+ SmsTemplateLocale["Es"] = "es";
13573
+ SmsTemplateLocale["Esar"] = "es-ar";
13574
+ SmsTemplateLocale["Esbo"] = "es-bo";
13575
+ SmsTemplateLocale["Escl"] = "es-cl";
13576
+ SmsTemplateLocale["Esco"] = "es-co";
13577
+ SmsTemplateLocale["Escr"] = "es-cr";
13578
+ SmsTemplateLocale["Esdo"] = "es-do";
13579
+ SmsTemplateLocale["Esec"] = "es-ec";
13580
+ SmsTemplateLocale["Esgt"] = "es-gt";
13581
+ SmsTemplateLocale["Eshn"] = "es-hn";
13582
+ SmsTemplateLocale["Esmx"] = "es-mx";
13583
+ SmsTemplateLocale["Esni"] = "es-ni";
13584
+ SmsTemplateLocale["Espa"] = "es-pa";
13585
+ SmsTemplateLocale["Espe"] = "es-pe";
13586
+ SmsTemplateLocale["Espr"] = "es-pr";
13587
+ SmsTemplateLocale["Espy"] = "es-py";
13588
+ SmsTemplateLocale["Essv"] = "es-sv";
13589
+ SmsTemplateLocale["Esuy"] = "es-uy";
13590
+ SmsTemplateLocale["Esve"] = "es-ve";
13591
+ SmsTemplateLocale["Et"] = "et";
13592
+ SmsTemplateLocale["Eu"] = "eu";
13593
+ SmsTemplateLocale["Fa"] = "fa";
13594
+ SmsTemplateLocale["Fi"] = "fi";
13595
+ SmsTemplateLocale["Fo"] = "fo";
13596
+ SmsTemplateLocale["Fr"] = "fr";
13597
+ SmsTemplateLocale["Frbe"] = "fr-be";
13598
+ SmsTemplateLocale["Frca"] = "fr-ca";
13599
+ SmsTemplateLocale["Frch"] = "fr-ch";
13600
+ SmsTemplateLocale["Frlu"] = "fr-lu";
13601
+ SmsTemplateLocale["Ga"] = "ga";
13602
+ SmsTemplateLocale["Gd"] = "gd";
13603
+ SmsTemplateLocale["He"] = "he";
13604
+ SmsTemplateLocale["Hi"] = "hi";
13605
+ SmsTemplateLocale["Hr"] = "hr";
13606
+ SmsTemplateLocale["Hu"] = "hu";
13607
+ SmsTemplateLocale["Id"] = "id";
13608
+ SmsTemplateLocale["Is"] = "is";
13609
+ SmsTemplateLocale["It"] = "it";
13610
+ SmsTemplateLocale["Itch"] = "it-ch";
13611
+ SmsTemplateLocale["Ja"] = "ja";
13612
+ SmsTemplateLocale["Ji"] = "ji";
13613
+ SmsTemplateLocale["Ko"] = "ko";
13614
+ SmsTemplateLocale["Ku"] = "ku";
13615
+ SmsTemplateLocale["Lt"] = "lt";
13616
+ SmsTemplateLocale["Lv"] = "lv";
13617
+ SmsTemplateLocale["Mk"] = "mk";
13618
+ SmsTemplateLocale["Ml"] = "ml";
13619
+ SmsTemplateLocale["Ms"] = "ms";
13620
+ SmsTemplateLocale["Mt"] = "mt";
13621
+ SmsTemplateLocale["Nb"] = "nb";
13622
+ SmsTemplateLocale["Ne"] = "ne";
13623
+ SmsTemplateLocale["Nl"] = "nl";
13624
+ SmsTemplateLocale["Nlbe"] = "nl-be";
13625
+ SmsTemplateLocale["Nn"] = "nn";
13626
+ SmsTemplateLocale["No"] = "no";
13627
+ SmsTemplateLocale["Pa"] = "pa";
13628
+ SmsTemplateLocale["Pl"] = "pl";
13629
+ SmsTemplateLocale["Pt"] = "pt";
13630
+ SmsTemplateLocale["Ptbr"] = "pt-br";
13631
+ SmsTemplateLocale["Rm"] = "rm";
13632
+ SmsTemplateLocale["Ro"] = "ro";
13633
+ SmsTemplateLocale["Romd"] = "ro-md";
13634
+ SmsTemplateLocale["Ru"] = "ru";
13635
+ SmsTemplateLocale["Rumd"] = "ru-md";
13636
+ SmsTemplateLocale["Sb"] = "sb";
13637
+ SmsTemplateLocale["Sk"] = "sk";
13638
+ SmsTemplateLocale["Sl"] = "sl";
13639
+ SmsTemplateLocale["Sq"] = "sq";
13640
+ SmsTemplateLocale["Sr"] = "sr";
13641
+ SmsTemplateLocale["Sv"] = "sv";
13642
+ SmsTemplateLocale["Svfi"] = "sv-fi";
13643
+ SmsTemplateLocale["Th"] = "th";
13644
+ SmsTemplateLocale["Tn"] = "tn";
13645
+ SmsTemplateLocale["Tr"] = "tr";
13646
+ SmsTemplateLocale["Ts"] = "ts";
13647
+ SmsTemplateLocale["Ua"] = "ua";
13648
+ SmsTemplateLocale["Ur"] = "ur";
13649
+ SmsTemplateLocale["Ve"] = "ve";
13650
+ SmsTemplateLocale["Vi"] = "vi";
13651
+ SmsTemplateLocale["Xh"] = "xh";
13652
+ SmsTemplateLocale["Zhcn"] = "zh-cn";
13653
+ SmsTemplateLocale["Zhhk"] = "zh-hk";
13654
+ SmsTemplateLocale["Zhsg"] = "zh-sg";
13655
+ SmsTemplateLocale["Zhtw"] = "zh-tw";
13656
+ SmsTemplateLocale["Zu"] = "zu";
13657
+ })(exports.SmsTemplateLocale || (exports.SmsTemplateLocale = {}));
12936
13658
 
12937
13659
  exports.ResourceType = void 0;
12938
13660
  (function (ResourceType) {
@@ -12976,20 +13698,20 @@ exports.StorageUsageRange = void 0;
12976
13698
  StorageUsageRange["NinetyDays"] = "90d";
12977
13699
  })(exports.StorageUsageRange || (exports.StorageUsageRange = {}));
12978
13700
 
12979
- exports.PasswordVersion = void 0;
12980
- (function (PasswordVersion) {
12981
- PasswordVersion["Sha1"] = "sha1";
12982
- PasswordVersion["Sha224"] = "sha224";
12983
- PasswordVersion["Sha256"] = "sha256";
12984
- PasswordVersion["Sha384"] = "sha384";
12985
- PasswordVersion["Sha512224"] = "sha512/224";
12986
- PasswordVersion["Sha512256"] = "sha512/256";
12987
- PasswordVersion["Sha512"] = "sha512";
12988
- PasswordVersion["Sha3224"] = "sha3-224";
12989
- PasswordVersion["Sha3256"] = "sha3-256";
12990
- PasswordVersion["Sha3384"] = "sha3-384";
12991
- PasswordVersion["Sha3512"] = "sha3-512";
12992
- })(exports.PasswordVersion || (exports.PasswordVersion = {}));
13701
+ exports.PasswordHash = void 0;
13702
+ (function (PasswordHash) {
13703
+ PasswordHash["Sha1"] = "sha1";
13704
+ PasswordHash["Sha224"] = "sha224";
13705
+ PasswordHash["Sha256"] = "sha256";
13706
+ PasswordHash["Sha384"] = "sha384";
13707
+ PasswordHash["Sha512224"] = "sha512/224";
13708
+ PasswordHash["Sha512256"] = "sha512/256";
13709
+ PasswordHash["Sha512"] = "sha512";
13710
+ PasswordHash["Sha3224"] = "sha3-224";
13711
+ PasswordHash["Sha3256"] = "sha3-256";
13712
+ PasswordHash["Sha3384"] = "sha3-384";
13713
+ PasswordHash["Sha3512"] = "sha3-512";
13714
+ })(exports.PasswordHash || (exports.PasswordHash = {}));
12993
13715
 
12994
13716
  exports.UserUsageRange = void 0;
12995
13717
  (function (UserUsageRange) {