@appwrite.io/console 1.6.0 → 1.8.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 (596) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/README.md +3 -3
  3. package/dist/cjs/sdk.js +6807 -3959
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +6805 -3960
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +6807 -3959
  8. package/docs/examples/account/create-anonymous-session.md +1 -1
  9. package/docs/examples/account/create-billing-address.md +1 -1
  10. package/docs/examples/account/create-email-password-session.md +1 -1
  11. package/docs/examples/account/create-email-token.md +1 -1
  12. package/docs/examples/account/create-j-w-t.md +1 -1
  13. package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
  14. package/docs/examples/account/create-mfa-authenticator.md +1 -1
  15. package/docs/examples/account/create-mfa-challenge.md +1 -1
  16. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  17. package/docs/examples/account/create-o-auth2session.md +1 -1
  18. package/docs/examples/account/create-o-auth2token.md +1 -1
  19. package/docs/examples/account/create-payment-method.md +1 -1
  20. package/docs/examples/account/create-phone-token.md +1 -1
  21. package/docs/examples/account/create-phone-verification.md +1 -1
  22. package/docs/examples/account/create-push-target.md +1 -1
  23. package/docs/examples/account/create-recovery.md +1 -1
  24. package/docs/examples/account/create-session.md +1 -1
  25. package/docs/examples/account/create-verification.md +1 -1
  26. package/docs/examples/account/create.md +1 -1
  27. package/docs/examples/account/delete-billing-address.md +1 -1
  28. package/docs/examples/account/delete-identity.md +1 -1
  29. package/docs/examples/account/delete-mfa-authenticator.md +1 -1
  30. package/docs/examples/account/delete-payment-method.md +1 -1
  31. package/docs/examples/account/delete-push-target.md +1 -1
  32. package/docs/examples/account/delete-session.md +1 -1
  33. package/docs/examples/account/delete-sessions.md +1 -1
  34. package/docs/examples/account/delete.md +1 -1
  35. package/docs/examples/account/get-billing-address.md +1 -1
  36. package/docs/examples/account/get-coupon.md +1 -1
  37. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  38. package/docs/examples/account/get-payment-method.md +1 -1
  39. package/docs/examples/account/get-prefs.md +1 -1
  40. package/docs/examples/account/get-session.md +1 -1
  41. package/docs/examples/account/get.md +1 -1
  42. package/docs/examples/account/list-billing-addresses.md +1 -1
  43. package/docs/examples/account/list-identities.md +1 -1
  44. package/docs/examples/account/list-invoices.md +1 -1
  45. package/docs/examples/account/list-logs.md +1 -1
  46. package/docs/examples/account/list-mfa-factors.md +1 -1
  47. package/docs/examples/account/list-payment-methods.md +1 -1
  48. package/docs/examples/account/list-sessions.md +1 -1
  49. package/docs/examples/account/update-billing-address.md +1 -1
  50. package/docs/examples/account/update-email.md +1 -1
  51. package/docs/examples/account/update-m-f-a.md +1 -1
  52. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  53. package/docs/examples/account/update-mfa-authenticator.md +1 -1
  54. package/docs/examples/account/update-mfa-challenge.md +1 -1
  55. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  56. package/docs/examples/account/update-name.md +1 -1
  57. package/docs/examples/account/update-password.md +1 -1
  58. package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
  59. package/docs/examples/account/update-payment-method-provider.md +1 -1
  60. package/docs/examples/account/update-payment-method.md +1 -1
  61. package/docs/examples/account/update-phone-session.md +1 -1
  62. package/docs/examples/account/update-phone-verification.md +1 -1
  63. package/docs/examples/account/update-phone.md +1 -1
  64. package/docs/examples/account/update-prefs.md +1 -1
  65. package/docs/examples/account/update-push-target.md +1 -1
  66. package/docs/examples/account/update-recovery.md +1 -1
  67. package/docs/examples/account/update-session.md +1 -1
  68. package/docs/examples/account/update-status.md +1 -1
  69. package/docs/examples/account/update-verification.md +1 -1
  70. package/docs/examples/assistant/chat.md +1 -1
  71. package/docs/examples/avatars/get-browser.md +2 -2
  72. package/docs/examples/avatars/get-credit-card.md +2 -2
  73. package/docs/examples/avatars/get-favicon.md +1 -1
  74. package/docs/examples/avatars/get-flag.md +2 -2
  75. package/docs/examples/avatars/get-image.md +1 -1
  76. package/docs/examples/avatars/get-initials.md +1 -1
  77. package/docs/examples/avatars/get-q-r.md +1 -1
  78. package/docs/examples/backups/create-archive.md +1 -1
  79. package/docs/examples/backups/create-policy.md +1 -1
  80. package/docs/examples/backups/create-restoration.md +1 -1
  81. package/docs/examples/backups/delete-archive.md +1 -1
  82. package/docs/examples/backups/delete-policy.md +1 -1
  83. package/docs/examples/backups/get-archive.md +1 -1
  84. package/docs/examples/backups/get-policy.md +1 -1
  85. package/docs/examples/backups/get-restoration.md +1 -1
  86. package/docs/examples/backups/list-archives.md +1 -1
  87. package/docs/examples/backups/list-policies.md +1 -1
  88. package/docs/examples/backups/list-restorations.md +1 -1
  89. package/docs/examples/backups/update-policy.md +1 -1
  90. package/docs/examples/console/create-program-membership.md +1 -1
  91. package/docs/examples/console/create-source.md +1 -1
  92. package/docs/examples/console/get-campaign.md +1 -1
  93. package/docs/examples/console/get-coupon.md +1 -1
  94. package/docs/examples/console/get-resource.md +14 -0
  95. package/docs/examples/console/plans.md +1 -1
  96. package/docs/examples/console/regions.md +1 -1
  97. package/docs/examples/console/variables.md +1 -1
  98. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  99. package/docs/examples/databases/create-collection.md +1 -1
  100. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  101. package/docs/examples/databases/create-document.md +4 -2
  102. package/docs/examples/databases/create-documents.md +15 -0
  103. package/docs/examples/databases/create-email-attribute.md +1 -1
  104. package/docs/examples/databases/create-enum-attribute.md +1 -1
  105. package/docs/examples/databases/create-float-attribute.md +1 -1
  106. package/docs/examples/databases/create-index.md +3 -2
  107. package/docs/examples/databases/create-integer-attribute.md +1 -1
  108. package/docs/examples/databases/create-ip-attribute.md +1 -1
  109. package/docs/examples/databases/create-relationship-attribute.md +1 -1
  110. package/docs/examples/databases/create-string-attribute.md +1 -1
  111. package/docs/examples/databases/create-url-attribute.md +1 -1
  112. package/docs/examples/databases/create.md +1 -1
  113. package/docs/examples/databases/delete-attribute.md +1 -1
  114. package/docs/examples/databases/delete-collection.md +1 -1
  115. package/docs/examples/databases/delete-document.md +1 -1
  116. package/docs/examples/databases/delete-documents.md +15 -0
  117. package/docs/examples/databases/delete-index.md +1 -1
  118. package/docs/examples/databases/delete.md +1 -1
  119. package/docs/examples/databases/get-attribute.md +1 -1
  120. package/docs/examples/databases/get-collection-usage.md +1 -1
  121. package/docs/examples/databases/get-collection.md +1 -1
  122. package/docs/examples/databases/get-database-usage.md +1 -1
  123. package/docs/examples/databases/get-document.md +1 -1
  124. package/docs/examples/databases/get-index.md +1 -1
  125. package/docs/examples/databases/get-usage.md +1 -1
  126. package/docs/examples/databases/get.md +1 -1
  127. package/docs/examples/databases/list-attributes.md +1 -1
  128. package/docs/examples/databases/list-collection-logs.md +1 -1
  129. package/docs/examples/databases/list-collections.md +1 -1
  130. package/docs/examples/databases/list-document-logs.md +1 -1
  131. package/docs/examples/databases/list-documents.md +1 -1
  132. package/docs/examples/databases/list-indexes.md +1 -1
  133. package/docs/examples/databases/list-logs.md +1 -1
  134. package/docs/examples/databases/list.md +1 -1
  135. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  136. package/docs/examples/databases/update-collection.md +1 -1
  137. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  138. package/docs/examples/databases/update-document.md +1 -1
  139. package/docs/examples/databases/update-documents.md +16 -0
  140. package/docs/examples/databases/update-email-attribute.md +1 -1
  141. package/docs/examples/databases/update-enum-attribute.md +1 -1
  142. package/docs/examples/databases/update-float-attribute.md +1 -1
  143. package/docs/examples/databases/update-integer-attribute.md +1 -1
  144. package/docs/examples/databases/update-ip-attribute.md +1 -1
  145. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  146. package/docs/examples/databases/update-string-attribute.md +1 -1
  147. package/docs/examples/databases/update-url-attribute.md +1 -1
  148. package/docs/examples/databases/update.md +1 -1
  149. package/docs/examples/databases/upsert-document.md +17 -0
  150. package/docs/examples/databases/upsert-documents.md +15 -0
  151. package/docs/examples/domains/create-preset-google-workspace.md +13 -0
  152. package/docs/examples/domains/create-preset-i-cloud.md +13 -0
  153. package/docs/examples/domains/create-preset-mailgun.md +13 -0
  154. package/docs/examples/domains/create-preset-outlook.md +13 -0
  155. package/docs/examples/domains/create-preset-proton-mail.md +13 -0
  156. package/docs/examples/domains/create-preset-zoho.md +13 -0
  157. package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
  158. package/docs/examples/domains/create-record-a.md +17 -0
  159. package/docs/examples/domains/create-record-alias.md +17 -0
  160. package/docs/examples/domains/create-record-c-a-a.md +17 -0
  161. package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
  162. package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
  163. package/docs/examples/domains/create-record-m-x.md +18 -0
  164. package/docs/examples/domains/create-record-n-s.md +17 -0
  165. package/docs/examples/domains/create-record-s-r-v.md +20 -0
  166. package/docs/examples/domains/create-record-t-x-t.md +17 -0
  167. package/docs/examples/domains/create.md +14 -0
  168. package/docs/examples/domains/delete-record.md +14 -0
  169. package/docs/examples/domains/delete.md +13 -0
  170. package/docs/examples/domains/get-preset-google-workspace.md +13 -0
  171. package/docs/examples/domains/get-preset-i-cloud.md +13 -0
  172. package/docs/examples/domains/get-preset-mailgun.md +13 -0
  173. package/docs/examples/domains/get-preset-outlook.md +13 -0
  174. package/docs/examples/domains/get-preset-proton-mail.md +13 -0
  175. package/docs/examples/domains/get-preset-zoho.md +13 -0
  176. package/docs/examples/domains/get-record.md +14 -0
  177. package/docs/examples/domains/get-zone.md +13 -0
  178. package/docs/examples/domains/get.md +13 -0
  179. package/docs/examples/domains/list-records.md +14 -0
  180. package/docs/examples/domains/list.md +14 -0
  181. package/docs/examples/domains/update-nameservers.md +13 -0
  182. package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
  183. package/docs/examples/domains/update-record-a.md +18 -0
  184. package/docs/examples/domains/update-record-alias.md +18 -0
  185. package/docs/examples/domains/update-record-c-a-a.md +18 -0
  186. package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
  187. package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
  188. package/docs/examples/domains/update-record-m-x.md +19 -0
  189. package/docs/examples/domains/update-record-n-s.md +18 -0
  190. package/docs/examples/domains/update-record-s-r-v.md +21 -0
  191. package/docs/examples/domains/update-record-t-x-t.md +18 -0
  192. package/docs/examples/domains/update-team.md +14 -0
  193. package/docs/examples/domains/update-zone.md +14 -0
  194. package/docs/examples/functions/create-deployment.md +1 -1
  195. package/docs/examples/functions/create-duplicate-deployment.md +15 -0
  196. package/docs/examples/functions/create-execution.md +1 -1
  197. package/docs/examples/functions/create-template-deployment.md +18 -0
  198. package/docs/examples/functions/create-variable.md +3 -2
  199. package/docs/examples/functions/create-vcs-deployment.md +16 -0
  200. package/docs/examples/functions/create.md +1 -5
  201. package/docs/examples/functions/delete-deployment.md +1 -1
  202. package/docs/examples/functions/delete-execution.md +1 -1
  203. package/docs/examples/functions/delete-variable.md +1 -1
  204. package/docs/examples/functions/delete.md +1 -1
  205. package/docs/examples/functions/get-deployment-download.md +4 -3
  206. package/docs/examples/functions/get-deployment.md +1 -1
  207. package/docs/examples/functions/get-execution.md +1 -1
  208. package/docs/examples/functions/get-template.md +1 -1
  209. package/docs/examples/functions/get-usage.md +2 -1
  210. package/docs/examples/functions/get-variable.md +1 -1
  211. package/docs/examples/functions/get.md +1 -1
  212. package/docs/examples/functions/list-deployments.md +1 -1
  213. package/docs/examples/functions/list-executions.md +2 -3
  214. package/docs/examples/functions/list-runtimes.md +1 -1
  215. package/docs/examples/functions/list-specifications.md +1 -1
  216. package/docs/examples/functions/list-templates.md +1 -1
  217. package/docs/examples/functions/list-usage.md +13 -0
  218. package/docs/examples/functions/list-variables.md +1 -1
  219. package/docs/examples/functions/list.md +1 -1
  220. package/docs/examples/functions/update-deployment-status.md +14 -0
  221. package/docs/examples/functions/update-function-deployment.md +14 -0
  222. package/docs/examples/functions/update-variable.md +3 -2
  223. package/docs/examples/functions/update.md +1 -1
  224. package/docs/examples/graphql/mutation.md +1 -1
  225. package/docs/examples/graphql/query.md +1 -1
  226. package/docs/examples/health/get-antivirus.md +1 -1
  227. package/docs/examples/health/get-cache.md +1 -1
  228. package/docs/examples/health/get-certificate.md +1 -1
  229. package/docs/examples/health/get-d-b.md +1 -1
  230. package/docs/examples/health/get-failed-jobs.md +1 -1
  231. package/docs/examples/health/get-pub-sub.md +1 -1
  232. package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
  233. package/docs/examples/health/get-queue-builds.md +1 -1
  234. package/docs/examples/health/get-queue-certificates.md +1 -1
  235. package/docs/examples/health/get-queue-databases.md +1 -1
  236. package/docs/examples/health/get-queue-deletes.md +1 -1
  237. package/docs/examples/health/get-queue-functions.md +1 -1
  238. package/docs/examples/health/get-queue-logs.md +1 -1
  239. package/docs/examples/health/get-queue-mails.md +1 -1
  240. package/docs/examples/health/get-queue-messaging.md +1 -1
  241. package/docs/examples/health/get-queue-migrations.md +1 -1
  242. package/docs/examples/health/get-queue-priority-builds.md +1 -1
  243. package/docs/examples/health/get-queue-region-manager.md +13 -0
  244. package/docs/examples/health/get-queue-stats-resources.md +1 -1
  245. package/docs/examples/health/get-queue-usage.md +1 -1
  246. package/docs/examples/health/get-queue-webhooks.md +1 -1
  247. package/docs/examples/health/get-storage-local.md +1 -1
  248. package/docs/examples/health/get-storage.md +1 -1
  249. package/docs/examples/health/get-time.md +1 -1
  250. package/docs/examples/health/get.md +1 -1
  251. package/docs/examples/locale/get.md +1 -1
  252. package/docs/examples/locale/list-codes.md +1 -1
  253. package/docs/examples/locale/list-continents.md +1 -1
  254. package/docs/examples/locale/list-countries-e-u.md +1 -1
  255. package/docs/examples/locale/list-countries-phones.md +1 -1
  256. package/docs/examples/locale/list-countries.md +1 -1
  257. package/docs/examples/locale/list-currencies.md +1 -1
  258. package/docs/examples/locale/list-languages.md +1 -1
  259. package/docs/examples/messaging/create-apns-provider.md +1 -1
  260. package/docs/examples/messaging/create-email.md +1 -1
  261. package/docs/examples/messaging/create-fcm-provider.md +1 -1
  262. package/docs/examples/messaging/create-mailgun-provider.md +1 -1
  263. package/docs/examples/messaging/create-msg91provider.md +1 -1
  264. package/docs/examples/messaging/create-push.md +1 -1
  265. package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
  266. package/docs/examples/messaging/create-sms.md +1 -1
  267. package/docs/examples/messaging/create-smtp-provider.md +1 -1
  268. package/docs/examples/messaging/create-subscriber.md +1 -1
  269. package/docs/examples/messaging/create-telesign-provider.md +1 -1
  270. package/docs/examples/messaging/create-textmagic-provider.md +1 -1
  271. package/docs/examples/messaging/create-topic.md +1 -1
  272. package/docs/examples/messaging/create-twilio-provider.md +1 -1
  273. package/docs/examples/messaging/create-vonage-provider.md +1 -1
  274. package/docs/examples/messaging/delete-provider.md +1 -1
  275. package/docs/examples/messaging/delete-subscriber.md +1 -1
  276. package/docs/examples/messaging/delete-topic.md +1 -1
  277. package/docs/examples/messaging/delete.md +1 -1
  278. package/docs/examples/messaging/get-message.md +1 -1
  279. package/docs/examples/messaging/get-provider.md +1 -1
  280. package/docs/examples/messaging/get-subscriber.md +1 -1
  281. package/docs/examples/messaging/get-topic.md +1 -1
  282. package/docs/examples/messaging/list-message-logs.md +1 -1
  283. package/docs/examples/messaging/list-messages.md +1 -1
  284. package/docs/examples/messaging/list-provider-logs.md +1 -1
  285. package/docs/examples/messaging/list-providers.md +1 -1
  286. package/docs/examples/messaging/list-subscriber-logs.md +1 -1
  287. package/docs/examples/messaging/list-subscribers.md +1 -1
  288. package/docs/examples/messaging/list-targets.md +1 -1
  289. package/docs/examples/messaging/list-topic-logs.md +1 -1
  290. package/docs/examples/messaging/list-topics.md +1 -1
  291. package/docs/examples/messaging/update-apns-provider.md +1 -1
  292. package/docs/examples/messaging/update-email.md +1 -1
  293. package/docs/examples/messaging/update-fcm-provider.md +1 -1
  294. package/docs/examples/messaging/update-mailgun-provider.md +1 -1
  295. package/docs/examples/messaging/update-msg91provider.md +1 -1
  296. package/docs/examples/messaging/update-push.md +1 -1
  297. package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
  298. package/docs/examples/messaging/update-sms.md +1 -1
  299. package/docs/examples/messaging/update-smtp-provider.md +1 -1
  300. package/docs/examples/messaging/update-telesign-provider.md +1 -1
  301. package/docs/examples/messaging/update-textmagic-provider.md +1 -1
  302. package/docs/examples/messaging/update-topic.md +1 -1
  303. package/docs/examples/messaging/update-twilio-provider.md +1 -1
  304. package/docs/examples/messaging/update-vonage-provider.md +1 -1
  305. package/docs/examples/migrations/create-appwrite-migration.md +1 -1
  306. package/docs/examples/migrations/create-csv-migration.md +15 -0
  307. package/docs/examples/migrations/create-firebase-migration.md +1 -1
  308. package/docs/examples/migrations/create-n-host-migration.md +1 -1
  309. package/docs/examples/migrations/create-supabase-migration.md +1 -1
  310. package/docs/examples/migrations/delete.md +1 -1
  311. package/docs/examples/migrations/get-appwrite-report.md +1 -1
  312. package/docs/examples/migrations/get-firebase-report.md +1 -1
  313. package/docs/examples/migrations/get-n-host-report.md +1 -1
  314. package/docs/examples/migrations/get-supabase-report.md +1 -1
  315. package/docs/examples/migrations/get.md +1 -1
  316. package/docs/examples/migrations/list.md +1 -1
  317. package/docs/examples/migrations/retry.md +1 -1
  318. package/docs/examples/organizations/add-credit.md +1 -1
  319. package/docs/examples/organizations/create-invoice-payment.md +1 -1
  320. package/docs/examples/organizations/create.md +1 -1
  321. package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
  322. package/docs/examples/organizations/delete-billing-address.md +1 -1
  323. package/docs/examples/organizations/delete-default-payment-method.md +1 -1
  324. package/docs/examples/organizations/delete.md +1 -1
  325. package/docs/examples/organizations/get-aggregation.md +1 -1
  326. package/docs/examples/organizations/get-billing-address.md +1 -1
  327. package/docs/examples/organizations/get-credit.md +1 -1
  328. package/docs/examples/organizations/get-invoice-download.md +1 -1
  329. package/docs/examples/organizations/get-invoice-view.md +1 -1
  330. package/docs/examples/organizations/get-invoice.md +1 -1
  331. package/docs/examples/organizations/get-payment-method.md +1 -1
  332. package/docs/examples/organizations/get-plan.md +1 -1
  333. package/docs/examples/organizations/get-scopes.md +1 -1
  334. package/docs/examples/organizations/list-aggregations.md +1 -1
  335. package/docs/examples/organizations/list-credits.md +1 -1
  336. package/docs/examples/organizations/list-invoices.md +1 -1
  337. package/docs/examples/organizations/list.md +1 -1
  338. package/docs/examples/organizations/set-backup-payment-method.md +1 -1
  339. package/docs/examples/organizations/set-billing-address.md +1 -1
  340. package/docs/examples/organizations/set-billing-email.md +1 -1
  341. package/docs/examples/organizations/set-billing-tax-id.md +1 -1
  342. package/docs/examples/organizations/set-default-payment-method.md +1 -1
  343. package/docs/examples/organizations/update-budget.md +1 -1
  344. package/docs/examples/organizations/update-plan.md +1 -1
  345. package/docs/examples/organizations/validate-invoice.md +1 -1
  346. package/docs/examples/project/create-variable.md +3 -2
  347. package/docs/examples/project/delete-variable.md +1 -1
  348. package/docs/examples/project/get-usage.md +1 -1
  349. package/docs/examples/project/get-variable.md +1 -1
  350. package/docs/examples/project/list-variables.md +1 -1
  351. package/docs/examples/project/update-variable.md +3 -2
  352. package/docs/examples/projects/create-dev-key.md +15 -0
  353. package/docs/examples/projects/create-j-w-t.md +1 -1
  354. package/docs/examples/projects/create-key.md +1 -1
  355. package/docs/examples/projects/create-platform.md +1 -1
  356. package/docs/examples/projects/create-smtp-test.md +1 -1
  357. package/docs/examples/projects/create-webhook.md +1 -1
  358. package/docs/examples/projects/create.md +2 -2
  359. package/docs/examples/projects/delete-dev-key.md +14 -0
  360. package/docs/examples/projects/delete-email-template.md +1 -1
  361. package/docs/examples/projects/delete-key.md +1 -1
  362. package/docs/examples/projects/delete-platform.md +1 -1
  363. package/docs/examples/projects/delete-sms-template.md +1 -1
  364. package/docs/examples/projects/delete-webhook.md +1 -1
  365. package/docs/examples/projects/delete.md +1 -1
  366. package/docs/examples/projects/get-dev-key.md +14 -0
  367. package/docs/examples/projects/get-email-template.md +1 -1
  368. package/docs/examples/projects/get-key.md +1 -1
  369. package/docs/examples/projects/get-platform.md +1 -1
  370. package/docs/examples/projects/get-sms-template.md +1 -1
  371. package/docs/examples/projects/get-webhook.md +1 -1
  372. package/docs/examples/projects/get.md +1 -1
  373. package/docs/examples/projects/list-dev-keys.md +14 -0
  374. package/docs/examples/projects/list-keys.md +1 -1
  375. package/docs/examples/projects/list-platforms.md +1 -1
  376. package/docs/examples/projects/list-webhooks.md +1 -1
  377. package/docs/examples/projects/list.md +1 -1
  378. package/docs/examples/projects/update-api-status-all.md +1 -1
  379. package/docs/examples/projects/update-api-status.md +1 -1
  380. package/docs/examples/projects/update-auth-duration.md +1 -1
  381. package/docs/examples/projects/update-auth-limit.md +1 -1
  382. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  383. package/docs/examples/projects/update-auth-password-history.md +1 -1
  384. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  385. package/docs/examples/projects/update-auth-status.md +1 -1
  386. package/docs/examples/projects/update-dev-key.md +16 -0
  387. package/docs/examples/projects/update-email-template.md +1 -1
  388. package/docs/examples/projects/update-key.md +1 -1
  389. package/docs/examples/projects/update-memberships-privacy.md +1 -1
  390. package/docs/examples/projects/update-mock-numbers.md +1 -1
  391. package/docs/examples/projects/update-o-auth2.md +1 -1
  392. package/docs/examples/projects/update-personal-data-check.md +1 -1
  393. package/docs/examples/projects/update-platform.md +1 -1
  394. package/docs/examples/projects/update-service-status-all.md +1 -1
  395. package/docs/examples/projects/update-service-status.md +1 -1
  396. package/docs/examples/projects/update-session-alerts.md +1 -1
  397. package/docs/examples/projects/update-sms-template.md +1 -1
  398. package/docs/examples/projects/update-smtp.md +1 -1
  399. package/docs/examples/projects/update-team.md +1 -1
  400. package/docs/examples/projects/update-webhook-signature.md +1 -1
  401. package/docs/examples/projects/update-webhook.md +1 -1
  402. package/docs/examples/projects/update.md +1 -1
  403. package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
  404. package/docs/examples/proxy/create-function-rule.md +15 -0
  405. package/docs/examples/proxy/create-redirect-rule.md +15 -0
  406. package/docs/examples/proxy/create-site-rule.md +15 -0
  407. package/docs/examples/proxy/delete-rule.md +1 -1
  408. package/docs/examples/proxy/get-rule.md +1 -1
  409. package/docs/examples/proxy/list-rules.md +1 -1
  410. package/docs/examples/proxy/update-rule-verification.md +1 -1
  411. package/docs/examples/sites/create-deployment.md +18 -0
  412. package/docs/examples/sites/create-duplicate-deployment.md +14 -0
  413. package/docs/examples/sites/create-template-deployment.md +18 -0
  414. package/docs/examples/sites/create-variable.md +16 -0
  415. package/docs/examples/sites/create-vcs-deployment.md +16 -0
  416. package/docs/examples/sites/create.md +30 -0
  417. package/docs/examples/sites/delete-deployment.md +14 -0
  418. package/docs/examples/sites/delete-log.md +14 -0
  419. package/docs/examples/sites/delete-variable.md +14 -0
  420. package/docs/examples/sites/delete.md +13 -0
  421. package/docs/examples/sites/get-deployment-download.md +15 -0
  422. package/docs/examples/sites/get-deployment.md +14 -0
  423. package/docs/examples/sites/get-log.md +14 -0
  424. package/docs/examples/sites/get-template.md +13 -0
  425. package/docs/examples/sites/get-usage.md +14 -0
  426. package/docs/examples/sites/get-variable.md +14 -0
  427. package/docs/examples/sites/get.md +13 -0
  428. package/docs/examples/sites/list-deployments.md +15 -0
  429. package/docs/examples/sites/list-frameworks.md +11 -0
  430. package/docs/examples/sites/list-logs.md +14 -0
  431. package/docs/examples/sites/list-specifications.md +11 -0
  432. package/docs/examples/sites/list-templates.md +16 -0
  433. package/docs/examples/sites/list-usage.md +13 -0
  434. package/docs/examples/sites/list-variables.md +13 -0
  435. package/docs/examples/sites/list.md +14 -0
  436. package/docs/examples/sites/update-deployment-status.md +14 -0
  437. package/docs/examples/sites/update-site-deployment.md +14 -0
  438. package/docs/examples/sites/update-variable.md +17 -0
  439. package/docs/examples/sites/update.md +30 -0
  440. package/docs/examples/storage/create-bucket.md +1 -1
  441. package/docs/examples/storage/create-file.md +1 -1
  442. package/docs/examples/storage/delete-bucket.md +1 -1
  443. package/docs/examples/storage/delete-file.md +1 -1
  444. package/docs/examples/storage/get-bucket-usage.md +1 -1
  445. package/docs/examples/storage/get-bucket.md +1 -1
  446. package/docs/examples/storage/get-file-download.md +3 -2
  447. package/docs/examples/storage/get-file-preview.md +4 -3
  448. package/docs/examples/storage/get-file-view.md +3 -2
  449. package/docs/examples/storage/get-file.md +1 -1
  450. package/docs/examples/storage/get-usage.md +1 -1
  451. package/docs/examples/storage/list-buckets.md +1 -1
  452. package/docs/examples/storage/list-files.md +1 -1
  453. package/docs/examples/storage/update-bucket.md +1 -1
  454. package/docs/examples/storage/update-file.md +1 -1
  455. package/docs/examples/teams/create-membership.md +1 -1
  456. package/docs/examples/teams/create.md +1 -1
  457. package/docs/examples/teams/delete-membership.md +1 -1
  458. package/docs/examples/teams/delete.md +1 -1
  459. package/docs/examples/teams/get-membership.md +1 -1
  460. package/docs/examples/teams/get-prefs.md +1 -1
  461. package/docs/examples/teams/get.md +1 -1
  462. package/docs/examples/teams/list-logs.md +1 -1
  463. package/docs/examples/teams/list-memberships.md +1 -1
  464. package/docs/examples/teams/list.md +1 -1
  465. package/docs/examples/teams/update-membership-status.md +1 -1
  466. package/docs/examples/teams/update-membership.md +1 -1
  467. package/docs/examples/teams/update-name.md +1 -1
  468. package/docs/examples/teams/update-prefs.md +1 -1
  469. package/docs/examples/tokens/create-file-token.md +15 -0
  470. package/docs/examples/tokens/delete.md +13 -0
  471. package/docs/examples/tokens/get.md +13 -0
  472. package/docs/examples/tokens/list.md +15 -0
  473. package/docs/examples/tokens/update.md +14 -0
  474. package/docs/examples/users/create-argon2user.md +1 -1
  475. package/docs/examples/users/create-bcrypt-user.md +1 -1
  476. package/docs/examples/users/create-j-w-t.md +1 -1
  477. package/docs/examples/users/create-m-d5user.md +1 -1
  478. package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
  479. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  480. package/docs/examples/users/create-s-h-a-user.md +1 -1
  481. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  482. package/docs/examples/users/create-scrypt-user.md +1 -1
  483. package/docs/examples/users/create-session.md +1 -1
  484. package/docs/examples/users/create-target.md +1 -1
  485. package/docs/examples/users/create-token.md +1 -1
  486. package/docs/examples/users/create.md +1 -1
  487. package/docs/examples/users/delete-identity.md +1 -1
  488. package/docs/examples/users/delete-mfa-authenticator.md +1 -1
  489. package/docs/examples/users/delete-session.md +1 -1
  490. package/docs/examples/users/delete-sessions.md +1 -1
  491. package/docs/examples/users/delete-target.md +1 -1
  492. package/docs/examples/users/delete.md +1 -1
  493. package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
  494. package/docs/examples/users/get-prefs.md +1 -1
  495. package/docs/examples/users/get-target.md +1 -1
  496. package/docs/examples/users/get-usage.md +1 -1
  497. package/docs/examples/users/get.md +1 -1
  498. package/docs/examples/users/list-identities.md +1 -1
  499. package/docs/examples/users/list-logs.md +1 -1
  500. package/docs/examples/users/list-memberships.md +4 -2
  501. package/docs/examples/users/list-mfa-factors.md +1 -1
  502. package/docs/examples/users/list-sessions.md +1 -1
  503. package/docs/examples/users/list-targets.md +1 -1
  504. package/docs/examples/users/list.md +1 -1
  505. package/docs/examples/users/update-email-verification.md +1 -1
  506. package/docs/examples/users/update-email.md +1 -1
  507. package/docs/examples/users/update-labels.md +1 -1
  508. package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
  509. package/docs/examples/users/update-mfa.md +1 -1
  510. package/docs/examples/users/update-name.md +1 -1
  511. package/docs/examples/users/update-password.md +1 -1
  512. package/docs/examples/users/update-phone-verification.md +1 -1
  513. package/docs/examples/users/update-phone.md +1 -1
  514. package/docs/examples/users/update-prefs.md +1 -1
  515. package/docs/examples/users/update-status.md +1 -1
  516. package/docs/examples/users/update-target.md +1 -1
  517. package/docs/examples/vcs/create-repository-detection.md +3 -2
  518. package/docs/examples/vcs/create-repository.md +1 -1
  519. package/docs/examples/vcs/delete-installation.md +1 -1
  520. package/docs/examples/vcs/get-installation.md +1 -1
  521. package/docs/examples/vcs/get-repository-contents.md +1 -1
  522. package/docs/examples/vcs/get-repository.md +1 -1
  523. package/docs/examples/vcs/list-installations.md +1 -1
  524. package/docs/examples/vcs/list-repositories.md +3 -2
  525. package/docs/examples/vcs/list-repository-branches.md +1 -1
  526. package/docs/examples/vcs/update-external-deployments.md +1 -1
  527. package/package.json +1 -1
  528. package/src/client.ts +16 -3
  529. package/src/enums/adapter.ts +4 -0
  530. package/src/enums/api-service.ts +1 -0
  531. package/src/enums/build-runtime.ts +62 -0
  532. package/src/enums/console-resource-type.ts +3 -0
  533. package/src/enums/deployment-download-type.ts +4 -0
  534. package/src/enums/framework.ts +16 -0
  535. package/src/enums/image-format.ts +0 -1
  536. package/src/enums/name.ts +0 -1
  537. package/src/enums/region.ts +2 -1
  538. package/src/enums/runtime.ts +4 -3
  539. package/src/enums/site-usage-range.ts +5 -0
  540. package/src/enums/status-code.ts +6 -0
  541. package/src/enums/v-c-s-deployment-type.ts +5 -0
  542. package/src/enums/v-c-s-detection-type.ts +4 -0
  543. package/src/index.ts +13 -2
  544. package/src/models.ts +1100 -217
  545. package/src/services/account.ts +0 -16
  546. package/src/services/avatars.ts +0 -7
  547. package/src/services/backups.ts +0 -6
  548. package/src/services/console.ts +36 -5
  549. package/src/services/databases.ts +194 -18
  550. package/src/services/domains.ts +1821 -0
  551. package/src/services/functions.ts +170 -81
  552. package/src/services/health.ts +9 -34
  553. package/src/services/locale.ts +0 -8
  554. package/src/services/messaging.ts +0 -13
  555. package/src/services/migrations.ts +43 -6
  556. package/src/services/organizations.ts +0 -47
  557. package/src/services/project.ts +10 -5
  558. package/src/services/projects.ts +172 -10
  559. package/src/services/proxy.ts +124 -14
  560. package/src/services/sites.ts +1104 -0
  561. package/src/services/storage.ts +15 -12
  562. package/src/services/teams.ts +0 -6
  563. package/src/services/tokens.ts +160 -0
  564. package/src/services/users.ts +9 -13
  565. package/src/services/vcs.ts +54 -42
  566. package/types/enums/adapter.d.ts +4 -0
  567. package/types/enums/api-service.d.ts +1 -0
  568. package/types/enums/build-runtime.d.ts +62 -0
  569. package/types/enums/console-resource-type.d.ts +3 -0
  570. package/types/enums/deployment-download-type.d.ts +4 -0
  571. package/types/enums/framework.d.ts +16 -0
  572. package/types/enums/image-format.d.ts +0 -1
  573. package/types/enums/name.d.ts +0 -1
  574. package/types/enums/region.d.ts +3 -2
  575. package/types/enums/runtime.d.ts +5 -4
  576. package/types/enums/site-usage-range.d.ts +5 -0
  577. package/types/enums/status-code.d.ts +6 -0
  578. package/types/enums/v-c-s-deployment-type.d.ts +5 -0
  579. package/types/enums/v-c-s-detection-type.d.ts +4 -0
  580. package/types/index.d.ts +13 -2
  581. package/types/models.d.ts +1100 -217
  582. package/types/services/console.d.ts +10 -0
  583. package/types/services/databases.d.ts +56 -2
  584. package/types/services/domains.d.ts +524 -0
  585. package/types/services/functions.d.ts +59 -33
  586. package/types/services/health.d.ts +6 -6
  587. package/types/services/migrations.d.ts +10 -0
  588. package/types/services/organizations.d.ts +0 -10
  589. package/types/services/project.d.ts +4 -2
  590. package/types/services/projects.d.ts +48 -0
  591. package/types/services/proxy.d.ts +33 -5
  592. package/types/services/sites.d.ts +319 -0
  593. package/types/services/storage.d.ts +6 -3
  594. package/types/services/tokens.d.ts +51 -0
  595. package/types/services/users.d.ts +3 -1
  596. package/types/services/vcs.d.ts +15 -12
package/src/models.ts CHANGED
@@ -132,6 +132,19 @@ export namespace Models {
132
132
  */
133
133
  buckets: Bucket[];
134
134
  }
135
+ /**
136
+ * Resource Tokens List
137
+ */
138
+ export type ResourceTokenList = {
139
+ /**
140
+ * Total number of tokens documents that matched your query.
141
+ */
142
+ total: number;
143
+ /**
144
+ * List of tokens.
145
+ */
146
+ tokens: ResourceToken[];
147
+ }
135
148
  /**
136
149
  * Teams List
137
150
  */
@@ -158,6 +171,32 @@ export namespace Models {
158
171
  */
159
172
  memberships: Membership[];
160
173
  }
174
+ /**
175
+ * Sites List
176
+ */
177
+ export type SiteList = {
178
+ /**
179
+ * Total number of sites documents that matched your query.
180
+ */
181
+ total: number;
182
+ /**
183
+ * List of sites.
184
+ */
185
+ sites: Site[];
186
+ }
187
+ /**
188
+ * Site Templates List
189
+ */
190
+ export type TemplateSiteList = {
191
+ /**
192
+ * Total number of templates documents that matched your query.
193
+ */
194
+ total: number;
195
+ /**
196
+ * List of templates.
197
+ */
198
+ templates: TemplateSite[];
199
+ }
161
200
  /**
162
201
  * Functions List
163
202
  */
@@ -198,17 +237,30 @@ export namespace Models {
198
237
  installations: Installation[];
199
238
  }
200
239
  /**
201
- * Provider Repositories List
240
+ * Framework Provider Repositories List
241
+ */
242
+ export type ProviderRepositoryFrameworkList = {
243
+ /**
244
+ * Total number of frameworkProviderRepositories documents that matched your query.
245
+ */
246
+ total: number;
247
+ /**
248
+ * List of frameworkProviderRepositories.
249
+ */
250
+ frameworkProviderRepositories: ProviderRepositoryFramework[];
251
+ }
252
+ /**
253
+ * Runtime Provider Repositories List
202
254
  */
203
- export type ProviderRepositoryList = {
255
+ export type ProviderRepositoryRuntimeList = {
204
256
  /**
205
- * Total number of providerRepositories documents that matched your query.
257
+ * Total number of runtimeProviderRepositories documents that matched your query.
206
258
  */
207
259
  total: number;
208
260
  /**
209
- * List of providerRepositories.
261
+ * List of runtimeProviderRepositories.
210
262
  */
211
- providerRepositories: ProviderRepository[];
263
+ runtimeProviderRepositories: ProviderRepositoryRuntime[];
212
264
  }
213
265
  /**
214
266
  * Branches List
@@ -223,6 +275,19 @@ export namespace Models {
223
275
  */
224
276
  branches: Branch[];
225
277
  }
278
+ /**
279
+ * Frameworks List
280
+ */
281
+ export type FrameworkList = {
282
+ /**
283
+ * Total number of frameworks documents that matched your query.
284
+ */
285
+ total: number;
286
+ /**
287
+ * List of frameworks.
288
+ */
289
+ frameworks: Framework[];
290
+ }
226
291
  /**
227
292
  * Runtimes List
228
293
  */
@@ -301,6 +366,19 @@ export namespace Models {
301
366
  */
302
367
  keys: Key[];
303
368
  }
369
+ /**
370
+ * Dev Keys List
371
+ */
372
+ export type DevKeyList = {
373
+ /**
374
+ * Total number of devKeys documents that matched your query.
375
+ */
376
+ total: number;
377
+ /**
378
+ * List of devKeys.
379
+ */
380
+ devKeys: DevKey[];
381
+ }
304
382
  /**
305
383
  * Platforms List
306
384
  */
@@ -657,6 +735,10 @@ export namespace Models {
657
735
  * Default value for attribute when not provided. Cannot be set when attribute is required.
658
736
  */
659
737
  default?: string;
738
+ /**
739
+ * Defines whether this attribute is encrypted or not.
740
+ */
741
+ encrypt?: boolean;
660
742
  }
661
743
  /**
662
744
  * AttributeInteger
@@ -1111,6 +1193,10 @@ export namespace Models {
1111
1193
  * Index attributes.
1112
1194
  */
1113
1195
  attributes: string[];
1196
+ /**
1197
+ * Index attributes length.
1198
+ */
1199
+ lengths: number[];
1114
1200
  /**
1115
1201
  * Index orders.
1116
1202
  */
@@ -1785,6 +1871,39 @@ export namespace Models {
1785
1871
  */
1786
1872
  antivirus: boolean;
1787
1873
  }
1874
+ /**
1875
+ * ResourceToken
1876
+ */
1877
+ export type ResourceToken = {
1878
+ /**
1879
+ * Token ID.
1880
+ */
1881
+ $id: string;
1882
+ /**
1883
+ * Token creation date in ISO 8601 format.
1884
+ */
1885
+ $createdAt: string;
1886
+ /**
1887
+ * Resource ID.
1888
+ */
1889
+ resourceId: string;
1890
+ /**
1891
+ * Resource type.
1892
+ */
1893
+ resourceType: string;
1894
+ /**
1895
+ * Token expiration date in ISO 8601 format.
1896
+ */
1897
+ expire: string;
1898
+ /**
1899
+ * JWT encoded string.
1900
+ */
1901
+ secret: string;
1902
+ /**
1903
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1904
+ */
1905
+ accessedAt: string;
1906
+ }
1788
1907
  /**
1789
1908
  * Team
1790
1909
  */
@@ -1871,6 +1990,225 @@ export namespace Models {
1871
1990
  */
1872
1991
  roles: string[];
1873
1992
  }
1993
+ /**
1994
+ * Site
1995
+ */
1996
+ export type Site = {
1997
+ /**
1998
+ * Site ID.
1999
+ */
2000
+ $id: string;
2001
+ /**
2002
+ * Site creation date in ISO 8601 format.
2003
+ */
2004
+ $createdAt: string;
2005
+ /**
2006
+ * Site update date in ISO 8601 format.
2007
+ */
2008
+ $updatedAt: string;
2009
+ /**
2010
+ * Site name.
2011
+ */
2012
+ name: string;
2013
+ /**
2014
+ * Site enabled.
2015
+ */
2016
+ enabled: boolean;
2017
+ /**
2018
+ * Is the site 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 site to update it with the latest configuration.
2019
+ */
2020
+ live: boolean;
2021
+ /**
2022
+ * When disabled, request logs will exclude logs and errors, and site responses will be slightly faster.
2023
+ */
2024
+ logging: boolean;
2025
+ /**
2026
+ * Site framework.
2027
+ */
2028
+ framework: string;
2029
+ /**
2030
+ * Site's active deployment ID.
2031
+ */
2032
+ deploymentId: string;
2033
+ /**
2034
+ * Active deployment creation date in ISO 8601 format.
2035
+ */
2036
+ deploymentCreatedAt: string;
2037
+ /**
2038
+ * Screenshot of active deployment with light theme preference file ID.
2039
+ */
2040
+ deploymentScreenshotLight: string;
2041
+ /**
2042
+ * Screenshot of active deployment with dark theme preference file ID.
2043
+ */
2044
+ deploymentScreenshotDark: string;
2045
+ /**
2046
+ * Site's latest deployment ID.
2047
+ */
2048
+ latestDeploymentId: string;
2049
+ /**
2050
+ * Latest deployment creation date in ISO 8601 format.
2051
+ */
2052
+ latestDeploymentCreatedAt: string;
2053
+ /**
2054
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
2055
+ */
2056
+ latestDeploymentStatus: string;
2057
+ /**
2058
+ * Site variables.
2059
+ */
2060
+ vars: Variable[];
2061
+ /**
2062
+ * Site request timeout in seconds.
2063
+ */
2064
+ timeout: number;
2065
+ /**
2066
+ * The install command used to install the site dependencies.
2067
+ */
2068
+ installCommand: string;
2069
+ /**
2070
+ * The build command used to build the site.
2071
+ */
2072
+ buildCommand: string;
2073
+ /**
2074
+ * The directory where the site build output is located.
2075
+ */
2076
+ outputDirectory: string;
2077
+ /**
2078
+ * Site VCS (Version Control System) installation id.
2079
+ */
2080
+ installationId: string;
2081
+ /**
2082
+ * VCS (Version Control System) Repository ID
2083
+ */
2084
+ providerRepositoryId: string;
2085
+ /**
2086
+ * VCS (Version Control System) branch name
2087
+ */
2088
+ providerBranch: string;
2089
+ /**
2090
+ * Path to site in VCS (Version Control System) repository
2091
+ */
2092
+ providerRootDirectory: string;
2093
+ /**
2094
+ * 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
2095
+ */
2096
+ providerSilentMode: boolean;
2097
+ /**
2098
+ * Machine specification for builds and executions.
2099
+ */
2100
+ specification: string;
2101
+ /**
2102
+ * Site build runtime.
2103
+ */
2104
+ buildRuntime: string;
2105
+ /**
2106
+ * Site framework adapter.
2107
+ */
2108
+ adapter: string;
2109
+ /**
2110
+ * Name of fallback file to use instead of 404 page. If null, Appwrite 404 page will be displayed.
2111
+ */
2112
+ fallbackFile: string;
2113
+ }
2114
+ /**
2115
+ * Template Site
2116
+ */
2117
+ export type TemplateSite = {
2118
+ /**
2119
+ * Site Template ID.
2120
+ */
2121
+ key: string;
2122
+ /**
2123
+ * Site Template Name.
2124
+ */
2125
+ name: string;
2126
+ /**
2127
+ * Short description of template
2128
+ */
2129
+ tagline: string;
2130
+ /**
2131
+ * URL hosting a template demo.
2132
+ */
2133
+ demoUrl: string;
2134
+ /**
2135
+ * File URL with preview screenshot in dark theme preference.
2136
+ */
2137
+ screenshotDark: string;
2138
+ /**
2139
+ * File URL with preview screenshot in light theme preference.
2140
+ */
2141
+ screenshotLight: string;
2142
+ /**
2143
+ * Site use cases.
2144
+ */
2145
+ useCases: string[];
2146
+ /**
2147
+ * List of frameworks that can be used with this template.
2148
+ */
2149
+ frameworks: TemplateFramework[];
2150
+ /**
2151
+ * VCS (Version Control System) Provider.
2152
+ */
2153
+ vcsProvider: string;
2154
+ /**
2155
+ * VCS (Version Control System) Repository ID
2156
+ */
2157
+ providerRepositoryId: string;
2158
+ /**
2159
+ * VCS (Version Control System) Owner.
2160
+ */
2161
+ providerOwner: string;
2162
+ /**
2163
+ * VCS (Version Control System) branch version (tag).
2164
+ */
2165
+ providerVersion: string;
2166
+ /**
2167
+ * Site variables.
2168
+ */
2169
+ variables: TemplateVariable[];
2170
+ }
2171
+ /**
2172
+ * Template Framework
2173
+ */
2174
+ export type TemplateFramework = {
2175
+ /**
2176
+ * Parent framework key.
2177
+ */
2178
+ key: string;
2179
+ /**
2180
+ * Framework Name.
2181
+ */
2182
+ name: string;
2183
+ /**
2184
+ * The install command used to install the dependencies.
2185
+ */
2186
+ installCommand: string;
2187
+ /**
2188
+ * The build command used to build the deployment.
2189
+ */
2190
+ buildCommand: string;
2191
+ /**
2192
+ * The output directory to store the build output.
2193
+ */
2194
+ outputDirectory: string;
2195
+ /**
2196
+ * Path to site in VCS (Version Control System) repository
2197
+ */
2198
+ providerRootDirectory: string;
2199
+ /**
2200
+ * Runtime used during build step of template.
2201
+ */
2202
+ buildRuntime: string;
2203
+ /**
2204
+ * Site framework runtime
2205
+ */
2206
+ adapter: string;
2207
+ /**
2208
+ * Fallback file for SPA. Only relevant for static serve runtime.
2209
+ */
2210
+ fallbackFile: string;
2211
+ }
1874
2212
  /**
1875
2213
  * Function
1876
2214
  */
@@ -1904,17 +2242,33 @@ export namespace Models {
1904
2242
  */
1905
2243
  live: boolean;
1906
2244
  /**
1907
- * Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
2245
+ * When disabled, executions will exclude logs and errors, and will be slightly faster.
1908
2246
  */
1909
2247
  logging: boolean;
1910
2248
  /**
1911
- * Function execution runtime.
2249
+ * Function execution and build runtime.
1912
2250
  */
1913
2251
  runtime: string;
1914
2252
  /**
1915
2253
  * Function's active deployment ID.
1916
2254
  */
1917
- deployment: string;
2255
+ deploymentId: string;
2256
+ /**
2257
+ * Active deployment creation date in ISO 8601 format.
2258
+ */
2259
+ deploymentCreatedAt: string;
2260
+ /**
2261
+ * Function's latest deployment ID.
2262
+ */
2263
+ latestDeploymentId: string;
2264
+ /**
2265
+ * Latest deployment creation date in ISO 8601 format.
2266
+ */
2267
+ latestDeploymentCreatedAt: string;
2268
+ /**
2269
+ * Status of latest deployment. Possible values are "waiting", "processing", "building", "ready", and "failed".
2270
+ */
2271
+ latestDeploymentStatus: string;
1918
2272
  /**
1919
2273
  * Allowed permission scopes.
1920
2274
  */
@@ -2082,6 +2436,10 @@ export namespace Models {
2082
2436
  * Variable Value.
2083
2437
  */
2084
2438
  value: string;
2439
+ /**
2440
+ * Variable secret flag. Secret variables can only be updated or deleted, but never read.
2441
+ */
2442
+ secret: boolean;
2085
2443
  /**
2086
2444
  * Variable Placeholder.
2087
2445
  */
@@ -2148,28 +2506,119 @@ export namespace Models {
2148
2506
  * Is VCS (Version Control System) repository private?
2149
2507
  */
2150
2508
  private: boolean;
2151
- /**
2152
- * Auto-detected runtime suggestion. Empty if getting response of getRuntime().
2153
- */
2154
- runtime: string;
2155
2509
  /**
2156
2510
  * Last commit date in ISO 8601 format.
2157
2511
  */
2158
2512
  pushedAt: string;
2159
2513
  }
2160
2514
  /**
2161
- * Detection
2515
+ * ProviderRepositoryFramework
2162
2516
  */
2163
- export type Detection = {
2517
+ export type ProviderRepositoryFramework = {
2164
2518
  /**
2165
- * Runtime
2519
+ * VCS (Version Control System) repository ID.
2166
2520
  */
2167
- runtime: string;
2168
- }
2169
- /**
2170
- * VcsContents
2171
- */
2172
- export type VcsContent = {
2521
+ id: string;
2522
+ /**
2523
+ * VCS (Version Control System) repository name.
2524
+ */
2525
+ name: string;
2526
+ /**
2527
+ * VCS (Version Control System) organization name
2528
+ */
2529
+ organization: string;
2530
+ /**
2531
+ * VCS (Version Control System) provider name.
2532
+ */
2533
+ provider: string;
2534
+ /**
2535
+ * Is VCS (Version Control System) repository private?
2536
+ */
2537
+ private: boolean;
2538
+ /**
2539
+ * Last commit date in ISO 8601 format.
2540
+ */
2541
+ pushedAt: string;
2542
+ /**
2543
+ * Auto-detected framework. Empty if type is not "framework".
2544
+ */
2545
+ framework: string;
2546
+ }
2547
+ /**
2548
+ * ProviderRepositoryRuntime
2549
+ */
2550
+ export type ProviderRepositoryRuntime = {
2551
+ /**
2552
+ * VCS (Version Control System) repository ID.
2553
+ */
2554
+ id: string;
2555
+ /**
2556
+ * VCS (Version Control System) repository name.
2557
+ */
2558
+ name: string;
2559
+ /**
2560
+ * VCS (Version Control System) organization name
2561
+ */
2562
+ organization: string;
2563
+ /**
2564
+ * VCS (Version Control System) provider name.
2565
+ */
2566
+ provider: string;
2567
+ /**
2568
+ * Is VCS (Version Control System) repository private?
2569
+ */
2570
+ private: boolean;
2571
+ /**
2572
+ * Last commit date in ISO 8601 format.
2573
+ */
2574
+ pushedAt: string;
2575
+ /**
2576
+ * Auto-detected runtime. Empty if type is not "runtime".
2577
+ */
2578
+ runtime: string;
2579
+ }
2580
+ /**
2581
+ * DetectionFramework
2582
+ */
2583
+ export type DetectionFramework = {
2584
+ /**
2585
+ * Framework
2586
+ */
2587
+ framework: string;
2588
+ /**
2589
+ * Site Install Command
2590
+ */
2591
+ installCommand: string;
2592
+ /**
2593
+ * Site Build Command
2594
+ */
2595
+ buildCommand: string;
2596
+ /**
2597
+ * Site Output Directory
2598
+ */
2599
+ outputDirectory: string;
2600
+ }
2601
+ /**
2602
+ * DetectionRuntime
2603
+ */
2604
+ export type DetectionRuntime = {
2605
+ /**
2606
+ * Runtime
2607
+ */
2608
+ runtime: string;
2609
+ /**
2610
+ * Function Entrypoint
2611
+ */
2612
+ entrypoint: string;
2613
+ /**
2614
+ * Function install and build commands
2615
+ */
2616
+ commands: string;
2617
+ }
2618
+ /**
2619
+ * VcsContents
2620
+ */
2621
+ export type VcsContent = {
2173
2622
  /**
2174
2623
  * Content size in bytes. Only files have size, and for directories, 0 is returned.
2175
2624
  */
@@ -2229,6 +2678,56 @@ export namespace Models {
2229
2678
  */
2230
2679
  supports: string[];
2231
2680
  }
2681
+ /**
2682
+ * Framework
2683
+ */
2684
+ export type Framework = {
2685
+ /**
2686
+ * Framework key.
2687
+ */
2688
+ key: string;
2689
+ /**
2690
+ * Framework Name.
2691
+ */
2692
+ name: string;
2693
+ /**
2694
+ * Default runtime version.
2695
+ */
2696
+ buildRuntime: string;
2697
+ /**
2698
+ * List of supported runtime versions.
2699
+ */
2700
+ runtimes: string[];
2701
+ /**
2702
+ * List of supported adapters.
2703
+ */
2704
+ adapters: FrameworkAdapter[];
2705
+ }
2706
+ /**
2707
+ * Framework Adapter
2708
+ */
2709
+ export type FrameworkAdapter = {
2710
+ /**
2711
+ * Adapter key.
2712
+ */
2713
+ key: string;
2714
+ /**
2715
+ * Default command to download dependencies.
2716
+ */
2717
+ installCommand: string;
2718
+ /**
2719
+ * Default command to build site into output directory.
2720
+ */
2721
+ buildCommand: string;
2722
+ /**
2723
+ * Default output directory of build.
2724
+ */
2725
+ outputDirectory: string;
2726
+ /**
2727
+ * Name of fallback file to use instead of 404 page. If null, Appwrite 404 page will be displayed.
2728
+ */
2729
+ fallbackFile: string;
2730
+ }
2232
2731
  /**
2233
2732
  * Deployment
2234
2733
  */
@@ -2264,11 +2763,15 @@ export namespace Models {
2264
2763
  /**
2265
2764
  * The code size in bytes.
2266
2765
  */
2267
- size: number;
2766
+ sourceSize: number;
2268
2767
  /**
2269
2768
  * The build output size in bytes.
2270
2769
  */
2271
2770
  buildSize: number;
2771
+ /**
2772
+ * The total size in bytes (source and build output).
2773
+ */
2774
+ totalSize: number;
2272
2775
  /**
2273
2776
  * The current build ID.
2274
2777
  */
@@ -2278,7 +2781,15 @@ export namespace Models {
2278
2781
  */
2279
2782
  activate: boolean;
2280
2783
  /**
2281
- * The deployment status. Possible values are "processing", "building", "waiting", "ready", and "failed".
2784
+ * Screenshot with light theme preference file ID.
2785
+ */
2786
+ screenshotLight: string;
2787
+ /**
2788
+ * Screenshot with dark theme preference file ID.
2789
+ */
2790
+ screenshotDark: string;
2791
+ /**
2792
+ * The deployment status. Possible values are "waiting", "processing", "building", "ready", and "failed".
2282
2793
  */
2283
2794
  status: string;
2284
2795
  /**
@@ -2288,7 +2799,7 @@ export namespace Models {
2288
2799
  /**
2289
2800
  * The current build time in seconds.
2290
2801
  */
2291
- buildTime: number;
2802
+ buildDuration: number;
2292
2803
  /**
2293
2804
  * The name of the vcs provider repository
2294
2805
  */
@@ -2395,7 +2906,7 @@ export namespace Models {
2395
2906
  */
2396
2907
  errors: string;
2397
2908
  /**
2398
- * Function execution duration in seconds.
2909
+ * Resource(function/site) execution duration in seconds.
2399
2910
  */
2400
2911
  duration: number;
2401
2912
  /**
@@ -2403,47 +2914,6 @@ export namespace Models {
2403
2914
  */
2404
2915
  scheduledAt?: string;
2405
2916
  }
2406
- /**
2407
- * Build
2408
- */
2409
- export type Build = {
2410
- /**
2411
- * Build ID.
2412
- */
2413
- $id: string;
2414
- /**
2415
- * The deployment that created this build.
2416
- */
2417
- deploymentId: string;
2418
- /**
2419
- * The build status. There are a few different types and each one means something different. \nFailed - The deployment build has failed. More details can usually be found in buildStderr\nReady - The deployment build was successful and the deployment is ready to be deployed\nProcessing - The deployment is currently waiting to have a build triggered\nBuilding - The deployment is currently being built
2420
- */
2421
- status: string;
2422
- /**
2423
- * The stdout of the build.
2424
- */
2425
- stdout: string;
2426
- /**
2427
- * The stderr of the build.
2428
- */
2429
- stderr: string;
2430
- /**
2431
- * The deployment creation date in ISO 8601 format.
2432
- */
2433
- startTime: string;
2434
- /**
2435
- * The time the build was finished in ISO 8601 format.
2436
- */
2437
- endTime: string;
2438
- /**
2439
- * The build duration in seconds.
2440
- */
2441
- duration: number;
2442
- /**
2443
- * The code size in bytes.
2444
- */
2445
- size: number;
2446
- }
2447
2917
  /**
2448
2918
  * Project
2449
2919
  */
@@ -2564,6 +3034,10 @@ export namespace Models {
2564
3034
  * List of API Keys.
2565
3035
  */
2566
3036
  keys: Key[];
3037
+ /**
3038
+ * List of dev keys.
3039
+ */
3040
+ devKeys: DevKey[];
2567
3041
  /**
2568
3042
  * Status for custom SMTP
2569
3043
  */
@@ -2668,6 +3142,10 @@ export namespace Models {
2668
3142
  * Users service status
2669
3143
  */
2670
3144
  serviceStatusForUsers: boolean;
3145
+ /**
3146
+ * Sites service status
3147
+ */
3148
+ serviceStatusForSites: boolean;
2671
3149
  /**
2672
3150
  * Functions service status
2673
3151
  */
@@ -2783,6 +3261,43 @@ export namespace Models {
2783
3261
  */
2784
3262
  sdks: string[];
2785
3263
  }
3264
+ /**
3265
+ * DevKey
3266
+ */
3267
+ export type DevKey = {
3268
+ /**
3269
+ * Key ID.
3270
+ */
3271
+ $id: string;
3272
+ /**
3273
+ * Key creation date in ISO 8601 format.
3274
+ */
3275
+ $createdAt: string;
3276
+ /**
3277
+ * Key update date in ISO 8601 format.
3278
+ */
3279
+ $updatedAt: string;
3280
+ /**
3281
+ * Key name.
3282
+ */
3283
+ name: string;
3284
+ /**
3285
+ * Key expiration date in ISO 8601 format.
3286
+ */
3287
+ expire: string;
3288
+ /**
3289
+ * Secret key.
3290
+ */
3291
+ secret: string;
3292
+ /**
3293
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
3294
+ */
3295
+ accessedAt: string;
3296
+ /**
3297
+ * List of SDK user agents that used this key.
3298
+ */
3299
+ sdks: string[];
3300
+ }
2786
3301
  /**
2787
3302
  * Mock Number
2788
3303
  */
@@ -2890,6 +3405,10 @@ export namespace Models {
2890
3405
  * Variable value.
2891
3406
  */
2892
3407
  value: string;
3408
+ /**
3409
+ * Variable secret flag. Secret variables can only be updated or deleted, but never read.
3410
+ */
3411
+ secret: boolean;
2893
3412
  /**
2894
3413
  * Service to which the variable belongs. Possible values are "project", "function"
2895
3414
  */
@@ -3253,90 +3772,292 @@ export namespace Models {
3253
3772
  /**
3254
3773
  * Aggregated number of users per period.
3255
3774
  */
3256
- users: Metric[];
3775
+ users: Metric[];
3776
+ /**
3777
+ * Aggregated number of active sessions per period.
3778
+ */
3779
+ sessions: Metric[];
3780
+ }
3781
+ /**
3782
+ * StorageUsage
3783
+ */
3784
+ export type UsageStorage = {
3785
+ /**
3786
+ * Time range of the usage stats.
3787
+ */
3788
+ range: string;
3789
+ /**
3790
+ * Total aggregated number of buckets
3791
+ */
3792
+ bucketsTotal: number;
3793
+ /**
3794
+ * Total aggregated number of files.
3795
+ */
3796
+ filesTotal: number;
3797
+ /**
3798
+ * Total aggregated number of files storage (in bytes).
3799
+ */
3800
+ filesStorageTotal: number;
3801
+ /**
3802
+ * Aggregated number of buckets per period.
3803
+ */
3804
+ buckets: Metric[];
3805
+ /**
3806
+ * Aggregated number of files per period.
3807
+ */
3808
+ files: Metric[];
3809
+ /**
3810
+ * Aggregated number of files storage (in bytes) per period .
3811
+ */
3812
+ storage: Metric[];
3813
+ }
3814
+ /**
3815
+ * UsageBuckets
3816
+ */
3817
+ export type UsageBuckets = {
3818
+ /**
3819
+ * Time range of the usage stats.
3820
+ */
3821
+ range: string;
3822
+ /**
3823
+ * Total aggregated number of bucket files.
3824
+ */
3825
+ filesTotal: number;
3826
+ /**
3827
+ * Total aggregated number of bucket files storage (in bytes).
3828
+ */
3829
+ filesStorageTotal: number;
3830
+ /**
3831
+ * Aggregated number of bucket files per period.
3832
+ */
3833
+ files: Metric[];
3834
+ /**
3835
+ * Aggregated number of bucket storage files (in bytes) per period.
3836
+ */
3837
+ storage: Metric[];
3838
+ /**
3839
+ * Aggregated number of files transformations per period.
3840
+ */
3841
+ imageTransformations: Metric[];
3842
+ /**
3843
+ * Total aggregated number of files transformations.
3844
+ */
3845
+ imageTransformationsTotal: number;
3846
+ }
3847
+ /**
3848
+ * UsageFunctions
3849
+ */
3850
+ export type UsageFunctions = {
3851
+ /**
3852
+ * Time range of the usage stats.
3853
+ */
3854
+ range: string;
3855
+ /**
3856
+ * Total aggregated number of functions.
3857
+ */
3858
+ functionsTotal: number;
3859
+ /**
3860
+ * Total aggregated number of functions deployments.
3861
+ */
3862
+ deploymentsTotal: number;
3863
+ /**
3864
+ * Total aggregated sum of functions deployment storage.
3865
+ */
3866
+ deploymentsStorageTotal: number;
3867
+ /**
3868
+ * Total aggregated number of functions build.
3869
+ */
3870
+ buildsTotal: number;
3871
+ /**
3872
+ * total aggregated sum of functions build storage.
3873
+ */
3874
+ buildsStorageTotal: number;
3875
+ /**
3876
+ * Total aggregated sum of functions build compute time.
3877
+ */
3878
+ buildsTimeTotal: number;
3879
+ /**
3880
+ * Total aggregated sum of functions build mbSeconds.
3881
+ */
3882
+ buildsMbSecondsTotal: number;
3883
+ /**
3884
+ * Total aggregated number of functions execution.
3885
+ */
3886
+ executionsTotal: number;
3887
+ /**
3888
+ * Total aggregated sum of functions execution compute time.
3889
+ */
3890
+ executionsTimeTotal: number;
3891
+ /**
3892
+ * Total aggregated sum of functions execution mbSeconds.
3893
+ */
3894
+ executionsMbSecondsTotal: number;
3895
+ /**
3896
+ * Aggregated number of functions per period.
3897
+ */
3898
+ functions: Metric[];
3899
+ /**
3900
+ * Aggregated number of functions deployment per period.
3901
+ */
3902
+ deployments: Metric[];
3903
+ /**
3904
+ * Aggregated number of functions deployment storage per period.
3905
+ */
3906
+ deploymentsStorage: Metric[];
3907
+ /**
3908
+ * Total aggregated number of successful function builds.
3909
+ */
3910
+ buildsSuccessTotal: number;
3911
+ /**
3912
+ * Total aggregated number of failed function builds.
3913
+ */
3914
+ buildsFailedTotal: number;
3915
+ /**
3916
+ * Aggregated number of functions build per period.
3917
+ */
3918
+ builds: Metric[];
3919
+ /**
3920
+ * Aggregated sum of functions build storage per period.
3921
+ */
3922
+ buildsStorage: Metric[];
3923
+ /**
3924
+ * Aggregated sum of functions build compute time per period.
3925
+ */
3926
+ buildsTime: Metric[];
3927
+ /**
3928
+ * Aggregated sum of functions build mbSeconds per period.
3929
+ */
3930
+ buildsMbSeconds: Metric[];
3931
+ /**
3932
+ * Aggregated number of functions execution per period.
3933
+ */
3934
+ executions: Metric[];
3935
+ /**
3936
+ * Aggregated number of functions execution compute time per period.
3937
+ */
3938
+ executionsTime: Metric[];
3939
+ /**
3940
+ * Aggregated number of functions mbSeconds per period.
3941
+ */
3942
+ executionsMbSeconds: Metric[];
3943
+ /**
3944
+ * Aggregated number of successful function builds per period.
3945
+ */
3946
+ buildsSuccess: Metric[];
3947
+ /**
3948
+ * Aggregated number of failed function builds per period.
3949
+ */
3950
+ buildsFailed: Metric[];
3951
+ }
3952
+ /**
3953
+ * UsageFunction
3954
+ */
3955
+ export type UsageFunction = {
3956
+ /**
3957
+ * The time range of the usage stats.
3958
+ */
3959
+ range: string;
3960
+ /**
3961
+ * Total aggregated number of function deployments.
3962
+ */
3963
+ deploymentsTotal: number;
3964
+ /**
3965
+ * Total aggregated sum of function deployments storage.
3966
+ */
3967
+ deploymentsStorageTotal: number;
3968
+ /**
3969
+ * Total aggregated number of function builds.
3970
+ */
3971
+ buildsTotal: number;
3972
+ /**
3973
+ * Total aggregated number of successful function builds.
3974
+ */
3975
+ buildsSuccessTotal: number;
3976
+ /**
3977
+ * Total aggregated number of failed function builds.
3978
+ */
3979
+ buildsFailedTotal: number;
3980
+ /**
3981
+ * total aggregated sum of function builds storage.
3982
+ */
3983
+ buildsStorageTotal: number;
3984
+ /**
3985
+ * Total aggregated sum of function builds compute time.
3986
+ */
3987
+ buildsTimeTotal: number;
3988
+ /**
3989
+ * Average builds compute time.
3990
+ */
3991
+ buildsTimeAverage: number;
3257
3992
  /**
3258
- * Aggregated number of active sessions per period.
3993
+ * Total aggregated sum of function builds mbSeconds.
3259
3994
  */
3260
- sessions: Metric[];
3261
- }
3262
- /**
3263
- * StorageUsage
3264
- */
3265
- export type UsageStorage = {
3995
+ buildsMbSecondsTotal: number;
3266
3996
  /**
3267
- * Time range of the usage stats.
3997
+ * Total aggregated number of function executions.
3268
3998
  */
3269
- range: string;
3999
+ executionsTotal: number;
3270
4000
  /**
3271
- * Total aggregated number of buckets
4001
+ * Total aggregated sum of function executions compute time.
3272
4002
  */
3273
- bucketsTotal: number;
4003
+ executionsTimeTotal: number;
3274
4004
  /**
3275
- * Total aggregated number of files.
4005
+ * Total aggregated sum of function executions mbSeconds.
3276
4006
  */
3277
- filesTotal: number;
4007
+ executionsMbSecondsTotal: number;
3278
4008
  /**
3279
- * Total aggregated number of files storage (in bytes).
4009
+ * Aggregated number of function deployments per period.
3280
4010
  */
3281
- filesStorageTotal: number;
4011
+ deployments: Metric[];
3282
4012
  /**
3283
- * Aggregated number of buckets per period.
4013
+ * Aggregated number of function deployments storage per period.
3284
4014
  */
3285
- buckets: Metric[];
4015
+ deploymentsStorage: Metric[];
3286
4016
  /**
3287
- * Aggregated number of files per period.
4017
+ * Aggregated number of function builds per period.
3288
4018
  */
3289
- files: Metric[];
4019
+ builds: Metric[];
3290
4020
  /**
3291
- * Aggregated number of files storage (in bytes) per period .
4021
+ * Aggregated sum of function builds storage per period.
3292
4022
  */
3293
- storage: Metric[];
3294
- }
3295
- /**
3296
- * UsageBuckets
3297
- */
3298
- export type UsageBuckets = {
4023
+ buildsStorage: Metric[];
3299
4024
  /**
3300
- * Time range of the usage stats.
4025
+ * Aggregated sum of function builds compute time per period.
3301
4026
  */
3302
- range: string;
4027
+ buildsTime: Metric[];
3303
4028
  /**
3304
- * Total aggregated number of bucket files.
4029
+ * Aggregated number of function builds mbSeconds per period.
3305
4030
  */
3306
- filesTotal: number;
4031
+ buildsMbSeconds: Metric[];
3307
4032
  /**
3308
- * Total aggregated number of bucket files storage (in bytes).
4033
+ * Aggregated number of function executions per period.
3309
4034
  */
3310
- filesStorageTotal: number;
4035
+ executions: Metric[];
3311
4036
  /**
3312
- * Aggregated number of bucket files per period.
4037
+ * Aggregated number of function executions compute time per period.
3313
4038
  */
3314
- files: Metric[];
4039
+ executionsTime: Metric[];
3315
4040
  /**
3316
- * Aggregated number of bucket storage files (in bytes) per period.
4041
+ * Aggregated number of function mbSeconds per period.
3317
4042
  */
3318
- storage: Metric[];
4043
+ executionsMbSeconds: Metric[];
3319
4044
  /**
3320
- * Aggregated number of files transformations per period.
4045
+ * Aggregated number of successful builds per period.
3321
4046
  */
3322
- imageTransformations: Metric[];
4047
+ buildsSuccess: Metric[];
3323
4048
  /**
3324
- * Total aggregated number of files transformations.
4049
+ * Aggregated number of failed builds per period.
3325
4050
  */
3326
- imageTransformationsTotal: number;
4051
+ buildsFailed: Metric[];
3327
4052
  }
3328
4053
  /**
3329
- * UsageFunctions
4054
+ * UsageSites
3330
4055
  */
3331
- export type UsageFunctions = {
4056
+ export type UsageSites = {
3332
4057
  /**
3333
4058
  * Time range of the usage stats.
3334
4059
  */
3335
4060
  range: string;
3336
- /**
3337
- * Total aggregated number of functions.
3338
- */
3339
- functionsTotal: number;
3340
4061
  /**
3341
4062
  * Total aggregated number of functions deployments.
3342
4063
  */
@@ -3373,10 +4094,6 @@ export namespace Models {
3373
4094
  * Total aggregated sum of functions execution mbSeconds.
3374
4095
  */
3375
4096
  executionsMbSecondsTotal: number;
3376
- /**
3377
- * Aggregated number of functions per period.
3378
- */
3379
- functions: Metric[];
3380
4097
  /**
3381
4098
  * Aggregated number of functions deployment per period.
3382
4099
  */
@@ -3385,6 +4102,14 @@ export namespace Models {
3385
4102
  * Aggregated number of functions deployment storage per period.
3386
4103
  */
3387
4104
  deploymentsStorage: Metric[];
4105
+ /**
4106
+ * Total aggregated number of successful function builds.
4107
+ */
4108
+ buildsSuccessTotal: number;
4109
+ /**
4110
+ * Total aggregated number of failed function builds.
4111
+ */
4112
+ buildsFailedTotal: number;
3388
4113
  /**
3389
4114
  * Aggregated number of functions build per period.
3390
4115
  */
@@ -3413,11 +4138,51 @@ export namespace Models {
3413
4138
  * Aggregated number of functions mbSeconds per period.
3414
4139
  */
3415
4140
  executionsMbSeconds: Metric[];
4141
+ /**
4142
+ * Aggregated number of successful function builds per period.
4143
+ */
4144
+ buildsSuccess: Metric[];
4145
+ /**
4146
+ * Aggregated number of failed function builds per period.
4147
+ */
4148
+ buildsFailed: Metric[];
4149
+ /**
4150
+ * Total aggregated number of sites.
4151
+ */
4152
+ sitesTotal: number;
4153
+ /**
4154
+ * Aggregated number of sites per period.
4155
+ */
4156
+ sites: Metric[];
4157
+ /**
4158
+ * Total aggregated number of requests.
4159
+ */
4160
+ requestsTotal: number;
4161
+ /**
4162
+ * Aggregated number of requests per period.
4163
+ */
4164
+ requests: Metric[];
4165
+ /**
4166
+ * Total aggregated inbound bandwidth.
4167
+ */
4168
+ inboundTotal: number;
4169
+ /**
4170
+ * Aggregated number of inbound bandwidth per period.
4171
+ */
4172
+ inbound: Metric[];
4173
+ /**
4174
+ * Total aggregated outbound bandwidth.
4175
+ */
4176
+ outboundTotal: number;
4177
+ /**
4178
+ * Aggregated number of outbound bandwidth per period.
4179
+ */
4180
+ outbound: Metric[];
3416
4181
  }
3417
4182
  /**
3418
- * UsageFunction
4183
+ * UsageSite
3419
4184
  */
3420
- export type UsageFunction = {
4185
+ export type UsageSite = {
3421
4186
  /**
3422
4187
  * The time range of the usage stats.
3423
4188
  */
@@ -3434,6 +4199,14 @@ export namespace Models {
3434
4199
  * Total aggregated number of function builds.
3435
4200
  */
3436
4201
  buildsTotal: number;
4202
+ /**
4203
+ * Total aggregated number of successful function builds.
4204
+ */
4205
+ buildsSuccessTotal: number;
4206
+ /**
4207
+ * Total aggregated number of failed function builds.
4208
+ */
4209
+ buildsFailedTotal: number;
3437
4210
  /**
3438
4211
  * total aggregated sum of function builds storage.
3439
4212
  */
@@ -3442,6 +4215,10 @@ export namespace Models {
3442
4215
  * Total aggregated sum of function builds compute time.
3443
4216
  */
3444
4217
  buildsTimeTotal: number;
4218
+ /**
4219
+ * Average builds compute time.
4220
+ */
4221
+ buildsTimeAverage: number;
3445
4222
  /**
3446
4223
  * Total aggregated sum of function builds mbSeconds.
3447
4224
  */
@@ -3494,6 +4271,38 @@ export namespace Models {
3494
4271
  * Aggregated number of function mbSeconds per period.
3495
4272
  */
3496
4273
  executionsMbSeconds: Metric[];
4274
+ /**
4275
+ * Aggregated number of successful builds per period.
4276
+ */
4277
+ buildsSuccess: Metric[];
4278
+ /**
4279
+ * Aggregated number of failed builds per period.
4280
+ */
4281
+ buildsFailed: Metric[];
4282
+ /**
4283
+ * Total aggregated number of requests.
4284
+ */
4285
+ requestsTotal: number;
4286
+ /**
4287
+ * Aggregated number of requests per period.
4288
+ */
4289
+ requests: Metric[];
4290
+ /**
4291
+ * Total aggregated inbound bandwidth.
4292
+ */
4293
+ inboundTotal: number;
4294
+ /**
4295
+ * Aggregated number of inbound bandwidth per period.
4296
+ */
4297
+ inbound: Metric[];
4298
+ /**
4299
+ * Total aggregated outbound bandwidth.
4300
+ */
4301
+ outboundTotal: number;
4302
+ /**
4303
+ * Aggregated number of outbound bandwidth per period.
4304
+ */
4305
+ outbound: Metric[];
3497
4306
  }
3498
4307
  /**
3499
4308
  * UsageProject
@@ -3548,11 +4357,11 @@ export namespace Models {
3548
4357
  */
3549
4358
  buildsMbSecondsTotal: number;
3550
4359
  /**
3551
- * Total number of databases reads.
4360
+ * Aggregated stats for total databases reads.
3552
4361
  */
3553
4362
  databasesReadsTotal: number;
3554
4363
  /**
3555
- * Total number of databases writes.
4364
+ * Aggregated stats for total databases writes.
3556
4365
  */
3557
4366
  databasesWritesTotal: number;
3558
4367
  /**
@@ -3596,11 +4405,11 @@ export namespace Models {
3596
4405
  */
3597
4406
  functionsStorageBreakdown: MetricBreakdown[];
3598
4407
  /**
3599
- * Total aggregated number of phone auth.
4408
+ * Aggregated stats for total auth phone.
3600
4409
  */
3601
4410
  authPhoneTotal: number;
3602
4411
  /**
3603
- * Estimated total aggregated cost of phone auth.
4412
+ * Aggregated stats for total auth phone estimation.
3604
4413
  */
3605
4414
  authPhoneEstimate: number;
3606
4415
  /**
@@ -3608,11 +4417,11 @@ export namespace Models {
3608
4417
  */
3609
4418
  authPhoneCountryBreakdown: MetricBreakdown[];
3610
4419
  /**
3611
- * An array of aggregated number of database reads.
4420
+ * Aggregated stats for database reads.
3612
4421
  */
3613
4422
  databasesReads: Metric[];
3614
4423
  /**
3615
- * An array of aggregated number of database writes.
4424
+ * Aggregated stats for database writes.
3616
4425
  */
3617
4426
  databasesWrites: Metric[];
3618
4427
  /**
@@ -3623,6 +4432,14 @@ export namespace Models {
3623
4432
  * Total aggregated number of image transformations.
3624
4433
  */
3625
4434
  imageTransformationsTotal: number;
4435
+ /**
4436
+ * Aggregated stats for total network bandwidth.
4437
+ */
4438
+ networkTotal: number;
4439
+ /**
4440
+ * Aggregated stats for total backups storage.
4441
+ */
4442
+ backupsStorageTotal: number;
3626
4443
  }
3627
4444
  /**
3628
4445
  * Headers
@@ -3679,13 +4496,37 @@ export namespace Models {
3679
4496
  */
3680
4497
  domain: string;
3681
4498
  /**
3682
- * Action definition for the rule. Possible values are "api", "function", or "redirect"
4499
+ * Action definition for the rule. Possible values are "api", "deployment", or "redirect"
3683
4500
  */
3684
- resourceType: string;
4501
+ type: string;
3685
4502
  /**
3686
- * 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.
4503
+ * Defines how the rule was created. Possible values are "manual" or "deployment"
3687
4504
  */
3688
- resourceId: string;
4505
+ trigger: string;
4506
+ /**
4507
+ * URL to redirect to. Used if type is "redirect"
4508
+ */
4509
+ redirectUrl: string;
4510
+ /**
4511
+ * Status code to apply during redirect. Used if type is "redirect"
4512
+ */
4513
+ redirectStatusCode: number;
4514
+ /**
4515
+ * ID of deployment. Used if type is "deployment"
4516
+ */
4517
+ deploymentId: string;
4518
+ /**
4519
+ * Type of deployment. Possible values are "function", "site". Used if rule's type is "deployment".
4520
+ */
4521
+ deploymentResourceType: string;
4522
+ /**
4523
+ * ID deployment's resource. Used if type is "deployment"
4524
+ */
4525
+ deploymentResourceId: string;
4526
+ /**
4527
+ * Name of Git branch that updates rule. Used if type is "deployment"
4528
+ */
4529
+ deploymentVcsProviderBranch: string;
3689
4530
  /**
3690
4531
  * Domain verification status. Possible values are "created", "verifying", "verified" and "unverified"
3691
4532
  */
@@ -3756,7 +4597,15 @@ export namespace Models {
3756
4597
  /**
3757
4598
  * CNAME target for your Appwrite custom domains.
3758
4599
  */
3759
- _APP_DOMAIN_TARGET: string;
4600
+ _APP_DOMAIN_TARGET_CNAME: string;
4601
+ /**
4602
+ * A target for your Appwrite custom domains.
4603
+ */
4604
+ _APP_DOMAIN_TARGET_A: string;
4605
+ /**
4606
+ * AAAA target for your Appwrite custom domains.
4607
+ */
4608
+ _APP_DOMAIN_TARGET_AAAA: string;
3760
4609
  /**
3761
4610
  * Maximum file size allowed for file upload in bytes.
3762
4611
  */
@@ -3764,7 +4613,7 @@ export namespace Models {
3764
4613
  /**
3765
4614
  * Maximum file size allowed for deployment in bytes.
3766
4615
  */
3767
- _APP_FUNCTIONS_SIZE_LIMIT: number;
4616
+ _APP_COMPUTE_SIZE_LIMIT: number;
3768
4617
  /**
3769
4618
  * Defines if usage stats are enabled. This value is set to 'enabled' by default, to disable the usage stats set the value to 'disabled'.
3770
4619
  */
@@ -3781,6 +4630,22 @@ export namespace Models {
3781
4630
  * Defines if AI assistant is enabled.
3782
4631
  */
3783
4632
  _APP_ASSISTANT_ENABLED: boolean;
4633
+ /**
4634
+ * A domain to use for site URLs.
4635
+ */
4636
+ _APP_DOMAIN_SITES: string;
4637
+ /**
4638
+ * A domain to use for function URLs.
4639
+ */
4640
+ _APP_DOMAIN_FUNCTIONS: string;
4641
+ /**
4642
+ * Defines if HTTPS is enforced for all requests.
4643
+ */
4644
+ _APP_OPTIONS_FORCE_HTTPS: string;
4645
+ /**
4646
+ * Comma-separated list of nameservers.
4647
+ */
4648
+ _APP_DOMAINS_NAMESERVERS: string;
3784
4649
  }
3785
4650
  /**
3786
4651
  * MFA Challenge
@@ -4099,6 +4964,10 @@ export namespace Models {
4099
4964
  * Resources to migrate.
4100
4965
  */
4101
4966
  resources: string[];
4967
+ /**
4968
+ * Id of the resource to migrate.
4969
+ */
4970
+ resourceId: string;
4102
4971
  /**
4103
4972
  * A group of counters that represent the total progress of the migration.
4104
4973
  */
@@ -4465,6 +5334,10 @@ export namespace Models {
4465
5334
  * Addons
4466
5335
  */
4467
5336
  addons: BillingPlanAddon;
5337
+ /**
5338
+ * Budget cap enabled or disabled.
5339
+ */
5340
+ budgetCapEnabled: boolean;
4468
5341
  /**
4469
5342
  * Custom SMTP
4470
5343
  */
@@ -4513,6 +5386,14 @@ export namespace Models {
4513
5386
  * How many policies does plan support
4514
5387
  */
4515
5388
  backupPolicies: number;
5389
+ /**
5390
+ * Maximum function and site deployment size in MB
5391
+ */
5392
+ deploymentSize: number;
5393
+ /**
5394
+ * Maximum function and site deployment size in MB
5395
+ */
5396
+ buildSize: number;
4516
5397
  }
4517
5398
  /**
4518
5399
  * BillingPlanAddon
@@ -5106,7 +5987,11 @@ export namespace Models {
5106
5987
  */
5107
5988
  name: string;
5108
5989
  /**
5109
- * Is the region disabled.
5990
+ * Does the organization have access to this region.
5991
+ */
5992
+ available: boolean;
5993
+ /**
5994
+ * Does the backend support this region.
5110
5995
  */
5111
5996
  disabled: boolean;
5112
5997
  /**
@@ -5202,138 +6087,110 @@ export namespace Models {
5202
6087
  roles: string[];
5203
6088
  }
5204
6089
  /**
5205
- * UsageOrganization
6090
+ * Domain
5206
6091
  */
5207
- export type UsageOrganization = {
5208
- /**
5209
- * Aggregated stats for number of requests.
5210
- */
5211
- bandwidth: Metric[];
5212
- /**
5213
- * Aggregated stats for consumed bandwidth.
5214
- */
5215
- users: Metric[];
5216
- /**
5217
- * Aggregated stats for function executions.
5218
- */
5219
- executions: Metric[];
5220
- /**
5221
- * Aggregated stats for database reads.
5222
- */
5223
- databasesReads: Metric[];
6092
+ export type Domain = {
5224
6093
  /**
5225
- * Aggregated stats for database writes.
5226
- */
5227
- databasesWrites: Metric[];
5228
- /**
5229
- * Aggregated stats for file transformations.
5230
- */
5231
- imageTransformations: Metric[];
5232
- /**
5233
- * Aggregated stats for total file transformations.
5234
- */
5235
- imageTransformationsTotal: number;
5236
- /**
5237
- * Aggregated stats for total users.
6094
+ * Domain ID.
5238
6095
  */
5239
- usersTotal: number;
6096
+ $id: string;
5240
6097
  /**
5241
- * Aggregated stats for total executions.
6098
+ * Domain creation time in ISO 8601 format.
5242
6099
  */
5243
- executionsTotal: number;
6100
+ $createdAt: string;
5244
6101
  /**
5245
- * Aggregated stats for function executions in mb seconds.
6102
+ * Domain update date in ISO 8601 format.
5246
6103
  */
5247
- executionsMBSecondsTotal: number;
6104
+ $updatedAt: string;
5248
6105
  /**
5249
- * Aggregated stats for function builds in mb seconds.
6106
+ * Domain name.
5250
6107
  */
5251
- buildsMBSecondsTotal: number;
6108
+ domain: string;
5252
6109
  /**
5253
- * Aggregated stats for total file storage.
6110
+ * Domain registrar (e.g. "appwrite" or "third_party").
5254
6111
  */
5255
- filesStorageTotal: number;
6112
+ registrar: string;
5256
6113
  /**
5257
- * Aggregated stats for total builds storage.
6114
+ * Nameservers setting. "Appwrite" or empty string.
5258
6115
  */
5259
- buildsStorageTotal: number;
6116
+ nameservers: string;
5260
6117
  /**
5261
- * Aggregated stats for total deployments storage.
6118
+ * Domain expiry date in ISO 8601 format.
5262
6119
  */
5263
- deploymentsStorageTotal: number;
6120
+ expire: string;
5264
6121
  /**
5265
- * Aggregated stats for total databases storage.
6122
+ * Domain renewal date in ISO 8601 format.
5266
6123
  */
5267
- databasesStorageTotal: number;
6124
+ renewal: string;
5268
6125
  /**
5269
- * Aggregated stats for total databases storage reads.
6126
+ * If set to true, the domain will automatically renew.
5270
6127
  */
5271
- databasesReadsTotal: number;
6128
+ autoRenewal: boolean;
5272
6129
  /**
5273
- * Aggregated stats for total databases storage writes.
6130
+ * Renewal price (in USD).
5274
6131
  */
5275
- databasesWritesTotal: number;
6132
+ renewalPrice: number;
5276
6133
  /**
5277
- * Aggregated stats for total backups storage.
6134
+ * Team ID.
5278
6135
  */
5279
- backupsStorageTotal: number;
6136
+ teamId: string;
5280
6137
  /**
5281
- * Aggregated stats for total storage.
6138
+ * Dns records
5282
6139
  */
5283
- storageTotal: number;
6140
+ dnsRecords: DnsRecord[];
6141
+ }
6142
+ /**
6143
+ * DNSRecord
6144
+ */
6145
+ export type DnsRecord = {
5284
6146
  /**
5285
- * Aggregated stats for total phone authentication SMS.
6147
+ * DNS Record ID.
5286
6148
  */
5287
- authPhoneTotal: number;
6149
+ $id: string;
5288
6150
  /**
5289
- * Aggregated stats for estimated phone authentication SMS cost.
6151
+ * DNS Record creation time in ISO 8601 format.
5290
6152
  */
5291
- authPhoneEstimate: number;
6153
+ $createdAt: string;
5292
6154
  /**
5293
- * Aggregated stats for each projects.
6155
+ * DNS Record update date in ISO 8601 format.
5294
6156
  */
5295
- projects: UsageOrganizationProject[];
5296
- }
5297
- /**
5298
- * UsageOrganizationProject
5299
- */
5300
- export type UsageOrganizationProject = {
6157
+ $updatedAt: string;
5301
6158
  /**
5302
- * projectId
6159
+ * DNS record type (e.g. A, CNAME, MX).
5303
6160
  */
5304
- projectId: string;
6161
+ type: string;
5305
6162
  /**
5306
- * Aggregated stats for number of requests.
6163
+ * Record name or subdomain.
5307
6164
  */
5308
- bandwidth: Metric[];
6165
+ name: string;
5309
6166
  /**
5310
- * Aggregated stats for consumed bandwidth.
6167
+ * Value of the record (IP address, domain, etc.).
5311
6168
  */
5312
- users: Metric[];
6169
+ value: string;
5313
6170
  /**
5314
- * Aggregated stats for function executions.
6171
+ * Time to live (in seconds).
5315
6172
  */
5316
- executions: number;
6173
+ ttl: number;
5317
6174
  /**
5318
- * Aggregated stats for function executions in mb seconds.
6175
+ * Record priority (commonly used for MX).
5319
6176
  */
5320
- executionsMBSeconds: number;
6177
+ priority: number;
5321
6178
  /**
5322
- * Aggregated stats for function builds in mb seconds.
6179
+ * Whether this record is locked (read-only).
5323
6180
  */
5324
- buildsMBSeconds: number;
6181
+ lock: boolean;
5325
6182
  /**
5326
- * Aggregated stats for number of documents.
6183
+ * Record weight (used for SRV records).
5327
6184
  */
5328
- storage: number;
6185
+ weight: number;
5329
6186
  /**
5330
- * Aggregated stats for phone authentication.
6187
+ * Target port (used for SRV records).
5331
6188
  */
5332
- authPhoneTotal: number;
6189
+ port: number;
5333
6190
  /**
5334
- * Aggregated stats for phone authentication estimated cost.
6191
+ * Comment for the DNS record.
5335
6192
  */
5336
- authPhoneEstimate: number;
6193
+ comment: string;
5337
6194
  }
5338
6195
  /**
5339
6196
  * UsageInvoice
@@ -5450,7 +6307,7 @@ export namespace Models {
5450
6307
  restorations: BackupRestoration[];
5451
6308
  }
5452
6309
  /**
5453
- * Billing Invoices List
6310
+ * Billing invoices list
5454
6311
  */
5455
6312
  export type InvoiceList = {
5456
6313
  /**
@@ -5502,7 +6359,7 @@ export namespace Models {
5502
6359
  teams: Organization<Preferences>[];
5503
6360
  }
5504
6361
  /**
5505
- * Payment Methods List
6362
+ * Payment methods list
5506
6363
  */
5507
6364
  export type PaymentMethodList = {
5508
6365
  /**
@@ -5527,4 +6384,30 @@ export namespace Models {
5527
6384
  */
5528
6385
  regions: ConsoleRegion[];
5529
6386
  }
6387
+ /**
6388
+ * Domains list
6389
+ */
6390
+ export type DomainsList = {
6391
+ /**
6392
+ * Total number of domains documents that matched your query.
6393
+ */
6394
+ total: number;
6395
+ /**
6396
+ * List of domains.
6397
+ */
6398
+ domains: Domain[];
6399
+ }
6400
+ /**
6401
+ * DNS records list
6402
+ */
6403
+ export type DnsRecordsList = {
6404
+ /**
6405
+ * Total number of dnsRecords documents that matched your query.
6406
+ */
6407
+ total: number;
6408
+ /**
6409
+ * List of dnsRecords.
6410
+ */
6411
+ dnsRecords: DnsRecord[];
6412
+ }
5530
6413
  }