@appwrite.io/console 0.2.0 → 0.3.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 (314) hide show
  1. package/dist/cjs/sdk.js +2332 -633
  2. package/dist/cjs/sdk.js.map +1 -1
  3. package/dist/esm/sdk.js +2329 -634
  4. package/dist/esm/sdk.js.map +1 -1
  5. package/dist/iife/sdk.js +2332 -633
  6. package/docs/examples/account/create-anonymous-session.md +1 -1
  7. package/docs/examples/account/create-email-session.md +1 -1
  8. package/docs/examples/account/create-j-w-t.md +1 -1
  9. package/docs/examples/account/create-magic-u-r-l-session.md +1 -1
  10. package/docs/examples/account/create-o-auth2session.md +1 -1
  11. package/docs/examples/account/create-phone-session.md +1 -1
  12. package/docs/examples/account/create-phone-verification.md +1 -1
  13. package/docs/examples/account/create-recovery.md +1 -1
  14. package/docs/examples/account/create-verification.md +1 -1
  15. package/docs/examples/account/create-with-invite-code.md +1 -1
  16. package/docs/examples/account/create.md +1 -1
  17. package/docs/examples/account/delete-identity.md +18 -0
  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 +1 -1
  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 +2 -2
  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-certificates.md +1 -1
  125. package/docs/examples/health/get-queue-functions.md +1 -1
  126. package/docs/examples/health/get-queue-logs.md +1 -1
  127. package/docs/examples/health/get-queue-webhooks.md +1 -1
  128. package/docs/examples/health/get-queue.md +1 -1
  129. package/docs/examples/health/get-storage-local.md +1 -1
  130. package/docs/examples/health/get-time.md +1 -1
  131. package/docs/examples/health/get.md +1 -1
  132. package/docs/examples/locale/get.md +1 -1
  133. package/docs/examples/locale/list-codes.md +18 -0
  134. package/docs/examples/locale/list-continents.md +1 -1
  135. package/docs/examples/locale/list-countries-e-u.md +1 -1
  136. package/docs/examples/locale/list-countries-phones.md +1 -1
  137. package/docs/examples/locale/list-countries.md +1 -1
  138. package/docs/examples/locale/list-currencies.md +1 -1
  139. package/docs/examples/locale/list-languages.md +1 -1
  140. package/docs/examples/migrations/create-appwrite-migration.md +18 -0
  141. package/docs/examples/migrations/create-firebase-migration.md +18 -0
  142. package/docs/examples/migrations/create-firebase-o-auth-migration.md +18 -0
  143. package/docs/examples/migrations/create-n-host-migration.md +18 -0
  144. package/docs/examples/migrations/create-supabase-migration.md +18 -0
  145. package/docs/examples/migrations/delete-firebase-auth.md +18 -0
  146. package/docs/examples/migrations/delete.md +18 -0
  147. package/docs/examples/migrations/get-appwrite-report.md +18 -0
  148. package/docs/examples/migrations/get-firebase-report-o-auth.md +18 -0
  149. package/docs/examples/migrations/get-firebase-report.md +18 -0
  150. package/docs/examples/migrations/get-n-host-report.md +18 -0
  151. package/docs/examples/migrations/get-supabase-report.md +18 -0
  152. package/docs/examples/migrations/get.md +18 -0
  153. package/docs/examples/migrations/list-firebase-projects.md +18 -0
  154. package/docs/examples/migrations/list.md +18 -0
  155. package/docs/examples/migrations/retry.md +18 -0
  156. package/docs/examples/project/create-variable.md +18 -0
  157. package/docs/examples/project/delete-variable.md +18 -0
  158. package/docs/examples/project/get-usage.md +1 -1
  159. package/docs/examples/project/get-variable.md +18 -0
  160. package/docs/examples/project/list-variables.md +18 -0
  161. package/docs/examples/project/update-variable.md +18 -0
  162. package/docs/examples/projects/create-key.md +1 -1
  163. package/docs/examples/projects/create-platform.md +1 -1
  164. package/docs/examples/projects/create-webhook.md +1 -1
  165. package/docs/examples/projects/create.md +2 -2
  166. package/docs/examples/projects/delete-email-template.md +18 -0
  167. package/docs/examples/projects/delete-key.md +1 -1
  168. package/docs/examples/projects/delete-platform.md +1 -1
  169. package/docs/examples/projects/delete-sms-template.md +18 -0
  170. package/docs/examples/projects/delete-webhook.md +1 -1
  171. package/docs/examples/projects/delete.md +2 -2
  172. package/docs/examples/projects/get-email-template.md +18 -0
  173. package/docs/examples/projects/get-key.md +1 -1
  174. package/docs/examples/projects/get-platform.md +1 -1
  175. package/docs/examples/projects/get-sms-template.md +18 -0
  176. package/docs/examples/projects/{list-domains.md → get-usage.md} +2 -2
  177. package/docs/examples/projects/get-webhook.md +1 -1
  178. package/docs/examples/projects/get.md +1 -1
  179. package/docs/examples/projects/list-keys.md +1 -1
  180. package/docs/examples/projects/list-platforms.md +1 -1
  181. package/docs/examples/projects/list-webhooks.md +1 -1
  182. package/docs/examples/projects/list.md +1 -1
  183. package/docs/examples/projects/update-auth-duration.md +1 -1
  184. package/docs/examples/projects/update-auth-limit.md +1 -1
  185. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  186. package/docs/examples/projects/update-auth-password-history.md +1 -1
  187. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  188. package/docs/examples/projects/update-auth-status.md +1 -1
  189. package/docs/examples/projects/update-email-template.md +18 -0
  190. package/docs/examples/projects/update-key.md +1 -1
  191. package/docs/examples/projects/update-o-auth2.md +1 -1
  192. package/docs/examples/projects/{get-domain.md → update-personal-data-check.md} +2 -2
  193. package/docs/examples/projects/update-platform.md +1 -1
  194. package/docs/examples/projects/{delete-domain.md → update-service-status-all.md} +2 -2
  195. package/docs/examples/projects/update-service-status.md +1 -1
  196. package/docs/examples/projects/update-sms-template.md +18 -0
  197. package/docs/examples/projects/update-smtp-configuration.md +18 -0
  198. package/docs/examples/projects/{create-domain.md → update-team.md} +2 -2
  199. package/docs/examples/projects/update-webhook-signature.md +1 -1
  200. package/docs/examples/projects/update-webhook.md +1 -1
  201. package/docs/examples/projects/update.md +1 -1
  202. package/docs/examples/proxy/create-rule.md +18 -0
  203. package/docs/examples/proxy/delete-rule.md +18 -0
  204. package/docs/examples/proxy/get-rule.md +18 -0
  205. package/docs/examples/proxy/list-rules.md +18 -0
  206. package/docs/examples/proxy/update-rule-verification.md +18 -0
  207. package/docs/examples/storage/create-bucket.md +1 -1
  208. package/docs/examples/storage/create-file.md +1 -1
  209. package/docs/examples/storage/delete-bucket.md +1 -1
  210. package/docs/examples/storage/delete-file.md +1 -1
  211. package/docs/examples/storage/get-bucket-usage.md +1 -1
  212. package/docs/examples/storage/get-bucket.md +1 -1
  213. package/docs/examples/storage/get-file-download.md +1 -1
  214. package/docs/examples/storage/get-file-preview.md +1 -1
  215. package/docs/examples/storage/get-file-view.md +1 -1
  216. package/docs/examples/storage/get-file.md +1 -1
  217. package/docs/examples/storage/get-usage.md +1 -1
  218. package/docs/examples/storage/list-buckets.md +1 -1
  219. package/docs/examples/storage/list-files.md +1 -1
  220. package/docs/examples/storage/update-bucket.md +1 -1
  221. package/docs/examples/storage/update-file.md +1 -1
  222. package/docs/examples/teams/create-membership.md +1 -1
  223. package/docs/examples/teams/create.md +1 -1
  224. package/docs/examples/teams/delete-membership.md +1 -1
  225. package/docs/examples/teams/delete.md +1 -1
  226. package/docs/examples/teams/get-membership.md +1 -1
  227. package/docs/examples/teams/get-prefs.md +1 -1
  228. package/docs/examples/teams/get.md +1 -1
  229. package/docs/examples/teams/list-logs.md +1 -1
  230. package/docs/examples/teams/list-memberships.md +1 -1
  231. package/docs/examples/teams/list.md +1 -1
  232. package/docs/examples/teams/update-membership-status.md +1 -1
  233. package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
  234. package/docs/examples/teams/update-name.md +1 -1
  235. package/docs/examples/teams/update-prefs.md +1 -1
  236. package/docs/examples/users/create-argon2user.md +1 -1
  237. package/docs/examples/users/create-bcrypt-user.md +1 -1
  238. package/docs/examples/users/create-m-d5user.md +1 -1
  239. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  240. package/docs/examples/users/create-s-h-a-user.md +1 -1
  241. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  242. package/docs/examples/users/create-scrypt-user.md +1 -1
  243. package/docs/examples/users/create.md +1 -1
  244. package/docs/examples/users/delete-identity.md +18 -0
  245. package/docs/examples/users/delete-session.md +1 -1
  246. package/docs/examples/users/delete-sessions.md +1 -1
  247. package/docs/examples/users/delete.md +1 -1
  248. package/docs/examples/users/get-prefs.md +1 -1
  249. package/docs/examples/users/get-usage.md +1 -1
  250. package/docs/examples/users/get.md +1 -1
  251. package/docs/examples/users/list-identities.md +18 -0
  252. package/docs/examples/users/list-logs.md +1 -1
  253. package/docs/examples/users/list-memberships.md +1 -1
  254. package/docs/examples/users/list-sessions.md +1 -1
  255. package/docs/examples/users/list.md +1 -1
  256. package/docs/examples/users/update-email-verification.md +1 -1
  257. package/docs/examples/users/update-email.md +1 -1
  258. package/docs/examples/users/update-labels.md +18 -0
  259. package/docs/examples/users/update-name.md +1 -1
  260. package/docs/examples/users/update-password.md +1 -1
  261. package/docs/examples/users/update-phone-verification.md +1 -1
  262. package/docs/examples/users/update-phone.md +1 -1
  263. package/docs/examples/users/update-prefs.md +1 -1
  264. package/docs/examples/users/update-status.md +1 -1
  265. package/docs/examples/vcs/create-repository-detection.md +18 -0
  266. package/docs/examples/vcs/create-repository.md +18 -0
  267. package/docs/examples/vcs/delete-installation.md +18 -0
  268. package/docs/examples/vcs/get-installation.md +18 -0
  269. package/docs/examples/vcs/get-repository.md +18 -0
  270. package/docs/examples/vcs/list-installations.md +18 -0
  271. package/docs/examples/vcs/list-repositories.md +18 -0
  272. package/docs/examples/vcs/list-repository-branches.md +18 -0
  273. package/docs/examples/vcs/update-external-deployments.md +18 -0
  274. package/package.json +1 -1
  275. package/src/client.ts +2 -2
  276. package/src/index.ts +4 -0
  277. package/src/models.ts +905 -114
  278. package/src/services/account.ts +1102 -1055
  279. package/src/services/assistant.ts +38 -0
  280. package/src/services/avatars.ts +337 -337
  281. package/src/services/console.ts +16 -16
  282. package/src/services/databases.ts +2170 -2140
  283. package/src/services/functions.ts +808 -652
  284. package/src/services/graphql.ts +47 -47
  285. package/src/services/health.ts +226 -226
  286. package/src/services/locale.ts +156 -137
  287. package/src/services/migrations.ts +707 -0
  288. package/src/services/project.ts +160 -20
  289. package/src/services/projects.ts +1538 -1256
  290. package/src/services/proxy.ts +150 -0
  291. package/src/services/storage.ts +576 -571
  292. package/src/services/teams.ts +502 -501
  293. package/src/services/users.ts +1094 -1001
  294. package/src/services/vcs.ts +272 -0
  295. package/types/index.d.ts +4 -0
  296. package/types/models.d.ts +905 -114
  297. package/types/services/account.d.ts +62 -41
  298. package/types/services/assistant.d.ts +14 -0
  299. package/types/services/avatars.d.ts +7 -7
  300. package/types/services/console.d.ts +1 -1
  301. package/types/services/databases.d.ts +60 -54
  302. package/types/services/functions.d.ts +66 -31
  303. package/types/services/graphql.d.ts +2 -2
  304. package/types/services/health.d.ts +12 -12
  305. package/types/services/locale.d.ts +17 -7
  306. package/types/services/migrations.d.ts +185 -0
  307. package/types/services/project.d.ts +56 -1
  308. package/types/services/projects.d.ts +159 -79
  309. package/types/services/proxy.d.ts +59 -0
  310. package/types/services/storage.d.ts +18 -17
  311. package/types/services/teams.d.ts +17 -16
  312. package/types/services/users.d.ts +65 -27
  313. package/types/services/vcs.d.ts +97 -0
  314. package/docs/examples/projects/update-domain-verification.md +0 -18
package/src/models.ts CHANGED
@@ -77,6 +77,19 @@ export namespace Models {
77
77
  */
78
78
  sessions: Session[];
79
79
  }
80
+ /**
81
+ * Identities List
82
+ */
83
+ export 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 namespace Models {
155
168
  */
156
169
  functions: Function[];
157
170
  }
171
+ /**
172
+ * Installations List
173
+ */
174
+ export 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
+ export 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
+ export 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 namespace Models {
246
298
  */
247
299
  platforms: Platform[];
248
300
  }
249
- /**
250
- * Domains List
251
- */
252
- export 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 namespace Models {
337
376
  */
338
377
  variables: Variable[];
339
378
  }
379
+ /**
380
+ * Rule List
381
+ */
382
+ export 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
+ export 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
+ export 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
+ export 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 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
@@ -387,7 +482,7 @@ export 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
  /**
@@ -432,6 +527,10 @@ export 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 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 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 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 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 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 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 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 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 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 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
  */
@@ -954,6 +1093,10 @@ export 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 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
@@ -1110,6 +1257,10 @@ export namespace Models {
1110
1257
  * User status. Pass `true` for enabled and `false` for disabled.
1111
1258
  */
1112
1259
  status: boolean;
1260
+ /**
1261
+ * Labels for the user.
1262
+ */
1263
+ labels: string[];
1113
1264
  /**
1114
1265
  * Password update time in ISO 8601 format.
1115
1266
  */
@@ -1134,6 +1285,10 @@ export namespace Models {
1134
1285
  * User preferences as a key-value object
1135
1286
  */
1136
1287
  prefs: Preferences;
1288
+ /**
1289
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1290
+ */
1291
+ accessedAt: string;
1137
1292
  }
1138
1293
  /**
1139
1294
  * Preferences
@@ -1246,6 +1401,51 @@ export namespace Models {
1246
1401
  */
1247
1402
  current: boolean;
1248
1403
  }
1404
+ /**
1405
+ * Identity
1406
+ */
1407
+ export type Identity = {
1408
+ /**
1409
+ * Identity ID.
1410
+ */
1411
+ $id: string;
1412
+ /**
1413
+ * Identity creation date in ISO 8601 format.
1414
+ */
1415
+ $createdAt: string;
1416
+ /**
1417
+ * Identity update date in ISO 8601 format.
1418
+ */
1419
+ $updatedAt: string;
1420
+ /**
1421
+ * User ID.
1422
+ */
1423
+ userId: string;
1424
+ /**
1425
+ * Identity Provider.
1426
+ */
1427
+ provider: string;
1428
+ /**
1429
+ * ID of the User in the Identity Provider.
1430
+ */
1431
+ providerUid: string;
1432
+ /**
1433
+ * Email of the User in the Identity Provider.
1434
+ */
1435
+ providerEmail: string;
1436
+ /**
1437
+ * Identity Provider Access Token.
1438
+ */
1439
+ providerAccessToken: string;
1440
+ /**
1441
+ * The date of when the access token expires in ISO 8601 format.
1442
+ */
1443
+ providerAccessTokenExpiry: string;
1444
+ /**
1445
+ * Identity Provider Refresh Token.
1446
+ */
1447
+ providerRefreshToken: string;
1448
+ }
1249
1449
  /**
1250
1450
  * Token
1251
1451
  */
@@ -1313,6 +1513,19 @@ export namespace Models {
1313
1513
  */
1314
1514
  currency: string;
1315
1515
  }
1516
+ /**
1517
+ * LocaleCode
1518
+ */
1519
+ export type LocaleCode = {
1520
+ /**
1521
+ * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1522
+ */
1523
+ code: string;
1524
+ /**
1525
+ * Locale name
1526
+ */
1527
+ name: string;
1528
+ }
1316
1529
  /**
1317
1530
  * File
1318
1531
  */
@@ -1525,6 +1738,14 @@ export namespace Models {
1525
1738
  * Function enabled.
1526
1739
  */
1527
1740
  enabled: boolean;
1741
+ /**
1742
+ * Is the function deployed with the latest configuration? This is set to false if you'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.
1743
+ */
1744
+ live: boolean;
1745
+ /**
1746
+ * Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
1747
+ */
1748
+ logging: boolean;
1528
1749
  /**
1529
1750
  * Function execution runtime.
1530
1751
  */
@@ -1549,6 +1770,118 @@ export namespace Models {
1549
1770
  * Function execution timeout in seconds.
1550
1771
  */
1551
1772
  timeout: number;
1773
+ /**
1774
+ * The entrypoint file used to execute the deployment.
1775
+ */
1776
+ entrypoint: string;
1777
+ /**
1778
+ * The build command used to build the deployment.
1779
+ */
1780
+ commands: string;
1781
+ /**
1782
+ * Version of Open Runtimes used for the function.
1783
+ */
1784
+ version: string;
1785
+ /**
1786
+ * Function VCS (Version Control System) installation id.
1787
+ */
1788
+ installationId: string;
1789
+ /**
1790
+ * VCS (Version Control System) Repository ID
1791
+ */
1792
+ providerRepositoryId: string;
1793
+ /**
1794
+ * VCS (Version Control System) branch name
1795
+ */
1796
+ providerBranch: string;
1797
+ /**
1798
+ * Path to function in VCS (Version Control System) repository
1799
+ */
1800
+ providerRootDirectory: string;
1801
+ /**
1802
+ * 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
1803
+ */
1804
+ providerSilentMode: boolean;
1805
+ }
1806
+ /**
1807
+ * Installation
1808
+ */
1809
+ export type Installation = {
1810
+ /**
1811
+ * Function ID.
1812
+ */
1813
+ $id: string;
1814
+ /**
1815
+ * Function creation date in ISO 8601 format.
1816
+ */
1817
+ $createdAt: string;
1818
+ /**
1819
+ * Function update date in ISO 8601 format.
1820
+ */
1821
+ $updatedAt: string;
1822
+ /**
1823
+ * VCS (Version Control System) provider name.
1824
+ */
1825
+ provider: string;
1826
+ /**
1827
+ * VCS (Version Control System) organization name.
1828
+ */
1829
+ organization: string;
1830
+ /**
1831
+ * VCS (Version Control System) installation ID.
1832
+ */
1833
+ providerInstallationId: string;
1834
+ }
1835
+ /**
1836
+ * ProviderRepository
1837
+ */
1838
+ export type ProviderRepository = {
1839
+ /**
1840
+ * VCS (Version Control System) repository ID.
1841
+ */
1842
+ id: string;
1843
+ /**
1844
+ * VCS (Version Control System) repository name.
1845
+ */
1846
+ name: string;
1847
+ /**
1848
+ * VCS (Version Control System) organization name
1849
+ */
1850
+ organization: string;
1851
+ /**
1852
+ * VCS (Version Control System) provider name.
1853
+ */
1854
+ provider: string;
1855
+ /**
1856
+ * Is VCS (Version Control System) repository private?
1857
+ */
1858
+ private: boolean;
1859
+ /**
1860
+ * Auto-detected runtime suggestion. Empty if getting response of getRuntime().
1861
+ */
1862
+ runtime: string;
1863
+ /**
1864
+ * Last commit date in ISO 8601 format.
1865
+ */
1866
+ pushedAt: string;
1867
+ }
1868
+ /**
1869
+ * Detection
1870
+ */
1871
+ export type Detection = {
1872
+ /**
1873
+ * Runtime
1874
+ */
1875
+ runtime: string;
1876
+ }
1877
+ /**
1878
+ * Branch
1879
+ */
1880
+ export type Branch = {
1881
+ /**
1882
+ * Branch Name.
1883
+ */
1884
+ name: string;
1552
1885
  }
1553
1886
  /**
1554
1887
  * Runtime
@@ -1599,6 +1932,10 @@ export namespace Models {
1599
1932
  * Deployment update date in ISO 8601 format.
1600
1933
  */
1601
1934
  $updatedAt: string;
1935
+ /**
1936
+ * Type of deployment.
1937
+ */
1938
+ type: string;
1602
1939
  /**
1603
1940
  * Resource ID.
1604
1941
  */
@@ -1624,21 +1961,57 @@ export namespace Models {
1624
1961
  */
1625
1962
  activate: boolean;
1626
1963
  /**
1627
- * The deployment status. Possible values are "processing", "building", "pending", "ready", and "failed".
1964
+ * The deployment status. Possible values are "processing", "building", "waiting", "ready", and "failed".
1628
1965
  */
1629
1966
  status: string;
1630
1967
  /**
1631
- * The build stdout.
1632
- */
1633
- buildStdout: string;
1634
- /**
1635
- * The build stderr.
1968
+ * The build logs.
1636
1969
  */
1637
- buildStderr: string;
1970
+ buildLogs: string;
1638
1971
  /**
1639
1972
  * The current build time in seconds.
1640
1973
  */
1641
1974
  buildTime: number;
1975
+ /**
1976
+ * The name of the vcs provider repository
1977
+ */
1978
+ providerRepositoryName: string;
1979
+ /**
1980
+ * The name of the vcs provider repository owner
1981
+ */
1982
+ providerRepositoryOwner: string;
1983
+ /**
1984
+ * The url of the vcs provider repository
1985
+ */
1986
+ providerRepositoryUrl: string;
1987
+ /**
1988
+ * The branch of the vcs repository
1989
+ */
1990
+ providerBranch: string;
1991
+ /**
1992
+ * The commit hash of the vcs commit
1993
+ */
1994
+ providerCommitHash: string;
1995
+ /**
1996
+ * The url of vcs commit author
1997
+ */
1998
+ providerCommitAuthorUrl: string;
1999
+ /**
2000
+ * The name of vcs commit author
2001
+ */
2002
+ providerCommitAuthor: string;
2003
+ /**
2004
+ * The commit message
2005
+ */
2006
+ providerCommitMessage: string;
2007
+ /**
2008
+ * The url of the vcs commit
2009
+ */
2010
+ providerCommitUrl: string;
2011
+ /**
2012
+ * The branch of the vcs repository
2013
+ */
2014
+ providerBranchUrl: string;
1642
2015
  }
1643
2016
  /**
1644
2017
  * Execution
@@ -1673,27 +2046,43 @@ export namespace Models {
1673
2046
  */
1674
2047
  status: string;
1675
2048
  /**
1676
- * The script status code.
2049
+ * HTTP request method type.
1677
2050
  */
1678
- statusCode: number;
2051
+ requestMethod: string;
1679
2052
  /**
1680
- * The script response output string. Logs the last 4,000 characters of the execution response output.
2053
+ * HTTP request path and query.
1681
2054
  */
1682
- response: string;
2055
+ requestPath: string;
1683
2056
  /**
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.
2057
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1685
2058
  */
1686
- stdout: string;
2059
+ requestHeaders: Headers[];
1687
2060
  /**
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.
2061
+ * HTTP response status code.
1689
2062
  */
1690
- stderr: string;
2063
+ responseStatusCode: number;
1691
2064
  /**
1692
- * The script execution duration in seconds.
2065
+ * HTTP response body. This will return empty unless execution is created as synchronous.
1693
2066
  */
1694
- duration: number;
1695
- }
1696
- /**
2067
+ responseBody: string;
2068
+ /**
2069
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
2070
+ */
2071
+ responseHeaders: Headers[];
2072
+ /**
2073
+ * 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.
2074
+ */
2075
+ logs: string;
2076
+ /**
2077
+ * 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.
2078
+ */
2079
+ errors: string;
2080
+ /**
2081
+ * Function execution duration in seconds.
2082
+ */
2083
+ duration: number;
2084
+ }
2085
+ /**
1697
2086
  * Project
1698
2087
  */
1699
2088
  export type Project = {
@@ -1773,6 +2162,10 @@ export namespace Models {
1773
2162
  * Whether or not to check user's password against most commonly used passwords.
1774
2163
  */
1775
2164
  authPasswordDictionary: boolean;
2165
+ /**
2166
+ * Whether or not to check the user password for similarity with their personal data.
2167
+ */
2168
+ authPersonalDataCheck: boolean;
1776
2169
  /**
1777
2170
  * List of Providers.
1778
2171
  */
@@ -1790,9 +2183,41 @@ export namespace Models {
1790
2183
  */
1791
2184
  keys: Key[];
1792
2185
  /**
1793
- * List of Domains.
2186
+ * Status for custom SMTP
2187
+ */
2188
+ smtpEnabled: boolean;
2189
+ /**
2190
+ * SMTP sender name
1794
2191
  */
1795
- domains: Domain[];
2192
+ smtpSenderName: string;
2193
+ /**
2194
+ * SMTP sender email
2195
+ */
2196
+ smtpSenderEmail: string;
2197
+ /**
2198
+ * SMTP reply to email
2199
+ */
2200
+ smtpReplyTo: string;
2201
+ /**
2202
+ * SMTP server host name
2203
+ */
2204
+ smtpHost: string;
2205
+ /**
2206
+ * SMTP server port
2207
+ */
2208
+ smtpPort: number;
2209
+ /**
2210
+ * SMTP server username
2211
+ */
2212
+ smtpUsername: string;
2213
+ /**
2214
+ * SMTP server password
2215
+ */
2216
+ smtpPassword: string;
2217
+ /**
2218
+ * SMTP server secure protocol
2219
+ */
2220
+ smtpSecure: string;
1796
2221
  /**
1797
2222
  * Email/Password auth method status
1798
2223
  */
@@ -1849,14 +2274,26 @@ export namespace Models {
1849
2274
  * Users service status
1850
2275
  */
1851
2276
  serviceStatusForUsers: boolean;
2277
+ /**
2278
+ * VCS service status
2279
+ */
2280
+ serviceStatusForVcs: boolean;
1852
2281
  /**
1853
2282
  * Functions service status
1854
2283
  */
1855
2284
  serviceStatusForFunctions: boolean;
2285
+ /**
2286
+ * Proxy service status
2287
+ */
2288
+ serviceStatusForProxy: boolean;
1856
2289
  /**
1857
2290
  * GraphQL service status
1858
2291
  */
1859
2292
  serviceStatusForGraphql: boolean;
2293
+ /**
2294
+ * Migrations service status
2295
+ */
2296
+ serviceStatusForMigrations: boolean;
1860
2297
  }
1861
2298
  /**
1862
2299
  * Webhook
@@ -1936,7 +2373,7 @@ export namespace Models {
1936
2373
  */
1937
2374
  secret: string;
1938
2375
  /**
1939
- * Most recent access date in ISO 8601 format.
2376
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1940
2377
  */
1941
2378
  accessedAt: string;
1942
2379
  /**
@@ -1944,47 +2381,14 @@ export namespace Models {
1944
2381
  */
1945
2382
  sdks: string[];
1946
2383
  }
1947
- /**
1948
- * Domain
1949
- */
1950
- export 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
2384
  /**
1985
2385
  * Provider
1986
2386
  */
1987
2387
  export type Provider = {
2388
+ /**
2389
+ * Provider.
2390
+ */
2391
+ key: string;
1988
2392
  /**
1989
2393
  * Provider name.
1990
2394
  */
@@ -2072,9 +2476,13 @@ export namespace Models {
2072
2476
  */
2073
2477
  value: string;
2074
2478
  /**
2075
- * Function ID.
2479
+ * Service to which the variable belongs. Possible values are "project", "function"
2076
2480
  */
2077
- functionId: string;
2481
+ resourceType: string;
2482
+ /**
2483
+ * ID of resource to which the variable belongs. If resourceType is "project", it is empty. If resourceType is "function", it is ID of the function.
2484
+ */
2485
+ resourceId: string;
2078
2486
  }
2079
2487
  /**
2080
2488
  * Country
@@ -2249,15 +2657,63 @@ export namespace Models {
2249
2657
  /**
2250
2658
  * Aggregated stats for total number of documents.
2251
2659
  */
2252
- databasesTotal: Metric[];
2660
+ databasesCount: Metric[];
2661
+ /**
2662
+ * Aggregated stats for total number of documents.
2663
+ */
2664
+ documentsCount: Metric[];
2253
2665
  /**
2254
2666
  * Aggregated stats for total number of collections.
2255
2667
  */
2256
- collectionsTotal: Metric[];
2668
+ collectionsCount: Metric[];
2257
2669
  /**
2258
- * Aggregated stats for total number of documents.
2670
+ * Aggregated stats for documents created.
2671
+ */
2672
+ databasesCreate: Metric[];
2673
+ /**
2674
+ * Aggregated stats for documents read.
2675
+ */
2676
+ databasesRead: Metric[];
2677
+ /**
2678
+ * Aggregated stats for documents updated.
2679
+ */
2680
+ databasesUpdate: Metric[];
2681
+ /**
2682
+ * Aggregated stats for total number of collections.
2683
+ */
2684
+ databasesDelete: Metric[];
2685
+ /**
2686
+ * Aggregated stats for documents created.
2687
+ */
2688
+ documentsCreate: Metric[];
2689
+ /**
2690
+ * Aggregated stats for documents read.
2691
+ */
2692
+ documentsRead: Metric[];
2693
+ /**
2694
+ * Aggregated stats for documents updated.
2695
+ */
2696
+ documentsUpdate: Metric[];
2697
+ /**
2698
+ * Aggregated stats for documents deleted.
2259
2699
  */
2260
- documentsTotal: Metric[];
2700
+ documentsDelete: Metric[];
2701
+ /**
2702
+ * Aggregated stats for collections created.
2703
+ */
2704
+ collectionsCreate: Metric[];
2705
+ /**
2706
+ * Aggregated stats for collections read.
2707
+ */
2708
+ collectionsRead: Metric[];
2709
+ /**
2710
+ * Aggregated stats for collections updated.
2711
+ */
2712
+ collectionsUpdate: Metric[];
2713
+ /**
2714
+ * Aggregated stats for collections delete.
2715
+ */
2716
+ collectionsDelete: Metric[];
2261
2717
  }
2262
2718
  /**
2263
2719
  * UsageDatabase
@@ -2267,14 +2723,46 @@ export namespace Models {
2267
2723
  * The time range of the usage stats.
2268
2724
  */
2269
2725
  range: string;
2726
+ /**
2727
+ * Aggregated stats for total number of documents.
2728
+ */
2729
+ documentsCount: Metric[];
2270
2730
  /**
2271
2731
  * Aggregated stats for total number of collections.
2272
2732
  */
2273
- collectionsTotal: Metric[];
2733
+ collectionsCount: Metric[];
2274
2734
  /**
2275
- * Aggregated stats for total number of documents.
2735
+ * Aggregated stats for documents created.
2736
+ */
2737
+ documentsCreate: Metric[];
2738
+ /**
2739
+ * Aggregated stats for documents read.
2740
+ */
2741
+ documentsRead: Metric[];
2742
+ /**
2743
+ * Aggregated stats for documents updated.
2744
+ */
2745
+ documentsUpdate: Metric[];
2746
+ /**
2747
+ * Aggregated stats for documents deleted.
2748
+ */
2749
+ documentsDelete: Metric[];
2750
+ /**
2751
+ * Aggregated stats for collections created.
2276
2752
  */
2277
- documentsTotal: Metric[];
2753
+ collectionsCreate: Metric[];
2754
+ /**
2755
+ * Aggregated stats for collections read.
2756
+ */
2757
+ collectionsRead: Metric[];
2758
+ /**
2759
+ * Aggregated stats for collections updated.
2760
+ */
2761
+ collectionsUpdate: Metric[];
2762
+ /**
2763
+ * Aggregated stats for collections delete.
2764
+ */
2765
+ collectionsDelete: Metric[];
2278
2766
  }
2279
2767
  /**
2280
2768
  * UsageCollection
@@ -2287,7 +2775,23 @@ export namespace Models {
2287
2775
  /**
2288
2776
  * Aggregated stats for total number of documents.
2289
2777
  */
2290
- documentsTotal: Metric[];
2778
+ documentsCount: Metric[];
2779
+ /**
2780
+ * Aggregated stats for documents created.
2781
+ */
2782
+ documentsCreate: Metric[];
2783
+ /**
2784
+ * Aggregated stats for documents read.
2785
+ */
2786
+ documentsRead: Metric[];
2787
+ /**
2788
+ * Aggregated stats for documents updated.
2789
+ */
2790
+ documentsUpdate: Metric[];
2791
+ /**
2792
+ * Aggregated stats for documents deleted.
2793
+ */
2794
+ documentsDelete: Metric[];
2291
2795
  }
2292
2796
  /**
2293
2797
  * UsageUsers
@@ -2300,11 +2804,35 @@ export namespace Models {
2300
2804
  /**
2301
2805
  * Aggregated stats for total number of users.
2302
2806
  */
2303
- usersTotal: Metric[];
2807
+ usersCount: Metric[];
2808
+ /**
2809
+ * Aggregated stats for users created.
2810
+ */
2811
+ usersCreate: Metric[];
2812
+ /**
2813
+ * Aggregated stats for users read.
2814
+ */
2815
+ usersRead: Metric[];
2816
+ /**
2817
+ * Aggregated stats for users updated.
2818
+ */
2819
+ usersUpdate: Metric[];
2820
+ /**
2821
+ * Aggregated stats for users deleted.
2822
+ */
2823
+ usersDelete: Metric[];
2304
2824
  /**
2305
2825
  * Aggregated stats for sessions created.
2306
2826
  */
2307
- sessionsTotal: Metric[];
2827
+ sessionsCreate: Metric[];
2828
+ /**
2829
+ * Aggregated stats for sessions created for a provider ( email, anonymous or oauth2 ).
2830
+ */
2831
+ sessionsProviderCreate: Metric[];
2832
+ /**
2833
+ * Aggregated stats for sessions deleted.
2834
+ */
2835
+ sessionsDelete: Metric[];
2308
2836
  }
2309
2837
  /**
2310
2838
  * StorageUsage
@@ -2315,17 +2843,49 @@ export namespace Models {
2315
2843
  */
2316
2844
  range: string;
2317
2845
  /**
2318
- * Aggregated stats for total number of buckets.
2846
+ * Aggregated stats for the occupied storage size (in bytes).
2319
2847
  */
2320
- bucketsTotal: Metric[];
2848
+ storage: Metric[];
2321
2849
  /**
2322
2850
  * Aggregated stats for total number of files.
2323
2851
  */
2324
- filesTotal: Metric[];
2852
+ filesCount: Metric[];
2325
2853
  /**
2326
- * Aggregated stats for the occupied storage size (in bytes).
2854
+ * Aggregated stats for total number of buckets.
2327
2855
  */
2328
- filesStorage: Metric[];
2856
+ bucketsCount: Metric[];
2857
+ /**
2858
+ * Aggregated stats for buckets created.
2859
+ */
2860
+ bucketsCreate: Metric[];
2861
+ /**
2862
+ * Aggregated stats for buckets read.
2863
+ */
2864
+ bucketsRead: Metric[];
2865
+ /**
2866
+ * Aggregated stats for buckets updated.
2867
+ */
2868
+ bucketsUpdate: Metric[];
2869
+ /**
2870
+ * Aggregated stats for buckets deleted.
2871
+ */
2872
+ bucketsDelete: Metric[];
2873
+ /**
2874
+ * Aggregated stats for files created.
2875
+ */
2876
+ filesCreate: Metric[];
2877
+ /**
2878
+ * Aggregated stats for files read.
2879
+ */
2880
+ filesRead: Metric[];
2881
+ /**
2882
+ * Aggregated stats for files updated.
2883
+ */
2884
+ filesUpdate: Metric[];
2885
+ /**
2886
+ * Aggregated stats for files deleted.
2887
+ */
2888
+ filesDelete: Metric[];
2329
2889
  }
2330
2890
  /**
2331
2891
  * UsageBuckets
@@ -2338,11 +2898,27 @@ export namespace Models {
2338
2898
  /**
2339
2899
  * Aggregated stats for total number of files in this bucket.
2340
2900
  */
2341
- filesTotal: Metric[];
2901
+ filesCount: Metric[];
2342
2902
  /**
2343
2903
  * Aggregated stats for total storage of files in this bucket.
2344
2904
  */
2345
2905
  filesStorage: Metric[];
2906
+ /**
2907
+ * Aggregated stats for files created.
2908
+ */
2909
+ filesCreate: Metric[];
2910
+ /**
2911
+ * Aggregated stats for files read.
2912
+ */
2913
+ filesRead: Metric[];
2914
+ /**
2915
+ * Aggregated stats for files updated.
2916
+ */
2917
+ filesUpdate: Metric[];
2918
+ /**
2919
+ * Aggregated stats for files deleted.
2920
+ */
2921
+ filesDelete: Metric[];
2346
2922
  }
2347
2923
  /**
2348
2924
  * UsageFunctions
@@ -2353,37 +2929,37 @@ export namespace Models {
2353
2929
  */
2354
2930
  range: string;
2355
2931
  /**
2356
- * Aggregated stats for number of functions.
2932
+ * Aggregated stats for number of function executions.
2933
+ */
2934
+ executionsTotal: Metric[];
2935
+ /**
2936
+ * Aggregated stats for function execution failures.
2357
2937
  */
2358
- functionsTotal: Metric[];
2938
+ executionsFailure: Metric[];
2359
2939
  /**
2360
- * Aggregated stats for number of function deployments.
2940
+ * Aggregated stats for function execution successes.
2361
2941
  */
2362
- deploymentsTotal: Metric[];
2942
+ executionsSuccess: Metric[];
2363
2943
  /**
2364
- * Aggregated stats for function deployments storage.
2944
+ * Aggregated stats for function execution duration.
2365
2945
  */
2366
- deploymentsStorage: Metric[];
2946
+ executionsTime: Metric[];
2367
2947
  /**
2368
2948
  * Aggregated stats for number of function builds.
2369
2949
  */
2370
2950
  buildsTotal: Metric[];
2371
2951
  /**
2372
- * Aggregated stats for builds storage.
2373
- */
2374
- buildsStorage: Metric[];
2375
- /**
2376
- * Aggregated stats for function build compute.
2952
+ * Aggregated stats for function build failures.
2377
2953
  */
2378
- buildsTime: Metric[];
2954
+ buildsFailure: Metric[];
2379
2955
  /**
2380
- * Aggregated stats for number of function executions.
2956
+ * Aggregated stats for function build successes.
2381
2957
  */
2382
- executionsTotal: Metric[];
2958
+ buildsSuccess: Metric[];
2383
2959
  /**
2384
- * Aggregated stats for function execution compute.
2960
+ * Aggregated stats for function build duration.
2385
2961
  */
2386
- executionsTime: Metric[];
2962
+ buildsTime: Metric[];
2387
2963
  }
2388
2964
  /**
2389
2965
  * UsageProject
@@ -2396,7 +2972,7 @@ export namespace Models {
2396
2972
  /**
2397
2973
  * Aggregated stats for number of requests.
2398
2974
  */
2399
- requestsTotal: Metric[];
2975
+ requests: Metric[];
2400
2976
  /**
2401
2977
  * Aggregated stats for consumed bandwidth.
2402
2978
  */
@@ -2404,27 +2980,131 @@ export namespace Models {
2404
2980
  /**
2405
2981
  * Aggregated stats for function executions.
2406
2982
  */
2407
- executionsTotal: Metric[];
2983
+ executions: Metric[];
2408
2984
  /**
2409
2985
  * Aggregated stats for number of documents.
2410
2986
  */
2411
- documentsTotal: Metric[];
2987
+ documents: Metric[];
2412
2988
  /**
2413
2989
  * Aggregated stats for number of databases.
2414
2990
  */
2415
- databasesTotal: Metric[];
2991
+ databases: Metric[];
2416
2992
  /**
2417
2993
  * Aggregated stats for number of users.
2418
2994
  */
2419
- usersTotal: Metric[];
2995
+ users: Metric[];
2420
2996
  /**
2421
2997
  * Aggregated stats for the occupied storage size (in bytes).
2422
2998
  */
2423
- filesStorage: Metric[];
2999
+ storage: Metric[];
2424
3000
  /**
2425
3001
  * Aggregated stats for number of buckets.
2426
3002
  */
2427
- bucketsTotal: Metric[];
3003
+ buckets: Metric[];
3004
+ }
3005
+ /**
3006
+ * Headers
3007
+ */
3008
+ export type Headers = {
3009
+ /**
3010
+ * Header name.
3011
+ */
3012
+ name: string;
3013
+ /**
3014
+ * Header value.
3015
+ */
3016
+ value: string;
3017
+ }
3018
+ /**
3019
+ * Rule
3020
+ */
3021
+ export type ProxyRule = {
3022
+ /**
3023
+ * Rule ID.
3024
+ */
3025
+ $id: string;
3026
+ /**
3027
+ * Rule creation date in ISO 8601 format.
3028
+ */
3029
+ $createdAt: string;
3030
+ /**
3031
+ * Rule update date in ISO 8601 format.
3032
+ */
3033
+ $updatedAt: string;
3034
+ /**
3035
+ * Domain name.
3036
+ */
3037
+ domain: string;
3038
+ /**
3039
+ * Action definition for the rule. Possible values are "api", "function", or "redirect"
3040
+ */
3041
+ resourceType: string;
3042
+ /**
3043
+ * ID of resource for the action type. If resourceType is "api" or "url", it is empty. If resourceType is "function", it is ID of the function.
3044
+ */
3045
+ resourceId: string;
3046
+ /**
3047
+ * Domain verification status. Possible values are "created", "verifying", "verified" and "unverified"
3048
+ */
3049
+ status: string;
3050
+ /**
3051
+ * Certificate generation logs. This will return an empty string if generation did not run, or succeeded.
3052
+ */
3053
+ logs: string;
3054
+ /**
3055
+ * Certificate auto-renewal date in ISO 8601 format.
3056
+ */
3057
+ renewAt: string;
3058
+ }
3059
+ /**
3060
+ * SmsTemplate
3061
+ */
3062
+ export type SmsTemplate = {
3063
+ /**
3064
+ * Template type
3065
+ */
3066
+ type: string;
3067
+ /**
3068
+ * Template locale
3069
+ */
3070
+ locale: string;
3071
+ /**
3072
+ * Template message
3073
+ */
3074
+ message: string;
3075
+ }
3076
+ /**
3077
+ * EmailTemplate
3078
+ */
3079
+ export type EmailTemplate = {
3080
+ /**
3081
+ * Template type
3082
+ */
3083
+ type: string;
3084
+ /**
3085
+ * Template locale
3086
+ */
3087
+ locale: string;
3088
+ /**
3089
+ * Template message
3090
+ */
3091
+ message: string;
3092
+ /**
3093
+ * Name of the sender
3094
+ */
3095
+ senderName: string;
3096
+ /**
3097
+ * Email of the sender
3098
+ */
3099
+ senderEmail: string;
3100
+ /**
3101
+ * Reply to email address
3102
+ */
3103
+ replyTo: string;
3104
+ /**
3105
+ * Email subject
3106
+ */
3107
+ subject: string;
2428
3108
  }
2429
3109
  /**
2430
3110
  * Console Variables
@@ -2446,5 +3126,116 @@ export namespace Models {
2446
3126
  * Defines if usage stats are enabled. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'.
2447
3127
  */
2448
3128
  _APP_USAGE_STATS: string;
3129
+ /**
3130
+ * Defines if VCS (Version Control System) is enabled.
3131
+ */
3132
+ _APP_VCS_ENABLED: boolean;
3133
+ /**
3134
+ * Defines if main domain is configured. If so, custom domains can be created.
3135
+ */
3136
+ _APP_DOMAIN_ENABLED: boolean;
3137
+ /**
3138
+ * Defines if AI assistant is enabled.
3139
+ */
3140
+ _APP_ASSISTANT_ENABLED: boolean;
3141
+ }
3142
+ /**
3143
+ * Migration
3144
+ */
3145
+ export type Migration = {
3146
+ /**
3147
+ * Migration ID.
3148
+ */
3149
+ $id: string;
3150
+ /**
3151
+ * Variable creation date in ISO 8601 format.
3152
+ */
3153
+ $createdAt: string;
3154
+ /**
3155
+ * Variable creation date in ISO 8601 format.
3156
+ */
3157
+ $updatedAt: string;
3158
+ /**
3159
+ * Migration status ( pending, processing, failed, completed )
3160
+ */
3161
+ status: string;
3162
+ /**
3163
+ * Migration stage ( init, processing, source-check, destination-check, migrating, finished )
3164
+ */
3165
+ stage: string;
3166
+ /**
3167
+ * A string containing the type of source of the migration.
3168
+ */
3169
+ source: string;
3170
+ /**
3171
+ * Resources to migration.
3172
+ */
3173
+ resources: string[];
3174
+ /**
3175
+ * A group of counters that represent the total progress of the migration.
3176
+ */
3177
+ statusCounters: object;
3178
+ /**
3179
+ * An array of objects containing the report data of the resources that were migrated.
3180
+ */
3181
+ resourceData: object;
3182
+ /**
3183
+ * All errors that occurred during the migration process.
3184
+ */
3185
+ errors: string;
3186
+ }
3187
+ /**
3188
+ * Migration Report
3189
+ */
3190
+ export type MigrationReport = {
3191
+ /**
3192
+ * Number of users to be migrated.
3193
+ */
3194
+ user: number;
3195
+ /**
3196
+ * Number of teams to be migrated.
3197
+ */
3198
+ team: number;
3199
+ /**
3200
+ * Number of databases to be migrated.
3201
+ */
3202
+ database: number;
3203
+ /**
3204
+ * Number of documents to be migrated.
3205
+ */
3206
+ document: number;
3207
+ /**
3208
+ * Number of files to be migrated.
3209
+ */
3210
+ file: number;
3211
+ /**
3212
+ * Number of buckets to be migrated.
3213
+ */
3214
+ bucket: number;
3215
+ /**
3216
+ * Number of functions to be migrated.
3217
+ */
3218
+ function: number;
3219
+ /**
3220
+ * Size of files to be migrated in mb.
3221
+ */
3222
+ size: number;
3223
+ /**
3224
+ * Version of the Appwrite instance to be migrated.
3225
+ */
3226
+ version: string;
3227
+ }
3228
+ /**
3229
+ * MigrationFirebaseProject
3230
+ */
3231
+ export type FirebaseProject = {
3232
+ /**
3233
+ * Project ID.
3234
+ */
3235
+ projectId: string;
3236
+ /**
3237
+ * Project display name.
3238
+ */
3239
+ displayName: string;
2449
3240
  }
2450
3241
  }