@appwrite.io/console 0.6.0-rc.11 → 0.6.0-rc.13

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 (401) hide show
  1. package/.travis.yml +32 -0
  2. package/README.md +4 -4
  3. package/dist/cjs/sdk.js +382 -228
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +383 -229
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +382 -228
  8. package/docs/examples/account/add-authenticator.md +8 -13
  9. package/docs/examples/account/create-anonymous-session.md +6 -13
  10. package/docs/examples/account/create-challenge.md +13 -0
  11. package/docs/examples/account/create-email-password-session.md +9 -13
  12. package/docs/examples/account/create-email-token.md +10 -13
  13. package/docs/examples/account/create-j-w-t.md +6 -13
  14. package/docs/examples/account/create-magic-u-r-l-token.md +11 -13
  15. package/docs/examples/account/create-o-auth2session.md +10 -9
  16. package/docs/examples/account/create-o-auth2token.md +15 -0
  17. package/docs/examples/account/create-phone-token.md +9 -13
  18. package/docs/examples/account/create-phone-verification.md +6 -13
  19. package/docs/examples/account/create-push-target.md +10 -13
  20. package/docs/examples/account/create-recovery.md +9 -13
  21. package/docs/examples/account/create-session.md +9 -13
  22. package/docs/examples/account/create-verification.md +8 -13
  23. package/docs/examples/account/create.md +11 -13
  24. package/docs/examples/account/delete-authenticator.md +9 -13
  25. package/docs/examples/account/delete-identity.md +8 -13
  26. package/docs/examples/account/delete-push-target.md +8 -13
  27. package/docs/examples/account/delete-session.md +8 -13
  28. package/docs/examples/account/delete-sessions.md +6 -13
  29. package/docs/examples/account/delete.md +6 -13
  30. package/docs/examples/account/get-prefs.md +6 -13
  31. package/docs/examples/account/get-session.md +8 -13
  32. package/docs/examples/account/get.md +6 -13
  33. package/docs/examples/account/list-factors.md +6 -13
  34. package/docs/examples/account/list-identities.md +8 -13
  35. package/docs/examples/account/list-logs.md +8 -13
  36. package/docs/examples/account/list-sessions.md +6 -13
  37. package/docs/examples/account/update-challenge.md +9 -13
  38. package/docs/examples/account/update-email.md +9 -13
  39. package/docs/examples/account/update-m-f-a.md +8 -13
  40. package/docs/examples/account/update-magic-u-r-l-session.md +9 -13
  41. package/docs/examples/account/update-name.md +8 -13
  42. package/docs/examples/account/update-password.md +9 -13
  43. package/docs/examples/account/update-phone-verification.md +9 -13
  44. package/docs/examples/account/update-phone.md +9 -13
  45. package/docs/examples/account/update-prefs.md +8 -13
  46. package/docs/examples/account/update-push-target.md +9 -13
  47. package/docs/examples/account/update-recovery.md +10 -13
  48. package/docs/examples/account/update-session.md +8 -13
  49. package/docs/examples/account/update-status.md +6 -13
  50. package/docs/examples/account/update-verification.md +9 -13
  51. package/docs/examples/account/verify-authenticator.md +9 -13
  52. package/docs/examples/assistant/chat.md +8 -13
  53. package/docs/examples/avatars/get-browser.md +11 -9
  54. package/docs/examples/avatars/get-credit-card.md +11 -9
  55. package/docs/examples/avatars/get-favicon.md +8 -9
  56. package/docs/examples/avatars/get-flag.md +11 -9
  57. package/docs/examples/avatars/get-image.md +10 -9
  58. package/docs/examples/avatars/get-initials.md +11 -9
  59. package/docs/examples/avatars/get-q-r.md +11 -9
  60. package/docs/examples/console/variables.md +6 -13
  61. package/docs/examples/databases/create-boolean-attribute.md +13 -13
  62. package/docs/examples/databases/create-collection.md +13 -13
  63. package/docs/examples/databases/create-datetime-attribute.md +13 -13
  64. package/docs/examples/databases/create-document.md +12 -13
  65. package/docs/examples/databases/create-email-attribute.md +13 -13
  66. package/docs/examples/databases/create-enum-attribute.md +14 -13
  67. package/docs/examples/databases/create-float-attribute.md +15 -13
  68. package/docs/examples/databases/create-index.md +13 -13
  69. package/docs/examples/databases/create-integer-attribute.md +15 -13
  70. package/docs/examples/databases/create-ip-attribute.md +13 -13
  71. package/docs/examples/databases/create-relationship-attribute.md +15 -13
  72. package/docs/examples/databases/create-string-attribute.md +15 -13
  73. package/docs/examples/databases/create-url-attribute.md +13 -13
  74. package/docs/examples/databases/create.md +10 -13
  75. package/docs/examples/databases/delete-attribute.md +10 -13
  76. package/docs/examples/databases/delete-collection.md +9 -13
  77. package/docs/examples/databases/delete-document.md +10 -13
  78. package/docs/examples/databases/delete-index.md +10 -13
  79. package/docs/examples/databases/delete.md +8 -13
  80. package/docs/examples/databases/get-attribute.md +10 -13
  81. package/docs/examples/databases/get-collection-usage.md +10 -13
  82. package/docs/examples/databases/get-collection.md +9 -13
  83. package/docs/examples/databases/get-database-usage.md +9 -13
  84. package/docs/examples/databases/get-document.md +11 -13
  85. package/docs/examples/databases/get-index.md +10 -13
  86. package/docs/examples/databases/get-usage.md +8 -13
  87. package/docs/examples/databases/get.md +8 -13
  88. package/docs/examples/databases/list-attributes.md +10 -13
  89. package/docs/examples/databases/list-collection-logs.md +10 -13
  90. package/docs/examples/databases/list-collections.md +10 -13
  91. package/docs/examples/databases/list-document-logs.md +11 -13
  92. package/docs/examples/databases/list-documents.md +10 -13
  93. package/docs/examples/databases/list-indexes.md +10 -13
  94. package/docs/examples/databases/list-logs.md +9 -13
  95. package/docs/examples/databases/list.md +9 -13
  96. package/docs/examples/databases/update-boolean-attribute.md +12 -13
  97. package/docs/examples/databases/update-collection.md +13 -13
  98. package/docs/examples/databases/update-datetime-attribute.md +12 -13
  99. package/docs/examples/databases/update-document.md +12 -13
  100. package/docs/examples/databases/update-email-attribute.md +12 -13
  101. package/docs/examples/databases/update-enum-attribute.md +13 -13
  102. package/docs/examples/databases/update-float-attribute.md +14 -13
  103. package/docs/examples/databases/update-integer-attribute.md +14 -13
  104. package/docs/examples/databases/update-ip-attribute.md +12 -13
  105. package/docs/examples/databases/update-relationship-attribute.md +11 -13
  106. package/docs/examples/databases/update-string-attribute.md +12 -13
  107. package/docs/examples/databases/update-url-attribute.md +12 -13
  108. package/docs/examples/databases/update.md +10 -13
  109. package/docs/examples/functions/create-build.md +10 -13
  110. package/docs/examples/functions/create-deployment.md +12 -13
  111. package/docs/examples/functions/create-execution.md +13 -13
  112. package/docs/examples/functions/create-variable.md +10 -13
  113. package/docs/examples/functions/create.md +27 -13
  114. package/docs/examples/functions/delete-deployment.md +9 -13
  115. package/docs/examples/functions/delete-variable.md +9 -13
  116. package/docs/examples/functions/delete.md +8 -13
  117. package/docs/examples/functions/download-deployment.md +9 -9
  118. package/docs/examples/functions/get-deployment.md +9 -13
  119. package/docs/examples/functions/get-execution.md +9 -13
  120. package/docs/examples/functions/get-function-usage.md +9 -13
  121. package/docs/examples/functions/get-usage.md +8 -13
  122. package/docs/examples/functions/get-variable.md +9 -13
  123. package/docs/examples/functions/get.md +8 -13
  124. package/docs/examples/functions/list-deployments.md +10 -13
  125. package/docs/examples/functions/list-executions.md +10 -13
  126. package/docs/examples/functions/list-runtimes.md +6 -13
  127. package/docs/examples/functions/list-variables.md +8 -13
  128. package/docs/examples/functions/list.md +9 -13
  129. package/docs/examples/functions/update-deployment.md +9 -13
  130. package/docs/examples/functions/update-variable.md +11 -13
  131. package/docs/examples/functions/update.md +23 -13
  132. package/docs/examples/graphql/mutation.md +8 -13
  133. package/docs/examples/graphql/query.md +8 -13
  134. package/docs/examples/health/get-antivirus.md +6 -13
  135. package/docs/examples/health/get-cache.md +6 -13
  136. package/docs/examples/health/get-certificate.md +8 -13
  137. package/docs/examples/health/get-d-b.md +6 -13
  138. package/docs/examples/health/get-failed-jobs.md +9 -13
  139. package/docs/examples/health/get-pub-sub.md +6 -13
  140. package/docs/examples/health/get-queue-builds.md +8 -13
  141. package/docs/examples/health/get-queue-certificates.md +8 -13
  142. package/docs/examples/health/get-queue-databases.md +9 -13
  143. package/docs/examples/health/get-queue-deletes.md +8 -13
  144. package/docs/examples/health/get-queue-functions.md +8 -13
  145. package/docs/examples/health/get-queue-logs.md +8 -13
  146. package/docs/examples/health/get-queue-mails.md +8 -13
  147. package/docs/examples/health/get-queue-messaging.md +8 -13
  148. package/docs/examples/health/get-queue-migrations.md +8 -13
  149. package/docs/examples/health/get-queue-webhooks.md +8 -13
  150. package/docs/examples/health/get-queue.md +6 -13
  151. package/docs/examples/health/get-storage-local.md +6 -13
  152. package/docs/examples/health/get-time.md +6 -13
  153. package/docs/examples/health/get.md +6 -13
  154. package/docs/examples/locale/get.md +6 -13
  155. package/docs/examples/locale/list-codes.md +6 -13
  156. package/docs/examples/locale/list-continents.md +6 -13
  157. package/docs/examples/locale/list-countries-e-u.md +6 -13
  158. package/docs/examples/locale/list-countries-phones.md +6 -13
  159. package/docs/examples/locale/list-countries.md +6 -13
  160. package/docs/examples/locale/list-currencies.md +6 -13
  161. package/docs/examples/locale/list-languages.md +6 -13
  162. package/docs/examples/messaging/create-apns-provider.md +20 -0
  163. package/docs/examples/messaging/create-email.md +19 -13
  164. package/docs/examples/messaging/create-fcm-provider.md +16 -0
  165. package/docs/examples/messaging/create-mailgun-provider.md +17 -13
  166. package/docs/examples/messaging/create-msg91provider.md +13 -13
  167. package/docs/examples/messaging/create-push.md +23 -13
  168. package/docs/examples/messaging/create-sendgrid-provider.md +15 -13
  169. package/docs/examples/messaging/create-sms.md +19 -0
  170. package/docs/examples/messaging/create-smtp-provider.md +26 -0
  171. package/docs/examples/messaging/create-subscriber.md +10 -13
  172. package/docs/examples/messaging/create-telesign-provider.md +13 -13
  173. package/docs/examples/messaging/create-textmagic-provider.md +13 -13
  174. package/docs/examples/messaging/create-topic.md +10 -13
  175. package/docs/examples/messaging/create-twilio-provider.md +13 -13
  176. package/docs/examples/messaging/create-vonage-provider.md +13 -13
  177. package/docs/examples/messaging/delete-provider.md +8 -13
  178. package/docs/examples/messaging/delete-subscriber.md +9 -13
  179. package/docs/examples/messaging/delete-topic.md +8 -13
  180. package/docs/examples/messaging/delete.md +8 -13
  181. package/docs/examples/messaging/get-message.md +8 -13
  182. package/docs/examples/messaging/get-provider.md +8 -13
  183. package/docs/examples/messaging/get-subscriber.md +9 -13
  184. package/docs/examples/messaging/get-topic.md +8 -13
  185. package/docs/examples/messaging/list-message-logs.md +9 -13
  186. package/docs/examples/messaging/list-messages.md +9 -13
  187. package/docs/examples/messaging/list-provider-logs.md +9 -13
  188. package/docs/examples/messaging/list-providers.md +9 -13
  189. package/docs/examples/messaging/list-subscriber-logs.md +9 -13
  190. package/docs/examples/messaging/list-subscribers.md +10 -13
  191. package/docs/examples/messaging/list-targets.md +9 -13
  192. package/docs/examples/messaging/list-topic-logs.md +9 -13
  193. package/docs/examples/messaging/list-topics.md +9 -13
  194. package/docs/examples/messaging/update-apns-provider.md +20 -0
  195. package/docs/examples/messaging/update-email.md +18 -13
  196. package/docs/examples/messaging/update-fcm-provider.md +16 -0
  197. package/docs/examples/messaging/update-mailgun-provider.md +17 -13
  198. package/docs/examples/messaging/update-msg91provider.md +13 -13
  199. package/docs/examples/messaging/update-push.md +23 -13
  200. package/docs/examples/messaging/update-sendgrid-provider.md +15 -13
  201. package/docs/examples/messaging/update-sms.md +19 -0
  202. package/docs/examples/messaging/update-smtp-provider.md +26 -0
  203. package/docs/examples/messaging/update-telesign-provider.md +13 -13
  204. package/docs/examples/messaging/update-textmagic-provider.md +13 -13
  205. package/docs/examples/messaging/update-topic.md +10 -13
  206. package/docs/examples/messaging/update-twilio-provider.md +13 -13
  207. package/docs/examples/messaging/update-vonage-provider.md +13 -13
  208. package/docs/examples/migrations/create-appwrite-migration.md +11 -13
  209. package/docs/examples/migrations/create-firebase-migration.md +9 -13
  210. package/docs/examples/migrations/create-firebase-o-auth-migration.md +9 -13
  211. package/docs/examples/migrations/create-n-host-migration.md +15 -13
  212. package/docs/examples/migrations/create-supabase-migration.md +14 -13
  213. package/docs/examples/migrations/delete-firebase-auth.md +6 -13
  214. package/docs/examples/migrations/delete.md +8 -13
  215. package/docs/examples/migrations/get-appwrite-report.md +11 -13
  216. package/docs/examples/migrations/get-firebase-report-o-auth.md +9 -13
  217. package/docs/examples/migrations/get-firebase-report.md +9 -13
  218. package/docs/examples/migrations/get-n-host-report.md +15 -13
  219. package/docs/examples/migrations/get-supabase-report.md +14 -13
  220. package/docs/examples/migrations/get.md +8 -13
  221. package/docs/examples/migrations/list-firebase-projects.md +6 -13
  222. package/docs/examples/migrations/list.md +9 -13
  223. package/docs/examples/migrations/retry.md +8 -13
  224. package/docs/examples/project/create-variable.md +9 -13
  225. package/docs/examples/project/delete-variable.md +8 -13
  226. package/docs/examples/project/get-usage.md +10 -13
  227. package/docs/examples/project/get-variable.md +8 -13
  228. package/docs/examples/project/list-variables.md +6 -13
  229. package/docs/examples/project/update-variable.md +10 -13
  230. package/docs/examples/projects/create-key.md +11 -13
  231. package/docs/examples/projects/create-platform.md +13 -13
  232. package/docs/examples/projects/create-smtp-test.md +17 -13
  233. package/docs/examples/projects/create-webhook.md +15 -13
  234. package/docs/examples/projects/create.md +20 -13
  235. package/docs/examples/projects/delete-email-template.md +10 -13
  236. package/docs/examples/projects/delete-key.md +9 -13
  237. package/docs/examples/projects/delete-platform.md +9 -13
  238. package/docs/examples/projects/delete-sms-template.md +10 -13
  239. package/docs/examples/projects/delete-webhook.md +9 -13
  240. package/docs/examples/projects/delete.md +8 -13
  241. package/docs/examples/projects/get-email-template.md +10 -13
  242. package/docs/examples/projects/get-key.md +9 -13
  243. package/docs/examples/projects/get-platform.md +9 -13
  244. package/docs/examples/projects/get-sms-template.md +10 -13
  245. package/docs/examples/projects/get-webhook.md +9 -13
  246. package/docs/examples/projects/get.md +8 -13
  247. package/docs/examples/projects/list-keys.md +8 -13
  248. package/docs/examples/projects/list-platforms.md +8 -13
  249. package/docs/examples/projects/list-webhooks.md +8 -13
  250. package/docs/examples/projects/list.md +9 -13
  251. package/docs/examples/projects/update-auth-duration.md +9 -13
  252. package/docs/examples/projects/update-auth-limit.md +9 -13
  253. package/docs/examples/projects/update-auth-password-dictionary.md +9 -13
  254. package/docs/examples/projects/update-auth-password-history.md +9 -13
  255. package/docs/examples/projects/update-auth-sessions-limit.md +9 -13
  256. package/docs/examples/projects/update-auth-status.md +10 -13
  257. package/docs/examples/projects/update-email-template.md +15 -13
  258. package/docs/examples/projects/update-key.md +12 -13
  259. package/docs/examples/projects/update-o-auth2.md +12 -13
  260. package/docs/examples/projects/update-personal-data-check.md +9 -13
  261. package/docs/examples/projects/update-platform.md +13 -13
  262. package/docs/examples/projects/update-service-status-all.md +9 -13
  263. package/docs/examples/projects/update-service-status.md +10 -13
  264. package/docs/examples/projects/update-sms-template.md +11 -13
  265. package/docs/examples/projects/update-smtp.md +17 -13
  266. package/docs/examples/projects/update-team.md +9 -13
  267. package/docs/examples/projects/update-webhook-signature.md +9 -13
  268. package/docs/examples/projects/update-webhook.md +16 -13
  269. package/docs/examples/projects/update.md +18 -13
  270. package/docs/examples/proxy/create-rule.md +10 -13
  271. package/docs/examples/proxy/delete-rule.md +8 -13
  272. package/docs/examples/proxy/get-rule.md +8 -13
  273. package/docs/examples/proxy/list-rules.md +9 -13
  274. package/docs/examples/proxy/update-rule-verification.md +8 -13
  275. package/docs/examples/storage/create-bucket.md +17 -13
  276. package/docs/examples/storage/create-file.md +11 -13
  277. package/docs/examples/storage/delete-bucket.md +8 -13
  278. package/docs/examples/storage/delete-file.md +9 -13
  279. package/docs/examples/storage/get-bucket-usage.md +9 -13
  280. package/docs/examples/storage/get-bucket.md +8 -13
  281. package/docs/examples/storage/get-file-download.md +9 -9
  282. package/docs/examples/storage/get-file-preview.md +20 -9
  283. package/docs/examples/storage/get-file-view.md +9 -9
  284. package/docs/examples/storage/get-file.md +9 -13
  285. package/docs/examples/storage/get-usage.md +8 -13
  286. package/docs/examples/storage/list-buckets.md +9 -13
  287. package/docs/examples/storage/list-files.md +10 -13
  288. package/docs/examples/storage/update-bucket.md +17 -13
  289. package/docs/examples/storage/update-file.md +11 -13
  290. package/docs/examples/teams/create-membership.md +14 -13
  291. package/docs/examples/teams/create.md +10 -13
  292. package/docs/examples/teams/delete-membership.md +9 -13
  293. package/docs/examples/teams/delete.md +8 -13
  294. package/docs/examples/teams/get-membership.md +9 -13
  295. package/docs/examples/teams/get-prefs.md +8 -13
  296. package/docs/examples/teams/get.md +8 -13
  297. package/docs/examples/teams/list-logs.md +9 -13
  298. package/docs/examples/teams/list-memberships.md +10 -13
  299. package/docs/examples/teams/list.md +9 -13
  300. package/docs/examples/teams/update-membership-status.md +11 -13
  301. package/docs/examples/teams/update-membership.md +10 -13
  302. package/docs/examples/teams/update-name.md +9 -13
  303. package/docs/examples/teams/update-prefs.md +9 -13
  304. package/docs/examples/users/create-argon2user.md +11 -13
  305. package/docs/examples/users/create-bcrypt-user.md +11 -13
  306. package/docs/examples/users/create-m-d5user.md +11 -13
  307. package/docs/examples/users/create-p-h-pass-user.md +11 -13
  308. package/docs/examples/users/create-s-h-a-user.md +12 -13
  309. package/docs/examples/users/create-scrypt-modified-user.md +14 -13
  310. package/docs/examples/users/create-scrypt-user.md +16 -13
  311. package/docs/examples/users/create-session.md +8 -13
  312. package/docs/examples/users/create-target.md +13 -13
  313. package/docs/examples/users/create-token.md +10 -13
  314. package/docs/examples/users/create.md +12 -13
  315. package/docs/examples/users/delete-authenticator.md +10 -13
  316. package/docs/examples/users/delete-identity.md +8 -13
  317. package/docs/examples/users/delete-session.md +9 -13
  318. package/docs/examples/users/delete-sessions.md +8 -13
  319. package/docs/examples/users/delete-target.md +9 -13
  320. package/docs/examples/users/delete.md +8 -13
  321. package/docs/examples/users/get-prefs.md +8 -13
  322. package/docs/examples/users/get-target.md +9 -13
  323. package/docs/examples/users/get-usage.md +8 -13
  324. package/docs/examples/users/get.md +8 -13
  325. package/docs/examples/users/list-factors.md +8 -13
  326. package/docs/examples/users/list-identities.md +9 -13
  327. package/docs/examples/users/list-logs.md +9 -13
  328. package/docs/examples/users/list-memberships.md +8 -13
  329. package/docs/examples/users/list-sessions.md +8 -13
  330. package/docs/examples/users/list-targets.md +9 -13
  331. package/docs/examples/users/list.md +9 -13
  332. package/docs/examples/users/update-email-verification.md +9 -13
  333. package/docs/examples/users/update-email.md +9 -13
  334. package/docs/examples/users/update-labels.md +9 -13
  335. package/docs/examples/users/update-mfa.md +9 -13
  336. package/docs/examples/users/update-name.md +9 -13
  337. package/docs/examples/users/update-password.md +9 -13
  338. package/docs/examples/users/update-phone-verification.md +9 -13
  339. package/docs/examples/users/update-phone.md +9 -13
  340. package/docs/examples/users/update-prefs.md +9 -13
  341. package/docs/examples/users/update-status.md +9 -13
  342. package/docs/examples/users/update-target.md +12 -13
  343. package/docs/examples/vcs/create-repository-detection.md +10 -13
  344. package/docs/examples/vcs/create-repository.md +10 -13
  345. package/docs/examples/vcs/delete-installation.md +8 -13
  346. package/docs/examples/vcs/get-installation.md +8 -13
  347. package/docs/examples/vcs/get-repository.md +9 -13
  348. package/docs/examples/vcs/list-installations.md +9 -13
  349. package/docs/examples/vcs/list-repositories.md +9 -13
  350. package/docs/examples/vcs/list-repository-branches.md +9 -13
  351. package/docs/examples/vcs/update-external-deployments.md +10 -13
  352. package/package.json +1 -1
  353. package/src/client.ts +1 -1
  354. package/src/enums/{a-p-i-service.ts → api-service.ts} +1 -1
  355. package/src/enums/email-template-type.ts +1 -0
  356. package/src/enums/region.ts +1 -0
  357. package/src/enums/runtime.ts +32 -0
  358. package/src/enums/{s-m-s-template-locale.ts → sms-template-locale.ts} +1 -1
  359. package/src/enums/{s-m-s-template-type.ts → sms-template-type.ts} +2 -1
  360. package/src/enums/{s-m-t-p-encryption.ts → smtp-encryption.ts} +1 -1
  361. package/src/index.ts +4 -4
  362. package/src/service.ts +0 -3
  363. package/src/services/account.ts +61 -8
  364. package/src/services/assistant.ts +0 -1
  365. package/src/services/avatars.ts +0 -1
  366. package/src/services/console.ts +0 -1
  367. package/src/services/databases.ts +0 -1
  368. package/src/services/functions.ts +0 -1
  369. package/src/services/graphql.ts +0 -1
  370. package/src/services/health.ts +0 -1
  371. package/src/services/locale.ts +0 -1
  372. package/src/services/messaging.ts +112 -33
  373. package/src/services/migrations.ts +0 -1
  374. package/src/services/project.ts +0 -1
  375. package/src/services/projects.ts +14 -15
  376. package/src/services/proxy.ts +0 -1
  377. package/src/services/storage.ts +0 -1
  378. package/src/services/teams.ts +0 -1
  379. package/src/services/users.ts +0 -1
  380. package/src/services/vcs.ts +0 -1
  381. package/types/enums/{a-p-i-service.d.ts → api-service.d.ts} +1 -1
  382. package/types/enums/email-template-type.d.ts +2 -1
  383. package/types/enums/region.d.ts +2 -1
  384. package/types/enums/runtime.d.ts +33 -1
  385. package/types/enums/{s-m-s-template-locale.d.ts → sms-template-locale.d.ts} +1 -1
  386. package/types/enums/sms-template-type.d.ts +6 -0
  387. package/types/enums/{s-m-t-p-encryption.d.ts → smtp-encryption.d.ts} +1 -1
  388. package/types/index.d.ts +4 -4
  389. package/types/services/account.d.ts +28 -3
  390. package/types/services/messaging.d.ts +88 -32
  391. package/types/services/projects.d.ts +14 -14
  392. package/docs/examples/account/create2f-a-challenge.md +0 -18
  393. package/docs/examples/messaging/create-a-p-n-s-provider.md +0 -18
  394. package/docs/examples/messaging/create-f-c-m-provider.md +0 -18
  395. package/docs/examples/messaging/create-s-m-s.md +0 -18
  396. package/docs/examples/messaging/create-s-m-t-p-provider.md +0 -18
  397. package/docs/examples/messaging/update-a-p-n-s-provider.md +0 -18
  398. package/docs/examples/messaging/update-f-c-m-provider.md +0 -18
  399. package/docs/examples/messaging/update-s-m-s.md +0 -18
  400. package/docs/examples/messaging/update-s-m-t-p-provider.md +0 -18
  401. package/types/enums/s-m-s-template-type.d.ts +0 -5
package/dist/iife/sdk.js CHANGED
@@ -26,6 +26,26 @@
26
26
  });
27
27
  }
28
28
 
29
+ class Service {
30
+ constructor(client) {
31
+ this.client = client;
32
+ }
33
+ static flatten(data, prefix = '') {
34
+ let output = {};
35
+ for (const [key, value] of Object.entries(data)) {
36
+ let finalKey = prefix ? prefix + '[' + key + ']' : key;
37
+ if (Array.isArray(value)) {
38
+ output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
39
+ }
40
+ else {
41
+ output[finalKey] = value;
42
+ }
43
+ }
44
+ return output;
45
+ }
46
+ }
47
+ Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
48
+
29
49
  class Query {
30
50
  constructor(method, attribute, values) {
31
51
  this.method = method;
@@ -70,29 +90,6 @@
70
90
  Query.or = (queries) => new Query("or", undefined, queries.map((query) => JSON.parse(query))).toString();
71
91
  Query.and = (queries) => new Query("and", undefined, queries.map((query) => JSON.parse(query))).toString();
72
92
 
73
- class Service {
74
- constructor(client) {
75
- this.client = client;
76
- }
77
- static flatten(data, prefix = '') {
78
- let output = {};
79
- for (const [key, value] of Object.entries(data)) {
80
- let finalKey = prefix ? prefix + '[' + key + ']' : key;
81
- if (Array.isArray(value)) {
82
- output = Object.assign(Object.assign({}, output), Service.flatten(value, finalKey));
83
- }
84
- else if (value instanceof Query) {
85
- output[finalKey] = JSON.stringify(value);
86
- }
87
- else {
88
- output[finalKey] = value;
89
- }
90
- }
91
- return output;
92
- }
93
- }
94
- Service.CHUNK_SIZE = 5 * 1024 * 1024; // 5MB
95
-
96
93
  class AppwriteException extends Error {
97
94
  constructor(message, code = 0, type = '', response = '') {
98
95
  super(message);
@@ -118,7 +115,7 @@
118
115
  'x-sdk-name': 'Console',
119
116
  'x-sdk-platform': 'console',
120
117
  'x-sdk-language': 'web',
121
- 'x-sdk-version': '0.6.0-rc.11',
118
+ 'x-sdk-version': '0.6.0-rc.13',
122
119
  'X-Appwrite-Response-Format': '1.5.0',
123
120
  };
124
121
  this.realtime = {
@@ -700,7 +697,7 @@
700
697
  * @throws {AppwriteException}
701
698
  * @returns {Promise}
702
699
  */
703
- create2FAChallenge(factor) {
700
+ createChallenge(factor) {
704
701
  return __awaiter(this, void 0, void 0, function* () {
705
702
  if (typeof factor === 'undefined') {
706
703
  throw new AppwriteException('Missing required parameter: "factor"');
@@ -1221,12 +1218,11 @@
1221
1218
  * @param {OAuthProvider} provider
1222
1219
  * @param {string} success
1223
1220
  * @param {string} failure
1224
- * @param {boolean} token
1225
1221
  * @param {string[]} scopes
1226
1222
  * @throws {AppwriteException}
1227
1223
  * @returns {void|string}
1228
1224
  */
1229
- createOAuth2Session(provider, success, failure, token, scopes) {
1225
+ createOAuth2Session(provider, success, failure, scopes) {
1230
1226
  if (typeof provider === 'undefined') {
1231
1227
  throw new AppwriteException('Missing required parameter: "provider"');
1232
1228
  }
@@ -1238,9 +1234,6 @@
1238
1234
  if (typeof failure !== 'undefined') {
1239
1235
  payload['failure'] = failure;
1240
1236
  }
1241
- if (typeof token !== 'undefined') {
1242
- payload['token'] = token;
1243
- }
1244
1237
  if (typeof scopes !== 'undefined') {
1245
1238
  payload['scopes'] = scopes;
1246
1239
  }
@@ -1566,6 +1559,58 @@
1566
1559
  }, payload);
1567
1560
  });
1568
1561
  }
1562
+ /**
1563
+ * Create OAuth2 token
1564
+ *
1565
+ * Allow the user to login to their account using the OAuth2 provider of their
1566
+ * choice. Each OAuth2 provider should be enabled from the Appwrite console
1567
+ * first. Use the success and failure arguments to provide a redirect URL's
1568
+ * back to your app when login is completed.
1569
+ *
1570
+ * If authentication succeeds, `userId` and `secret` of a token will be
1571
+ * appended to the success URL as query parameters. These can be used to
1572
+ * create a new session using the [Create
1573
+ * session](https://appwrite.io/docs/references/cloud/client-web/account#createSession)
1574
+ * endpoint.
1575
+ *
1576
+ * A user is limited to 10 active sessions at a time by default. [Learn more
1577
+ * about session
1578
+ * limits](https://appwrite.io/docs/authentication-security#limits).
1579
+ *
1580
+ * @param {OAuthProvider} provider
1581
+ * @param {string} success
1582
+ * @param {string} failure
1583
+ * @param {string[]} scopes
1584
+ * @throws {AppwriteException}
1585
+ * @returns {void|string}
1586
+ */
1587
+ createOAuth2Token(provider, success, failure, scopes) {
1588
+ if (typeof provider === 'undefined') {
1589
+ throw new AppwriteException('Missing required parameter: "provider"');
1590
+ }
1591
+ const apiPath = '/account/tokens/oauth2/{provider}'.replace('{provider}', provider);
1592
+ const payload = {};
1593
+ if (typeof success !== 'undefined') {
1594
+ payload['success'] = success;
1595
+ }
1596
+ if (typeof failure !== 'undefined') {
1597
+ payload['failure'] = failure;
1598
+ }
1599
+ if (typeof scopes !== 'undefined') {
1600
+ payload['scopes'] = scopes;
1601
+ }
1602
+ const uri = new URL(this.client.config.endpoint + apiPath);
1603
+ payload['project'] = this.client.config.project;
1604
+ for (const [key, value] of Object.entries(Service.flatten(payload))) {
1605
+ uri.searchParams.append(key, value);
1606
+ }
1607
+ if (typeof window !== 'undefined' && (window === null || window === void 0 ? void 0 : window.location)) {
1608
+ window.location.href = uri.toString();
1609
+ }
1610
+ else {
1611
+ return uri;
1612
+ }
1613
+ }
1569
1614
  /**
1570
1615
  * Create phone token
1571
1616
  *
@@ -5507,6 +5552,7 @@
5507
5552
  /**
5508
5553
  * List messages
5509
5554
  *
5555
+ * Get a list of all messages from the current Appwrite project.
5510
5556
  *
5511
5557
  * @param {string[]} queries
5512
5558
  * @param {string} search
@@ -5530,8 +5576,9 @@
5530
5576
  });
5531
5577
  }
5532
5578
  /**
5533
- * Create an email.
5579
+ * Create an email
5534
5580
  *
5581
+ * Create a new email message.
5535
5582
  *
5536
5583
  * @param {string} messageId
5537
5584
  * @param {string} subject
@@ -5541,13 +5588,14 @@
5541
5588
  * @param {string[]} targets
5542
5589
  * @param {string[]} cc
5543
5590
  * @param {string[]} bcc
5591
+ * @param {string[]} attachments
5544
5592
  * @param {MessageStatus} status
5545
5593
  * @param {boolean} html
5546
5594
  * @param {string} scheduledAt
5547
5595
  * @throws {AppwriteException}
5548
5596
  * @returns {Promise}
5549
5597
  */
5550
- createEmail(messageId, subject, content, topics, users, targets, cc, bcc, status, html, scheduledAt) {
5598
+ createEmail(messageId, subject, content, topics, users, targets, cc, bcc, attachments, status, html, scheduledAt) {
5551
5599
  return __awaiter(this, void 0, void 0, function* () {
5552
5600
  if (typeof messageId === 'undefined') {
5553
5601
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5584,6 +5632,9 @@
5584
5632
  if (typeof bcc !== 'undefined') {
5585
5633
  payload['bcc'] = bcc;
5586
5634
  }
5635
+ if (typeof attachments !== 'undefined') {
5636
+ payload['attachments'] = attachments;
5637
+ }
5587
5638
  if (typeof status !== 'undefined') {
5588
5639
  payload['status'] = status;
5589
5640
  }
@@ -5600,7 +5651,9 @@
5600
5651
  });
5601
5652
  }
5602
5653
  /**
5603
- * Update an email.
5654
+ * Update an email
5655
+ *
5656
+ * Update an email message by its unique ID.
5604
5657
  *
5605
5658
  *
5606
5659
  * @param {string} messageId
@@ -5661,8 +5714,9 @@
5661
5714
  });
5662
5715
  }
5663
5716
  /**
5664
- * Create a push notification.
5717
+ * Create a push notification
5665
5718
  *
5719
+ * Create a new push notification.
5666
5720
  *
5667
5721
  * @param {string} messageId
5668
5722
  * @param {string} title
@@ -5672,6 +5726,7 @@
5672
5726
  * @param {string[]} targets
5673
5727
  * @param {object} data
5674
5728
  * @param {string} action
5729
+ * @param {string} image
5675
5730
  * @param {string} icon
5676
5731
  * @param {string} sound
5677
5732
  * @param {string} color
@@ -5682,7 +5737,7 @@
5682
5737
  * @throws {AppwriteException}
5683
5738
  * @returns {Promise}
5684
5739
  */
5685
- createPush(messageId, title, body, topics, users, targets, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
5740
+ createPush(messageId, title, body, topics, users, targets, data, action, image, icon, sound, color, tag, badge, status, scheduledAt) {
5686
5741
  return __awaiter(this, void 0, void 0, function* () {
5687
5742
  if (typeof messageId === 'undefined') {
5688
5743
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5719,6 +5774,9 @@
5719
5774
  if (typeof action !== 'undefined') {
5720
5775
  payload['action'] = action;
5721
5776
  }
5777
+ if (typeof image !== 'undefined') {
5778
+ payload['image'] = image;
5779
+ }
5722
5780
  if (typeof icon !== 'undefined') {
5723
5781
  payload['icon'] = icon;
5724
5782
  }
@@ -5747,7 +5805,9 @@
5747
5805
  });
5748
5806
  }
5749
5807
  /**
5750
- * Update a push notification.
5808
+ * Update a push notification
5809
+ *
5810
+ * Update a push notification by its unique ID.
5751
5811
  *
5752
5812
  *
5753
5813
  * @param {string} messageId
@@ -5758,6 +5818,7 @@
5758
5818
  * @param {string} body
5759
5819
  * @param {object} data
5760
5820
  * @param {string} action
5821
+ * @param {string} image
5761
5822
  * @param {string} icon
5762
5823
  * @param {string} sound
5763
5824
  * @param {string} color
@@ -5768,7 +5829,7 @@
5768
5829
  * @throws {AppwriteException}
5769
5830
  * @returns {Promise}
5770
5831
  */
5771
- updatePush(messageId, topics, users, targets, title, body, data, action, icon, sound, color, tag, badge, status, scheduledAt) {
5832
+ updatePush(messageId, topics, users, targets, title, body, data, action, image, icon, sound, color, tag, badge, status, scheduledAt) {
5772
5833
  return __awaiter(this, void 0, void 0, function* () {
5773
5834
  if (typeof messageId === 'undefined') {
5774
5835
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5796,6 +5857,9 @@
5796
5857
  if (typeof action !== 'undefined') {
5797
5858
  payload['action'] = action;
5798
5859
  }
5860
+ if (typeof image !== 'undefined') {
5861
+ payload['image'] = image;
5862
+ }
5799
5863
  if (typeof icon !== 'undefined') {
5800
5864
  payload['icon'] = icon;
5801
5865
  }
@@ -5824,8 +5888,9 @@
5824
5888
  });
5825
5889
  }
5826
5890
  /**
5827
- * Create an SMS.
5891
+ * Create an SMS
5828
5892
  *
5893
+ * Create a new SMS message.
5829
5894
  *
5830
5895
  * @param {string} messageId
5831
5896
  * @param {string} content
@@ -5837,7 +5902,7 @@
5837
5902
  * @throws {AppwriteException}
5838
5903
  * @returns {Promise}
5839
5904
  */
5840
- createSMS(messageId, content, topics, users, targets, status, scheduledAt) {
5905
+ createSms(messageId, content, topics, users, targets, status, scheduledAt) {
5841
5906
  return __awaiter(this, void 0, void 0, function* () {
5842
5907
  if (typeof messageId === 'undefined') {
5843
5908
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5875,7 +5940,9 @@
5875
5940
  });
5876
5941
  }
5877
5942
  /**
5878
- * Update an SMS.
5943
+ * Update an SMS
5944
+ *
5945
+ * Update an email message by its unique ID.
5879
5946
  *
5880
5947
  *
5881
5948
  * @param {string} messageId
@@ -5888,7 +5955,7 @@
5888
5955
  * @throws {AppwriteException}
5889
5956
  * @returns {Promise}
5890
5957
  */
5891
- updateSMS(messageId, topics, users, targets, content, status, scheduledAt) {
5958
+ updateSms(messageId, topics, users, targets, content, status, scheduledAt) {
5892
5959
  return __awaiter(this, void 0, void 0, function* () {
5893
5960
  if (typeof messageId === 'undefined') {
5894
5961
  throw new AppwriteException('Missing required parameter: "messageId"');
@@ -5922,6 +5989,8 @@
5922
5989
  /**
5923
5990
  * Get a message
5924
5991
  *
5992
+ * Get a message by its unique ID.
5993
+ *
5925
5994
  *
5926
5995
  * @param {string} messageId
5927
5996
  * @throws {AppwriteException}
@@ -5964,6 +6033,7 @@
5964
6033
  /**
5965
6034
  * List message logs
5966
6035
  *
6036
+ * Get the message activity logs listed by its unique ID.
5967
6037
  *
5968
6038
  * @param {string} messageId
5969
6039
  * @param {string[]} queries
@@ -5989,8 +6059,7 @@
5989
6059
  /**
5990
6060
  * List message targets
5991
6061
  *
5992
- * List the targets associated with a message as set via the targets
5993
- * attribute.
6062
+ * Get a list of the targets associated with a message.
5994
6063
  *
5995
6064
  * @param {string} messageId
5996
6065
  * @param {string[]} queries
@@ -6016,6 +6085,7 @@
6016
6085
  /**
6017
6086
  * List providers
6018
6087
  *
6088
+ * Get a list of all providers from the current Appwrite project.
6019
6089
  *
6020
6090
  * @param {string[]} queries
6021
6091
  * @param {string} search
@@ -6041,6 +6111,7 @@
6041
6111
  /**
6042
6112
  * Create APNS provider
6043
6113
  *
6114
+ * Create a new Apple Push Notification service provider.
6044
6115
  *
6045
6116
  * @param {string} providerId
6046
6117
  * @param {string} name
@@ -6048,11 +6119,12 @@
6048
6119
  * @param {string} authKeyId
6049
6120
  * @param {string} teamId
6050
6121
  * @param {string} bundleId
6122
+ * @param {boolean} sandbox
6051
6123
  * @param {boolean} enabled
6052
6124
  * @throws {AppwriteException}
6053
6125
  * @returns {Promise}
6054
6126
  */
6055
- createAPNSProvider(providerId, name, authKey, authKeyId, teamId, bundleId, enabled) {
6127
+ createApnsProvider(providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled) {
6056
6128
  return __awaiter(this, void 0, void 0, function* () {
6057
6129
  if (typeof providerId === 'undefined') {
6058
6130
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6080,6 +6152,9 @@
6080
6152
  if (typeof bundleId !== 'undefined') {
6081
6153
  payload['bundleId'] = bundleId;
6082
6154
  }
6155
+ if (typeof sandbox !== 'undefined') {
6156
+ payload['sandbox'] = sandbox;
6157
+ }
6083
6158
  if (typeof enabled !== 'undefined') {
6084
6159
  payload['enabled'] = enabled;
6085
6160
  }
@@ -6092,6 +6167,7 @@
6092
6167
  /**
6093
6168
  * Update APNS provider
6094
6169
  *
6170
+ * Update a Apple Push Notification service provider by its unique ID.
6095
6171
  *
6096
6172
  * @param {string} providerId
6097
6173
  * @param {string} name
@@ -6100,10 +6176,11 @@
6100
6176
  * @param {string} authKeyId
6101
6177
  * @param {string} teamId
6102
6178
  * @param {string} bundleId
6179
+ * @param {boolean} sandbox
6103
6180
  * @throws {AppwriteException}
6104
6181
  * @returns {Promise}
6105
6182
  */
6106
- updateAPNSProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId) {
6183
+ updateApnsProvider(providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox) {
6107
6184
  return __awaiter(this, void 0, void 0, function* () {
6108
6185
  if (typeof providerId === 'undefined') {
6109
6186
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6128,6 +6205,9 @@
6128
6205
  if (typeof bundleId !== 'undefined') {
6129
6206
  payload['bundleId'] = bundleId;
6130
6207
  }
6208
+ if (typeof sandbox !== 'undefined') {
6209
+ payload['sandbox'] = sandbox;
6210
+ }
6131
6211
  const uri = new URL(this.client.config.endpoint + apiPath);
6132
6212
  return yield this.client.call('patch', uri, {
6133
6213
  'content-type': 'application/json',
@@ -6137,6 +6217,7 @@
6137
6217
  /**
6138
6218
  * Create FCM provider
6139
6219
  *
6220
+ * Create a new Firebase Cloud Messaging provider.
6140
6221
  *
6141
6222
  * @param {string} providerId
6142
6223
  * @param {string} name
@@ -6145,7 +6226,7 @@
6145
6226
  * @throws {AppwriteException}
6146
6227
  * @returns {Promise}
6147
6228
  */
6148
- createFCMProvider(providerId, name, serviceAccountJSON, enabled) {
6229
+ createFcmProvider(providerId, name, serviceAccountJSON, enabled) {
6149
6230
  return __awaiter(this, void 0, void 0, function* () {
6150
6231
  if (typeof providerId === 'undefined') {
6151
6232
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6176,6 +6257,7 @@
6176
6257
  /**
6177
6258
  * Update FCM provider
6178
6259
  *
6260
+ * Update a Firebase Cloud Messaging provider by its unique ID.
6179
6261
  *
6180
6262
  * @param {string} providerId
6181
6263
  * @param {string} name
@@ -6184,7 +6266,7 @@
6184
6266
  * @throws {AppwriteException}
6185
6267
  * @returns {Promise}
6186
6268
  */
6187
- updateFCMProvider(providerId, name, enabled, serviceAccountJSON) {
6269
+ updateFcmProvider(providerId, name, enabled, serviceAccountJSON) {
6188
6270
  return __awaiter(this, void 0, void 0, function* () {
6189
6271
  if (typeof providerId === 'undefined') {
6190
6272
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6209,6 +6291,7 @@
6209
6291
  /**
6210
6292
  * Create Mailgun provider
6211
6293
  *
6294
+ * Create a new Mailgun provider.
6212
6295
  *
6213
6296
  * @param {string} providerId
6214
6297
  * @param {string} name
@@ -6272,6 +6355,7 @@
6272
6355
  /**
6273
6356
  * Update Mailgun provider
6274
6357
  *
6358
+ * Update a Mailgun provider by its unique ID.
6275
6359
  *
6276
6360
  * @param {string} providerId
6277
6361
  * @param {string} name
@@ -6329,6 +6413,7 @@
6329
6413
  /**
6330
6414
  * Create Msg91 provider
6331
6415
  *
6416
+ * Create a new MSG91 provider.
6332
6417
  *
6333
6418
  * @param {string} providerId
6334
6419
  * @param {string} name
@@ -6376,6 +6461,7 @@
6376
6461
  /**
6377
6462
  * Update Msg91 provider
6378
6463
  *
6464
+ * Update a MSG91 provider by its unique ID.
6379
6465
  *
6380
6466
  * @param {string} providerId
6381
6467
  * @param {string} name
@@ -6472,6 +6558,7 @@
6472
6558
  /**
6473
6559
  * Update Sendgrid provider
6474
6560
  *
6561
+ * Update a Sendgrid provider by its unique ID.
6475
6562
  *
6476
6563
  * @param {string} providerId
6477
6564
  * @param {string} name
@@ -6521,6 +6608,7 @@
6521
6608
  /**
6522
6609
  * Create SMTP provider
6523
6610
  *
6611
+ * Create a new SMTP provider.
6524
6612
  *
6525
6613
  * @param {string} providerId
6526
6614
  * @param {string} name
@@ -6528,7 +6616,7 @@
6528
6616
  * @param {number} port
6529
6617
  * @param {string} username
6530
6618
  * @param {string} password
6531
- * @param {SMTPEncryption} encryption
6619
+ * @param {SmtpEncryption} encryption
6532
6620
  * @param {boolean} autoTLS
6533
6621
  * @param {string} mailer
6534
6622
  * @param {string} fromName
@@ -6539,7 +6627,7 @@
6539
6627
  * @throws {AppwriteException}
6540
6628
  * @returns {Promise}
6541
6629
  */
6542
- createSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6630
+ createSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6543
6631
  return __awaiter(this, void 0, void 0, function* () {
6544
6632
  if (typeof providerId === 'undefined') {
6545
6633
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6603,6 +6691,7 @@
6603
6691
  /**
6604
6692
  * Update SMTP provider
6605
6693
  *
6694
+ * Update a SMTP provider by its unique ID.
6606
6695
  *
6607
6696
  * @param {string} providerId
6608
6697
  * @param {string} name
@@ -6610,7 +6699,7 @@
6610
6699
  * @param {number} port
6611
6700
  * @param {string} username
6612
6701
  * @param {string} password
6613
- * @param {SMTPEncryption} encryption
6702
+ * @param {SmtpEncryption} encryption
6614
6703
  * @param {boolean} autoTLS
6615
6704
  * @param {string} mailer
6616
6705
  * @param {string} fromName
@@ -6621,7 +6710,7 @@
6621
6710
  * @throws {AppwriteException}
6622
6711
  * @returns {Promise}
6623
6712
  */
6624
- updateSMTPProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6713
+ updateSmtpProvider(providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled) {
6625
6714
  return __awaiter(this, void 0, void 0, function* () {
6626
6715
  if (typeof providerId === 'undefined') {
6627
6716
  throw new AppwriteException('Missing required parameter: "providerId"');
@@ -6676,6 +6765,7 @@
6676
6765
  /**
6677
6766
  * Create Telesign provider
6678
6767
  *
6768
+ * Create a new Telesign provider.
6679
6769
  *
6680
6770
  * @param {string} providerId
6681
6771
  * @param {string} name
@@ -6723,6 +6813,7 @@
6723
6813
  /**
6724
6814
  * Update Telesign provider
6725
6815
  *
6816
+ * Update a Telesign provider by its unique ID.
6726
6817
  *
6727
6818
  * @param {string} providerId
6728
6819
  * @param {string} name
@@ -6764,6 +6855,7 @@
6764
6855
  /**
6765
6856
  * Create Textmagic provider
6766
6857
  *
6858
+ * Create a new Textmagic provider.
6767
6859
  *
6768
6860
  * @param {string} providerId
6769
6861
  * @param {string} name
@@ -6811,6 +6903,7 @@
6811
6903
  /**
6812
6904
  * Update Textmagic provider
6813
6905
  *
6906
+ * Update a Textmagic provider by its unique ID.
6814
6907
  *
6815
6908
  * @param {string} providerId
6816
6909
  * @param {string} name
@@ -6852,6 +6945,7 @@
6852
6945
  /**
6853
6946
  * Create Twilio provider
6854
6947
  *
6948
+ * Create a new Twilio provider.
6855
6949
  *
6856
6950
  * @param {string} providerId
6857
6951
  * @param {string} name
@@ -6899,6 +6993,7 @@
6899
6993
  /**
6900
6994
  * Update Twilio provider
6901
6995
  *
6996
+ * Update a Twilio provider by its unique ID.
6902
6997
  *
6903
6998
  * @param {string} providerId
6904
6999
  * @param {string} name
@@ -6940,6 +7035,7 @@
6940
7035
  /**
6941
7036
  * Create Vonage provider
6942
7037
  *
7038
+ * Create a new Vonage provider.
6943
7039
  *
6944
7040
  * @param {string} providerId
6945
7041
  * @param {string} name
@@ -6987,6 +7083,7 @@
6987
7083
  /**
6988
7084
  * Update Vonage provider
6989
7085
  *
7086
+ * Update a Vonage provider by its unique ID.
6990
7087
  *
6991
7088
  * @param {string} providerId
6992
7089
  * @param {string} name
@@ -7028,6 +7125,8 @@
7028
7125
  /**
7029
7126
  * Get provider
7030
7127
  *
7128
+ * Get a provider by its unique ID.
7129
+ *
7031
7130
  *
7032
7131
  * @param {string} providerId
7033
7132
  * @throws {AppwriteException}
@@ -7049,6 +7148,7 @@
7049
7148
  /**
7050
7149
  * Delete provider
7051
7150
  *
7151
+ * Delete a provider by its unique ID.
7052
7152
  *
7053
7153
  * @param {string} providerId
7054
7154
  * @throws {AppwriteException}
@@ -7070,6 +7170,7 @@
7070
7170
  /**
7071
7171
  * List provider logs
7072
7172
  *
7173
+ * Get the provider activity logs listed by its unique ID.
7073
7174
  *
7074
7175
  * @param {string} providerId
7075
7176
  * @param {string[]} queries
@@ -7095,6 +7196,7 @@
7095
7196
  /**
7096
7197
  * List subscriber logs
7097
7198
  *
7199
+ * Get the subscriber activity logs listed by its unique ID.
7098
7200
  *
7099
7201
  * @param {string} subscriberId
7100
7202
  * @param {string[]} queries
@@ -7118,8 +7220,9 @@
7118
7220
  });
7119
7221
  }
7120
7222
  /**
7121
- * List topics.
7223
+ * List topics
7122
7224
  *
7225
+ * Get a list of all topics from the current Appwrite project.
7123
7226
  *
7124
7227
  * @param {string[]} queries
7125
7228
  * @param {string} search
@@ -7143,8 +7246,9 @@
7143
7246
  });
7144
7247
  }
7145
7248
  /**
7146
- * Create a topic.
7249
+ * Create a topic
7147
7250
  *
7251
+ * Create a new topic.
7148
7252
  *
7149
7253
  * @param {string} topicId
7150
7254
  * @param {string} name
@@ -7178,7 +7282,9 @@
7178
7282
  });
7179
7283
  }
7180
7284
  /**
7181
- * Get a topic.
7285
+ * Get a topic
7286
+ *
7287
+ * Get a topic by its unique ID.
7182
7288
  *
7183
7289
  *
7184
7290
  * @param {string} topicId
@@ -7199,15 +7305,18 @@
7199
7305
  });
7200
7306
  }
7201
7307
  /**
7202
- * Update a topic.
7308
+ * Update a topic
7309
+ *
7310
+ * Update a topic by its unique ID.
7203
7311
  *
7204
7312
  *
7205
7313
  * @param {string} topicId
7206
7314
  * @param {string} name
7315
+ * @param {string[]} subscribe
7207
7316
  * @throws {AppwriteException}
7208
7317
  * @returns {Promise}
7209
7318
  */
7210
- updateTopic(topicId, name) {
7319
+ updateTopic(topicId, name, subscribe) {
7211
7320
  return __awaiter(this, void 0, void 0, function* () {
7212
7321
  if (typeof topicId === 'undefined') {
7213
7322
  throw new AppwriteException('Missing required parameter: "topicId"');
@@ -7217,6 +7326,9 @@
7217
7326
  if (typeof name !== 'undefined') {
7218
7327
  payload['name'] = name;
7219
7328
  }
7329
+ if (typeof subscribe !== 'undefined') {
7330
+ payload['subscribe'] = subscribe;
7331
+ }
7220
7332
  const uri = new URL(this.client.config.endpoint + apiPath);
7221
7333
  return yield this.client.call('patch', uri, {
7222
7334
  'content-type': 'application/json',
@@ -7224,8 +7336,9 @@
7224
7336
  });
7225
7337
  }
7226
7338
  /**
7227
- * Delete a topic.
7339
+ * Delete a topic
7228
7340
  *
7341
+ * Delete a topic by its unique ID.
7229
7342
  *
7230
7343
  * @param {string} topicId
7231
7344
  * @throws {AppwriteException}
@@ -7247,6 +7360,7 @@
7247
7360
  /**
7248
7361
  * List topic logs
7249
7362
  *
7363
+ * Get the topic activity logs listed by its unique ID.
7250
7364
  *
7251
7365
  * @param {string} topicId
7252
7366
  * @param {string[]} queries
@@ -7270,8 +7384,9 @@
7270
7384
  });
7271
7385
  }
7272
7386
  /**
7273
- * List subscribers.
7387
+ * List subscribers
7274
7388
  *
7389
+ * Get a list of all subscribers from the current Appwrite project.
7275
7390
  *
7276
7391
  * @param {string} topicId
7277
7392
  * @param {string[]} queries
@@ -7299,8 +7414,9 @@
7299
7414
  });
7300
7415
  }
7301
7416
  /**
7302
- * Create a subscriber.
7417
+ * Create a subscriber
7303
7418
  *
7419
+ * Create a new subscriber.
7304
7420
  *
7305
7421
  * @param {string} topicId
7306
7422
  * @param {string} subscriberId
@@ -7334,7 +7450,9 @@
7334
7450
  });
7335
7451
  }
7336
7452
  /**
7337
- * Get a subscriber.
7453
+ * Get a subscriber
7454
+ *
7455
+ * Get a subscriber by its unique ID.
7338
7456
  *
7339
7457
  *
7340
7458
  * @param {string} topicId
@@ -7359,8 +7477,9 @@
7359
7477
  });
7360
7478
  }
7361
7479
  /**
7362
- * Delete a subscriber.
7480
+ * Delete a subscriber
7363
7481
  *
7482
+ * Delete a subscriber by its unique ID.
7364
7483
  *
7365
7484
  * @param {string} topicId
7366
7485
  * @param {string} subscriberId
@@ -8937,7 +9056,7 @@
8937
9056
  *
8938
9057
  *
8939
9058
  * @param {string} projectId
8940
- * @param {APIService} service
9059
+ * @param {ApiService} service
8941
9060
  * @param {boolean} status
8942
9061
  * @throws {AppwriteException}
8943
9062
  * @returns {Promise}
@@ -9270,8 +9389,8 @@
9270
9389
  *
9271
9390
  *
9272
9391
  * @param {string} projectId
9273
- * @param {SMSTemplateType} type
9274
- * @param {SMSTemplateLocale} locale
9392
+ * @param {SmsTemplateType} type
9393
+ * @param {SmsTemplateLocale} locale
9275
9394
  * @throws {AppwriteException}
9276
9395
  * @returns {Promise}
9277
9396
  */
@@ -9299,8 +9418,8 @@
9299
9418
  *
9300
9419
  *
9301
9420
  * @param {string} projectId
9302
- * @param {SMSTemplateType} type
9303
- * @param {SMSTemplateLocale} locale
9421
+ * @param {SmsTemplateType} type
9422
+ * @param {SmsTemplateLocale} locale
9304
9423
  * @param {string} message
9305
9424
  * @throws {AppwriteException}
9306
9425
  * @returns {Promise}
@@ -9335,8 +9454,8 @@
9335
9454
  *
9336
9455
  *
9337
9456
  * @param {string} projectId
9338
- * @param {SMSTemplateType} type
9339
- * @param {SMSTemplateLocale} locale
9457
+ * @param {SmsTemplateType} type
9458
+ * @param {SmsTemplateLocale} locale
9340
9459
  * @throws {AppwriteException}
9341
9460
  * @returns {Promise}
9342
9461
  */
@@ -12752,10 +12871,42 @@
12752
12871
 
12753
12872
  exports.Runtime = void 0;
12754
12873
  (function (Runtime) {
12874
+ Runtime["Node145"] = "node-14.5";
12875
+ Runtime["Node160"] = "node-16.0";
12755
12876
  Runtime["Node180"] = "node-18.0";
12877
+ Runtime["Node190"] = "node-19.0";
12878
+ Runtime["Node200"] = "node-20.0";
12756
12879
  Runtime["Php80"] = "php-8.0";
12880
+ Runtime["Php81"] = "php-8.1";
12881
+ Runtime["Php82"] = "php-8.2";
12882
+ Runtime["Ruby30"] = "ruby-3.0";
12757
12883
  Runtime["Ruby31"] = "ruby-3.1";
12884
+ Runtime["Ruby32"] = "ruby-3.2";
12885
+ Runtime["Python38"] = "python-3.8";
12758
12886
  Runtime["Python39"] = "python-3.9";
12887
+ Runtime["Python310"] = "python-3.10";
12888
+ Runtime["Python311"] = "python-3.11";
12889
+ Runtime["Python312"] = "python-3.12";
12890
+ Runtime["Dart215"] = "dart-2.15";
12891
+ Runtime["Dart216"] = "dart-2.16";
12892
+ Runtime["Dart217"] = "dart-2.17";
12893
+ Runtime["Dart218"] = "dart-2.18";
12894
+ Runtime["Dart30"] = "dart-3.0";
12895
+ Runtime["Dart31"] = "dart-3.1";
12896
+ Runtime["Dotnet31"] = "dotnet-3.1";
12897
+ Runtime["Dotnet60"] = "dotnet-6.0";
12898
+ Runtime["Dotnet70"] = "dotnet-7.0";
12899
+ Runtime["Java80"] = "java-8.0";
12900
+ Runtime["Java110"] = "java-11.0";
12901
+ Runtime["Java170"] = "java-17.0";
12902
+ Runtime["Java180"] = "java-18.0";
12903
+ Runtime["Swift55"] = "swift-5.5";
12904
+ Runtime["Swift58"] = "swift-5.8";
12905
+ Runtime["Kotlin16"] = "kotlin-1.6";
12906
+ Runtime["Kotlin18"] = "kotlin-1.8";
12907
+ Runtime["Cpp17"] = "cpp-17";
12908
+ Runtime["Cpp20"] = "cpp-20";
12909
+ Runtime["Bun10"] = "bun-1.0";
12759
12910
  })(exports.Runtime || (exports.Runtime = {}));
12760
12911
 
12761
12912
  exports.FunctionUsageRange = void 0;
@@ -12798,12 +12949,12 @@
12798
12949
  MessageStatus["Processing"] = "processing";
12799
12950
  })(exports.MessageStatus || (exports.MessageStatus = {}));
12800
12951
 
12801
- exports.SMTPEncryption = void 0;
12802
- (function (SMTPEncryption) {
12803
- SMTPEncryption["None"] = "none";
12804
- SMTPEncryption["Ssl"] = "ssl";
12805
- SMTPEncryption["Tls"] = "tls";
12806
- })(exports.SMTPEncryption || (exports.SMTPEncryption = {}));
12952
+ exports.SmtpEncryption = void 0;
12953
+ (function (SmtpEncryption) {
12954
+ SmtpEncryption["None"] = "none";
12955
+ SmtpEncryption["Ssl"] = "ssl";
12956
+ SmtpEncryption["Tls"] = "tls";
12957
+ })(exports.SmtpEncryption || (exports.SmtpEncryption = {}));
12807
12958
 
12808
12959
  exports.ProjectUsageRange = void 0;
12809
12960
  (function (ProjectUsageRange) {
@@ -12814,6 +12965,7 @@
12814
12965
  exports.Region = void 0;
12815
12966
  (function (Region) {
12816
12967
  Region["Default"] = "default";
12968
+ Region["Fra"] = "fra";
12817
12969
  })(exports.Region || (exports.Region = {}));
12818
12970
 
12819
12971
  exports.AuthMethod = void 0;
@@ -12844,20 +12996,20 @@
12844
12996
  PlatformType["Unity"] = "unity";
12845
12997
  })(exports.PlatformType || (exports.PlatformType = {}));
12846
12998
 
12847
- exports.APIService = void 0;
12848
- (function (APIService) {
12849
- APIService["Account"] = "account";
12850
- APIService["Avatars"] = "avatars";
12851
- APIService["Databases"] = "databases";
12852
- APIService["Locale"] = "locale";
12853
- APIService["Health"] = "health";
12854
- APIService["Storage"] = "storage";
12855
- APIService["Teams"] = "teams";
12856
- APIService["Users"] = "users";
12857
- APIService["Functions"] = "functions";
12858
- APIService["Graphql"] = "graphql";
12859
- APIService["Messaging"] = "messaging";
12860
- })(exports.APIService || (exports.APIService = {}));
12999
+ exports.ApiService = void 0;
13000
+ (function (ApiService) {
13001
+ ApiService["Account"] = "account";
13002
+ ApiService["Avatars"] = "avatars";
13003
+ ApiService["Databases"] = "databases";
13004
+ ApiService["Locale"] = "locale";
13005
+ ApiService["Health"] = "health";
13006
+ ApiService["Storage"] = "storage";
13007
+ ApiService["Teams"] = "teams";
13008
+ ApiService["Users"] = "users";
13009
+ ApiService["Functions"] = "functions";
13010
+ ApiService["Graphql"] = "graphql";
13011
+ ApiService["Messaging"] = "messaging";
13012
+ })(exports.ApiService || (exports.ApiService = {}));
12861
13013
 
12862
13014
  exports.SMTPSecure = void 0;
12863
13015
  (function (SMTPSecure) {
@@ -12870,6 +13022,7 @@
12870
13022
  EmailTemplateType["Magicsession"] = "magicsession";
12871
13023
  EmailTemplateType["Recovery"] = "recovery";
12872
13024
  EmailTemplateType["Invitation"] = "invitation";
13025
+ EmailTemplateType["Mfachallenge"] = "mfachallenge";
12873
13026
  })(exports.EmailTemplateType || (exports.EmailTemplateType = {}));
12874
13027
 
12875
13028
  exports.EmailTemplateLocale = void 0;
@@ -13007,147 +13160,148 @@
13007
13160
  EmailTemplateLocale["Zu"] = "zu";
13008
13161
  })(exports.EmailTemplateLocale || (exports.EmailTemplateLocale = {}));
13009
13162
 
13010
- exports.SMSTemplateType = void 0;
13011
- (function (SMSTemplateType) {
13012
- SMSTemplateType["Verification"] = "verification";
13013
- SMSTemplateType["Login"] = "login";
13014
- SMSTemplateType["Invitation"] = "invitation";
13015
- })(exports.SMSTemplateType || (exports.SMSTemplateType = {}));
13163
+ exports.SmsTemplateType = void 0;
13164
+ (function (SmsTemplateType) {
13165
+ SmsTemplateType["Verification"] = "verification";
13166
+ SmsTemplateType["Login"] = "login";
13167
+ SmsTemplateType["Invitation"] = "invitation";
13168
+ SmsTemplateType["Mfachallenge"] = "mfachallenge";
13169
+ })(exports.SmsTemplateType || (exports.SmsTemplateType = {}));
13016
13170
 
13017
- exports.SMSTemplateLocale = void 0;
13018
- (function (SMSTemplateLocale) {
13019
- SMSTemplateLocale["Af"] = "af";
13020
- SMSTemplateLocale["Arae"] = "ar-ae";
13021
- SMSTemplateLocale["Arbh"] = "ar-bh";
13022
- SMSTemplateLocale["Ardz"] = "ar-dz";
13023
- SMSTemplateLocale["Areg"] = "ar-eg";
13024
- SMSTemplateLocale["Ariq"] = "ar-iq";
13025
- SMSTemplateLocale["Arjo"] = "ar-jo";
13026
- SMSTemplateLocale["Arkw"] = "ar-kw";
13027
- SMSTemplateLocale["Arlb"] = "ar-lb";
13028
- SMSTemplateLocale["Arly"] = "ar-ly";
13029
- SMSTemplateLocale["Arma"] = "ar-ma";
13030
- SMSTemplateLocale["Arom"] = "ar-om";
13031
- SMSTemplateLocale["Arqa"] = "ar-qa";
13032
- SMSTemplateLocale["Arsa"] = "ar-sa";
13033
- SMSTemplateLocale["Arsy"] = "ar-sy";
13034
- SMSTemplateLocale["Artn"] = "ar-tn";
13035
- SMSTemplateLocale["Arye"] = "ar-ye";
13036
- SMSTemplateLocale["As"] = "as";
13037
- SMSTemplateLocale["Az"] = "az";
13038
- SMSTemplateLocale["Be"] = "be";
13039
- SMSTemplateLocale["Bg"] = "bg";
13040
- SMSTemplateLocale["Bh"] = "bh";
13041
- SMSTemplateLocale["Bn"] = "bn";
13042
- SMSTemplateLocale["Bs"] = "bs";
13043
- SMSTemplateLocale["Ca"] = "ca";
13044
- SMSTemplateLocale["Cs"] = "cs";
13045
- SMSTemplateLocale["Cy"] = "cy";
13046
- SMSTemplateLocale["Da"] = "da";
13047
- SMSTemplateLocale["De"] = "de";
13048
- SMSTemplateLocale["Deat"] = "de-at";
13049
- SMSTemplateLocale["Dech"] = "de-ch";
13050
- SMSTemplateLocale["Deli"] = "de-li";
13051
- SMSTemplateLocale["Delu"] = "de-lu";
13052
- SMSTemplateLocale["El"] = "el";
13053
- SMSTemplateLocale["En"] = "en";
13054
- SMSTemplateLocale["Enau"] = "en-au";
13055
- SMSTemplateLocale["Enbz"] = "en-bz";
13056
- SMSTemplateLocale["Enca"] = "en-ca";
13057
- SMSTemplateLocale["Engb"] = "en-gb";
13058
- SMSTemplateLocale["Enie"] = "en-ie";
13059
- SMSTemplateLocale["Enjm"] = "en-jm";
13060
- SMSTemplateLocale["Ennz"] = "en-nz";
13061
- SMSTemplateLocale["Entt"] = "en-tt";
13062
- SMSTemplateLocale["Enus"] = "en-us";
13063
- SMSTemplateLocale["Enza"] = "en-za";
13064
- SMSTemplateLocale["Eo"] = "eo";
13065
- SMSTemplateLocale["Es"] = "es";
13066
- SMSTemplateLocale["Esar"] = "es-ar";
13067
- SMSTemplateLocale["Esbo"] = "es-bo";
13068
- SMSTemplateLocale["Escl"] = "es-cl";
13069
- SMSTemplateLocale["Esco"] = "es-co";
13070
- SMSTemplateLocale["Escr"] = "es-cr";
13071
- SMSTemplateLocale["Esdo"] = "es-do";
13072
- SMSTemplateLocale["Esec"] = "es-ec";
13073
- SMSTemplateLocale["Esgt"] = "es-gt";
13074
- SMSTemplateLocale["Eshn"] = "es-hn";
13075
- SMSTemplateLocale["Esmx"] = "es-mx";
13076
- SMSTemplateLocale["Esni"] = "es-ni";
13077
- SMSTemplateLocale["Espa"] = "es-pa";
13078
- SMSTemplateLocale["Espe"] = "es-pe";
13079
- SMSTemplateLocale["Espr"] = "es-pr";
13080
- SMSTemplateLocale["Espy"] = "es-py";
13081
- SMSTemplateLocale["Essv"] = "es-sv";
13082
- SMSTemplateLocale["Esuy"] = "es-uy";
13083
- SMSTemplateLocale["Esve"] = "es-ve";
13084
- SMSTemplateLocale["Et"] = "et";
13085
- SMSTemplateLocale["Eu"] = "eu";
13086
- SMSTemplateLocale["Fa"] = "fa";
13087
- SMSTemplateLocale["Fi"] = "fi";
13088
- SMSTemplateLocale["Fo"] = "fo";
13089
- SMSTemplateLocale["Fr"] = "fr";
13090
- SMSTemplateLocale["Frbe"] = "fr-be";
13091
- SMSTemplateLocale["Frca"] = "fr-ca";
13092
- SMSTemplateLocale["Frch"] = "fr-ch";
13093
- SMSTemplateLocale["Frlu"] = "fr-lu";
13094
- SMSTemplateLocale["Ga"] = "ga";
13095
- SMSTemplateLocale["Gd"] = "gd";
13096
- SMSTemplateLocale["He"] = "he";
13097
- SMSTemplateLocale["Hi"] = "hi";
13098
- SMSTemplateLocale["Hr"] = "hr";
13099
- SMSTemplateLocale["Hu"] = "hu";
13100
- SMSTemplateLocale["Id"] = "id";
13101
- SMSTemplateLocale["Is"] = "is";
13102
- SMSTemplateLocale["It"] = "it";
13103
- SMSTemplateLocale["Itch"] = "it-ch";
13104
- SMSTemplateLocale["Ja"] = "ja";
13105
- SMSTemplateLocale["Ji"] = "ji";
13106
- SMSTemplateLocale["Ko"] = "ko";
13107
- SMSTemplateLocale["Ku"] = "ku";
13108
- SMSTemplateLocale["Lt"] = "lt";
13109
- SMSTemplateLocale["Lv"] = "lv";
13110
- SMSTemplateLocale["Mk"] = "mk";
13111
- SMSTemplateLocale["Ml"] = "ml";
13112
- SMSTemplateLocale["Ms"] = "ms";
13113
- SMSTemplateLocale["Mt"] = "mt";
13114
- SMSTemplateLocale["Nb"] = "nb";
13115
- SMSTemplateLocale["Ne"] = "ne";
13116
- SMSTemplateLocale["Nl"] = "nl";
13117
- SMSTemplateLocale["Nlbe"] = "nl-be";
13118
- SMSTemplateLocale["Nn"] = "nn";
13119
- SMSTemplateLocale["No"] = "no";
13120
- SMSTemplateLocale["Pa"] = "pa";
13121
- SMSTemplateLocale["Pl"] = "pl";
13122
- SMSTemplateLocale["Pt"] = "pt";
13123
- SMSTemplateLocale["Ptbr"] = "pt-br";
13124
- SMSTemplateLocale["Rm"] = "rm";
13125
- SMSTemplateLocale["Ro"] = "ro";
13126
- SMSTemplateLocale["Romd"] = "ro-md";
13127
- SMSTemplateLocale["Ru"] = "ru";
13128
- SMSTemplateLocale["Rumd"] = "ru-md";
13129
- SMSTemplateLocale["Sb"] = "sb";
13130
- SMSTemplateLocale["Sk"] = "sk";
13131
- SMSTemplateLocale["Sl"] = "sl";
13132
- SMSTemplateLocale["Sq"] = "sq";
13133
- SMSTemplateLocale["Sr"] = "sr";
13134
- SMSTemplateLocale["Sv"] = "sv";
13135
- SMSTemplateLocale["Svfi"] = "sv-fi";
13136
- SMSTemplateLocale["Th"] = "th";
13137
- SMSTemplateLocale["Tn"] = "tn";
13138
- SMSTemplateLocale["Tr"] = "tr";
13139
- SMSTemplateLocale["Ts"] = "ts";
13140
- SMSTemplateLocale["Ua"] = "ua";
13141
- SMSTemplateLocale["Ur"] = "ur";
13142
- SMSTemplateLocale["Ve"] = "ve";
13143
- SMSTemplateLocale["Vi"] = "vi";
13144
- SMSTemplateLocale["Xh"] = "xh";
13145
- SMSTemplateLocale["Zhcn"] = "zh-cn";
13146
- SMSTemplateLocale["Zhhk"] = "zh-hk";
13147
- SMSTemplateLocale["Zhsg"] = "zh-sg";
13148
- SMSTemplateLocale["Zhtw"] = "zh-tw";
13149
- SMSTemplateLocale["Zu"] = "zu";
13150
- })(exports.SMSTemplateLocale || (exports.SMSTemplateLocale = {}));
13171
+ exports.SmsTemplateLocale = void 0;
13172
+ (function (SmsTemplateLocale) {
13173
+ SmsTemplateLocale["Af"] = "af";
13174
+ SmsTemplateLocale["Arae"] = "ar-ae";
13175
+ SmsTemplateLocale["Arbh"] = "ar-bh";
13176
+ SmsTemplateLocale["Ardz"] = "ar-dz";
13177
+ SmsTemplateLocale["Areg"] = "ar-eg";
13178
+ SmsTemplateLocale["Ariq"] = "ar-iq";
13179
+ SmsTemplateLocale["Arjo"] = "ar-jo";
13180
+ SmsTemplateLocale["Arkw"] = "ar-kw";
13181
+ SmsTemplateLocale["Arlb"] = "ar-lb";
13182
+ SmsTemplateLocale["Arly"] = "ar-ly";
13183
+ SmsTemplateLocale["Arma"] = "ar-ma";
13184
+ SmsTemplateLocale["Arom"] = "ar-om";
13185
+ SmsTemplateLocale["Arqa"] = "ar-qa";
13186
+ SmsTemplateLocale["Arsa"] = "ar-sa";
13187
+ SmsTemplateLocale["Arsy"] = "ar-sy";
13188
+ SmsTemplateLocale["Artn"] = "ar-tn";
13189
+ SmsTemplateLocale["Arye"] = "ar-ye";
13190
+ SmsTemplateLocale["As"] = "as";
13191
+ SmsTemplateLocale["Az"] = "az";
13192
+ SmsTemplateLocale["Be"] = "be";
13193
+ SmsTemplateLocale["Bg"] = "bg";
13194
+ SmsTemplateLocale["Bh"] = "bh";
13195
+ SmsTemplateLocale["Bn"] = "bn";
13196
+ SmsTemplateLocale["Bs"] = "bs";
13197
+ SmsTemplateLocale["Ca"] = "ca";
13198
+ SmsTemplateLocale["Cs"] = "cs";
13199
+ SmsTemplateLocale["Cy"] = "cy";
13200
+ SmsTemplateLocale["Da"] = "da";
13201
+ SmsTemplateLocale["De"] = "de";
13202
+ SmsTemplateLocale["Deat"] = "de-at";
13203
+ SmsTemplateLocale["Dech"] = "de-ch";
13204
+ SmsTemplateLocale["Deli"] = "de-li";
13205
+ SmsTemplateLocale["Delu"] = "de-lu";
13206
+ SmsTemplateLocale["El"] = "el";
13207
+ SmsTemplateLocale["En"] = "en";
13208
+ SmsTemplateLocale["Enau"] = "en-au";
13209
+ SmsTemplateLocale["Enbz"] = "en-bz";
13210
+ SmsTemplateLocale["Enca"] = "en-ca";
13211
+ SmsTemplateLocale["Engb"] = "en-gb";
13212
+ SmsTemplateLocale["Enie"] = "en-ie";
13213
+ SmsTemplateLocale["Enjm"] = "en-jm";
13214
+ SmsTemplateLocale["Ennz"] = "en-nz";
13215
+ SmsTemplateLocale["Entt"] = "en-tt";
13216
+ SmsTemplateLocale["Enus"] = "en-us";
13217
+ SmsTemplateLocale["Enza"] = "en-za";
13218
+ SmsTemplateLocale["Eo"] = "eo";
13219
+ SmsTemplateLocale["Es"] = "es";
13220
+ SmsTemplateLocale["Esar"] = "es-ar";
13221
+ SmsTemplateLocale["Esbo"] = "es-bo";
13222
+ SmsTemplateLocale["Escl"] = "es-cl";
13223
+ SmsTemplateLocale["Esco"] = "es-co";
13224
+ SmsTemplateLocale["Escr"] = "es-cr";
13225
+ SmsTemplateLocale["Esdo"] = "es-do";
13226
+ SmsTemplateLocale["Esec"] = "es-ec";
13227
+ SmsTemplateLocale["Esgt"] = "es-gt";
13228
+ SmsTemplateLocale["Eshn"] = "es-hn";
13229
+ SmsTemplateLocale["Esmx"] = "es-mx";
13230
+ SmsTemplateLocale["Esni"] = "es-ni";
13231
+ SmsTemplateLocale["Espa"] = "es-pa";
13232
+ SmsTemplateLocale["Espe"] = "es-pe";
13233
+ SmsTemplateLocale["Espr"] = "es-pr";
13234
+ SmsTemplateLocale["Espy"] = "es-py";
13235
+ SmsTemplateLocale["Essv"] = "es-sv";
13236
+ SmsTemplateLocale["Esuy"] = "es-uy";
13237
+ SmsTemplateLocale["Esve"] = "es-ve";
13238
+ SmsTemplateLocale["Et"] = "et";
13239
+ SmsTemplateLocale["Eu"] = "eu";
13240
+ SmsTemplateLocale["Fa"] = "fa";
13241
+ SmsTemplateLocale["Fi"] = "fi";
13242
+ SmsTemplateLocale["Fo"] = "fo";
13243
+ SmsTemplateLocale["Fr"] = "fr";
13244
+ SmsTemplateLocale["Frbe"] = "fr-be";
13245
+ SmsTemplateLocale["Frca"] = "fr-ca";
13246
+ SmsTemplateLocale["Frch"] = "fr-ch";
13247
+ SmsTemplateLocale["Frlu"] = "fr-lu";
13248
+ SmsTemplateLocale["Ga"] = "ga";
13249
+ SmsTemplateLocale["Gd"] = "gd";
13250
+ SmsTemplateLocale["He"] = "he";
13251
+ SmsTemplateLocale["Hi"] = "hi";
13252
+ SmsTemplateLocale["Hr"] = "hr";
13253
+ SmsTemplateLocale["Hu"] = "hu";
13254
+ SmsTemplateLocale["Id"] = "id";
13255
+ SmsTemplateLocale["Is"] = "is";
13256
+ SmsTemplateLocale["It"] = "it";
13257
+ SmsTemplateLocale["Itch"] = "it-ch";
13258
+ SmsTemplateLocale["Ja"] = "ja";
13259
+ SmsTemplateLocale["Ji"] = "ji";
13260
+ SmsTemplateLocale["Ko"] = "ko";
13261
+ SmsTemplateLocale["Ku"] = "ku";
13262
+ SmsTemplateLocale["Lt"] = "lt";
13263
+ SmsTemplateLocale["Lv"] = "lv";
13264
+ SmsTemplateLocale["Mk"] = "mk";
13265
+ SmsTemplateLocale["Ml"] = "ml";
13266
+ SmsTemplateLocale["Ms"] = "ms";
13267
+ SmsTemplateLocale["Mt"] = "mt";
13268
+ SmsTemplateLocale["Nb"] = "nb";
13269
+ SmsTemplateLocale["Ne"] = "ne";
13270
+ SmsTemplateLocale["Nl"] = "nl";
13271
+ SmsTemplateLocale["Nlbe"] = "nl-be";
13272
+ SmsTemplateLocale["Nn"] = "nn";
13273
+ SmsTemplateLocale["No"] = "no";
13274
+ SmsTemplateLocale["Pa"] = "pa";
13275
+ SmsTemplateLocale["Pl"] = "pl";
13276
+ SmsTemplateLocale["Pt"] = "pt";
13277
+ SmsTemplateLocale["Ptbr"] = "pt-br";
13278
+ SmsTemplateLocale["Rm"] = "rm";
13279
+ SmsTemplateLocale["Ro"] = "ro";
13280
+ SmsTemplateLocale["Romd"] = "ro-md";
13281
+ SmsTemplateLocale["Ru"] = "ru";
13282
+ SmsTemplateLocale["Rumd"] = "ru-md";
13283
+ SmsTemplateLocale["Sb"] = "sb";
13284
+ SmsTemplateLocale["Sk"] = "sk";
13285
+ SmsTemplateLocale["Sl"] = "sl";
13286
+ SmsTemplateLocale["Sq"] = "sq";
13287
+ SmsTemplateLocale["Sr"] = "sr";
13288
+ SmsTemplateLocale["Sv"] = "sv";
13289
+ SmsTemplateLocale["Svfi"] = "sv-fi";
13290
+ SmsTemplateLocale["Th"] = "th";
13291
+ SmsTemplateLocale["Tn"] = "tn";
13292
+ SmsTemplateLocale["Tr"] = "tr";
13293
+ SmsTemplateLocale["Ts"] = "ts";
13294
+ SmsTemplateLocale["Ua"] = "ua";
13295
+ SmsTemplateLocale["Ur"] = "ur";
13296
+ SmsTemplateLocale["Ve"] = "ve";
13297
+ SmsTemplateLocale["Vi"] = "vi";
13298
+ SmsTemplateLocale["Xh"] = "xh";
13299
+ SmsTemplateLocale["Zhcn"] = "zh-cn";
13300
+ SmsTemplateLocale["Zhhk"] = "zh-hk";
13301
+ SmsTemplateLocale["Zhsg"] = "zh-sg";
13302
+ SmsTemplateLocale["Zhtw"] = "zh-tw";
13303
+ SmsTemplateLocale["Zu"] = "zu";
13304
+ })(exports.SmsTemplateLocale || (exports.SmsTemplateLocale = {}));
13151
13305
 
13152
13306
  exports.ResourceType = void 0;
13153
13307
  (function (ResourceType) {