@appwrite.io/console 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (322) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +3353 -1497
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +3350 -1498
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +3353 -1497
  7. package/docs/examples/account/create-anonymous-session.md +1 -1
  8. package/docs/examples/account/create-email-session.md +1 -1
  9. package/docs/examples/account/create-j-w-t.md +1 -1
  10. package/docs/examples/account/create-magic-u-r-l-session.md +1 -1
  11. package/docs/examples/account/create-o-auth2session.md +1 -1
  12. package/docs/examples/account/create-phone-session.md +1 -1
  13. package/docs/examples/account/create-phone-verification.md +1 -1
  14. package/docs/examples/account/create-recovery.md +1 -1
  15. package/docs/examples/account/create-verification.md +1 -1
  16. package/docs/examples/account/create.md +1 -1
  17. package/docs/examples/account/{create-with-invite-code.md → delete-identity.md} +2 -2
  18. package/docs/examples/account/delete-session.md +1 -1
  19. package/docs/examples/account/delete-sessions.md +1 -1
  20. package/docs/examples/account/get-prefs.md +1 -1
  21. package/docs/examples/account/get-session.md +1 -1
  22. package/docs/examples/account/get.md +1 -1
  23. package/docs/examples/account/list-identities.md +18 -0
  24. package/docs/examples/account/list-logs.md +1 -1
  25. package/docs/examples/account/list-sessions.md +1 -1
  26. package/docs/examples/account/update-email.md +1 -1
  27. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  28. package/docs/examples/account/update-name.md +1 -1
  29. package/docs/examples/account/update-password.md +1 -1
  30. package/docs/examples/account/update-phone-session.md +1 -1
  31. package/docs/examples/account/update-phone-verification.md +1 -1
  32. package/docs/examples/account/update-phone.md +1 -1
  33. package/docs/examples/account/update-prefs.md +1 -1
  34. package/docs/examples/account/update-recovery.md +1 -1
  35. package/docs/examples/account/update-session.md +1 -1
  36. package/docs/examples/account/update-status.md +1 -1
  37. package/docs/examples/account/update-verification.md +1 -1
  38. package/docs/examples/assistant/chat.md +18 -0
  39. package/docs/examples/avatars/get-browser.md +1 -1
  40. package/docs/examples/avatars/get-credit-card.md +1 -1
  41. package/docs/examples/avatars/get-favicon.md +1 -1
  42. package/docs/examples/avatars/get-flag.md +1 -1
  43. package/docs/examples/avatars/get-image.md +1 -1
  44. package/docs/examples/avatars/get-initials.md +1 -1
  45. package/docs/examples/avatars/get-q-r.md +1 -1
  46. package/docs/examples/console/variables.md +1 -1
  47. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  48. package/docs/examples/databases/create-collection.md +1 -1
  49. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  50. package/docs/examples/databases/create-document.md +1 -1
  51. package/docs/examples/databases/create-email-attribute.md +1 -1
  52. package/docs/examples/databases/create-enum-attribute.md +1 -1
  53. package/docs/examples/databases/create-float-attribute.md +1 -1
  54. package/docs/examples/databases/create-index.md +1 -1
  55. package/docs/examples/databases/create-integer-attribute.md +1 -1
  56. package/docs/examples/databases/create-ip-attribute.md +1 -1
  57. package/docs/examples/databases/create-relationship-attribute.md +1 -1
  58. package/docs/examples/databases/create-string-attribute.md +1 -1
  59. package/docs/examples/databases/create-url-attribute.md +1 -1
  60. package/docs/examples/databases/create.md +1 -1
  61. package/docs/examples/databases/delete-attribute.md +1 -1
  62. package/docs/examples/databases/delete-collection.md +1 -1
  63. package/docs/examples/databases/delete-document.md +1 -1
  64. package/docs/examples/databases/delete-index.md +1 -1
  65. package/docs/examples/databases/delete.md +1 -1
  66. package/docs/examples/databases/get-attribute.md +1 -1
  67. package/docs/examples/databases/get-collection-usage.md +1 -1
  68. package/docs/examples/databases/get-collection.md +1 -1
  69. package/docs/examples/databases/get-database-usage.md +1 -1
  70. package/docs/examples/databases/get-document.md +1 -1
  71. package/docs/examples/databases/get-index.md +1 -1
  72. package/docs/examples/databases/get-usage.md +1 -1
  73. package/docs/examples/databases/get.md +1 -1
  74. package/docs/examples/databases/list-attributes.md +1 -1
  75. package/docs/examples/databases/list-collection-logs.md +1 -1
  76. package/docs/examples/databases/list-collections.md +1 -1
  77. package/docs/examples/databases/list-document-logs.md +1 -1
  78. package/docs/examples/databases/list-documents.md +1 -1
  79. package/docs/examples/databases/list-indexes.md +1 -1
  80. package/docs/examples/databases/list-logs.md +1 -1
  81. package/docs/examples/databases/list.md +1 -1
  82. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  83. package/docs/examples/databases/update-collection.md +1 -1
  84. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  85. package/docs/examples/databases/update-document.md +1 -1
  86. package/docs/examples/databases/update-email-attribute.md +1 -1
  87. package/docs/examples/databases/update-enum-attribute.md +1 -1
  88. package/docs/examples/databases/update-float-attribute.md +1 -1
  89. package/docs/examples/databases/update-integer-attribute.md +1 -1
  90. package/docs/examples/databases/update-ip-attribute.md +1 -1
  91. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  92. package/docs/examples/databases/update-string-attribute.md +1 -1
  93. package/docs/examples/databases/update-url-attribute.md +1 -1
  94. package/docs/examples/databases/update.md +1 -1
  95. package/docs/examples/functions/create-build.md +1 -1
  96. package/docs/examples/functions/create-deployment.md +2 -2
  97. package/docs/examples/functions/create-execution.md +1 -1
  98. package/docs/examples/functions/create-variable.md +1 -1
  99. package/docs/examples/functions/create.md +2 -2
  100. package/docs/examples/functions/delete-deployment.md +1 -1
  101. package/docs/examples/functions/delete-variable.md +1 -1
  102. package/docs/examples/functions/delete.md +1 -1
  103. package/docs/examples/functions/download-deployment.md +14 -0
  104. package/docs/examples/functions/get-deployment.md +1 -1
  105. package/docs/examples/functions/get-execution.md +1 -1
  106. package/docs/examples/functions/get-function-usage.md +1 -1
  107. package/docs/examples/functions/get-usage.md +1 -1
  108. package/docs/examples/functions/get-variable.md +1 -1
  109. package/docs/examples/functions/get.md +1 -1
  110. package/docs/examples/functions/list-deployments.md +1 -1
  111. package/docs/examples/functions/list-executions.md +1 -1
  112. package/docs/examples/functions/list-runtimes.md +1 -1
  113. package/docs/examples/functions/list-variables.md +1 -1
  114. package/docs/examples/functions/list.md +1 -1
  115. package/docs/examples/functions/update-deployment.md +1 -1
  116. package/docs/examples/functions/update-variable.md +1 -1
  117. package/docs/examples/functions/update.md +1 -1
  118. package/docs/examples/graphql/mutation.md +1 -1
  119. package/docs/examples/graphql/query.md +1 -1
  120. package/docs/examples/health/get-antivirus.md +1 -1
  121. package/docs/examples/health/get-cache.md +1 -1
  122. package/docs/examples/health/get-d-b.md +1 -1
  123. package/docs/examples/health/get-pub-sub.md +1 -1
  124. package/docs/examples/health/get-queue-builds.md +18 -0
  125. package/docs/examples/health/get-queue-certificates.md +1 -1
  126. package/docs/examples/health/get-queue-databases.md +18 -0
  127. package/docs/examples/health/get-queue-deletes.md +18 -0
  128. package/docs/examples/health/get-queue-functions.md +1 -1
  129. package/docs/examples/health/get-queue-logs.md +1 -1
  130. package/docs/examples/health/get-queue-mails.md +18 -0
  131. package/docs/examples/health/get-queue-messaging.md +18 -0
  132. package/docs/examples/health/get-queue-migrations.md +18 -0
  133. package/docs/examples/health/get-queue-webhooks.md +1 -1
  134. package/docs/examples/health/get-queue.md +1 -1
  135. package/docs/examples/health/get-storage-local.md +1 -1
  136. package/docs/examples/health/get-time.md +1 -1
  137. package/docs/examples/health/get.md +1 -1
  138. package/docs/examples/locale/get.md +1 -1
  139. package/docs/examples/locale/list-codes.md +18 -0
  140. package/docs/examples/locale/list-continents.md +1 -1
  141. package/docs/examples/locale/list-countries-e-u.md +1 -1
  142. package/docs/examples/locale/list-countries-phones.md +1 -1
  143. package/docs/examples/locale/list-countries.md +1 -1
  144. package/docs/examples/locale/list-currencies.md +1 -1
  145. package/docs/examples/locale/list-languages.md +1 -1
  146. package/docs/examples/migrations/create-appwrite-migration.md +18 -0
  147. package/docs/examples/migrations/create-firebase-migration.md +18 -0
  148. package/docs/examples/migrations/create-firebase-o-auth-migration.md +18 -0
  149. package/docs/examples/migrations/create-n-host-migration.md +18 -0
  150. package/docs/examples/migrations/create-supabase-migration.md +18 -0
  151. package/docs/examples/migrations/delete-firebase-auth.md +18 -0
  152. package/docs/examples/migrations/delete.md +18 -0
  153. package/docs/examples/migrations/get-appwrite-report.md +18 -0
  154. package/docs/examples/migrations/get-firebase-report-o-auth.md +18 -0
  155. package/docs/examples/migrations/get-firebase-report.md +18 -0
  156. package/docs/examples/migrations/get-n-host-report.md +18 -0
  157. package/docs/examples/migrations/get-supabase-report.md +18 -0
  158. package/docs/examples/migrations/get.md +18 -0
  159. package/docs/examples/migrations/list-firebase-projects.md +18 -0
  160. package/docs/examples/migrations/list.md +18 -0
  161. package/docs/examples/migrations/retry.md +18 -0
  162. package/docs/examples/project/create-variable.md +18 -0
  163. package/docs/examples/project/delete-variable.md +18 -0
  164. package/docs/examples/project/get-usage.md +2 -2
  165. package/docs/examples/project/get-variable.md +18 -0
  166. package/docs/examples/project/list-variables.md +18 -0
  167. package/docs/examples/project/update-variable.md +18 -0
  168. package/docs/examples/projects/create-key.md +1 -1
  169. package/docs/examples/projects/create-platform.md +1 -1
  170. package/docs/examples/projects/create-webhook.md +1 -1
  171. package/docs/examples/projects/create.md +2 -2
  172. package/docs/examples/projects/delete-email-template.md +18 -0
  173. package/docs/examples/projects/delete-key.md +1 -1
  174. package/docs/examples/projects/delete-platform.md +1 -1
  175. package/docs/examples/projects/delete-sms-template.md +18 -0
  176. package/docs/examples/projects/delete-webhook.md +1 -1
  177. package/docs/examples/projects/delete.md +2 -2
  178. package/docs/examples/projects/get-email-template.md +18 -0
  179. package/docs/examples/projects/get-key.md +1 -1
  180. package/docs/examples/projects/get-platform.md +1 -1
  181. package/docs/examples/projects/get-sms-template.md +18 -0
  182. package/docs/examples/projects/get-webhook.md +1 -1
  183. package/docs/examples/projects/get.md +1 -1
  184. package/docs/examples/projects/list-keys.md +1 -1
  185. package/docs/examples/projects/list-platforms.md +1 -1
  186. package/docs/examples/projects/list-webhooks.md +1 -1
  187. package/docs/examples/projects/list.md +1 -1
  188. package/docs/examples/projects/update-auth-duration.md +1 -1
  189. package/docs/examples/projects/update-auth-limit.md +1 -1
  190. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  191. package/docs/examples/projects/update-auth-password-history.md +1 -1
  192. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  193. package/docs/examples/projects/update-auth-status.md +1 -1
  194. package/docs/examples/projects/update-email-template.md +18 -0
  195. package/docs/examples/projects/update-key.md +1 -1
  196. package/docs/examples/projects/update-o-auth2.md +1 -1
  197. package/docs/examples/projects/{delete-domain.md → update-personal-data-check.md} +2 -2
  198. package/docs/examples/projects/update-platform.md +1 -1
  199. package/docs/examples/projects/{create-domain.md → update-service-status-all.md} +2 -2
  200. package/docs/examples/projects/update-service-status.md +1 -1
  201. package/docs/examples/projects/update-sms-template.md +18 -0
  202. package/docs/examples/projects/{get-domain.md → update-smtp-configuration.md} +2 -2
  203. package/docs/examples/projects/{list-domains.md → update-team.md} +2 -2
  204. package/docs/examples/projects/update-webhook-signature.md +1 -1
  205. package/docs/examples/projects/update-webhook.md +1 -1
  206. package/docs/examples/projects/update.md +1 -1
  207. package/docs/examples/proxy/create-rule.md +18 -0
  208. package/docs/examples/proxy/delete-rule.md +18 -0
  209. package/docs/examples/proxy/get-rule.md +18 -0
  210. package/docs/examples/proxy/list-rules.md +18 -0
  211. package/docs/examples/proxy/update-rule-verification.md +18 -0
  212. package/docs/examples/storage/create-bucket.md +1 -1
  213. package/docs/examples/storage/create-file.md +1 -1
  214. package/docs/examples/storage/delete-bucket.md +1 -1
  215. package/docs/examples/storage/delete-file.md +1 -1
  216. package/docs/examples/storage/get-bucket-usage.md +1 -1
  217. package/docs/examples/storage/get-bucket.md +1 -1
  218. package/docs/examples/storage/get-file-download.md +1 -1
  219. package/docs/examples/storage/get-file-preview.md +1 -1
  220. package/docs/examples/storage/get-file-view.md +1 -1
  221. package/docs/examples/storage/get-file.md +1 -1
  222. package/docs/examples/storage/get-usage.md +1 -1
  223. package/docs/examples/storage/list-buckets.md +1 -1
  224. package/docs/examples/storage/list-files.md +1 -1
  225. package/docs/examples/storage/update-bucket.md +1 -1
  226. package/docs/examples/storage/update-file.md +1 -1
  227. package/docs/examples/teams/create-membership.md +2 -2
  228. package/docs/examples/teams/create.md +1 -1
  229. package/docs/examples/teams/delete-membership.md +1 -1
  230. package/docs/examples/teams/delete.md +1 -1
  231. package/docs/examples/teams/get-membership.md +1 -1
  232. package/docs/examples/teams/get-prefs.md +1 -1
  233. package/docs/examples/teams/get.md +1 -1
  234. package/docs/examples/teams/list-logs.md +1 -1
  235. package/docs/examples/teams/list-memberships.md +1 -1
  236. package/docs/examples/teams/list.md +1 -1
  237. package/docs/examples/teams/update-membership-status.md +1 -1
  238. package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
  239. package/docs/examples/teams/update-name.md +1 -1
  240. package/docs/examples/teams/update-prefs.md +1 -1
  241. package/docs/examples/users/create-argon2user.md +1 -1
  242. package/docs/examples/users/create-bcrypt-user.md +1 -1
  243. package/docs/examples/users/create-m-d5user.md +1 -1
  244. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  245. package/docs/examples/users/create-s-h-a-user.md +1 -1
  246. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  247. package/docs/examples/users/create-scrypt-user.md +1 -1
  248. package/docs/examples/users/create.md +1 -1
  249. package/docs/examples/users/delete-identity.md +18 -0
  250. package/docs/examples/users/delete-session.md +1 -1
  251. package/docs/examples/users/delete-sessions.md +1 -1
  252. package/docs/examples/users/delete.md +1 -1
  253. package/docs/examples/users/get-prefs.md +1 -1
  254. package/docs/examples/users/get-usage.md +1 -1
  255. package/docs/examples/users/get.md +1 -1
  256. package/docs/examples/users/list-identities.md +18 -0
  257. package/docs/examples/users/list-logs.md +1 -1
  258. package/docs/examples/users/list-memberships.md +1 -1
  259. package/docs/examples/users/list-sessions.md +1 -1
  260. package/docs/examples/users/list.md +1 -1
  261. package/docs/examples/users/update-email-verification.md +1 -1
  262. package/docs/examples/users/update-email.md +1 -1
  263. package/docs/examples/users/update-labels.md +18 -0
  264. package/docs/examples/users/update-name.md +1 -1
  265. package/docs/examples/users/update-password.md +1 -1
  266. package/docs/examples/users/update-phone-verification.md +1 -1
  267. package/docs/examples/users/update-phone.md +1 -1
  268. package/docs/examples/users/update-prefs.md +1 -1
  269. package/docs/examples/users/update-status.md +1 -1
  270. package/docs/examples/vcs/create-repository-detection.md +18 -0
  271. package/docs/examples/vcs/create-repository.md +18 -0
  272. package/docs/examples/vcs/delete-installation.md +18 -0
  273. package/docs/examples/vcs/get-installation.md +18 -0
  274. package/docs/examples/vcs/get-repository.md +18 -0
  275. package/docs/examples/vcs/list-installations.md +18 -0
  276. package/docs/examples/vcs/list-repositories.md +18 -0
  277. package/docs/examples/vcs/list-repository-branches.md +18 -0
  278. package/docs/examples/vcs/update-external-deployments.md +18 -0
  279. package/package.json +3 -2
  280. package/src/client.ts +2 -2
  281. package/src/index.ts +4 -0
  282. package/src/models.ts +863 -233
  283. package/src/query.ts +1 -1
  284. package/src/role.ts +72 -6
  285. package/src/services/account.ts +1052 -1055
  286. package/src/services/assistant.ts +38 -0
  287. package/src/services/avatars.ts +338 -337
  288. package/src/services/console.ts +16 -16
  289. package/src/services/databases.ts +2170 -2140
  290. package/src/services/functions.ts +804 -657
  291. package/src/services/graphql.ts +47 -47
  292. package/src/services/health.ts +373 -204
  293. package/src/services/locale.ts +156 -137
  294. package/src/services/migrations.ts +707 -0
  295. package/src/services/project.ts +178 -20
  296. package/src/services/projects.ts +1511 -1256
  297. package/src/services/proxy.ts +150 -0
  298. package/src/services/storage.ts +572 -577
  299. package/src/services/teams.ts +498 -501
  300. package/src/services/users.ts +1091 -1001
  301. package/src/services/vcs.ts +272 -0
  302. package/types/index.d.ts +4 -0
  303. package/types/models.d.ts +863 -233
  304. package/types/role.d.ts +62 -0
  305. package/types/services/account.d.ts +116 -104
  306. package/types/services/assistant.d.ts +14 -0
  307. package/types/services/avatars.d.ts +18 -17
  308. package/types/services/console.d.ts +2 -2
  309. package/types/services/databases.d.ts +111 -105
  310. package/types/services/functions.d.ts +95 -55
  311. package/types/services/graphql.d.ts +4 -4
  312. package/types/services/health.d.ts +97 -26
  313. package/types/services/locale.d.ts +24 -14
  314. package/types/services/migrations.d.ts +185 -0
  315. package/types/services/project.d.ts +60 -3
  316. package/types/services/projects.d.ts +174 -104
  317. package/types/services/proxy.d.ts +59 -0
  318. package/types/services/storage.d.ts +29 -28
  319. package/types/services/teams.d.ts +36 -35
  320. package/types/services/users.d.ts +105 -66
  321. package/types/services/vcs.d.ts +97 -0
  322. package/docs/examples/projects/update-domain-verification.md +0 -18
package/types/models.d.ts CHANGED
@@ -77,6 +77,19 @@ export declare namespace Models {
77
77
  */
78
78
  sessions: Session[];
79
79
  };
80
+ /**
81
+ * Identities List
82
+ */
83
+ type IdentityList = {
84
+ /**
85
+ * Total number of identities documents that matched your query.
86
+ */
87
+ total: number;
88
+ /**
89
+ * List of identities.
90
+ */
91
+ identities: Identity[];
92
+ };
80
93
  /**
81
94
  * Logs List
82
95
  */
@@ -155,6 +168,45 @@ export declare namespace Models {
155
168
  */
156
169
  functions: Function[];
157
170
  };
171
+ /**
172
+ * Installations List
173
+ */
174
+ type InstallationList = {
175
+ /**
176
+ * Total number of installations documents that matched your query.
177
+ */
178
+ total: number;
179
+ /**
180
+ * List of installations.
181
+ */
182
+ installations: Installation[];
183
+ };
184
+ /**
185
+ * Provider Repositories List
186
+ */
187
+ type ProviderRepositoryList = {
188
+ /**
189
+ * Total number of providerRepositories documents that matched your query.
190
+ */
191
+ total: number;
192
+ /**
193
+ * List of providerRepositories.
194
+ */
195
+ providerRepositories: ProviderRepository[];
196
+ };
197
+ /**
198
+ * Branches List
199
+ */
200
+ type BranchList = {
201
+ /**
202
+ * Total number of branches documents that matched your query.
203
+ */
204
+ total: number;
205
+ /**
206
+ * List of branches.
207
+ */
208
+ branches: Branch[];
209
+ };
158
210
  /**
159
211
  * Runtimes List
160
212
  */
@@ -246,19 +298,6 @@ export declare namespace Models {
246
298
  */
247
299
  platforms: Platform[];
248
300
  };
249
- /**
250
- * Domains List
251
- */
252
- type DomainList = {
253
- /**
254
- * Total number of domains documents that matched your query.
255
- */
256
- total: number;
257
- /**
258
- * List of domains.
259
- */
260
- domains: Domain[];
261
- };
262
301
  /**
263
302
  * Countries List
264
303
  */
@@ -337,6 +376,58 @@ export declare namespace Models {
337
376
  */
338
377
  variables: Variable[];
339
378
  };
379
+ /**
380
+ * Rule List
381
+ */
382
+ type ProxyRuleList = {
383
+ /**
384
+ * Total number of rules documents that matched your query.
385
+ */
386
+ total: number;
387
+ /**
388
+ * List of rules.
389
+ */
390
+ rules: ProxyRule[];
391
+ };
392
+ /**
393
+ * Locale codes list
394
+ */
395
+ type LocaleCodeList = {
396
+ /**
397
+ * Total number of localeCodes documents that matched your query.
398
+ */
399
+ total: number;
400
+ /**
401
+ * List of localeCodes.
402
+ */
403
+ localeCodes: LocaleCode[];
404
+ };
405
+ /**
406
+ * Migrations List
407
+ */
408
+ type MigrationList = {
409
+ /**
410
+ * Total number of migrations documents that matched your query.
411
+ */
412
+ total: number;
413
+ /**
414
+ * List of migrations.
415
+ */
416
+ migrations: Migration[];
417
+ };
418
+ /**
419
+ * Migrations Firebase Projects List
420
+ */
421
+ type FirebaseProjectList = {
422
+ /**
423
+ * Total number of projects documents that matched your query.
424
+ */
425
+ total: number;
426
+ /**
427
+ * List of projects.
428
+ */
429
+ projects: FirebaseProject[];
430
+ };
340
431
  /**
341
432
  * Database
342
433
  */
@@ -357,6 +448,10 @@ export declare namespace Models {
357
448
  * Database update date in ISO 8601 format.
358
449
  */
359
450
  $updatedAt: string;
451
+ /**
452
+ * If database is enabled. Can be 'enabled' or 'disabled'. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
453
+ */
454
+ enabled: boolean;
360
455
  };
361
456
  /**
362
457
  * Collection
@@ -375,7 +470,7 @@ export declare namespace Models {
375
470
  */
376
471
  $updatedAt: string;
377
472
  /**
378
- * Collection permissions. [Learn more about permissions](/docs/permissions).
473
+ * Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
379
474
  */
380
475
  $permissions: string[];
381
476
  /**
@@ -387,11 +482,11 @@ export declare namespace Models {
387
482
  */
388
483
  name: string;
389
484
  /**
390
- * Collection enabled.
485
+ * Collection enabled. Can be 'enabled' or 'disabled'. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
391
486
  */
392
487
  enabled: boolean;
393
488
  /**
394
- * Whether document-level permissions are enabled. [Learn more about permissions](/docs/permissions).
489
+ * Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
395
490
  */
396
491
  documentSecurity: boolean;
397
492
  /**
@@ -432,6 +527,10 @@ export declare namespace Models {
432
527
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
433
528
  */
434
529
  status: string;
530
+ /**
531
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
532
+ */
533
+ error: string;
435
534
  /**
436
535
  * Is attribute required?
437
536
  */
@@ -465,6 +564,10 @@ export declare namespace Models {
465
564
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
466
565
  */
467
566
  status: string;
567
+ /**
568
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
569
+ */
570
+ error: string;
468
571
  /**
469
572
  * Is attribute required?
470
573
  */
@@ -502,6 +605,10 @@ export declare namespace Models {
502
605
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
503
606
  */
504
607
  status: string;
608
+ /**
609
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
610
+ */
611
+ error: string;
505
612
  /**
506
613
  * Is attribute required?
507
614
  */
@@ -539,6 +646,10 @@ export declare namespace Models {
539
646
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
540
647
  */
541
648
  status: string;
649
+ /**
650
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
651
+ */
652
+ error: string;
542
653
  /**
543
654
  * Is attribute required?
544
655
  */
@@ -568,6 +679,10 @@ export declare namespace Models {
568
679
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
569
680
  */
570
681
  status: string;
682
+ /**
683
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
684
+ */
685
+ error: string;
571
686
  /**
572
687
  * Is attribute required?
573
688
  */
@@ -601,6 +716,10 @@ export declare namespace Models {
601
716
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
602
717
  */
603
718
  status: string;
719
+ /**
720
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
721
+ */
722
+ error: string;
604
723
  /**
605
724
  * Is attribute required?
606
725
  */
@@ -638,6 +757,10 @@ export declare namespace Models {
638
757
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
639
758
  */
640
759
  status: string;
760
+ /**
761
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
762
+ */
763
+ error: string;
641
764
  /**
642
765
  * Is attribute required?
643
766
  */
@@ -671,6 +794,10 @@ export declare namespace Models {
671
794
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
672
795
  */
673
796
  status: string;
797
+ /**
798
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
799
+ */
800
+ error: string;
674
801
  /**
675
802
  * Is attribute required?
676
803
  */
@@ -704,6 +831,10 @@ export declare namespace Models {
704
831
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
705
832
  */
706
833
  status: string;
834
+ /**
835
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
836
+ */
837
+ error: string;
707
838
  /**
708
839
  * Is attribute required?
709
840
  */
@@ -737,6 +868,10 @@ export declare namespace Models {
737
868
  * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
738
869
  */
739
870
  status: string;
871
+ /**
872
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
873
+ */
874
+ error: string;
740
875
  /**
741
876
  * Is attribute required?
742
877
  */
@@ -786,6 +921,10 @@ export declare namespace Models {
786
921
  * Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
787
922
  */
788
923
  status: string;
924
+ /**
925
+ * Error message. Displays error generated on failure of creating or deleting an index.
926
+ */
927
+ error: string;
789
928
  /**
790
929
  * Index attributes.
791
930
  */
@@ -820,7 +959,7 @@ export declare namespace Models {
820
959
  */
821
960
  $updatedAt: string;
822
961
  /**
823
- * Document permissions. [Learn more about permissions](/docs/permissions).
962
+ * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
824
963
  */
825
964
  $permissions: string[];
826
965
  [key: string]: any;
@@ -954,6 +1093,10 @@ export declare namespace Models {
954
1093
  * User status. Pass `true` for enabled and `false` for disabled.
955
1094
  */
956
1095
  status: boolean;
1096
+ /**
1097
+ * Labels for the user.
1098
+ */
1099
+ labels: string[];
957
1100
  /**
958
1101
  * Password update time in ISO 8601 format.
959
1102
  */
@@ -978,6 +1121,10 @@ export declare namespace Models {
978
1121
  * User preferences as a key-value object
979
1122
  */
980
1123
  prefs: Preferences;
1124
+ /**
1125
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1126
+ */
1127
+ accessedAt: string;
981
1128
  };
982
1129
  /**
983
1130
  * AlgoMD5
@@ -1082,59 +1229,6 @@ export declare namespace Models {
1082
1229
  */
1083
1230
  threads: number;
1084
1231
  };
1085
- /**
1086
- * Account
1087
- */
1088
- type Account<Preferences extends Models.Preferences> = {
1089
- /**
1090
- * User ID.
1091
- */
1092
- $id: string;
1093
- /**
1094
- * User creation date in ISO 8601 format.
1095
- */
1096
- $createdAt: string;
1097
- /**
1098
- * User update date in ISO 8601 format.
1099
- */
1100
- $updatedAt: string;
1101
- /**
1102
- * User name.
1103
- */
1104
- name: string;
1105
- /**
1106
- * User registration date in ISO 8601 format.
1107
- */
1108
- registration: string;
1109
- /**
1110
- * User status. Pass `true` for enabled and `false` for disabled.
1111
- */
1112
- status: boolean;
1113
- /**
1114
- * Password update time in ISO 8601 format.
1115
- */
1116
- passwordUpdate: string;
1117
- /**
1118
- * User email address.
1119
- */
1120
- email: string;
1121
- /**
1122
- * User phone number in E.164 format.
1123
- */
1124
- phone: string;
1125
- /**
1126
- * Email verification status.
1127
- */
1128
- emailVerification: boolean;
1129
- /**
1130
- * Phone verification status.
1131
- */
1132
- phoneVerification: boolean;
1133
- /**
1134
- * User preferences as a key-value object
1135
- */
1136
- prefs: Preferences;
1137
- };
1138
1232
  /**
1139
1233
  * Preferences
1140
1234
  */
@@ -1246,6 +1340,51 @@ export declare namespace Models {
1246
1340
  */
1247
1341
  current: boolean;
1248
1342
  };
1343
+ /**
1344
+ * Identity
1345
+ */
1346
+ type Identity = {
1347
+ /**
1348
+ * Identity ID.
1349
+ */
1350
+ $id: string;
1351
+ /**
1352
+ * Identity creation date in ISO 8601 format.
1353
+ */
1354
+ $createdAt: string;
1355
+ /**
1356
+ * Identity update date in ISO 8601 format.
1357
+ */
1358
+ $updatedAt: string;
1359
+ /**
1360
+ * User ID.
1361
+ */
1362
+ userId: string;
1363
+ /**
1364
+ * Identity Provider.
1365
+ */
1366
+ provider: string;
1367
+ /**
1368
+ * ID of the User in the Identity Provider.
1369
+ */
1370
+ providerUid: string;
1371
+ /**
1372
+ * Email of the User in the Identity Provider.
1373
+ */
1374
+ providerEmail: string;
1375
+ /**
1376
+ * Identity Provider Access Token.
1377
+ */
1378
+ providerAccessToken: string;
1379
+ /**
1380
+ * The date of when the access token expires in ISO 8601 format.
1381
+ */
1382
+ providerAccessTokenExpiry: string;
1383
+ /**
1384
+ * Identity Provider Refresh Token.
1385
+ */
1386
+ providerRefreshToken: string;
1387
+ };
1249
1388
  /**
1250
1389
  * Token
1251
1390
  */
@@ -1313,6 +1452,19 @@ export declare namespace Models {
1313
1452
  */
1314
1453
  currency: string;
1315
1454
  };
1455
+ /**
1456
+ * LocaleCode
1457
+ */
1458
+ type LocaleCode = {
1459
+ /**
1460
+ * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1461
+ */
1462
+ code: string;
1463
+ /**
1464
+ * Locale name
1465
+ */
1466
+ name: string;
1467
+ };
1316
1468
  /**
1317
1469
  * File
1318
1470
  */
@@ -1334,7 +1486,7 @@ export declare namespace Models {
1334
1486
  */
1335
1487
  $updatedAt: string;
1336
1488
  /**
1337
- * File permissions. [Learn more about permissions](/docs/permissions).
1489
+ * File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1338
1490
  */
1339
1491
  $permissions: string[];
1340
1492
  /**
@@ -1379,11 +1531,11 @@ export declare namespace Models {
1379
1531
  */
1380
1532
  $updatedAt: string;
1381
1533
  /**
1382
- * Bucket permissions. [Learn more about permissions](/docs/permissions).
1534
+ * Bucket permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1383
1535
  */
1384
1536
  $permissions: string[];
1385
1537
  /**
1386
- * Whether file-level security is enabled. [Learn more about permissions](/docs/permissions).
1538
+ * Whether file-level security is enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
1387
1539
  */
1388
1540
  fileSecurity: boolean;
1389
1541
  /**
@@ -1525,6 +1677,14 @@ export declare namespace Models {
1525
1677
  * Function enabled.
1526
1678
  */
1527
1679
  enabled: boolean;
1680
+ /**
1681
+ * Is the function deployed with the latest configuration? This is set to false if you&#039;ve changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the function to update it with the latest configuration.
1682
+ */
1683
+ live: boolean;
1684
+ /**
1685
+ * Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
1686
+ */
1687
+ logging: boolean;
1528
1688
  /**
1529
1689
  * Function execution runtime.
1530
1690
  */
@@ -1549,103 +1709,255 @@ export declare namespace Models {
1549
1709
  * Function execution timeout in seconds.
1550
1710
  */
1551
1711
  timeout: number;
1552
- };
1553
- /**
1554
- * Runtime
1555
- */
1556
- type Runtime = {
1557
1712
  /**
1558
- * Runtime ID.
1713
+ * The entrypoint file used to execute the deployment.
1559
1714
  */
1560
- $id: string;
1715
+ entrypoint: string;
1561
1716
  /**
1562
- * Runtime Name.
1717
+ * The build command used to build the deployment.
1563
1718
  */
1564
- name: string;
1719
+ commands: string;
1565
1720
  /**
1566
- * Runtime version.
1721
+ * Version of Open Runtimes used for the function.
1567
1722
  */
1568
1723
  version: string;
1569
1724
  /**
1570
- * Base Docker image used to build the runtime.
1725
+ * Function VCS (Version Control System) installation id.
1571
1726
  */
1572
- base: string;
1727
+ installationId: string;
1573
1728
  /**
1574
- * Image name of Docker Hub.
1729
+ * VCS (Version Control System) Repository ID
1575
1730
  */
1576
- image: string;
1731
+ providerRepositoryId: string;
1577
1732
  /**
1578
- * Name of the logo image.
1733
+ * VCS (Version Control System) branch name
1579
1734
  */
1580
- logo: string;
1735
+ providerBranch: string;
1581
1736
  /**
1582
- * List of supported architectures.
1737
+ * Path to function in VCS (Version Control System) repository
1583
1738
  */
1584
- supports: string[];
1739
+ providerRootDirectory: string;
1740
+ /**
1741
+ * Is VCS (Version Control System) connection is in silent mode? When in silence mode, no comments will be posted on the repository pull or merge requests
1742
+ */
1743
+ providerSilentMode: boolean;
1585
1744
  };
1586
1745
  /**
1587
- * Deployment
1746
+ * Installation
1588
1747
  */
1589
- type Deployment = {
1748
+ type Installation = {
1590
1749
  /**
1591
- * Deployment ID.
1750
+ * Function ID.
1592
1751
  */
1593
1752
  $id: string;
1594
1753
  /**
1595
- * Deployment creation date in ISO 8601 format.
1754
+ * Function creation date in ISO 8601 format.
1596
1755
  */
1597
1756
  $createdAt: string;
1598
1757
  /**
1599
- * Deployment update date in ISO 8601 format.
1758
+ * Function update date in ISO 8601 format.
1600
1759
  */
1601
1760
  $updatedAt: string;
1602
1761
  /**
1603
- * Resource ID.
1762
+ * VCS (Version Control System) provider name.
1604
1763
  */
1605
- resourceId: string;
1764
+ provider: string;
1606
1765
  /**
1607
- * Resource type.
1766
+ * VCS (Version Control System) organization name.
1608
1767
  */
1609
- resourceType: string;
1768
+ organization: string;
1610
1769
  /**
1611
- * The entrypoint file to use to execute the deployment code.
1770
+ * VCS (Version Control System) installation ID.
1612
1771
  */
1613
- entrypoint: string;
1772
+ providerInstallationId: string;
1773
+ };
1774
+ /**
1775
+ * ProviderRepository
1776
+ */
1777
+ type ProviderRepository = {
1614
1778
  /**
1615
- * The code size in bytes.
1779
+ * VCS (Version Control System) repository ID.
1616
1780
  */
1617
- size: number;
1781
+ id: string;
1618
1782
  /**
1619
- * The current build ID.
1783
+ * VCS (Version Control System) repository name.
1620
1784
  */
1621
- buildId: string;
1785
+ name: string;
1622
1786
  /**
1623
- * Whether the deployment should be automatically activated.
1787
+ * VCS (Version Control System) organization name
1624
1788
  */
1625
- activate: boolean;
1789
+ organization: string;
1626
1790
  /**
1627
- * The deployment status. Possible values are &quot;processing&quot;, &quot;building&quot;, &quot;pending&quot;, &quot;ready&quot;, and &quot;failed&quot;.
1791
+ * VCS (Version Control System) provider name.
1628
1792
  */
1629
- status: string;
1793
+ provider: string;
1630
1794
  /**
1631
- * The build stdout.
1795
+ * Is VCS (Version Control System) repository private?
1632
1796
  */
1633
- buildStdout: string;
1797
+ private: boolean;
1634
1798
  /**
1635
- * The build stderr.
1799
+ * Auto-detected runtime suggestion. Empty if getting response of getRuntime().
1636
1800
  */
1637
- buildStderr: string;
1801
+ runtime: string;
1638
1802
  /**
1639
- * The current build time in seconds.
1803
+ * Last commit date in ISO 8601 format.
1640
1804
  */
1641
- buildTime: number;
1805
+ pushedAt: string;
1642
1806
  };
1643
1807
  /**
1644
- * Execution
1808
+ * Detection
1645
1809
  */
1646
- type Execution = {
1810
+ type Detection = {
1647
1811
  /**
1648
- * Execution ID.
1812
+ * Runtime
1813
+ */
1814
+ runtime: string;
1815
+ };
1816
+ /**
1817
+ * Branch
1818
+ */
1819
+ type Branch = {
1820
+ /**
1821
+ * Branch Name.
1822
+ */
1823
+ name: string;
1824
+ };
1825
+ /**
1826
+ * Runtime
1827
+ */
1828
+ type Runtime = {
1829
+ /**
1830
+ * Runtime ID.
1831
+ */
1832
+ $id: string;
1833
+ /**
1834
+ * Runtime Name.
1835
+ */
1836
+ name: string;
1837
+ /**
1838
+ * Runtime version.
1839
+ */
1840
+ version: string;
1841
+ /**
1842
+ * Base Docker image used to build the runtime.
1843
+ */
1844
+ base: string;
1845
+ /**
1846
+ * Image name of Docker Hub.
1847
+ */
1848
+ image: string;
1849
+ /**
1850
+ * Name of the logo image.
1851
+ */
1852
+ logo: string;
1853
+ /**
1854
+ * List of supported architectures.
1855
+ */
1856
+ supports: string[];
1857
+ };
1858
+ /**
1859
+ * Deployment
1860
+ */
1861
+ type Deployment = {
1862
+ /**
1863
+ * Deployment ID.
1864
+ */
1865
+ $id: string;
1866
+ /**
1867
+ * Deployment creation date in ISO 8601 format.
1868
+ */
1869
+ $createdAt: string;
1870
+ /**
1871
+ * Deployment update date in ISO 8601 format.
1872
+ */
1873
+ $updatedAt: string;
1874
+ /**
1875
+ * Type of deployment.
1876
+ */
1877
+ type: string;
1878
+ /**
1879
+ * Resource ID.
1880
+ */
1881
+ resourceId: string;
1882
+ /**
1883
+ * Resource type.
1884
+ */
1885
+ resourceType: string;
1886
+ /**
1887
+ * The entrypoint file to use to execute the deployment code.
1888
+ */
1889
+ entrypoint: string;
1890
+ /**
1891
+ * The code size in bytes.
1892
+ */
1893
+ size: number;
1894
+ /**
1895
+ * The current build ID.
1896
+ */
1897
+ buildId: string;
1898
+ /**
1899
+ * Whether the deployment should be automatically activated.
1900
+ */
1901
+ activate: boolean;
1902
+ /**
1903
+ * The deployment status. Possible values are &quot;processing&quot;, &quot;building&quot;, &quot;waiting&quot;, &quot;ready&quot;, and &quot;failed&quot;.
1904
+ */
1905
+ status: string;
1906
+ /**
1907
+ * The build logs.
1908
+ */
1909
+ buildLogs: string;
1910
+ /**
1911
+ * The current build time in seconds.
1912
+ */
1913
+ buildTime: number;
1914
+ /**
1915
+ * The name of the vcs provider repository
1916
+ */
1917
+ providerRepositoryName: string;
1918
+ /**
1919
+ * The name of the vcs provider repository owner
1920
+ */
1921
+ providerRepositoryOwner: string;
1922
+ /**
1923
+ * The url of the vcs provider repository
1924
+ */
1925
+ providerRepositoryUrl: string;
1926
+ /**
1927
+ * The branch of the vcs repository
1928
+ */
1929
+ providerBranch: string;
1930
+ /**
1931
+ * The commit hash of the vcs commit
1932
+ */
1933
+ providerCommitHash: string;
1934
+ /**
1935
+ * The url of vcs commit author
1936
+ */
1937
+ providerCommitAuthorUrl: string;
1938
+ /**
1939
+ * The name of vcs commit author
1940
+ */
1941
+ providerCommitAuthor: string;
1942
+ /**
1943
+ * The commit message
1944
+ */
1945
+ providerCommitMessage: string;
1946
+ /**
1947
+ * The url of the vcs commit
1948
+ */
1949
+ providerCommitUrl: string;
1950
+ /**
1951
+ * The branch of the vcs repository
1952
+ */
1953
+ providerBranchUrl: string;
1954
+ };
1955
+ /**
1956
+ * Execution
1957
+ */
1958
+ type Execution = {
1959
+ /**
1960
+ * Execution ID.
1649
1961
  */
1650
1962
  $id: string;
1651
1963
  /**
@@ -1673,23 +1985,39 @@ export declare namespace Models {
1673
1985
  */
1674
1986
  status: string;
1675
1987
  /**
1676
- * The script status code.
1988
+ * HTTP request method type.
1989
+ */
1990
+ requestMethod: string;
1991
+ /**
1992
+ * HTTP request path and query.
1993
+ */
1994
+ requestPath: string;
1995
+ /**
1996
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1677
1997
  */
1678
- statusCode: number;
1998
+ requestHeaders: Headers[];
1679
1999
  /**
1680
- * The script response output string. Logs the last 4,000 characters of the execution response output.
2000
+ * HTTP response status code.
1681
2001
  */
1682
- response: string;
2002
+ responseStatusCode: number;
1683
2003
  /**
1684
- * The script stdout output string. Logs the last 4,000 characters of the execution stdout output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
2004
+ * HTTP response body. This will return empty unless execution is created as synchronous.
1685
2005
  */
1686
- stdout: string;
2006
+ responseBody: string;
1687
2007
  /**
1688
- * The script stderr output string. Logs the last 4,000 characters of the execution stderr output. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
2008
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1689
2009
  */
1690
- stderr: string;
2010
+ responseHeaders: Headers[];
1691
2011
  /**
1692
- * The script execution duration in seconds.
2012
+ * Function logs. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
2013
+ */
2014
+ logs: string;
2015
+ /**
2016
+ * Function errors. Includes the last 4,000 characters. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
2017
+ */
2018
+ errors: string;
2019
+ /**
2020
+ * Function execution duration in seconds.
1693
2021
  */
1694
2022
  duration: number;
1695
2023
  };
@@ -1773,6 +2101,10 @@ export declare namespace Models {
1773
2101
  * Whether or not to check user&#039;s password against most commonly used passwords.
1774
2102
  */
1775
2103
  authPasswordDictionary: boolean;
2104
+ /**
2105
+ * Whether or not to check the user password for similarity with their personal data.
2106
+ */
2107
+ authPersonalDataCheck: boolean;
1776
2108
  /**
1777
2109
  * List of Providers.
1778
2110
  */
@@ -1790,9 +2122,41 @@ export declare namespace Models {
1790
2122
  */
1791
2123
  keys: Key[];
1792
2124
  /**
1793
- * List of Domains.
2125
+ * Status for custom SMTP
2126
+ */
2127
+ smtpEnabled: boolean;
2128
+ /**
2129
+ * SMTP sender name
1794
2130
  */
1795
- domains: Domain[];
2131
+ smtpSenderName: string;
2132
+ /**
2133
+ * SMTP sender email
2134
+ */
2135
+ smtpSenderEmail: string;
2136
+ /**
2137
+ * SMTP reply to email
2138
+ */
2139
+ smtpReplyTo: string;
2140
+ /**
2141
+ * SMTP server host name
2142
+ */
2143
+ smtpHost: string;
2144
+ /**
2145
+ * SMTP server port
2146
+ */
2147
+ smtpPort: number;
2148
+ /**
2149
+ * SMTP server username
2150
+ */
2151
+ smtpUsername: string;
2152
+ /**
2153
+ * SMTP server password
2154
+ */
2155
+ smtpPassword: string;
2156
+ /**
2157
+ * SMTP server secure protocol
2158
+ */
2159
+ smtpSecure: string;
1796
2160
  /**
1797
2161
  * Email/Password auth method status
1798
2162
  */
@@ -1936,7 +2300,7 @@ export declare namespace Models {
1936
2300
  */
1937
2301
  secret: string;
1938
2302
  /**
1939
- * Most recent access date in ISO 8601 format.
2303
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1940
2304
  */
1941
2305
  accessedAt: string;
1942
2306
  /**
@@ -1944,47 +2308,14 @@ export declare namespace Models {
1944
2308
  */
1945
2309
  sdks: string[];
1946
2310
  };
1947
- /**
1948
- * Domain
1949
- */
1950
- type Domain = {
1951
- /**
1952
- * Domain ID.
1953
- */
1954
- $id: string;
1955
- /**
1956
- * Domain creation date in ISO 8601 format.
1957
- */
1958
- $createdAt: string;
1959
- /**
1960
- * Domain update date in ISO 8601 format.
1961
- */
1962
- $updatedAt: string;
1963
- /**
1964
- * Domain name.
1965
- */
1966
- domain: string;
1967
- /**
1968
- * Registerable domain name.
1969
- */
1970
- registerable: string;
1971
- /**
1972
- * TLD name.
1973
- */
1974
- tld: string;
1975
- /**
1976
- * Verification process status.
1977
- */
1978
- verification: boolean;
1979
- /**
1980
- * Certificate ID.
1981
- */
1982
- certificateId: string;
1983
- };
1984
2311
  /**
1985
2312
  * Provider
1986
2313
  */
1987
2314
  type Provider = {
2315
+ /**
2316
+ * Provider.
2317
+ */
2318
+ key: string;
1988
2319
  /**
1989
2320
  * Provider name.
1990
2321
  */
@@ -2072,9 +2403,13 @@ export declare namespace Models {
2072
2403
  */
2073
2404
  value: string;
2074
2405
  /**
2075
- * Function ID.
2406
+ * Service to which the variable belongs. Possible values are &quot;project&quot;, &quot;function&quot;
2076
2407
  */
2077
- functionId: string;
2408
+ resourceType: string;
2409
+ /**
2410
+ * ID of resource to which the variable belongs. If resourceType is &quot;project&quot;, it is empty. If resourceType is &quot;function&quot;, it is ID of the function.
2411
+ */
2412
+ resourceId: string;
2078
2413
  };
2079
2414
  /**
2080
2415
  * Country
@@ -2243,145 +2578,229 @@ export declare namespace Models {
2243
2578
  */
2244
2579
  type UsageDatabases = {
2245
2580
  /**
2246
- * The time range of the usage stats.
2581
+ * Time range of the usage stats.
2247
2582
  */
2248
2583
  range: string;
2249
2584
  /**
2250
- * Aggregated stats for total number of documents.
2585
+ * Total aggregated number of databases.
2251
2586
  */
2252
- databasesTotal: Metric[];
2587
+ databasesTotal: number;
2253
2588
  /**
2254
- * Aggregated stats for total number of collections.
2589
+ * Total aggregated number of collections.
2255
2590
  */
2256
- collectionsTotal: Metric[];
2591
+ collectionsTotal: number;
2257
2592
  /**
2258
- * Aggregated stats for total number of documents.
2593
+ * Total aggregated number of documents.
2259
2594
  */
2260
- documentsTotal: Metric[];
2595
+ documentsTotal: number;
2596
+ /**
2597
+ * Aggregated number of databases per period.
2598
+ */
2599
+ databases: Metric[];
2600
+ /**
2601
+ * Aggregated number of collections per period.
2602
+ */
2603
+ collections: Metric[];
2604
+ /**
2605
+ * Aggregated number of documents per period.
2606
+ */
2607
+ documents: Metric[];
2261
2608
  };
2262
2609
  /**
2263
2610
  * UsageDatabase
2264
2611
  */
2265
2612
  type UsageDatabase = {
2266
2613
  /**
2267
- * The time range of the usage stats.
2614
+ * Time range of the usage stats.
2268
2615
  */
2269
2616
  range: string;
2270
2617
  /**
2271
- * Aggregated stats for total number of collections.
2618
+ * Total aggregated number of collections.
2619
+ */
2620
+ collectionsTotal: number;
2621
+ /**
2622
+ * Total aggregated number of documents.
2272
2623
  */
2273
- collectionsTotal: Metric[];
2624
+ documentsTotal: number;
2274
2625
  /**
2275
- * Aggregated stats for total number of documents.
2626
+ * Aggregated number of collections per period.
2276
2627
  */
2277
- documentsTotal: Metric[];
2628
+ collections: Metric[];
2629
+ /**
2630
+ * Aggregated number of documents per period.
2631
+ */
2632
+ documents: Metric[];
2278
2633
  };
2279
2634
  /**
2280
2635
  * UsageCollection
2281
2636
  */
2282
2637
  type UsageCollection = {
2283
2638
  /**
2284
- * The time range of the usage stats.
2639
+ * Time range of the usage stats.
2285
2640
  */
2286
2641
  range: string;
2287
2642
  /**
2288
- * Aggregated stats for total number of documents.
2643
+ * Total aggregated number of of documents.
2644
+ */
2645
+ documentsTotal: number;
2646
+ /**
2647
+ * Aggregated number of documents per period.
2289
2648
  */
2290
- documentsTotal: Metric[];
2649
+ documents: Metric[];
2291
2650
  };
2292
2651
  /**
2293
2652
  * UsageUsers
2294
2653
  */
2295
2654
  type UsageUsers = {
2296
2655
  /**
2297
- * The time range of the usage stats.
2656
+ * Time range of the usage stats.
2298
2657
  */
2299
2658
  range: string;
2300
2659
  /**
2301
- * Aggregated stats for total number of users.
2660
+ * Total aggregated number of statistics of users.
2661
+ */
2662
+ usersTotal: number;
2663
+ /**
2664
+ * Total aggregated number of active sessions.
2302
2665
  */
2303
- usersTotal: Metric[];
2666
+ sessionsTotal: number;
2304
2667
  /**
2305
- * Aggregated stats for sessions created.
2668
+ * Aggregated number of users per period.
2306
2669
  */
2307
- sessionsTotal: Metric[];
2670
+ users: Metric[];
2671
+ /**
2672
+ * Aggregated number of active sessions per period.
2673
+ */
2674
+ sessions: Metric[];
2308
2675
  };
2309
2676
  /**
2310
2677
  * StorageUsage
2311
2678
  */
2312
2679
  type UsageStorage = {
2313
2680
  /**
2314
- * The time range of the usage stats.
2681
+ * Time range of the usage stats.
2315
2682
  */
2316
2683
  range: string;
2317
2684
  /**
2318
- * Aggregated stats for total number of buckets.
2685
+ * Total aggregated number of buckets
2686
+ */
2687
+ bucketsTotal: number;
2688
+ /**
2689
+ * Total aggregated number of files.
2690
+ */
2691
+ filesTotal: number;
2692
+ /**
2693
+ * Total aggregated number of files storage (in bytes).
2694
+ */
2695
+ filesStorageTotal: number;
2696
+ /**
2697
+ * Aggregated number of buckets per period.
2319
2698
  */
2320
- bucketsTotal: Metric[];
2699
+ buckets: Metric[];
2321
2700
  /**
2322
- * Aggregated stats for total number of files.
2701
+ * Aggregated number of files per period.
2323
2702
  */
2324
- filesTotal: Metric[];
2703
+ files: Metric[];
2325
2704
  /**
2326
- * Aggregated stats for the occupied storage size (in bytes).
2705
+ * Aggregated number of files storage (in bytes) per period .
2327
2706
  */
2328
- filesStorage: Metric[];
2707
+ storage: Metric[];
2329
2708
  };
2330
2709
  /**
2331
2710
  * UsageBuckets
2332
2711
  */
2333
2712
  type UsageBuckets = {
2334
2713
  /**
2335
- * The time range of the usage stats.
2714
+ * Time range of the usage stats.
2336
2715
  */
2337
2716
  range: string;
2338
2717
  /**
2339
- * Aggregated stats for total number of files in this bucket.
2718
+ * Total aggregated number of bucket files.
2340
2719
  */
2341
- filesTotal: Metric[];
2720
+ filesTotal: number;
2342
2721
  /**
2343
- * Aggregated stats for total storage of files in this bucket.
2722
+ * Total aggregated number of bucket files storage (in bytes).
2344
2723
  */
2345
- filesStorage: Metric[];
2724
+ filesStorageTotal: number;
2725
+ /**
2726
+ * Aggregated number of bucket files per period.
2727
+ */
2728
+ files: Metric[];
2729
+ /**
2730
+ * Aggregated number of bucket storage files (in bytes) per period.
2731
+ */
2732
+ storage: Metric[];
2346
2733
  };
2347
2734
  /**
2348
2735
  * UsageFunctions
2349
2736
  */
2350
2737
  type UsageFunctions = {
2351
2738
  /**
2352
- * The time range of the usage stats.
2739
+ * Time range of the usage stats.
2353
2740
  */
2354
2741
  range: string;
2355
2742
  /**
2356
- * Aggregated stats for number of functions.
2743
+ * Total aggregated number of functions.
2744
+ */
2745
+ functionsTotal: number;
2746
+ /**
2747
+ * Total aggregated number of functions deployments.
2748
+ */
2749
+ deploymentsTotal: number;
2750
+ /**
2751
+ * Total aggregated sum of functions deployment storage.
2752
+ */
2753
+ deploymentsStorageTotal: number;
2754
+ /**
2755
+ * Total aggregated number of functions build.
2756
+ */
2757
+ buildsTotal: number;
2758
+ /**
2759
+ * total aggregated sum of functions build storage.
2760
+ */
2761
+ buildsStorageTotal: number;
2762
+ /**
2763
+ * Total aggregated sum of functions build compute time.
2764
+ */
2765
+ buildsTimeTotal: number;
2766
+ /**
2767
+ * Total aggregated number of functions execution.
2768
+ */
2769
+ executionsTotal: number;
2770
+ /**
2771
+ * Total aggregated sum of functions execution compute time.
2772
+ */
2773
+ executionsTimeTotal: number;
2774
+ /**
2775
+ * Aggregated number of functions per period.
2357
2776
  */
2358
- functionsTotal: Metric[];
2777
+ functions: Metric[];
2359
2778
  /**
2360
- * Aggregated stats for number of function deployments.
2779
+ * Aggregated number of functions deployment per period.
2361
2780
  */
2362
- deploymentsTotal: Metric[];
2781
+ deployments: Metric[];
2363
2782
  /**
2364
- * Aggregated stats for function deployments storage.
2783
+ * Aggregated number of functions deployment storage per period.
2365
2784
  */
2366
2785
  deploymentsStorage: Metric[];
2367
2786
  /**
2368
- * Aggregated stats for number of function builds.
2787
+ * Aggregated number of functions build per period.
2369
2788
  */
2370
- buildsTotal: Metric[];
2789
+ builds: Metric[];
2371
2790
  /**
2372
- * Aggregated stats for builds storage.
2791
+ * Aggregated sum of functions build storage per period.
2373
2792
  */
2374
2793
  buildsStorage: Metric[];
2375
2794
  /**
2376
- * Aggregated stats for function build compute.
2795
+ * Aggregated sum of functions build compute time per period.
2377
2796
  */
2378
2797
  buildsTime: Metric[];
2379
2798
  /**
2380
- * Aggregated stats for number of function executions.
2799
+ * Aggregated number of functions execution per period.
2381
2800
  */
2382
- executionsTotal: Metric[];
2801
+ executions: Metric[];
2383
2802
  /**
2384
- * Aggregated stats for function execution compute.
2803
+ * Aggregated number of functions execution compute time per period.
2385
2804
  */
2386
2805
  executionsTime: Metric[];
2387
2806
  };
@@ -2390,41 +2809,141 @@ export declare namespace Models {
2390
2809
  */
2391
2810
  type UsageProject = {
2392
2811
  /**
2393
- * The time range of the usage stats.
2812
+ * Total aggregated number of function executions.
2394
2813
  */
2395
- range: string;
2814
+ executionsTotal: number;
2815
+ /**
2816
+ * Total aggregated number of documents.
2817
+ */
2818
+ documentsTotal: number;
2819
+ /**
2820
+ * Total aggregated number of databases.
2821
+ */
2822
+ databasesTotal: number;
2823
+ /**
2824
+ * Total aggregated number of users.
2825
+ */
2826
+ usersTotal: number;
2827
+ /**
2828
+ * Total aggregated sum of files storage size (in bytes).
2829
+ */
2830
+ filesStorageTotal: number;
2831
+ /**
2832
+ * Total aggregated number of buckets.
2833
+ */
2834
+ bucketsTotal: number;
2835
+ /**
2836
+ * Aggregated number of requests per period.
2837
+ */
2838
+ requests: string[];
2839
+ /**
2840
+ * Aggregated number of consumed bandwidth per period.
2841
+ */
2842
+ network: string[];
2843
+ };
2844
+ /**
2845
+ * Headers
2846
+ */
2847
+ type Headers = {
2848
+ /**
2849
+ * Header name.
2850
+ */
2851
+ name: string;
2852
+ /**
2853
+ * Header value.
2854
+ */
2855
+ value: string;
2856
+ };
2857
+ /**
2858
+ * Rule
2859
+ */
2860
+ type ProxyRule = {
2861
+ /**
2862
+ * Rule ID.
2863
+ */
2864
+ $id: string;
2865
+ /**
2866
+ * Rule creation date in ISO 8601 format.
2867
+ */
2868
+ $createdAt: string;
2869
+ /**
2870
+ * Rule update date in ISO 8601 format.
2871
+ */
2872
+ $updatedAt: string;
2873
+ /**
2874
+ * Domain name.
2875
+ */
2876
+ domain: string;
2877
+ /**
2878
+ * Action definition for the rule. Possible values are &quot;api&quot;, &quot;function&quot;, or &quot;redirect&quot;
2879
+ */
2880
+ resourceType: string;
2396
2881
  /**
2397
- * Aggregated stats for number of requests.
2882
+ * ID of resource for the action type. If resourceType is &quot;api&quot; or &quot;url&quot;, it is empty. If resourceType is &quot;function&quot;, it is ID of the function.
2398
2883
  */
2399
- requestsTotal: Metric[];
2884
+ resourceId: string;
2885
+ /**
2886
+ * Domain verification status. Possible values are &quot;created&quot;, &quot;verifying&quot;, &quot;verified&quot; and &quot;unverified&quot;
2887
+ */
2888
+ status: string;
2889
+ /**
2890
+ * Certificate generation logs. This will return an empty string if generation did not run, or succeeded.
2891
+ */
2892
+ logs: string;
2893
+ /**
2894
+ * Certificate auto-renewal date in ISO 8601 format.
2895
+ */
2896
+ renewAt: string;
2897
+ };
2898
+ /**
2899
+ * SmsTemplate
2900
+ */
2901
+ type SmsTemplate = {
2400
2902
  /**
2401
- * Aggregated stats for consumed bandwidth.
2903
+ * Template type
2402
2904
  */
2403
- network: Metric[];
2905
+ type: string;
2906
+ /**
2907
+ * Template locale
2908
+ */
2909
+ locale: string;
2910
+ /**
2911
+ * Template message
2912
+ */
2913
+ message: string;
2914
+ };
2915
+ /**
2916
+ * EmailTemplate
2917
+ */
2918
+ type EmailTemplate = {
2919
+ /**
2920
+ * Template type
2921
+ */
2922
+ type: string;
2404
2923
  /**
2405
- * Aggregated stats for function executions.
2924
+ * Template locale
2406
2925
  */
2407
- executionsTotal: Metric[];
2926
+ locale: string;
2408
2927
  /**
2409
- * Aggregated stats for number of documents.
2928
+ * Template message
2410
2929
  */
2411
- documentsTotal: Metric[];
2930
+ message: string;
2412
2931
  /**
2413
- * Aggregated stats for number of databases.
2932
+ * Name of the sender
2414
2933
  */
2415
- databasesTotal: Metric[];
2934
+ senderName: string;
2416
2935
  /**
2417
- * Aggregated stats for number of users.
2936
+ * Email of the sender
2418
2937
  */
2419
- usersTotal: Metric[];
2938
+ senderEmail: string;
2420
2939
  /**
2421
- * Aggregated stats for the occupied storage size (in bytes).
2940
+ * Reply to email address
2422
2941
  */
2423
- filesStorage: Metric[];
2942
+ replyTo: string;
2424
2943
  /**
2425
- * Aggregated stats for number of buckets.
2944
+ * Email subject
2426
2945
  */
2427
- bucketsTotal: Metric[];
2946
+ subject: string;
2428
2947
  };
2429
2948
  /**
2430
2949
  * Console Variables
@@ -2446,5 +2965,116 @@ export declare namespace Models {
2446
2965
  * Defines if usage stats are enabled. This value is set to &#039;enabled&#039; by default, to disable the usage stats set the value to &#039;disabled&#039;.
2447
2966
  */
2448
2967
  _APP_USAGE_STATS: string;
2968
+ /**
2969
+ * Defines if VCS (Version Control System) is enabled.
2970
+ */
2971
+ _APP_VCS_ENABLED: boolean;
2972
+ /**
2973
+ * Defines if main domain is configured. If so, custom domains can be created.
2974
+ */
2975
+ _APP_DOMAIN_ENABLED: boolean;
2976
+ /**
2977
+ * Defines if AI assistant is enabled.
2978
+ */
2979
+ _APP_ASSISTANT_ENABLED: boolean;
2980
+ };
2981
+ /**
2982
+ * Migration
2983
+ */
2984
+ type Migration = {
2985
+ /**
2986
+ * Migration ID.
2987
+ */
2988
+ $id: string;
2989
+ /**
2990
+ * Variable creation date in ISO 8601 format.
2991
+ */
2992
+ $createdAt: string;
2993
+ /**
2994
+ * Variable creation date in ISO 8601 format.
2995
+ */
2996
+ $updatedAt: string;
2997
+ /**
2998
+ * Migration status ( pending, processing, failed, completed )
2999
+ */
3000
+ status: string;
3001
+ /**
3002
+ * Migration stage ( init, processing, source-check, destination-check, migrating, finished )
3003
+ */
3004
+ stage: string;
3005
+ /**
3006
+ * A string containing the type of source of the migration.
3007
+ */
3008
+ source: string;
3009
+ /**
3010
+ * Resources to migration.
3011
+ */
3012
+ resources: string[];
3013
+ /**
3014
+ * A group of counters that represent the total progress of the migration.
3015
+ */
3016
+ statusCounters: object;
3017
+ /**
3018
+ * An array of objects containing the report data of the resources that were migrated.
3019
+ */
3020
+ resourceData: object;
3021
+ /**
3022
+ * All errors that occurred during the migration process.
3023
+ */
3024
+ errors: string[];
3025
+ };
3026
+ /**
3027
+ * Migration Report
3028
+ */
3029
+ type MigrationReport = {
3030
+ /**
3031
+ * Number of users to be migrated.
3032
+ */
3033
+ user: number;
3034
+ /**
3035
+ * Number of teams to be migrated.
3036
+ */
3037
+ team: number;
3038
+ /**
3039
+ * Number of databases to be migrated.
3040
+ */
3041
+ database: number;
3042
+ /**
3043
+ * Number of documents to be migrated.
3044
+ */
3045
+ document: number;
3046
+ /**
3047
+ * Number of files to be migrated.
3048
+ */
3049
+ file: number;
3050
+ /**
3051
+ * Number of buckets to be migrated.
3052
+ */
3053
+ bucket: number;
3054
+ /**
3055
+ * Number of functions to be migrated.
3056
+ */
3057
+ function: number;
3058
+ /**
3059
+ * Size of files to be migrated in mb.
3060
+ */
3061
+ size: number;
3062
+ /**
3063
+ * Version of the Appwrite instance to be migrated.
3064
+ */
3065
+ version: string;
3066
+ };
3067
+ /**
3068
+ * MigrationFirebaseProject
3069
+ */
3070
+ type FirebaseProject = {
3071
+ /**
3072
+ * Project ID.
3073
+ */
3074
+ projectId: string;
3075
+ /**
3076
+ * Project display name.
3077
+ */
3078
+ displayName: string;
2449
3079
  };
2450
3080
  }