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

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 (447) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/sdk.js +979 -200
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +980 -201
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +979 -200
  7. package/docs/examples/account/add-authenticator.md +2 -2
  8. package/docs/examples/account/create-anonymous-session.md +1 -1
  9. package/docs/examples/account/create-challenge.md +2 -2
  10. package/docs/examples/account/create-email-password-session.md +1 -1
  11. package/docs/examples/account/create-email-token.md +1 -1
  12. package/docs/examples/account/create-j-w-t.md +1 -1
  13. package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
  14. package/docs/examples/account/create-o-auth2session.md +2 -2
  15. package/docs/examples/account/create-phone-token.md +1 -1
  16. package/docs/examples/account/create-phone-verification.md +1 -1
  17. package/docs/examples/account/create-push-target.md +1 -1
  18. package/docs/examples/account/create-recovery.md +1 -1
  19. package/docs/examples/account/create-session.md +1 -1
  20. package/docs/examples/account/create-verification.md +1 -1
  21. package/docs/examples/account/create.md +1 -1
  22. package/docs/examples/account/delete-authenticator.md +2 -2
  23. package/docs/examples/account/delete-identity.md +1 -1
  24. package/docs/examples/{projects/update-auth-mfa-factors.md → account/delete-push-target.md} +3 -3
  25. package/docs/examples/account/delete-session.md +1 -1
  26. package/docs/examples/account/delete-sessions.md +1 -1
  27. package/docs/examples/account/delete.md +1 -1
  28. package/docs/examples/account/get-prefs.md +1 -1
  29. package/docs/examples/account/get-session.md +1 -1
  30. package/docs/examples/account/get.md +1 -1
  31. package/docs/examples/account/{list-providers.md → list-factors.md} +2 -2
  32. package/docs/examples/account/list-identities.md +1 -1
  33. package/docs/examples/account/list-logs.md +1 -1
  34. package/docs/examples/account/list-sessions.md +1 -1
  35. package/docs/examples/account/update-challenge.md +1 -1
  36. package/docs/examples/account/update-email.md +1 -1
  37. package/docs/examples/account/update-m-f-a.md +1 -1
  38. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  39. package/docs/examples/account/update-name.md +1 -1
  40. package/docs/examples/account/update-password.md +1 -1
  41. package/docs/examples/account/update-phone-verification.md +1 -1
  42. package/docs/examples/account/update-phone.md +1 -1
  43. package/docs/examples/account/update-prefs.md +1 -1
  44. package/docs/examples/account/update-push-target.md +1 -1
  45. package/docs/examples/account/update-recovery.md +1 -1
  46. package/docs/examples/account/update-session.md +1 -1
  47. package/docs/examples/account/update-status.md +1 -1
  48. package/docs/examples/account/update-verification.md +1 -1
  49. package/docs/examples/account/verify-authenticator.md +2 -2
  50. package/docs/examples/assistant/chat.md +1 -1
  51. package/docs/examples/avatars/get-browser.md +2 -2
  52. package/docs/examples/avatars/get-credit-card.md +2 -2
  53. package/docs/examples/avatars/get-favicon.md +1 -1
  54. package/docs/examples/avatars/get-flag.md +2 -2
  55. package/docs/examples/avatars/get-image.md +1 -1
  56. package/docs/examples/avatars/get-initials.md +1 -1
  57. package/docs/examples/avatars/get-q-r.md +1 -1
  58. package/docs/examples/console/variables.md +1 -1
  59. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  60. package/docs/examples/databases/create-collection.md +1 -1
  61. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  62. package/docs/examples/databases/create-document.md +1 -1
  63. package/docs/examples/databases/create-email-attribute.md +1 -1
  64. package/docs/examples/databases/create-enum-attribute.md +1 -1
  65. package/docs/examples/databases/create-float-attribute.md +1 -1
  66. package/docs/examples/databases/create-index.md +2 -2
  67. package/docs/examples/databases/create-integer-attribute.md +1 -1
  68. package/docs/examples/databases/create-ip-attribute.md +1 -1
  69. package/docs/examples/databases/create-relationship-attribute.md +2 -2
  70. package/docs/examples/databases/create-string-attribute.md +1 -1
  71. package/docs/examples/databases/create-url-attribute.md +1 -1
  72. package/docs/examples/databases/create.md +1 -1
  73. package/docs/examples/databases/delete-attribute.md +1 -1
  74. package/docs/examples/databases/delete-collection.md +1 -1
  75. package/docs/examples/databases/delete-document.md +1 -1
  76. package/docs/examples/databases/delete-index.md +1 -1
  77. package/docs/examples/databases/delete.md +1 -1
  78. package/docs/examples/databases/get-attribute.md +1 -1
  79. package/docs/examples/databases/get-collection-usage.md +1 -1
  80. package/docs/examples/databases/get-collection.md +1 -1
  81. package/docs/examples/databases/get-database-usage.md +1 -1
  82. package/docs/examples/databases/get-document.md +1 -1
  83. package/docs/examples/databases/get-index.md +1 -1
  84. package/docs/examples/databases/get-usage.md +1 -1
  85. package/docs/examples/databases/get.md +1 -1
  86. package/docs/examples/databases/list-attributes.md +1 -1
  87. package/docs/examples/databases/list-collection-logs.md +1 -1
  88. package/docs/examples/databases/list-collections.md +1 -1
  89. package/docs/examples/databases/list-document-logs.md +1 -1
  90. package/docs/examples/databases/list-documents.md +1 -1
  91. package/docs/examples/databases/list-indexes.md +1 -1
  92. package/docs/examples/databases/list-logs.md +1 -1
  93. package/docs/examples/databases/list.md +1 -1
  94. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  95. package/docs/examples/databases/update-collection.md +1 -1
  96. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  97. package/docs/examples/databases/update-document.md +1 -1
  98. package/docs/examples/databases/update-email-attribute.md +1 -1
  99. package/docs/examples/databases/update-enum-attribute.md +1 -1
  100. package/docs/examples/databases/update-float-attribute.md +1 -1
  101. package/docs/examples/databases/update-integer-attribute.md +1 -1
  102. package/docs/examples/databases/update-ip-attribute.md +1 -1
  103. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  104. package/docs/examples/databases/update-string-attribute.md +1 -1
  105. package/docs/examples/databases/update-url-attribute.md +1 -1
  106. package/docs/examples/databases/update.md +1 -1
  107. package/docs/examples/functions/create-build.md +1 -1
  108. package/docs/examples/functions/create-deployment.md +1 -1
  109. package/docs/examples/functions/create-execution.md +1 -1
  110. package/docs/examples/functions/create-variable.md +1 -1
  111. package/docs/examples/functions/create.md +2 -2
  112. package/docs/examples/functions/delete-deployment.md +1 -1
  113. package/docs/examples/functions/delete-variable.md +1 -1
  114. package/docs/examples/functions/delete.md +1 -1
  115. package/docs/examples/functions/download-deployment.md +1 -1
  116. package/docs/examples/functions/get-deployment.md +1 -1
  117. package/docs/examples/functions/get-execution.md +1 -1
  118. package/docs/examples/functions/get-function-usage.md +1 -1
  119. package/docs/examples/functions/get-usage.md +1 -1
  120. package/docs/examples/functions/get-variable.md +1 -1
  121. package/docs/examples/functions/get.md +1 -1
  122. package/docs/examples/functions/list-deployments.md +1 -1
  123. package/docs/examples/functions/list-executions.md +1 -1
  124. package/docs/examples/functions/list-runtimes.md +1 -1
  125. package/docs/examples/functions/list-variables.md +1 -1
  126. package/docs/examples/functions/list.md +1 -1
  127. package/docs/examples/functions/update-deployment.md +1 -1
  128. package/docs/examples/functions/update-variable.md +1 -1
  129. package/docs/examples/functions/update.md +1 -1
  130. package/docs/examples/graphql/mutation.md +1 -1
  131. package/docs/examples/graphql/query.md +1 -1
  132. package/docs/examples/health/get-antivirus.md +1 -1
  133. package/docs/examples/health/get-cache.md +1 -1
  134. package/docs/examples/health/get-d-b.md +1 -1
  135. package/docs/examples/health/get-pub-sub.md +1 -1
  136. package/docs/examples/health/get-queue-builds.md +1 -1
  137. package/docs/examples/health/get-queue-certificates.md +1 -1
  138. package/docs/examples/health/get-queue-databases.md +1 -1
  139. package/docs/examples/health/get-queue-deletes.md +1 -1
  140. package/docs/examples/health/get-queue-functions.md +1 -1
  141. package/docs/examples/health/get-queue-logs.md +1 -1
  142. package/docs/examples/health/get-queue-mails.md +1 -1
  143. package/docs/examples/health/get-queue-messaging.md +1 -1
  144. package/docs/examples/health/get-queue-migrations.md +1 -1
  145. package/docs/examples/health/get-queue-webhooks.md +1 -1
  146. package/docs/examples/health/get-queue.md +1 -1
  147. package/docs/examples/health/get-storage-local.md +1 -1
  148. package/docs/examples/health/get-time.md +1 -1
  149. package/docs/examples/health/get.md +1 -1
  150. package/docs/examples/locale/get.md +1 -1
  151. package/docs/examples/locale/list-codes.md +1 -1
  152. package/docs/examples/locale/list-continents.md +1 -1
  153. package/docs/examples/locale/list-countries-e-u.md +1 -1
  154. package/docs/examples/locale/list-countries-phones.md +1 -1
  155. package/docs/examples/locale/list-countries.md +1 -1
  156. package/docs/examples/locale/list-currencies.md +1 -1
  157. package/docs/examples/locale/list-languages.md +1 -1
  158. package/docs/examples/messaging/create-a-p-n-s-provider.md +1 -1
  159. package/docs/examples/messaging/create-email.md +1 -1
  160. package/docs/examples/messaging/create-f-c-m-provider.md +1 -1
  161. package/docs/examples/messaging/create-mailgun-provider.md +1 -1
  162. package/docs/examples/messaging/create-msg91provider.md +1 -1
  163. package/docs/examples/messaging/create-push.md +1 -1
  164. package/docs/examples/messaging/create-s-m-s.md +1 -1
  165. package/docs/examples/messaging/create-s-m-t-p-provider.md +18 -0
  166. package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
  167. package/docs/examples/messaging/create-subscriber.md +1 -1
  168. package/docs/examples/messaging/create-telesign-provider.md +1 -1
  169. package/docs/examples/messaging/create-textmagic-provider.md +1 -1
  170. package/docs/examples/messaging/create-topic.md +1 -1
  171. package/docs/examples/messaging/create-twilio-provider.md +1 -1
  172. package/docs/examples/messaging/create-vonage-provider.md +1 -1
  173. package/docs/examples/messaging/delete-provider.md +1 -1
  174. package/docs/examples/messaging/delete-subscriber.md +1 -1
  175. package/docs/examples/messaging/delete-topic.md +1 -1
  176. package/docs/examples/messaging/{update-push-notification.md → delete.md} +2 -2
  177. package/docs/examples/messaging/get-message.md +1 -1
  178. package/docs/examples/messaging/get-provider.md +1 -1
  179. package/docs/examples/messaging/get-subscriber.md +1 -1
  180. package/docs/examples/messaging/get-topic.md +1 -1
  181. package/docs/examples/messaging/list-message-logs.md +1 -1
  182. package/docs/examples/messaging/list-messages.md +1 -1
  183. package/docs/examples/messaging/list-provider-logs.md +1 -1
  184. package/docs/examples/messaging/list-providers.md +1 -1
  185. package/docs/examples/messaging/list-subscriber-logs.md +1 -1
  186. package/docs/examples/messaging/list-subscribers.md +1 -1
  187. package/docs/examples/messaging/list-targets.md +1 -1
  188. package/docs/examples/messaging/list-topic-logs.md +1 -1
  189. package/docs/examples/messaging/list-topics.md +1 -1
  190. package/docs/examples/messaging/update-a-p-n-s-provider.md +1 -1
  191. package/docs/examples/messaging/update-email.md +1 -1
  192. package/docs/examples/messaging/update-f-c-m-provider.md +1 -1
  193. package/docs/examples/messaging/update-mailgun-provider.md +1 -1
  194. package/docs/examples/messaging/update-msg91provider.md +1 -1
  195. package/docs/examples/messaging/update-push.md +18 -0
  196. package/docs/examples/messaging/update-s-m-s.md +1 -1
  197. package/docs/examples/messaging/update-s-m-t-p-provider.md +18 -0
  198. package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
  199. package/docs/examples/messaging/update-telesign-provider.md +1 -1
  200. package/docs/examples/messaging/update-textmagic-provider.md +1 -1
  201. package/docs/examples/messaging/update-topic.md +1 -1
  202. package/docs/examples/messaging/update-twilio-provider.md +1 -1
  203. package/docs/examples/messaging/update-vonage-provider.md +1 -1
  204. package/docs/examples/migrations/create-appwrite-migration.md +1 -1
  205. package/docs/examples/migrations/create-firebase-migration.md +1 -1
  206. package/docs/examples/migrations/create-firebase-o-auth-migration.md +1 -1
  207. package/docs/examples/migrations/create-n-host-migration.md +1 -1
  208. package/docs/examples/migrations/create-supabase-migration.md +1 -1
  209. package/docs/examples/migrations/delete-firebase-auth.md +1 -1
  210. package/docs/examples/migrations/delete.md +1 -1
  211. package/docs/examples/migrations/get-appwrite-report.md +1 -1
  212. package/docs/examples/migrations/get-firebase-report-o-auth.md +1 -1
  213. package/docs/examples/migrations/get-firebase-report.md +1 -1
  214. package/docs/examples/migrations/get-n-host-report.md +1 -1
  215. package/docs/examples/migrations/get-supabase-report.md +1 -1
  216. package/docs/examples/migrations/get.md +1 -1
  217. package/docs/examples/migrations/list-firebase-projects.md +1 -1
  218. package/docs/examples/migrations/list.md +1 -1
  219. package/docs/examples/migrations/retry.md +1 -1
  220. package/docs/examples/project/create-variable.md +1 -1
  221. package/docs/examples/project/delete-variable.md +1 -1
  222. package/docs/examples/project/get-usage.md +1 -1
  223. package/docs/examples/project/get-variable.md +1 -1
  224. package/docs/examples/project/list-variables.md +1 -1
  225. package/docs/examples/project/update-variable.md +1 -1
  226. package/docs/examples/projects/create-key.md +1 -1
  227. package/docs/examples/projects/create-platform.md +2 -2
  228. package/docs/examples/projects/create-smtp-test.md +1 -1
  229. package/docs/examples/projects/create-webhook.md +1 -1
  230. package/docs/examples/projects/create.md +1 -1
  231. package/docs/examples/projects/delete-email-template.md +2 -2
  232. package/docs/examples/projects/delete-key.md +1 -1
  233. package/docs/examples/projects/delete-platform.md +1 -1
  234. package/docs/examples/projects/delete-sms-template.md +2 -2
  235. package/docs/examples/projects/delete-webhook.md +1 -1
  236. package/docs/examples/projects/delete.md +1 -1
  237. package/docs/examples/projects/get-email-template.md +2 -2
  238. package/docs/examples/projects/get-key.md +1 -1
  239. package/docs/examples/projects/get-platform.md +1 -1
  240. package/docs/examples/projects/get-sms-template.md +2 -2
  241. package/docs/examples/projects/get-webhook.md +1 -1
  242. package/docs/examples/projects/get.md +1 -1
  243. package/docs/examples/projects/list-keys.md +1 -1
  244. package/docs/examples/projects/list-platforms.md +1 -1
  245. package/docs/examples/projects/list-webhooks.md +1 -1
  246. package/docs/examples/projects/list.md +1 -1
  247. package/docs/examples/projects/update-auth-duration.md +1 -1
  248. package/docs/examples/projects/update-auth-limit.md +1 -1
  249. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  250. package/docs/examples/projects/update-auth-password-history.md +1 -1
  251. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  252. package/docs/examples/projects/update-auth-status.md +2 -2
  253. package/docs/examples/projects/update-email-template.md +2 -2
  254. package/docs/examples/projects/update-key.md +1 -1
  255. package/docs/examples/projects/update-o-auth2.md +2 -2
  256. package/docs/examples/projects/update-personal-data-check.md +1 -1
  257. package/docs/examples/projects/update-platform.md +1 -1
  258. package/docs/examples/projects/update-service-status-all.md +1 -1
  259. package/docs/examples/projects/update-service-status.md +2 -2
  260. package/docs/examples/projects/update-sms-template.md +2 -2
  261. package/docs/examples/projects/update-smtp.md +1 -1
  262. package/docs/examples/projects/update-team.md +1 -1
  263. package/docs/examples/projects/update-webhook-signature.md +1 -1
  264. package/docs/examples/projects/update-webhook.md +1 -1
  265. package/docs/examples/projects/update.md +1 -1
  266. package/docs/examples/proxy/create-rule.md +2 -2
  267. package/docs/examples/proxy/delete-rule.md +1 -1
  268. package/docs/examples/proxy/get-rule.md +1 -1
  269. package/docs/examples/proxy/list-rules.md +1 -1
  270. package/docs/examples/proxy/update-rule-verification.md +1 -1
  271. package/docs/examples/storage/create-bucket.md +1 -1
  272. package/docs/examples/storage/create-file.md +1 -1
  273. package/docs/examples/storage/delete-bucket.md +1 -1
  274. package/docs/examples/storage/delete-file.md +1 -1
  275. package/docs/examples/storage/get-bucket-usage.md +1 -1
  276. package/docs/examples/storage/get-bucket.md +1 -1
  277. package/docs/examples/storage/get-file-download.md +1 -1
  278. package/docs/examples/storage/get-file-preview.md +1 -1
  279. package/docs/examples/storage/get-file-view.md +1 -1
  280. package/docs/examples/storage/get-file.md +1 -1
  281. package/docs/examples/storage/get-usage.md +1 -1
  282. package/docs/examples/storage/list-buckets.md +1 -1
  283. package/docs/examples/storage/list-files.md +1 -1
  284. package/docs/examples/storage/update-bucket.md +1 -1
  285. package/docs/examples/storage/update-file.md +1 -1
  286. package/docs/examples/teams/create-membership.md +1 -1
  287. package/docs/examples/teams/create.md +1 -1
  288. package/docs/examples/teams/delete-membership.md +1 -1
  289. package/docs/examples/teams/delete.md +1 -1
  290. package/docs/examples/teams/get-membership.md +1 -1
  291. package/docs/examples/teams/get-prefs.md +1 -1
  292. package/docs/examples/teams/get.md +1 -1
  293. package/docs/examples/teams/list-logs.md +1 -1
  294. package/docs/examples/teams/list-memberships.md +1 -1
  295. package/docs/examples/teams/list.md +1 -1
  296. package/docs/examples/teams/update-membership-status.md +1 -1
  297. package/docs/examples/teams/update-membership.md +1 -1
  298. package/docs/examples/teams/update-name.md +1 -1
  299. package/docs/examples/teams/update-prefs.md +1 -1
  300. package/docs/examples/users/create-argon2user.md +1 -1
  301. package/docs/examples/users/create-bcrypt-user.md +1 -1
  302. package/docs/examples/users/create-m-d5user.md +1 -1
  303. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  304. package/docs/examples/users/create-s-h-a-user.md +1 -1
  305. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  306. package/docs/examples/users/create-scrypt-user.md +1 -1
  307. package/docs/examples/users/create-session.md +1 -1
  308. package/docs/examples/users/create-target.md +2 -2
  309. package/docs/examples/users/create-token.md +1 -1
  310. package/docs/examples/users/create.md +1 -1
  311. package/docs/examples/users/delete-authenticator.md +2 -2
  312. package/docs/examples/users/delete-identity.md +1 -1
  313. package/docs/examples/users/delete-session.md +1 -1
  314. package/docs/examples/users/delete-sessions.md +1 -1
  315. package/docs/examples/users/delete-target.md +1 -1
  316. package/docs/examples/users/delete.md +1 -1
  317. package/docs/examples/users/get-prefs.md +1 -1
  318. package/docs/examples/users/get-target.md +1 -1
  319. package/docs/examples/users/get-usage.md +1 -1
  320. package/docs/examples/users/get.md +1 -1
  321. package/docs/examples/users/list-identities.md +1 -1
  322. package/docs/examples/users/list-logs.md +1 -1
  323. package/docs/examples/users/list-memberships.md +1 -1
  324. package/docs/examples/users/list-providers.md +1 -1
  325. package/docs/examples/users/list-sessions.md +1 -1
  326. package/docs/examples/users/list-targets.md +1 -1
  327. package/docs/examples/users/list.md +1 -1
  328. package/docs/examples/users/update-email-verification.md +1 -1
  329. package/docs/examples/users/update-email.md +1 -1
  330. package/docs/examples/users/update-labels.md +1 -1
  331. package/docs/examples/users/update-mfa.md +1 -1
  332. package/docs/examples/users/update-name.md +1 -1
  333. package/docs/examples/users/update-password.md +1 -1
  334. package/docs/examples/users/update-phone-verification.md +1 -1
  335. package/docs/examples/users/update-phone.md +1 -1
  336. package/docs/examples/users/update-prefs.md +1 -1
  337. package/docs/examples/users/update-status.md +1 -1
  338. package/docs/examples/users/update-target.md +1 -1
  339. package/docs/examples/vcs/create-repository-detection.md +1 -1
  340. package/docs/examples/vcs/create-repository.md +1 -1
  341. package/docs/examples/vcs/delete-installation.md +1 -1
  342. package/docs/examples/vcs/get-installation.md +1 -1
  343. package/docs/examples/vcs/get-repository.md +1 -1
  344. package/docs/examples/vcs/list-installations.md +1 -1
  345. package/docs/examples/vcs/list-repositories.md +1 -1
  346. package/docs/examples/vcs/list-repository-branches.md +1 -1
  347. package/docs/examples/vcs/update-external-deployments.md +1 -1
  348. package/package.json +1 -1
  349. package/src/client.ts +1 -1
  350. package/src/enums/a-p-i-service.ts +13 -0
  351. package/src/enums/auth-method.ts +9 -0
  352. package/src/enums/authenticator-factor.ts +3 -0
  353. package/src/enums/authenticator-provider.ts +3 -0
  354. package/src/enums/browser.ts +16 -0
  355. package/src/enums/compression.ts +5 -0
  356. package/src/enums/credit-card.ts +18 -0
  357. package/src/enums/database-usage-range.ts +5 -0
  358. package/src/enums/execution-method.ts +8 -0
  359. package/src/enums/flag.ts +196 -0
  360. package/src/enums/function-usage-range.ts +5 -0
  361. package/src/enums/image-format.ts +7 -0
  362. package/src/enums/image-gravity.ts +11 -0
  363. package/src/enums/index-type.ts +6 -0
  364. package/src/enums/message-type.ts +5 -0
  365. package/src/enums/messaging-provider-type.ts +5 -0
  366. package/src/enums/o-auth-provider.ts +41 -0
  367. package/src/enums/password-version.ts +13 -0
  368. package/src/enums/platform-type.ts +15 -0
  369. package/src/enums/project-usage-range.ts +4 -0
  370. package/src/enums/region.ts +3 -0
  371. package/src/enums/relation-mutate.ts +5 -0
  372. package/src/enums/relationship-type.ts +6 -0
  373. package/src/enums/resource-type.ts +4 -0
  374. package/src/enums/runtime.ts +6 -0
  375. package/src/enums/s-m-t-p-encryption.ts +5 -0
  376. package/src/enums/s-m-t-p-secure.ts +3 -0
  377. package/src/enums/storage-usage-range.ts +5 -0
  378. package/src/enums/template-locale.ts +133 -0
  379. package/src/enums/template-type.ts +5 -0
  380. package/src/enums/user-usage-range.ts +5 -0
  381. package/src/index.ts +32 -1
  382. package/src/models.ts +5 -5
  383. package/src/query.ts +61 -34
  384. package/src/service.ts +7 -7
  385. package/src/services/account.ts +57 -31
  386. package/src/services/assistant.ts +1 -0
  387. package/src/services/avatars.ts +10 -6
  388. package/src/services/console.ts +1 -0
  389. package/src/services/databases.ts +18 -13
  390. package/src/services/functions.ts +14 -10
  391. package/src/services/graphql.ts +1 -0
  392. package/src/services/health.ts +1 -0
  393. package/src/services/locale.ts +1 -0
  394. package/src/services/messaging.ts +242 -76
  395. package/src/services/migrations.ts +3 -2
  396. package/src/services/project.ts +4 -2
  397. package/src/services/projects.ts +41 -63
  398. package/src/services/proxy.ts +4 -2
  399. package/src/services/storage.ts +16 -11
  400. package/src/services/teams.ts +1 -0
  401. package/src/services/users.ts +17 -12
  402. package/src/services/vcs.ts +1 -0
  403. package/types/enums/a-p-i-service.d.ts +13 -0
  404. package/types/enums/auth-method.d.ts +9 -0
  405. package/types/enums/authenticator-factor.d.ts +3 -0
  406. package/types/enums/authenticator-provider.d.ts +3 -0
  407. package/types/enums/browser.d.ts +16 -0
  408. package/types/enums/compression.d.ts +5 -0
  409. package/types/enums/credit-card.d.ts +18 -0
  410. package/types/enums/database-usage-range.d.ts +5 -0
  411. package/types/enums/execution-method.d.ts +8 -0
  412. package/types/enums/flag.d.ts +196 -0
  413. package/types/enums/function-usage-range.d.ts +5 -0
  414. package/types/enums/image-format.d.ts +7 -0
  415. package/types/enums/image-gravity.d.ts +11 -0
  416. package/types/enums/index-type.d.ts +6 -0
  417. package/types/enums/message-type.d.ts +5 -0
  418. package/types/enums/messaging-provider-type.d.ts +5 -0
  419. package/types/enums/o-auth-provider.d.ts +41 -0
  420. package/types/enums/password-version.d.ts +13 -0
  421. package/types/enums/platform-type.d.ts +15 -0
  422. package/types/enums/project-usage-range.d.ts +4 -0
  423. package/types/enums/region.d.ts +3 -0
  424. package/types/enums/relation-mutate.d.ts +5 -0
  425. package/types/enums/relationship-type.d.ts +6 -0
  426. package/types/enums/resource-type.d.ts +4 -0
  427. package/types/enums/runtime.d.ts +6 -0
  428. package/types/enums/s-m-t-p-encryption.d.ts +5 -0
  429. package/types/enums/s-m-t-p-secure.d.ts +3 -0
  430. package/types/enums/storage-usage-range.d.ts +5 -0
  431. package/types/enums/template-locale.d.ts +133 -0
  432. package/types/enums/template-type.d.ts +5 -0
  433. package/types/enums/user-usage-range.d.ts +5 -0
  434. package/types/index.d.ts +31 -0
  435. package/types/models.d.ts +5 -5
  436. package/types/query.d.ts +10 -3
  437. package/types/services/account.d.ts +32 -20
  438. package/types/services/avatars.d.ts +9 -6
  439. package/types/services/databases.d.ts +17 -13
  440. package/types/services/functions.d.ts +13 -10
  441. package/types/services/messaging.d.ts +82 -36
  442. package/types/services/migrations.d.ts +2 -2
  443. package/types/services/project.d.ts +3 -2
  444. package/types/services/projects.d.ts +40 -42
  445. package/types/services/proxy.d.ts +3 -2
  446. package/types/services/storage.d.ts +15 -11
  447. package/types/services/users.d.ts +16 -12
@@ -1,18 +1,20 @@
1
1
  import { Service } from '../service';
2
2
  import { Client } from '../client';
3
3
  import type { Models } from '../models';
4
+ import { MessageType } from '../enums/message-type';
5
+ import { SMTPEncryption } from '../enums/s-m-t-p-encryption';
4
6
  export declare class Messaging extends Service {
5
7
  constructor(client: Client);
6
8
  /**
7
9
  * List messages
8
10
  *
9
11
  *
10
- * @param {string} queries
12
+ * @param {string[]} queries
11
13
  * @param {string} search
12
14
  * @throws {AppwriteException}
13
15
  * @returns {Promise}
14
16
  */
15
- listMessages(queries?: string, search?: string): Promise<Models.MessageList>;
17
+ listMessages(queries?: string[], search?: string): Promise<Models.MessageList>;
16
18
  /**
17
19
  * Create an email.
18
20
  *
@@ -25,14 +27,13 @@ export declare class Messaging extends Service {
25
27
  * @param {string[]} targets
26
28
  * @param {string[]} cc
27
29
  * @param {string[]} bcc
28
- * @param {string} description
29
- * @param {string} status
30
+ * @param {MessageType} status
30
31
  * @param {boolean} html
31
32
  * @param {string} scheduledAt
32
33
  * @throws {AppwriteException}
33
34
  * @returns {Promise}
34
35
  */
35
- createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], description?: string, status?: string, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
36
+ createEmail(messageId: string, subject: string, content: string, topics?: string[], users?: string[], targets?: string[], cc?: string[], bcc?: string[], status?: MessageType, html?: boolean, scheduledAt?: string): Promise<Models.Message>;
36
37
  /**
37
38
  * Update an email.
38
39
  *
@@ -42,9 +43,8 @@ export declare class Messaging extends Service {
42
43
  * @param {string[]} users
43
44
  * @param {string[]} targets
44
45
  * @param {string} subject
45
- * @param {string} description
46
46
  * @param {string} content
47
- * @param {string} status
47
+ * @param {MessageType} status
48
48
  * @param {boolean} html
49
49
  * @param {string[]} cc
50
50
  * @param {string[]} bcc
@@ -52,7 +52,7 @@ export declare class Messaging extends Service {
52
52
  * @throws {AppwriteException}
53
53
  * @returns {Promise}
54
54
  */
55
- updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, description?: string, content?: string, status?: string, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string): Promise<Models.Message>;
55
+ updateEmail(messageId: string, topics?: string[], users?: string[], targets?: string[], subject?: string, content?: string, status?: MessageType, html?: boolean, cc?: string[], bcc?: string[], scheduledAt?: string): Promise<Models.Message>;
56
56
  /**
57
57
  * Create a push notification.
58
58
  *
@@ -63,7 +63,6 @@ export declare class Messaging extends Service {
63
63
  * @param {string[]} topics
64
64
  * @param {string[]} users
65
65
  * @param {string[]} targets
66
- * @param {string} description
67
66
  * @param {object} data
68
67
  * @param {string} action
69
68
  * @param {string} icon
@@ -71,12 +70,12 @@ export declare class Messaging extends Service {
71
70
  * @param {string} color
72
71
  * @param {string} tag
73
72
  * @param {string} badge
74
- * @param {string} status
73
+ * @param {MessageType} status
75
74
  * @param {string} scheduledAt
76
75
  * @throws {AppwriteException}
77
76
  * @returns {Promise}
78
77
  */
79
- createPush(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[], description?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
78
+ createPush(messageId: string, title: string, body: string, topics?: string[], users?: string[], targets?: string[], data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: string, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
80
79
  /**
81
80
  * Update a push notification.
82
81
  *
@@ -85,7 +84,6 @@ export declare class Messaging extends Service {
85
84
  * @param {string[]} topics
86
85
  * @param {string[]} users
87
86
  * @param {string[]} targets
88
- * @param {string} description
89
87
  * @param {string} title
90
88
  * @param {string} body
91
89
  * @param {object} data
@@ -95,12 +93,12 @@ export declare class Messaging extends Service {
95
93
  * @param {string} color
96
94
  * @param {string} tag
97
95
  * @param {number} badge
98
- * @param {string} status
96
+ * @param {MessageType} status
99
97
  * @param {string} scheduledAt
100
98
  * @throws {AppwriteException}
101
99
  * @returns {Promise}
102
100
  */
103
- updatePushNotification(messageId: string, topics?: string[], users?: string[], targets?: string[], description?: string, title?: string, body?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, status?: string, scheduledAt?: string): Promise<Models.Message>;
101
+ updatePush(messageId: string, topics?: string[], users?: string[], targets?: string[], title?: string, body?: string, data?: object, action?: string, icon?: string, sound?: string, color?: string, tag?: string, badge?: number, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
104
102
  /**
105
103
  * Create an SMS.
106
104
  *
@@ -110,13 +108,12 @@ export declare class Messaging extends Service {
110
108
  * @param {string[]} topics
111
109
  * @param {string[]} users
112
110
  * @param {string[]} targets
113
- * @param {string} description
114
- * @param {string} status
111
+ * @param {MessageType} status
115
112
  * @param {string} scheduledAt
116
113
  * @throws {AppwriteException}
117
114
  * @returns {Promise}
118
115
  */
119
- createSMS(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], description?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
116
+ createSMS(messageId: string, content: string, topics?: string[], users?: string[], targets?: string[], status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
120
117
  /**
121
118
  * Update an SMS.
122
119
  *
@@ -125,14 +122,13 @@ export declare class Messaging extends Service {
125
122
  * @param {string[]} topics
126
123
  * @param {string[]} users
127
124
  * @param {string[]} targets
128
- * @param {string} description
129
125
  * @param {string} content
130
- * @param {string} status
126
+ * @param {MessageType} status
131
127
  * @param {string} scheduledAt
132
128
  * @throws {AppwriteException}
133
129
  * @returns {Promise}
134
130
  */
135
- updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[], description?: string, content?: string, status?: string, scheduledAt?: string): Promise<Models.Message>;
131
+ updateSMS(messageId: string, topics?: string[], users?: string[], targets?: string[], content?: string, status?: MessageType, scheduledAt?: string): Promise<Models.Message>;
136
132
  /**
137
133
  * Get a message
138
134
  *
@@ -142,6 +138,15 @@ export declare class Messaging extends Service {
142
138
  * @returns {Promise}
143
139
  */
144
140
  getMessage(messageId: string): Promise<Models.Message>;
141
+ /**
142
+ * Delete a message
143
+ *
144
+ *
145
+ * @param {string} messageId
146
+ * @throws {AppwriteException}
147
+ * @returns {Promise}
148
+ */
149
+ delete(messageId: string): Promise<{}>;
145
150
  /**
146
151
  * List message logs
147
152
  *
@@ -159,21 +164,21 @@ export declare class Messaging extends Service {
159
164
  * attribute.
160
165
  *
161
166
  * @param {string} messageId
162
- * @param {string} queries
167
+ * @param {string[]} queries
163
168
  * @throws {AppwriteException}
164
169
  * @returns {Promise}
165
170
  */
166
- listTargets(messageId: string, queries?: string): Promise<Models.TargetList>;
171
+ listTargets(messageId: string, queries?: string[]): Promise<Models.TargetList>;
167
172
  /**
168
173
  * List providers
169
174
  *
170
175
  *
171
- * @param {string} queries
176
+ * @param {string[]} queries
172
177
  * @param {string} search
173
178
  * @throws {AppwriteException}
174
179
  * @returns {Promise}
175
180
  */
176
- listProviders(queries?: string, search?: string): Promise<Models.ProviderList>;
181
+ listProviders(queries?: string[], search?: string): Promise<Models.ProviderList>;
177
182
  /**
178
183
  * Create APNS provider
179
184
  *
@@ -237,15 +242,15 @@ export declare class Messaging extends Service {
237
242
  * @param {string} apiKey
238
243
  * @param {string} domain
239
244
  * @param {boolean} isEuRegion
240
- * @param {boolean} enabled
241
245
  * @param {string} fromName
242
246
  * @param {string} fromEmail
243
247
  * @param {string} replyToName
244
248
  * @param {string} replyToEmail
249
+ * @param {boolean} enabled
245
250
  * @throws {AppwriteException}
246
251
  * @returns {Promise}
247
252
  */
248
- createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
253
+ createMailgunProvider(providerId: string, name: string, apiKey?: string, domain?: string, isEuRegion?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
249
254
  /**
250
255
  * Update Mailgun provider
251
256
  *
@@ -299,15 +304,15 @@ export declare class Messaging extends Service {
299
304
  * @param {string} providerId
300
305
  * @param {string} name
301
306
  * @param {string} apiKey
302
- * @param {boolean} enabled
303
307
  * @param {string} fromName
304
308
  * @param {string} fromEmail
305
309
  * @param {string} replyToName
306
310
  * @param {string} replyToEmail
311
+ * @param {boolean} enabled
307
312
  * @throws {AppwriteException}
308
313
  * @returns {Promise}
309
314
  */
310
- createSendgridProvider(providerId: string, name: string, apiKey?: string, enabled?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
315
+ createSendgridProvider(providerId: string, name: string, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
311
316
  /**
312
317
  * Update Sendgrid provider
313
318
  *
@@ -324,6 +329,49 @@ export declare class Messaging extends Service {
324
329
  * @returns {Promise}
325
330
  */
326
331
  updateSendgridProvider(providerId: string, name?: string, enabled?: boolean, apiKey?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string): Promise<Models.Provider>;
332
+ /**
333
+ * Create SMTP provider
334
+ *
335
+ *
336
+ * @param {string} providerId
337
+ * @param {string} name
338
+ * @param {string} host
339
+ * @param {number} port
340
+ * @param {string} username
341
+ * @param {string} password
342
+ * @param {SMTPEncryption} encryption
343
+ * @param {boolean} autoTLS
344
+ * @param {string} mailer
345
+ * @param {string} fromName
346
+ * @param {string} fromEmail
347
+ * @param {string} replyToName
348
+ * @param {string} replyToEmail
349
+ * @param {boolean} enabled
350
+ * @throws {AppwriteException}
351
+ * @returns {Promise}
352
+ */
353
+ createSMTPProvider(providerId: string, name: string, host: string, port?: number, username?: string, password?: string, encryption?: SMTPEncryption, autoTLS?: boolean, mailer?: string, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
354
+ /**
355
+ * Update SMTP provider
356
+ *
357
+ *
358
+ * @param {string} providerId
359
+ * @param {string} name
360
+ * @param {string} host
361
+ * @param {number} port
362
+ * @param {string} username
363
+ * @param {string} password
364
+ * @param {SMTPEncryption} encryption
365
+ * @param {boolean} autoTLS
366
+ * @param {string} fromName
367
+ * @param {string} fromEmail
368
+ * @param {string} replyToName
369
+ * @param {string} replyToEmail
370
+ * @param {boolean} enabled
371
+ * @throws {AppwriteException}
372
+ * @returns {Promise}
373
+ */
374
+ updateSMTPProvider(providerId: string, name?: string, host?: string, port?: number, username?: string, password?: string, encryption?: SMTPEncryption, autoTLS?: boolean, fromName?: string, fromEmail?: string, replyToName?: string, replyToEmail?: string, enabled?: boolean): Promise<Models.Provider>;
327
375
  /**
328
376
  * Create Telesign provider
329
377
  *
@@ -478,23 +526,22 @@ export declare class Messaging extends Service {
478
526
  * List topics.
479
527
  *
480
528
  *
481
- * @param {string} queries
529
+ * @param {string[]} queries
482
530
  * @param {string} search
483
531
  * @throws {AppwriteException}
484
532
  * @returns {Promise}
485
533
  */
486
- listTopics(queries?: string, search?: string): Promise<Models.TopicList>;
534
+ listTopics(queries?: string[], search?: string): Promise<Models.TopicList>;
487
535
  /**
488
536
  * Create a topic.
489
537
  *
490
538
  *
491
539
  * @param {string} topicId
492
540
  * @param {string} name
493
- * @param {string} description
494
541
  * @throws {AppwriteException}
495
542
  * @returns {Promise}
496
543
  */
497
- createTopic(topicId: string, name: string, description?: string): Promise<Models.Topic>;
544
+ createTopic(topicId: string, name: string): Promise<Models.Topic>;
498
545
  /**
499
546
  * Get a topic.
500
547
  *
@@ -510,11 +557,10 @@ export declare class Messaging extends Service {
510
557
  *
511
558
  * @param {string} topicId
512
559
  * @param {string} name
513
- * @param {string} description
514
560
  * @throws {AppwriteException}
515
561
  * @returns {Promise}
516
562
  */
517
- updateTopic(topicId: string, name?: string, description?: string): Promise<Models.Topic>;
563
+ updateTopic(topicId: string, name?: string): Promise<Models.Topic>;
518
564
  /**
519
565
  * Delete a topic.
520
566
  *
@@ -539,12 +585,12 @@ export declare class Messaging extends Service {
539
585
  *
540
586
  *
541
587
  * @param {string} topicId
542
- * @param {string} queries
588
+ * @param {string[]} queries
543
589
  * @param {string} search
544
590
  * @throws {AppwriteException}
545
591
  * @returns {Promise}
546
592
  */
547
- listSubscribers(topicId: string, queries?: string, search?: string): Promise<Models.SubscriberList>;
593
+ listSubscribers(topicId: string, queries?: string[], search?: string): Promise<Models.SubscriberList>;
548
594
  /**
549
595
  * Create a subscriber.
550
596
  *
@@ -7,12 +7,12 @@ export declare class Migrations extends Service {
7
7
  * List Migrations
8
8
  *
9
9
  *
10
- * @param {string} queries
10
+ * @param {string[]} queries
11
11
  * @param {string} search
12
12
  * @throws {AppwriteException}
13
13
  * @returns {Promise}
14
14
  */
15
- list(queries?: string, search?: string): Promise<Models.MigrationList>;
15
+ list(queries?: string[], search?: string): Promise<Models.MigrationList>;
16
16
  /**
17
17
  * Migrate Appwrite Data
18
18
  *
@@ -1,6 +1,7 @@
1
1
  import { Service } from '../service';
2
2
  import { Client } from '../client';
3
3
  import type { Models } from '../models';
4
+ import { ProjectUsageRange } from '../enums/project-usage-range';
4
5
  export declare class Project extends Service {
5
6
  constructor(client: Client);
6
7
  /**
@@ -9,11 +10,11 @@ export declare class Project extends Service {
9
10
  *
10
11
  * @param {string} startDate
11
12
  * @param {string} endDate
12
- * @param {string} period
13
+ * @param {ProjectUsageRange} period
13
14
  * @throws {AppwriteException}
14
15
  * @returns {Promise}
15
16
  */
16
- getUsage(startDate: string, endDate: string, period?: string): Promise<Models.UsageProject>;
17
+ getUsage(startDate: string, endDate: string, period?: ProjectUsageRange): Promise<Models.UsageProject>;
17
18
  /**
18
19
  * List Variables
19
20
  *
@@ -1,6 +1,14 @@
1
1
  import { Service } from '../service';
2
2
  import { Client } from '../client';
3
3
  import type { Models } from '../models';
4
+ import { Region } from '../enums/region';
5
+ import { AuthMethod } from '../enums/auth-method';
6
+ import { OAuthProvider } from '../enums/o-auth-provider';
7
+ import { PlatformType } from '../enums/platform-type';
8
+ import { APIService } from '../enums/a-p-i-service';
9
+ import { SMTPSecure } from '../enums/s-m-t-p-secure';
10
+ import { TemplateType } from '../enums/template-type';
11
+ import { TemplateLocale } from '../enums/template-locale';
4
12
  export declare class Projects extends Service {
5
13
  constructor(client: Client);
6
14
  /**
@@ -20,7 +28,7 @@ export declare class Projects extends Service {
20
28
  * @param {string} projectId
21
29
  * @param {string} name
22
30
  * @param {string} teamId
23
- * @param {string} region
31
+ * @param {Region} region
24
32
  * @param {string} description
25
33
  * @param {string} logo
26
34
  * @param {string} url
@@ -33,7 +41,7 @@ export declare class Projects extends Service {
33
41
  * @throws {AppwriteException}
34
42
  * @returns {Promise}
35
43
  */
36
- create(projectId: string, name: string, teamId: string, region?: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
44
+ create(projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string): Promise<Models.Project>;
37
45
  /**
38
46
  * Get project
39
47
  *
@@ -101,16 +109,6 @@ export declare class Projects extends Service {
101
109
  * @returns {Promise}
102
110
  */
103
111
  updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project>;
104
- /**
105
- * Update Project user minimum sessions factors
106
- *
107
- *
108
- * @param {string} projectId
109
- * @param {number} factors
110
- * @throws {AppwriteException}
111
- * @returns {Promise}
112
- */
113
- updateAuthMfaFactors(projectId: string, factors: number): Promise<Models.Project>;
114
112
  /**
115
113
  * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
116
114
  *
@@ -146,12 +144,12 @@ export declare class Projects extends Service {
146
144
  *
147
145
  *
148
146
  * @param {string} projectId
149
- * @param {string} method
147
+ * @param {AuthMethod} method
150
148
  * @param {boolean} status
151
149
  * @throws {AppwriteException}
152
150
  * @returns {Promise}
153
151
  */
154
- updateAuthStatus(projectId: string, method: string, status: boolean): Promise<Models.Project>;
152
+ updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project>;
155
153
  /**
156
154
  * List keys
157
155
  *
@@ -211,14 +209,14 @@ export declare class Projects extends Service {
211
209
  *
212
210
  *
213
211
  * @param {string} projectId
214
- * @param {string} provider
212
+ * @param {OAuthProvider} provider
215
213
  * @param {string} appId
216
214
  * @param {string} secret
217
215
  * @param {boolean} enabled
218
216
  * @throws {AppwriteException}
219
217
  * @returns {Promise}
220
218
  */
221
- updateOAuth2(projectId: string, provider: string, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
219
+ updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project>;
222
220
  /**
223
221
  * List platforms
224
222
  *
@@ -233,7 +231,7 @@ export declare class Projects extends Service {
233
231
  *
234
232
  *
235
233
  * @param {string} projectId
236
- * @param {string} type
234
+ * @param {PlatformType} type
237
235
  * @param {string} name
238
236
  * @param {string} key
239
237
  * @param {string} store
@@ -241,7 +239,7 @@ export declare class Projects extends Service {
241
239
  * @throws {AppwriteException}
242
240
  * @returns {Promise}
243
241
  */
244
- createPlatform(projectId: string, type: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
242
+ createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform>;
245
243
  /**
246
244
  * Get platform
247
245
  *
@@ -281,12 +279,12 @@ export declare class Projects extends Service {
281
279
  *
282
280
  *
283
281
  * @param {string} projectId
284
- * @param {string} service
282
+ * @param {APIService} service
285
283
  * @param {boolean} status
286
284
  * @throws {AppwriteException}
287
285
  * @returns {Promise}
288
286
  */
289
- updateServiceStatus(projectId: string, service: string, status: boolean): Promise<Models.Project>;
287
+ updateServiceStatus(projectId: string, service: APIService, status: boolean): Promise<Models.Project>;
290
288
  /**
291
289
  * Update all service status
292
290
  *
@@ -310,11 +308,11 @@ export declare class Projects extends Service {
310
308
  * @param {number} port
311
309
  * @param {string} username
312
310
  * @param {string} password
313
- * @param {string} secure
311
+ * @param {SMTPSecure} secure
314
312
  * @throws {AppwriteException}
315
313
  * @returns {Promise}
316
314
  */
317
- updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: string): Promise<Models.Project>;
315
+ updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project>;
318
316
  /**
319
317
  * Create SMTP test
320
318
  *
@@ -328,11 +326,11 @@ export declare class Projects extends Service {
328
326
  * @param {number} port
329
327
  * @param {string} username
330
328
  * @param {string} password
331
- * @param {string} secure
329
+ * @param {SMTPSecure} secure
332
330
  * @throws {AppwriteException}
333
331
  * @returns {Promise}
334
332
  */
335
- createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: string): Promise<{}>;
333
+ createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
336
334
  /**
337
335
  * Update Project Team
338
336
  *
@@ -348,19 +346,19 @@ export declare class Projects extends Service {
348
346
  *
349
347
  *
350
348
  * @param {string} projectId
351
- * @param {string} type
352
- * @param {string} locale
349
+ * @param {TemplateType} type
350
+ * @param {TemplateLocale} locale
353
351
  * @throws {AppwriteException}
354
352
  * @returns {Promise}
355
353
  */
356
- getEmailTemplate(projectId: string, type: string, locale: string): Promise<Models.EmailTemplate>;
354
+ getEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.EmailTemplate>;
357
355
  /**
358
356
  * Update custom email templates
359
357
  *
360
358
  *
361
359
  * @param {string} projectId
362
- * @param {string} type
363
- * @param {string} locale
360
+ * @param {TemplateType} type
361
+ * @param {TemplateLocale} locale
364
362
  * @param {string} subject
365
363
  * @param {string} message
366
364
  * @param {string} senderName
@@ -369,52 +367,52 @@ export declare class Projects extends Service {
369
367
  * @throws {AppwriteException}
370
368
  * @returns {Promise}
371
369
  */
372
- updateEmailTemplate(projectId: string, type: string, locale: string, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
370
+ updateEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.Project>;
373
371
  /**
374
372
  * Reset custom email template
375
373
  *
376
374
  *
377
375
  * @param {string} projectId
378
- * @param {string} type
379
- * @param {string} locale
376
+ * @param {TemplateType} type
377
+ * @param {TemplateLocale} locale
380
378
  * @throws {AppwriteException}
381
379
  * @returns {Promise}
382
380
  */
383
- deleteEmailTemplate(projectId: string, type: string, locale: string): Promise<Models.EmailTemplate>;
381
+ deleteEmailTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.EmailTemplate>;
384
382
  /**
385
383
  * Get custom SMS template
386
384
  *
387
385
  *
388
386
  * @param {string} projectId
389
- * @param {string} type
390
- * @param {string} locale
387
+ * @param {TemplateType} type
388
+ * @param {TemplateLocale} locale
391
389
  * @throws {AppwriteException}
392
390
  * @returns {Promise}
393
391
  */
394
- getSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
392
+ getSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.SmsTemplate>;
395
393
  /**
396
394
  * Update custom SMS template
397
395
  *
398
396
  *
399
397
  * @param {string} projectId
400
- * @param {string} type
401
- * @param {string} locale
398
+ * @param {TemplateType} type
399
+ * @param {TemplateLocale} locale
402
400
  * @param {string} message
403
401
  * @throws {AppwriteException}
404
402
  * @returns {Promise}
405
403
  */
406
- updateSmsTemplate(projectId: string, type: string, locale: string, message: string): Promise<Models.SmsTemplate>;
404
+ updateSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale, message: string): Promise<Models.SmsTemplate>;
407
405
  /**
408
406
  * Reset custom SMS template
409
407
  *
410
408
  *
411
409
  * @param {string} projectId
412
- * @param {string} type
413
- * @param {string} locale
410
+ * @param {TemplateType} type
411
+ * @param {TemplateLocale} locale
414
412
  * @throws {AppwriteException}
415
413
  * @returns {Promise}
416
414
  */
417
- deleteSmsTemplate(projectId: string, type: string, locale: string): Promise<Models.SmsTemplate>;
415
+ deleteSmsTemplate(projectId: string, type: TemplateType, locale: TemplateLocale): Promise<Models.SmsTemplate>;
418
416
  /**
419
417
  * List webhooks
420
418
  *
@@ -1,6 +1,7 @@
1
1
  import { Service } from '../service';
2
2
  import { Client } from '../client';
3
3
  import type { Models } from '../models';
4
+ import { ResourceType } from '../enums/resource-type';
4
5
  export declare class Proxy extends Service {
5
6
  constructor(client: Client);
6
7
  /**
@@ -21,12 +22,12 @@ export declare class Proxy extends Service {
21
22
  * Create a new proxy rule.
22
23
  *
23
24
  * @param {string} domain
24
- * @param {string} resourceType
25
+ * @param {ResourceType} resourceType
25
26
  * @param {string} resourceId
26
27
  * @throws {AppwriteException}
27
28
  * @returns {Promise}
28
29
  */
29
- createRule(domain: string, resourceType: string, resourceId?: string): Promise<Models.ProxyRule>;
30
+ createRule(domain: string, resourceType: ResourceType, resourceId?: string): Promise<Models.ProxyRule>;
30
31
  /**
31
32
  * Get Rule
32
33
  *