node-appwrite 12.0.1 → 13.0.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 (526) hide show
  1. package/README.md +1 -1
  2. package/dist/client.d.mts +131 -0
  3. package/dist/client.d.ts +131 -0
  4. package/dist/client.js +302 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/client.mjs +296 -0
  7. package/dist/client.mjs.map +1 -0
  8. package/dist/enums/authentication-factor.d.mts +8 -0
  9. package/dist/enums/authentication-factor.d.ts +8 -0
  10. package/dist/enums/authentication-factor.js +13 -0
  11. package/dist/enums/authentication-factor.js.map +1 -0
  12. package/dist/enums/authentication-factor.mjs +12 -0
  13. package/dist/enums/authentication-factor.mjs.map +1 -0
  14. package/dist/enums/authenticator-type.d.mts +5 -0
  15. package/dist/enums/authenticator-type.d.ts +5 -0
  16. package/dist/enums/authenticator-type.js +10 -0
  17. package/dist/enums/authenticator-type.js.map +1 -0
  18. package/dist/enums/authenticator-type.mjs +9 -0
  19. package/dist/enums/authenticator-type.mjs.map +1 -0
  20. package/dist/enums/browser.d.mts +18 -0
  21. package/dist/enums/browser.d.ts +18 -0
  22. package/dist/enums/browser.js +23 -0
  23. package/dist/enums/browser.js.map +1 -0
  24. package/dist/enums/browser.mjs +22 -0
  25. package/dist/enums/browser.mjs.map +1 -0
  26. package/dist/enums/compression.d.mts +7 -0
  27. package/dist/enums/compression.d.ts +7 -0
  28. package/dist/enums/compression.js +12 -0
  29. package/dist/enums/compression.js.map +1 -0
  30. package/dist/enums/compression.mjs +11 -0
  31. package/dist/enums/compression.mjs.map +1 -0
  32. package/dist/enums/credit-card.d.mts +20 -0
  33. package/dist/enums/credit-card.d.ts +20 -0
  34. package/dist/enums/credit-card.js +25 -0
  35. package/dist/enums/credit-card.js.map +1 -0
  36. package/dist/enums/credit-card.mjs +24 -0
  37. package/dist/enums/credit-card.mjs.map +1 -0
  38. package/dist/enums/execution-method.d.mts +10 -0
  39. package/dist/enums/execution-method.d.ts +10 -0
  40. package/dist/enums/execution-method.js +15 -0
  41. package/dist/enums/execution-method.js.map +1 -0
  42. package/dist/enums/execution-method.mjs +14 -0
  43. package/dist/enums/execution-method.mjs.map +1 -0
  44. package/dist/enums/flag.d.mts +199 -0
  45. package/dist/enums/flag.d.ts +199 -0
  46. package/dist/enums/flag.js +204 -0
  47. package/dist/enums/flag.js.map +1 -0
  48. package/dist/enums/flag.mjs +203 -0
  49. package/dist/enums/flag.mjs.map +1 -0
  50. package/dist/enums/image-format.d.mts +9 -0
  51. package/dist/enums/image-format.d.ts +9 -0
  52. package/dist/enums/image-format.js +14 -0
  53. package/dist/enums/image-format.js.map +1 -0
  54. package/dist/enums/image-format.mjs +13 -0
  55. package/dist/enums/image-format.mjs.map +1 -0
  56. package/dist/enums/image-gravity.d.mts +13 -0
  57. package/dist/enums/image-gravity.d.ts +13 -0
  58. package/dist/enums/image-gravity.js +18 -0
  59. package/dist/enums/image-gravity.js.map +1 -0
  60. package/dist/enums/image-gravity.mjs +17 -0
  61. package/dist/enums/image-gravity.mjs.map +1 -0
  62. package/dist/enums/index-type.d.mts +7 -0
  63. package/dist/enums/index-type.d.ts +7 -0
  64. package/dist/enums/index-type.js +12 -0
  65. package/dist/enums/index-type.js.map +1 -0
  66. package/dist/enums/index-type.mjs +11 -0
  67. package/dist/enums/index-type.mjs.map +1 -0
  68. package/dist/enums/messaging-provider-type.d.mts +7 -0
  69. package/dist/enums/messaging-provider-type.d.ts +7 -0
  70. package/dist/enums/messaging-provider-type.js +12 -0
  71. package/dist/enums/messaging-provider-type.js.map +1 -0
  72. package/dist/enums/messaging-provider-type.mjs +11 -0
  73. package/dist/enums/messaging-provider-type.mjs.map +1 -0
  74. package/dist/enums/name.d.mts +16 -0
  75. package/dist/enums/name.d.ts +16 -0
  76. package/dist/enums/name.js +21 -0
  77. package/dist/enums/name.js.map +1 -0
  78. package/dist/enums/name.mjs +20 -0
  79. package/dist/enums/name.mjs.map +1 -0
  80. package/dist/enums/o-auth-provider.d.mts +43 -0
  81. package/dist/enums/o-auth-provider.d.ts +43 -0
  82. package/dist/enums/o-auth-provider.js +48 -0
  83. package/dist/enums/o-auth-provider.js.map +1 -0
  84. package/dist/enums/o-auth-provider.mjs +47 -0
  85. package/dist/enums/o-auth-provider.mjs.map +1 -0
  86. package/dist/enums/password-hash.d.mts +15 -0
  87. package/dist/enums/password-hash.d.ts +15 -0
  88. package/dist/enums/password-hash.js +20 -0
  89. package/dist/enums/password-hash.js.map +1 -0
  90. package/dist/enums/password-hash.mjs +19 -0
  91. package/dist/enums/password-hash.mjs.map +1 -0
  92. package/dist/enums/relation-mutate.d.mts +7 -0
  93. package/dist/enums/relation-mutate.d.ts +7 -0
  94. package/dist/enums/relation-mutate.js +12 -0
  95. package/dist/enums/relation-mutate.js.map +1 -0
  96. package/dist/enums/relation-mutate.mjs +11 -0
  97. package/dist/enums/relation-mutate.mjs.map +1 -0
  98. package/dist/enums/relationship-type.d.mts +8 -0
  99. package/dist/enums/relationship-type.d.ts +8 -0
  100. package/dist/enums/relationship-type.js +13 -0
  101. package/dist/enums/relationship-type.js.map +1 -0
  102. package/dist/enums/relationship-type.mjs +12 -0
  103. package/dist/enums/relationship-type.mjs.map +1 -0
  104. package/dist/enums/runtime.d.mts +49 -0
  105. package/dist/enums/runtime.d.ts +49 -0
  106. package/dist/enums/runtime.js +54 -0
  107. package/dist/enums/runtime.js.map +1 -0
  108. package/dist/enums/runtime.mjs +53 -0
  109. package/dist/enums/runtime.mjs.map +1 -0
  110. package/dist/enums/smtp-encryption.d.mts +7 -0
  111. package/dist/enums/smtp-encryption.d.ts +7 -0
  112. package/dist/enums/smtp-encryption.js +12 -0
  113. package/dist/enums/smtp-encryption.js.map +1 -0
  114. package/dist/enums/smtp-encryption.mjs +11 -0
  115. package/dist/enums/smtp-encryption.mjs.map +1 -0
  116. package/dist/id.d.mts +7 -0
  117. package/dist/id.d.ts +7 -0
  118. package/dist/id.js +29 -0
  119. package/dist/id.js.map +1 -0
  120. package/dist/id.mjs +28 -0
  121. package/dist/id.mjs.map +1 -0
  122. package/dist/index.d.mts +35 -0
  123. package/dist/index.d.ts +35 -0
  124. package/dist/index.js +180 -0
  125. package/dist/index.js.map +1 -0
  126. package/dist/index.mjs +35 -0
  127. package/dist/index.mjs.map +1 -0
  128. package/dist/inputFile.d.mts +9 -0
  129. package/dist/inputFile.d.ts +9 -0
  130. package/dist/inputFile.js +23 -0
  131. package/dist/inputFile.js.map +1 -0
  132. package/dist/inputFile.mjs +22 -0
  133. package/dist/inputFile.mjs.map +1 -0
  134. package/dist/models.d.mts +2414 -0
  135. package/dist/models.d.ts +2414 -0
  136. package/dist/models.js +4 -0
  137. package/dist/models.js.map +1 -0
  138. package/dist/models.mjs +3 -0
  139. package/dist/models.mjs.map +1 -0
  140. package/dist/permission.d.mts +9 -0
  141. package/dist/permission.d.ts +9 -0
  142. package/dist/permission.js +23 -0
  143. package/dist/permission.js.map +1 -0
  144. package/dist/permission.mjs +22 -0
  145. package/dist/permission.mjs.map +1 -0
  146. package/dist/query.d.mts +35 -0
  147. package/dist/query.d.ts +35 -0
  148. package/dist/query.js +49 -0
  149. package/dist/query.js.map +1 -0
  150. package/dist/query.mjs +48 -0
  151. package/dist/query.mjs.map +1 -0
  152. package/{lib/role.js → dist/role.d.mts} +18 -48
  153. package/dist/role.d.ts +72 -0
  154. package/dist/role.js +96 -0
  155. package/dist/role.js.map +1 -0
  156. package/dist/role.mjs +95 -0
  157. package/dist/role.mjs.map +1 -0
  158. package/dist/services/account.d.mts +478 -0
  159. package/dist/services/account.d.ts +478 -0
  160. package/dist/services/account.js +1331 -0
  161. package/dist/services/account.js.map +1 -0
  162. package/dist/services/account.mjs +1330 -0
  163. package/dist/services/account.mjs.map +1 -0
  164. package/dist/services/avatars.d.mts +118 -0
  165. package/dist/services/avatars.d.ts +118 -0
  166. package/dist/services/avatars.js +297 -0
  167. package/dist/services/avatars.js.map +1 -0
  168. package/dist/services/avatars.mjs +296 -0
  169. package/dist/services/avatars.mjs.map +1 -0
  170. package/dist/services/databases.d.mts +606 -0
  171. package/dist/services/databases.d.ts +606 -0
  172. package/dist/services/databases.js +1908 -0
  173. package/dist/services/databases.js.map +1 -0
  174. package/dist/services/databases.mjs +1907 -0
  175. package/dist/services/databases.mjs.map +1 -0
  176. package/dist/services/functions.d.mts +287 -0
  177. package/dist/services/functions.d.ts +287 -0
  178. package/dist/services/functions.js +837 -0
  179. package/dist/services/functions.js.map +1 -0
  180. package/dist/services/functions.mjs +836 -0
  181. package/dist/services/functions.mjs.map +1 -0
  182. package/dist/services/graphql.d.mts +30 -0
  183. package/dist/services/graphql.d.ts +30 -0
  184. package/dist/services/graphql.js +73 -0
  185. package/dist/services/graphql.js.map +1 -0
  186. package/dist/services/graphql.mjs +72 -0
  187. package/dist/services/graphql.mjs.map +1 -0
  188. package/dist/services/health.d.mts +235 -0
  189. package/dist/services/health.d.ts +235 -0
  190. package/dist/services/health.js +584 -0
  191. package/dist/services/health.js.map +1 -0
  192. package/dist/services/health.mjs +583 -0
  193. package/dist/services/health.mjs.map +1 -0
  194. package/dist/services/locale.d.mts +84 -0
  195. package/dist/services/locale.d.ts +84 -0
  196. package/dist/services/locale.js +189 -0
  197. package/dist/services/locale.js.map +1 -0
  198. package/dist/services/locale.mjs +188 -0
  199. package/dist/services/locale.mjs.map +1 -0
  200. package/dist/services/messaging.d.mts +689 -0
  201. package/dist/services/messaging.d.ts +689 -0
  202. package/dist/services/messaging.js +2156 -0
  203. package/dist/services/messaging.js.map +1 -0
  204. package/dist/services/messaging.mjs +2155 -0
  205. package/dist/services/messaging.mjs.map +1 -0
  206. package/dist/services/storage.d.mts +193 -0
  207. package/dist/services/storage.d.ts +193 -0
  208. package/dist/services/storage.js +550 -0
  209. package/dist/services/storage.js.map +1 -0
  210. package/dist/services/storage.mjs +549 -0
  211. package/dist/services/storage.mjs.map +1 -0
  212. package/dist/services/teams.d.mts +171 -0
  213. package/dist/services/teams.d.ts +171 -0
  214. package/dist/services/teams.js +466 -0
  215. package/dist/services/teams.js.map +1 -0
  216. package/dist/services/teams.mjs +465 -0
  217. package/dist/services/teams.mjs.map +1 -0
  218. package/dist/services/users.d.mts +491 -0
  219. package/dist/services/users.d.ts +491 -0
  220. package/dist/services/users.js +1465 -0
  221. package/dist/services/users.js.map +1 -0
  222. package/dist/services/users.mjs +1464 -0
  223. package/dist/services/users.mjs.map +1 -0
  224. package/package.json +39 -5
  225. package/.github/ISSUE_TEMPLATE/bug.yaml +0 -82
  226. package/.github/ISSUE_TEMPLATE/documentation.yaml +0 -32
  227. package/.github/ISSUE_TEMPLATE/feature.yaml +0 -40
  228. package/.travis.yml +0 -25
  229. package/CHANGELOG.md +0 -1
  230. package/docs/examples/account/create-anonymous-session.md +0 -9
  231. package/docs/examples/account/create-email-password-session.md +0 -12
  232. package/docs/examples/account/create-email-token.md +0 -13
  233. package/docs/examples/account/create-j-w-t.md +0 -9
  234. package/docs/examples/account/create-magic-u-r-l-token.md +0 -14
  235. package/docs/examples/account/create-mfa-authenticator.md +0 -12
  236. package/docs/examples/account/create-mfa-challenge.md +0 -11
  237. package/docs/examples/account/create-mfa-recovery-codes.md +0 -10
  238. package/docs/examples/account/create-o-auth2token.md +0 -14
  239. package/docs/examples/account/create-phone-token.md +0 -12
  240. package/docs/examples/account/create-phone-verification.md +0 -10
  241. package/docs/examples/account/create-recovery.md +0 -13
  242. package/docs/examples/account/create-session.md +0 -12
  243. package/docs/examples/account/create-verification.md +0 -12
  244. package/docs/examples/account/create.md +0 -14
  245. package/docs/examples/account/delete-identity.md +0 -12
  246. package/docs/examples/account/delete-mfa-authenticator.md +0 -13
  247. package/docs/examples/account/delete-session.md +0 -12
  248. package/docs/examples/account/delete-sessions.md +0 -10
  249. package/docs/examples/account/get-mfa-recovery-codes.md +0 -10
  250. package/docs/examples/account/get-prefs.md +0 -10
  251. package/docs/examples/account/get-session.md +0 -12
  252. package/docs/examples/account/get.md +0 -10
  253. package/docs/examples/account/list-identities.md +0 -12
  254. package/docs/examples/account/list-logs.md +0 -12
  255. package/docs/examples/account/list-mfa-factors.md +0 -10
  256. package/docs/examples/account/list-sessions.md +0 -10
  257. package/docs/examples/account/update-email.md +0 -13
  258. package/docs/examples/account/update-m-f-a.md +0 -12
  259. package/docs/examples/account/update-magic-u-r-l-session.md +0 -12
  260. package/docs/examples/account/update-mfa-authenticator.md +0 -13
  261. package/docs/examples/account/update-mfa-challenge.md +0 -13
  262. package/docs/examples/account/update-mfa-recovery-codes.md +0 -10
  263. package/docs/examples/account/update-name.md +0 -12
  264. package/docs/examples/account/update-password.md +0 -13
  265. package/docs/examples/account/update-phone-session.md +0 -12
  266. package/docs/examples/account/update-phone-verification.md +0 -13
  267. package/docs/examples/account/update-phone.md +0 -13
  268. package/docs/examples/account/update-prefs.md +0 -12
  269. package/docs/examples/account/update-recovery.md +0 -14
  270. package/docs/examples/account/update-session.md +0 -12
  271. package/docs/examples/account/update-status.md +0 -10
  272. package/docs/examples/account/update-verification.md +0 -13
  273. package/docs/examples/avatars/get-browser.md +0 -15
  274. package/docs/examples/avatars/get-credit-card.md +0 -15
  275. package/docs/examples/avatars/get-favicon.md +0 -12
  276. package/docs/examples/avatars/get-flag.md +0 -15
  277. package/docs/examples/avatars/get-image.md +0 -14
  278. package/docs/examples/avatars/get-initials.md +0 -15
  279. package/docs/examples/avatars/get-q-r.md +0 -15
  280. package/docs/examples/databases/create-boolean-attribute.md +0 -17
  281. package/docs/examples/databases/create-collection.md +0 -17
  282. package/docs/examples/databases/create-datetime-attribute.md +0 -17
  283. package/docs/examples/databases/create-document.md +0 -16
  284. package/docs/examples/databases/create-email-attribute.md +0 -17
  285. package/docs/examples/databases/create-enum-attribute.md +0 -18
  286. package/docs/examples/databases/create-float-attribute.md +0 -19
  287. package/docs/examples/databases/create-index.md +0 -17
  288. package/docs/examples/databases/create-integer-attribute.md +0 -19
  289. package/docs/examples/databases/create-ip-attribute.md +0 -17
  290. package/docs/examples/databases/create-relationship-attribute.md +0 -19
  291. package/docs/examples/databases/create-string-attribute.md +0 -19
  292. package/docs/examples/databases/create-url-attribute.md +0 -17
  293. package/docs/examples/databases/create.md +0 -14
  294. package/docs/examples/databases/delete-attribute.md +0 -14
  295. package/docs/examples/databases/delete-collection.md +0 -13
  296. package/docs/examples/databases/delete-document.md +0 -14
  297. package/docs/examples/databases/delete-index.md +0 -14
  298. package/docs/examples/databases/delete.md +0 -12
  299. package/docs/examples/databases/get-attribute.md +0 -14
  300. package/docs/examples/databases/get-collection.md +0 -13
  301. package/docs/examples/databases/get-document.md +0 -15
  302. package/docs/examples/databases/get-index.md +0 -14
  303. package/docs/examples/databases/get.md +0 -12
  304. package/docs/examples/databases/list-attributes.md +0 -14
  305. package/docs/examples/databases/list-collections.md +0 -14
  306. package/docs/examples/databases/list-documents.md +0 -14
  307. package/docs/examples/databases/list-indexes.md +0 -14
  308. package/docs/examples/databases/list.md +0 -13
  309. package/docs/examples/databases/update-boolean-attribute.md +0 -16
  310. package/docs/examples/databases/update-collection.md +0 -17
  311. package/docs/examples/databases/update-datetime-attribute.md +0 -16
  312. package/docs/examples/databases/update-document.md +0 -16
  313. package/docs/examples/databases/update-email-attribute.md +0 -16
  314. package/docs/examples/databases/update-enum-attribute.md +0 -17
  315. package/docs/examples/databases/update-float-attribute.md +0 -18
  316. package/docs/examples/databases/update-integer-attribute.md +0 -18
  317. package/docs/examples/databases/update-ip-attribute.md +0 -16
  318. package/docs/examples/databases/update-relationship-attribute.md +0 -15
  319. package/docs/examples/databases/update-string-attribute.md +0 -16
  320. package/docs/examples/databases/update-url-attribute.md +0 -16
  321. package/docs/examples/databases/update.md +0 -14
  322. package/docs/examples/functions/create-build.md +0 -14
  323. package/docs/examples/functions/create-deployment.md +0 -17
  324. package/docs/examples/functions/create-execution.md +0 -17
  325. package/docs/examples/functions/create-variable.md +0 -14
  326. package/docs/examples/functions/create.md +0 -31
  327. package/docs/examples/functions/delete-deployment.md +0 -13
  328. package/docs/examples/functions/delete-variable.md +0 -13
  329. package/docs/examples/functions/delete.md +0 -12
  330. package/docs/examples/functions/download-deployment.md +0 -13
  331. package/docs/examples/functions/get-deployment.md +0 -13
  332. package/docs/examples/functions/get-execution.md +0 -13
  333. package/docs/examples/functions/get-variable.md +0 -13
  334. package/docs/examples/functions/get.md +0 -12
  335. package/docs/examples/functions/list-deployments.md +0 -14
  336. package/docs/examples/functions/list-executions.md +0 -14
  337. package/docs/examples/functions/list-runtimes.md +0 -10
  338. package/docs/examples/functions/list-variables.md +0 -12
  339. package/docs/examples/functions/list.md +0 -13
  340. package/docs/examples/functions/update-deployment.md +0 -13
  341. package/docs/examples/functions/update-variable.md +0 -15
  342. package/docs/examples/functions/update.md +0 -27
  343. package/docs/examples/graphql/mutation.md +0 -12
  344. package/docs/examples/graphql/query.md +0 -12
  345. package/docs/examples/health/get-antivirus.md +0 -10
  346. package/docs/examples/health/get-cache.md +0 -10
  347. package/docs/examples/health/get-certificate.md +0 -12
  348. package/docs/examples/health/get-d-b.md +0 -10
  349. package/docs/examples/health/get-failed-jobs.md +0 -13
  350. package/docs/examples/health/get-pub-sub.md +0 -10
  351. package/docs/examples/health/get-queue-builds.md +0 -12
  352. package/docs/examples/health/get-queue-certificates.md +0 -12
  353. package/docs/examples/health/get-queue-databases.md +0 -13
  354. package/docs/examples/health/get-queue-deletes.md +0 -12
  355. package/docs/examples/health/get-queue-functions.md +0 -12
  356. package/docs/examples/health/get-queue-logs.md +0 -12
  357. package/docs/examples/health/get-queue-mails.md +0 -12
  358. package/docs/examples/health/get-queue-messaging.md +0 -12
  359. package/docs/examples/health/get-queue-migrations.md +0 -12
  360. package/docs/examples/health/get-queue-usage-dump.md +0 -12
  361. package/docs/examples/health/get-queue-usage.md +0 -12
  362. package/docs/examples/health/get-queue-webhooks.md +0 -12
  363. package/docs/examples/health/get-queue.md +0 -10
  364. package/docs/examples/health/get-storage-local.md +0 -10
  365. package/docs/examples/health/get-storage.md +0 -10
  366. package/docs/examples/health/get-time.md +0 -10
  367. package/docs/examples/health/get.md +0 -10
  368. package/docs/examples/locale/get.md +0 -10
  369. package/docs/examples/locale/list-codes.md +0 -10
  370. package/docs/examples/locale/list-continents.md +0 -10
  371. package/docs/examples/locale/list-countries-e-u.md +0 -10
  372. package/docs/examples/locale/list-countries-phones.md +0 -10
  373. package/docs/examples/locale/list-countries.md +0 -10
  374. package/docs/examples/locale/list-currencies.md +0 -10
  375. package/docs/examples/locale/list-languages.md +0 -10
  376. package/docs/examples/messaging/create-apns-provider.md +0 -19
  377. package/docs/examples/messaging/create-email.md +0 -23
  378. package/docs/examples/messaging/create-fcm-provider.md +0 -15
  379. package/docs/examples/messaging/create-mailgun-provider.md +0 -21
  380. package/docs/examples/messaging/create-msg91provider.md +0 -17
  381. package/docs/examples/messaging/create-push.md +0 -27
  382. package/docs/examples/messaging/create-sendgrid-provider.md +0 -19
  383. package/docs/examples/messaging/create-sms.md +0 -18
  384. package/docs/examples/messaging/create-smtp-provider.md +0 -25
  385. package/docs/examples/messaging/create-subscriber.md +0 -14
  386. package/docs/examples/messaging/create-telesign-provider.md +0 -17
  387. package/docs/examples/messaging/create-textmagic-provider.md +0 -17
  388. package/docs/examples/messaging/create-topic.md +0 -14
  389. package/docs/examples/messaging/create-twilio-provider.md +0 -17
  390. package/docs/examples/messaging/create-vonage-provider.md +0 -17
  391. package/docs/examples/messaging/delete-provider.md +0 -12
  392. package/docs/examples/messaging/delete-subscriber.md +0 -13
  393. package/docs/examples/messaging/delete-topic.md +0 -12
  394. package/docs/examples/messaging/delete.md +0 -12
  395. package/docs/examples/messaging/get-message.md +0 -12
  396. package/docs/examples/messaging/get-provider.md +0 -12
  397. package/docs/examples/messaging/get-subscriber.md +0 -13
  398. package/docs/examples/messaging/get-topic.md +0 -12
  399. package/docs/examples/messaging/list-message-logs.md +0 -13
  400. package/docs/examples/messaging/list-messages.md +0 -13
  401. package/docs/examples/messaging/list-provider-logs.md +0 -13
  402. package/docs/examples/messaging/list-providers.md +0 -13
  403. package/docs/examples/messaging/list-subscriber-logs.md +0 -13
  404. package/docs/examples/messaging/list-subscribers.md +0 -14
  405. package/docs/examples/messaging/list-targets.md +0 -13
  406. package/docs/examples/messaging/list-topic-logs.md +0 -13
  407. package/docs/examples/messaging/list-topics.md +0 -13
  408. package/docs/examples/messaging/update-apns-provider.md +0 -19
  409. package/docs/examples/messaging/update-email.md +0 -22
  410. package/docs/examples/messaging/update-fcm-provider.md +0 -15
  411. package/docs/examples/messaging/update-mailgun-provider.md +0 -21
  412. package/docs/examples/messaging/update-msg91provider.md +0 -17
  413. package/docs/examples/messaging/update-push.md +0 -27
  414. package/docs/examples/messaging/update-sendgrid-provider.md +0 -19
  415. package/docs/examples/messaging/update-sms.md +0 -18
  416. package/docs/examples/messaging/update-smtp-provider.md +0 -25
  417. package/docs/examples/messaging/update-telesign-provider.md +0 -17
  418. package/docs/examples/messaging/update-textmagic-provider.md +0 -17
  419. package/docs/examples/messaging/update-topic.md +0 -14
  420. package/docs/examples/messaging/update-twilio-provider.md +0 -17
  421. package/docs/examples/messaging/update-vonage-provider.md +0 -17
  422. package/docs/examples/storage/create-bucket.md +0 -21
  423. package/docs/examples/storage/create-file.md +0 -16
  424. package/docs/examples/storage/delete-bucket.md +0 -12
  425. package/docs/examples/storage/delete-file.md +0 -13
  426. package/docs/examples/storage/get-bucket.md +0 -12
  427. package/docs/examples/storage/get-file-download.md +0 -13
  428. package/docs/examples/storage/get-file-preview.md +0 -24
  429. package/docs/examples/storage/get-file-view.md +0 -13
  430. package/docs/examples/storage/get-file.md +0 -13
  431. package/docs/examples/storage/list-buckets.md +0 -13
  432. package/docs/examples/storage/list-files.md +0 -14
  433. package/docs/examples/storage/update-bucket.md +0 -21
  434. package/docs/examples/storage/update-file.md +0 -15
  435. package/docs/examples/teams/create-membership.md +0 -18
  436. package/docs/examples/teams/create.md +0 -14
  437. package/docs/examples/teams/delete-membership.md +0 -13
  438. package/docs/examples/teams/delete.md +0 -12
  439. package/docs/examples/teams/get-membership.md +0 -13
  440. package/docs/examples/teams/get-prefs.md +0 -12
  441. package/docs/examples/teams/get.md +0 -12
  442. package/docs/examples/teams/list-memberships.md +0 -14
  443. package/docs/examples/teams/list.md +0 -13
  444. package/docs/examples/teams/update-membership-status.md +0 -15
  445. package/docs/examples/teams/update-membership.md +0 -14
  446. package/docs/examples/teams/update-name.md +0 -13
  447. package/docs/examples/teams/update-prefs.md +0 -13
  448. package/docs/examples/users/create-argon2user.md +0 -15
  449. package/docs/examples/users/create-bcrypt-user.md +0 -15
  450. package/docs/examples/users/create-m-d5user.md +0 -15
  451. package/docs/examples/users/create-mfa-recovery-codes.md +0 -12
  452. package/docs/examples/users/create-p-h-pass-user.md +0 -15
  453. package/docs/examples/users/create-s-h-a-user.md +0 -16
  454. package/docs/examples/users/create-scrypt-modified-user.md +0 -18
  455. package/docs/examples/users/create-scrypt-user.md +0 -20
  456. package/docs/examples/users/create-session.md +0 -12
  457. package/docs/examples/users/create-target.md +0 -17
  458. package/docs/examples/users/create-token.md +0 -14
  459. package/docs/examples/users/create.md +0 -16
  460. package/docs/examples/users/delete-identity.md +0 -12
  461. package/docs/examples/users/delete-mfa-authenticator.md +0 -13
  462. package/docs/examples/users/delete-session.md +0 -13
  463. package/docs/examples/users/delete-sessions.md +0 -12
  464. package/docs/examples/users/delete-target.md +0 -13
  465. package/docs/examples/users/delete.md +0 -12
  466. package/docs/examples/users/get-mfa-recovery-codes.md +0 -12
  467. package/docs/examples/users/get-prefs.md +0 -12
  468. package/docs/examples/users/get-target.md +0 -13
  469. package/docs/examples/users/get.md +0 -12
  470. package/docs/examples/users/list-identities.md +0 -13
  471. package/docs/examples/users/list-logs.md +0 -13
  472. package/docs/examples/users/list-memberships.md +0 -12
  473. package/docs/examples/users/list-mfa-factors.md +0 -12
  474. package/docs/examples/users/list-sessions.md +0 -12
  475. package/docs/examples/users/list-targets.md +0 -13
  476. package/docs/examples/users/list.md +0 -13
  477. package/docs/examples/users/update-email-verification.md +0 -13
  478. package/docs/examples/users/update-email.md +0 -13
  479. package/docs/examples/users/update-labels.md +0 -13
  480. package/docs/examples/users/update-mfa-recovery-codes.md +0 -12
  481. package/docs/examples/users/update-mfa.md +0 -13
  482. package/docs/examples/users/update-name.md +0 -13
  483. package/docs/examples/users/update-password.md +0 -13
  484. package/docs/examples/users/update-phone-verification.md +0 -13
  485. package/docs/examples/users/update-phone.md +0 -13
  486. package/docs/examples/users/update-prefs.md +0 -13
  487. package/docs/examples/users/update-status.md +0 -13
  488. package/docs/examples/users/update-target.md +0 -16
  489. package/index.d.ts +0 -6656
  490. package/index.js +0 -75
  491. package/lib/client.js +0 -245
  492. package/lib/enums/authentication-factor.js +0 -8
  493. package/lib/enums/authenticator-type.js +0 -5
  494. package/lib/enums/browser.js +0 -18
  495. package/lib/enums/compression.js +0 -7
  496. package/lib/enums/credit-card.js +0 -20
  497. package/lib/enums/execution-method.js +0 -10
  498. package/lib/enums/flag.js +0 -198
  499. package/lib/enums/image-format.js +0 -9
  500. package/lib/enums/image-gravity.js +0 -13
  501. package/lib/enums/index-type.js +0 -7
  502. package/lib/enums/messaging-provider-type.js +0 -7
  503. package/lib/enums/name.js +0 -17
  504. package/lib/enums/o-auth-provider.js +0 -43
  505. package/lib/enums/password-hash.js +0 -15
  506. package/lib/enums/relation-mutate.js +0 -7
  507. package/lib/enums/relationship-type.js +0 -8
  508. package/lib/enums/runtime.js +0 -48
  509. package/lib/enums/smtp-encryption.js +0 -7
  510. package/lib/exception.js +0 -10
  511. package/lib/id.js +0 -32
  512. package/lib/inputFile.js +0 -117
  513. package/lib/permission.js +0 -24
  514. package/lib/query.js +0 -90
  515. package/lib/service.js +0 -10
  516. package/lib/services/account.js +0 -1365
  517. package/lib/services/avatars.js +0 -325
  518. package/lib/services/databases.js +0 -1987
  519. package/lib/services/functions.js +0 -930
  520. package/lib/services/graphql.js +0 -74
  521. package/lib/services/health.js +0 -513
  522. package/lib/services/locale.js +0 -169
  523. package/lib/services/messaging.js +0 -2218
  524. package/lib/services/storage.js +0 -663
  525. package/lib/services/teams.js +0 -479
  526. package/lib/services/users.js +0 -1463
@@ -0,0 +1,2414 @@
1
+ declare namespace Models {
2
+ /**
3
+ * Documents List
4
+ */
5
+ type DocumentList<Document extends Models.Document> = {
6
+ /**
7
+ * Total number of documents documents that matched your query.
8
+ */
9
+ total: number;
10
+ /**
11
+ * List of documents.
12
+ */
13
+ documents: Document[];
14
+ };
15
+ /**
16
+ * Collections List
17
+ */
18
+ type CollectionList = {
19
+ /**
20
+ * Total number of collections documents that matched your query.
21
+ */
22
+ total: number;
23
+ /**
24
+ * List of collections.
25
+ */
26
+ collections: Collection[];
27
+ };
28
+ /**
29
+ * Databases List
30
+ */
31
+ type DatabaseList = {
32
+ /**
33
+ * Total number of databases documents that matched your query.
34
+ */
35
+ total: number;
36
+ /**
37
+ * List of databases.
38
+ */
39
+ databases: Database[];
40
+ };
41
+ /**
42
+ * Indexes List
43
+ */
44
+ type IndexList = {
45
+ /**
46
+ * Total number of indexes documents that matched your query.
47
+ */
48
+ total: number;
49
+ /**
50
+ * List of indexes.
51
+ */
52
+ indexes: Index[];
53
+ };
54
+ /**
55
+ * Users List
56
+ */
57
+ type UserList<Preferences extends Models.Preferences> = {
58
+ /**
59
+ * Total number of users documents that matched your query.
60
+ */
61
+ total: number;
62
+ /**
63
+ * List of users.
64
+ */
65
+ users: User<Preferences>[];
66
+ };
67
+ /**
68
+ * Sessions List
69
+ */
70
+ type SessionList = {
71
+ /**
72
+ * Total number of sessions documents that matched your query.
73
+ */
74
+ total: number;
75
+ /**
76
+ * List of sessions.
77
+ */
78
+ sessions: Session[];
79
+ };
80
+ /**
81
+ * Identities List
82
+ */
83
+ type IdentityList = {
84
+ /**
85
+ * Total number of identities documents that matched your query.
86
+ */
87
+ total: number;
88
+ /**
89
+ * List of identities.
90
+ */
91
+ identities: Identity[];
92
+ };
93
+ /**
94
+ * Logs List
95
+ */
96
+ type LogList = {
97
+ /**
98
+ * Total number of logs documents that matched your query.
99
+ */
100
+ total: number;
101
+ /**
102
+ * List of logs.
103
+ */
104
+ logs: Log[];
105
+ };
106
+ /**
107
+ * Files List
108
+ */
109
+ type FileList = {
110
+ /**
111
+ * Total number of files documents that matched your query.
112
+ */
113
+ total: number;
114
+ /**
115
+ * List of files.
116
+ */
117
+ files: File[];
118
+ };
119
+ /**
120
+ * Buckets List
121
+ */
122
+ type BucketList = {
123
+ /**
124
+ * Total number of buckets documents that matched your query.
125
+ */
126
+ total: number;
127
+ /**
128
+ * List of buckets.
129
+ */
130
+ buckets: Bucket[];
131
+ };
132
+ /**
133
+ * Teams List
134
+ */
135
+ type TeamList<Preferences extends Models.Preferences> = {
136
+ /**
137
+ * Total number of teams documents that matched your query.
138
+ */
139
+ total: number;
140
+ /**
141
+ * List of teams.
142
+ */
143
+ teams: Team<Preferences>[];
144
+ };
145
+ /**
146
+ * Memberships List
147
+ */
148
+ type MembershipList = {
149
+ /**
150
+ * Total number of memberships documents that matched your query.
151
+ */
152
+ total: number;
153
+ /**
154
+ * List of memberships.
155
+ */
156
+ memberships: Membership[];
157
+ };
158
+ /**
159
+ * Functions List
160
+ */
161
+ type FunctionList = {
162
+ /**
163
+ * Total number of functions documents that matched your query.
164
+ */
165
+ total: number;
166
+ /**
167
+ * List of functions.
168
+ */
169
+ functions: Function[];
170
+ };
171
+ /**
172
+ * Runtimes List
173
+ */
174
+ type RuntimeList = {
175
+ /**
176
+ * Total number of runtimes documents that matched your query.
177
+ */
178
+ total: number;
179
+ /**
180
+ * List of runtimes.
181
+ */
182
+ runtimes: Runtime[];
183
+ };
184
+ /**
185
+ * Deployments List
186
+ */
187
+ type DeploymentList = {
188
+ /**
189
+ * Total number of deployments documents that matched your query.
190
+ */
191
+ total: number;
192
+ /**
193
+ * List of deployments.
194
+ */
195
+ deployments: Deployment[];
196
+ };
197
+ /**
198
+ * Executions List
199
+ */
200
+ type ExecutionList = {
201
+ /**
202
+ * Total number of executions documents that matched your query.
203
+ */
204
+ total: number;
205
+ /**
206
+ * List of executions.
207
+ */
208
+ executions: Execution[];
209
+ };
210
+ /**
211
+ * Countries List
212
+ */
213
+ type CountryList = {
214
+ /**
215
+ * Total number of countries documents that matched your query.
216
+ */
217
+ total: number;
218
+ /**
219
+ * List of countries.
220
+ */
221
+ countries: Country[];
222
+ };
223
+ /**
224
+ * Continents List
225
+ */
226
+ type ContinentList = {
227
+ /**
228
+ * Total number of continents documents that matched your query.
229
+ */
230
+ total: number;
231
+ /**
232
+ * List of continents.
233
+ */
234
+ continents: Continent[];
235
+ };
236
+ /**
237
+ * Languages List
238
+ */
239
+ type LanguageList = {
240
+ /**
241
+ * Total number of languages documents that matched your query.
242
+ */
243
+ total: number;
244
+ /**
245
+ * List of languages.
246
+ */
247
+ languages: Language[];
248
+ };
249
+ /**
250
+ * Currencies List
251
+ */
252
+ type CurrencyList = {
253
+ /**
254
+ * Total number of currencies documents that matched your query.
255
+ */
256
+ total: number;
257
+ /**
258
+ * List of currencies.
259
+ */
260
+ currencies: Currency[];
261
+ };
262
+ /**
263
+ * Phones List
264
+ */
265
+ type PhoneList = {
266
+ /**
267
+ * Total number of phones documents that matched your query.
268
+ */
269
+ total: number;
270
+ /**
271
+ * List of phones.
272
+ */
273
+ phones: Phone[];
274
+ };
275
+ /**
276
+ * Variables List
277
+ */
278
+ type VariableList = {
279
+ /**
280
+ * Total number of variables documents that matched your query.
281
+ */
282
+ total: number;
283
+ /**
284
+ * List of variables.
285
+ */
286
+ variables: Variable[];
287
+ };
288
+ /**
289
+ * Locale codes list
290
+ */
291
+ type LocaleCodeList = {
292
+ /**
293
+ * Total number of localeCodes documents that matched your query.
294
+ */
295
+ total: number;
296
+ /**
297
+ * List of localeCodes.
298
+ */
299
+ localeCodes: LocaleCode[];
300
+ };
301
+ /**
302
+ * Provider list
303
+ */
304
+ type ProviderList = {
305
+ /**
306
+ * Total number of providers documents that matched your query.
307
+ */
308
+ total: number;
309
+ /**
310
+ * List of providers.
311
+ */
312
+ providers: Provider[];
313
+ };
314
+ /**
315
+ * Message list
316
+ */
317
+ type MessageList = {
318
+ /**
319
+ * Total number of messages documents that matched your query.
320
+ */
321
+ total: number;
322
+ /**
323
+ * List of messages.
324
+ */
325
+ messages: Message[];
326
+ };
327
+ /**
328
+ * Topic list
329
+ */
330
+ type TopicList = {
331
+ /**
332
+ * Total number of topics documents that matched your query.
333
+ */
334
+ total: number;
335
+ /**
336
+ * List of topics.
337
+ */
338
+ topics: Topic[];
339
+ };
340
+ /**
341
+ * Subscriber list
342
+ */
343
+ type SubscriberList = {
344
+ /**
345
+ * Total number of subscribers documents that matched your query.
346
+ */
347
+ total: number;
348
+ /**
349
+ * List of subscribers.
350
+ */
351
+ subscribers: Subscriber[];
352
+ };
353
+ /**
354
+ * Target list
355
+ */
356
+ type TargetList = {
357
+ /**
358
+ * Total number of targets documents that matched your query.
359
+ */
360
+ total: number;
361
+ /**
362
+ * List of targets.
363
+ */
364
+ targets: Target[];
365
+ };
366
+ /**
367
+ * Database
368
+ */
369
+ type Database = {
370
+ /**
371
+ * Database ID.
372
+ */
373
+ $id: string;
374
+ /**
375
+ * Database name.
376
+ */
377
+ name: string;
378
+ /**
379
+ * Database creation date in ISO 8601 format.
380
+ */
381
+ $createdAt: string;
382
+ /**
383
+ * Database update date in ISO 8601 format.
384
+ */
385
+ $updatedAt: string;
386
+ /**
387
+ * If database is enabled. Can be &#039;enabled&#039; or &#039;disabled&#039;. When disabled, the database is inaccessible to users, but remains accessible to Server SDKs using API keys.
388
+ */
389
+ enabled: boolean;
390
+ };
391
+ /**
392
+ * Collection
393
+ */
394
+ type Collection = {
395
+ /**
396
+ * Collection ID.
397
+ */
398
+ $id: string;
399
+ /**
400
+ * Collection creation date in ISO 8601 format.
401
+ */
402
+ $createdAt: string;
403
+ /**
404
+ * Collection update date in ISO 8601 format.
405
+ */
406
+ $updatedAt: string;
407
+ /**
408
+ * Collection permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
409
+ */
410
+ $permissions: string[];
411
+ /**
412
+ * Database ID.
413
+ */
414
+ databaseId: string;
415
+ /**
416
+ * Collection name.
417
+ */
418
+ name: string;
419
+ /**
420
+ * Collection enabled. Can be &#039;enabled&#039; or &#039;disabled&#039;. When disabled, the collection is inaccessible to users, but remains accessible to Server SDKs using API keys.
421
+ */
422
+ enabled: boolean;
423
+ /**
424
+ * Whether document-level permissions are enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
425
+ */
426
+ documentSecurity: boolean;
427
+ /**
428
+ * Collection attributes.
429
+ */
430
+ attributes: string[];
431
+ /**
432
+ * Collection indexes.
433
+ */
434
+ indexes: Index[];
435
+ };
436
+ /**
437
+ * Attributes List
438
+ */
439
+ type AttributeList = {
440
+ /**
441
+ * Total number of attributes in the given collection.
442
+ */
443
+ total: number;
444
+ /**
445
+ * List of attributes.
446
+ */
447
+ attributes: string[];
448
+ };
449
+ /**
450
+ * AttributeString
451
+ */
452
+ type AttributeString = {
453
+ /**
454
+ * Attribute Key.
455
+ */
456
+ key: string;
457
+ /**
458
+ * Attribute type.
459
+ */
460
+ type: string;
461
+ /**
462
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
463
+ */
464
+ status: string;
465
+ /**
466
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
467
+ */
468
+ error: string;
469
+ /**
470
+ * Is attribute required?
471
+ */
472
+ required: boolean;
473
+ /**
474
+ * Is attribute an array?
475
+ */
476
+ array?: boolean;
477
+ /**
478
+ * Attribute size.
479
+ */
480
+ size: number;
481
+ /**
482
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
483
+ */
484
+ default?: string;
485
+ };
486
+ /**
487
+ * AttributeInteger
488
+ */
489
+ type AttributeInteger = {
490
+ /**
491
+ * Attribute Key.
492
+ */
493
+ key: string;
494
+ /**
495
+ * Attribute type.
496
+ */
497
+ type: string;
498
+ /**
499
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
500
+ */
501
+ status: string;
502
+ /**
503
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
504
+ */
505
+ error: string;
506
+ /**
507
+ * Is attribute required?
508
+ */
509
+ required: boolean;
510
+ /**
511
+ * Is attribute an array?
512
+ */
513
+ array?: boolean;
514
+ /**
515
+ * Minimum value to enforce for new documents.
516
+ */
517
+ min?: number;
518
+ /**
519
+ * Maximum value to enforce for new documents.
520
+ */
521
+ max?: number;
522
+ /**
523
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
524
+ */
525
+ default?: number;
526
+ };
527
+ /**
528
+ * AttributeFloat
529
+ */
530
+ type AttributeFloat = {
531
+ /**
532
+ * Attribute Key.
533
+ */
534
+ key: string;
535
+ /**
536
+ * Attribute type.
537
+ */
538
+ type: string;
539
+ /**
540
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
541
+ */
542
+ status: string;
543
+ /**
544
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
545
+ */
546
+ error: string;
547
+ /**
548
+ * Is attribute required?
549
+ */
550
+ required: boolean;
551
+ /**
552
+ * Is attribute an array?
553
+ */
554
+ array?: boolean;
555
+ /**
556
+ * Minimum value to enforce for new documents.
557
+ */
558
+ min?: number;
559
+ /**
560
+ * Maximum value to enforce for new documents.
561
+ */
562
+ max?: number;
563
+ /**
564
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
565
+ */
566
+ default?: number;
567
+ };
568
+ /**
569
+ * AttributeBoolean
570
+ */
571
+ type AttributeBoolean = {
572
+ /**
573
+ * Attribute Key.
574
+ */
575
+ key: string;
576
+ /**
577
+ * Attribute type.
578
+ */
579
+ type: string;
580
+ /**
581
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
582
+ */
583
+ status: string;
584
+ /**
585
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
586
+ */
587
+ error: string;
588
+ /**
589
+ * Is attribute required?
590
+ */
591
+ required: boolean;
592
+ /**
593
+ * Is attribute an array?
594
+ */
595
+ array?: boolean;
596
+ /**
597
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
598
+ */
599
+ default?: boolean;
600
+ };
601
+ /**
602
+ * AttributeEmail
603
+ */
604
+ type AttributeEmail = {
605
+ /**
606
+ * Attribute Key.
607
+ */
608
+ key: string;
609
+ /**
610
+ * Attribute type.
611
+ */
612
+ type: string;
613
+ /**
614
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
615
+ */
616
+ status: string;
617
+ /**
618
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
619
+ */
620
+ error: string;
621
+ /**
622
+ * Is attribute required?
623
+ */
624
+ required: boolean;
625
+ /**
626
+ * Is attribute an array?
627
+ */
628
+ array?: boolean;
629
+ /**
630
+ * String format.
631
+ */
632
+ format: string;
633
+ /**
634
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
635
+ */
636
+ default?: string;
637
+ };
638
+ /**
639
+ * AttributeEnum
640
+ */
641
+ type AttributeEnum = {
642
+ /**
643
+ * Attribute Key.
644
+ */
645
+ key: string;
646
+ /**
647
+ * Attribute type.
648
+ */
649
+ type: string;
650
+ /**
651
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
652
+ */
653
+ status: string;
654
+ /**
655
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
656
+ */
657
+ error: string;
658
+ /**
659
+ * Is attribute required?
660
+ */
661
+ required: boolean;
662
+ /**
663
+ * Is attribute an array?
664
+ */
665
+ array?: boolean;
666
+ /**
667
+ * Array of elements in enumerated type.
668
+ */
669
+ elements: string[];
670
+ /**
671
+ * String format.
672
+ */
673
+ format: string;
674
+ /**
675
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
676
+ */
677
+ default?: string;
678
+ };
679
+ /**
680
+ * AttributeIP
681
+ */
682
+ type AttributeIp = {
683
+ /**
684
+ * Attribute Key.
685
+ */
686
+ key: string;
687
+ /**
688
+ * Attribute type.
689
+ */
690
+ type: string;
691
+ /**
692
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
693
+ */
694
+ status: string;
695
+ /**
696
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
697
+ */
698
+ error: string;
699
+ /**
700
+ * Is attribute required?
701
+ */
702
+ required: boolean;
703
+ /**
704
+ * Is attribute an array?
705
+ */
706
+ array?: boolean;
707
+ /**
708
+ * String format.
709
+ */
710
+ format: string;
711
+ /**
712
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
713
+ */
714
+ default?: string;
715
+ };
716
+ /**
717
+ * AttributeURL
718
+ */
719
+ type AttributeUrl = {
720
+ /**
721
+ * Attribute Key.
722
+ */
723
+ key: string;
724
+ /**
725
+ * Attribute type.
726
+ */
727
+ type: string;
728
+ /**
729
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
730
+ */
731
+ status: string;
732
+ /**
733
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
734
+ */
735
+ error: string;
736
+ /**
737
+ * Is attribute required?
738
+ */
739
+ required: boolean;
740
+ /**
741
+ * Is attribute an array?
742
+ */
743
+ array?: boolean;
744
+ /**
745
+ * String format.
746
+ */
747
+ format: string;
748
+ /**
749
+ * Default value for attribute when not provided. Cannot be set when attribute is required.
750
+ */
751
+ default?: string;
752
+ };
753
+ /**
754
+ * AttributeDatetime
755
+ */
756
+ type AttributeDatetime = {
757
+ /**
758
+ * Attribute Key.
759
+ */
760
+ key: string;
761
+ /**
762
+ * Attribute type.
763
+ */
764
+ type: string;
765
+ /**
766
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
767
+ */
768
+ status: string;
769
+ /**
770
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
771
+ */
772
+ error: string;
773
+ /**
774
+ * Is attribute required?
775
+ */
776
+ required: boolean;
777
+ /**
778
+ * Is attribute an array?
779
+ */
780
+ array?: boolean;
781
+ /**
782
+ * ISO 8601 format.
783
+ */
784
+ format: string;
785
+ /**
786
+ * Default value for attribute when not provided. Only null is optional
787
+ */
788
+ default?: string;
789
+ };
790
+ /**
791
+ * AttributeRelationship
792
+ */
793
+ type AttributeRelationship = {
794
+ /**
795
+ * Attribute Key.
796
+ */
797
+ key: string;
798
+ /**
799
+ * Attribute type.
800
+ */
801
+ type: string;
802
+ /**
803
+ * Attribute status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
804
+ */
805
+ status: string;
806
+ /**
807
+ * Error message. Displays error generated on failure of creating or deleting an attribute.
808
+ */
809
+ error: string;
810
+ /**
811
+ * Is attribute required?
812
+ */
813
+ required: boolean;
814
+ /**
815
+ * Is attribute an array?
816
+ */
817
+ array?: boolean;
818
+ /**
819
+ * The ID of the related collection.
820
+ */
821
+ relatedCollection: string;
822
+ /**
823
+ * The type of the relationship.
824
+ */
825
+ relationType: string;
826
+ /**
827
+ * Is the relationship two-way?
828
+ */
829
+ twoWay: boolean;
830
+ /**
831
+ * The key of the two-way relationship.
832
+ */
833
+ twoWayKey: string;
834
+ /**
835
+ * How deleting the parent document will propagate to child documents.
836
+ */
837
+ onDelete: string;
838
+ /**
839
+ * Whether this is the parent or child side of the relationship
840
+ */
841
+ side: string;
842
+ };
843
+ /**
844
+ * Index
845
+ */
846
+ type Index = {
847
+ /**
848
+ * Index Key.
849
+ */
850
+ key: string;
851
+ /**
852
+ * Index type.
853
+ */
854
+ type: string;
855
+ /**
856
+ * Index status. Possible values: `available`, `processing`, `deleting`, `stuck`, or `failed`
857
+ */
858
+ status: string;
859
+ /**
860
+ * Error message. Displays error generated on failure of creating or deleting an index.
861
+ */
862
+ error: string;
863
+ /**
864
+ * Index attributes.
865
+ */
866
+ attributes: string[];
867
+ /**
868
+ * Index orders.
869
+ */
870
+ orders?: string[];
871
+ };
872
+ /**
873
+ * Document
874
+ */
875
+ type Document = {
876
+ /**
877
+ * Document ID.
878
+ */
879
+ $id: string;
880
+ /**
881
+ * Collection ID.
882
+ */
883
+ $collectionId: string;
884
+ /**
885
+ * Database ID.
886
+ */
887
+ $databaseId: string;
888
+ /**
889
+ * Document creation date in ISO 8601 format.
890
+ */
891
+ $createdAt: string;
892
+ /**
893
+ * Document update date in ISO 8601 format.
894
+ */
895
+ $updatedAt: string;
896
+ /**
897
+ * Document permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
898
+ */
899
+ $permissions: string[];
900
+ [key: string]: any;
901
+ };
902
+ /**
903
+ * Log
904
+ */
905
+ type Log = {
906
+ /**
907
+ * Event name.
908
+ */
909
+ event: string;
910
+ /**
911
+ * User ID.
912
+ */
913
+ userId: string;
914
+ /**
915
+ * User Email.
916
+ */
917
+ userEmail: string;
918
+ /**
919
+ * User Name.
920
+ */
921
+ userName: string;
922
+ /**
923
+ * API mode when event triggered.
924
+ */
925
+ mode: string;
926
+ /**
927
+ * IP session in use when the session was created.
928
+ */
929
+ ip: string;
930
+ /**
931
+ * Log creation date in ISO 8601 format.
932
+ */
933
+ time: string;
934
+ /**
935
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
936
+ */
937
+ osCode: string;
938
+ /**
939
+ * Operating system name.
940
+ */
941
+ osName: string;
942
+ /**
943
+ * Operating system version.
944
+ */
945
+ osVersion: string;
946
+ /**
947
+ * Client type.
948
+ */
949
+ clientType: string;
950
+ /**
951
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
952
+ */
953
+ clientCode: string;
954
+ /**
955
+ * Client name.
956
+ */
957
+ clientName: string;
958
+ /**
959
+ * Client version.
960
+ */
961
+ clientVersion: string;
962
+ /**
963
+ * Client engine name.
964
+ */
965
+ clientEngine: string;
966
+ /**
967
+ * Client engine name.
968
+ */
969
+ clientEngineVersion: string;
970
+ /**
971
+ * Device name.
972
+ */
973
+ deviceName: string;
974
+ /**
975
+ * Device brand name.
976
+ */
977
+ deviceBrand: string;
978
+ /**
979
+ * Device model name.
980
+ */
981
+ deviceModel: string;
982
+ /**
983
+ * Country two-character ISO 3166-1 alpha code.
984
+ */
985
+ countryCode: string;
986
+ /**
987
+ * Country name.
988
+ */
989
+ countryName: string;
990
+ };
991
+ /**
992
+ * User
993
+ */
994
+ type User<Preferences extends Models.Preferences> = {
995
+ /**
996
+ * User ID.
997
+ */
998
+ $id: string;
999
+ /**
1000
+ * User creation date in ISO 8601 format.
1001
+ */
1002
+ $createdAt: string;
1003
+ /**
1004
+ * User update date in ISO 8601 format.
1005
+ */
1006
+ $updatedAt: string;
1007
+ /**
1008
+ * User name.
1009
+ */
1010
+ name: string;
1011
+ /**
1012
+ * Hashed user password.
1013
+ */
1014
+ password?: string;
1015
+ /**
1016
+ * Password hashing algorithm.
1017
+ */
1018
+ hash?: string;
1019
+ /**
1020
+ * Password hashing algorithm configuration.
1021
+ */
1022
+ hashOptions?: object;
1023
+ /**
1024
+ * User registration date in ISO 8601 format.
1025
+ */
1026
+ registration: string;
1027
+ /**
1028
+ * User status. Pass `true` for enabled and `false` for disabled.
1029
+ */
1030
+ status: boolean;
1031
+ /**
1032
+ * Labels for the user.
1033
+ */
1034
+ labels: string[];
1035
+ /**
1036
+ * Password update time in ISO 8601 format.
1037
+ */
1038
+ passwordUpdate: string;
1039
+ /**
1040
+ * User email address.
1041
+ */
1042
+ email: string;
1043
+ /**
1044
+ * User phone number in E.164 format.
1045
+ */
1046
+ phone: string;
1047
+ /**
1048
+ * Email verification status.
1049
+ */
1050
+ emailVerification: boolean;
1051
+ /**
1052
+ * Phone verification status.
1053
+ */
1054
+ phoneVerification: boolean;
1055
+ /**
1056
+ * Multi factor authentication status.
1057
+ */
1058
+ mfa: boolean;
1059
+ /**
1060
+ * User preferences as a key-value object
1061
+ */
1062
+ prefs: Preferences;
1063
+ /**
1064
+ * A user-owned message receiver. A single user may have multiple e.g. emails, phones, and a browser. Each target is registered with a single provider.
1065
+ */
1066
+ targets: Target[];
1067
+ /**
1068
+ * Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.
1069
+ */
1070
+ accessedAt: string;
1071
+ };
1072
+ /**
1073
+ * AlgoMD5
1074
+ */
1075
+ type AlgoMd5 = {
1076
+ /**
1077
+ * Algo type.
1078
+ */
1079
+ type: string;
1080
+ };
1081
+ /**
1082
+ * AlgoSHA
1083
+ */
1084
+ type AlgoSha = {
1085
+ /**
1086
+ * Algo type.
1087
+ */
1088
+ type: string;
1089
+ };
1090
+ /**
1091
+ * AlgoPHPass
1092
+ */
1093
+ type AlgoPhpass = {
1094
+ /**
1095
+ * Algo type.
1096
+ */
1097
+ type: string;
1098
+ };
1099
+ /**
1100
+ * AlgoBcrypt
1101
+ */
1102
+ type AlgoBcrypt = {
1103
+ /**
1104
+ * Algo type.
1105
+ */
1106
+ type: string;
1107
+ };
1108
+ /**
1109
+ * AlgoScrypt
1110
+ */
1111
+ type AlgoScrypt = {
1112
+ /**
1113
+ * Algo type.
1114
+ */
1115
+ type: string;
1116
+ /**
1117
+ * CPU complexity of computed hash.
1118
+ */
1119
+ costCpu: number;
1120
+ /**
1121
+ * Memory complexity of computed hash.
1122
+ */
1123
+ costMemory: number;
1124
+ /**
1125
+ * Parallelization of computed hash.
1126
+ */
1127
+ costParallel: number;
1128
+ /**
1129
+ * Length used to compute hash.
1130
+ */
1131
+ length: number;
1132
+ };
1133
+ /**
1134
+ * AlgoScryptModified
1135
+ */
1136
+ type AlgoScryptModified = {
1137
+ /**
1138
+ * Algo type.
1139
+ */
1140
+ type: string;
1141
+ /**
1142
+ * Salt used to compute hash.
1143
+ */
1144
+ salt: string;
1145
+ /**
1146
+ * Separator used to compute hash.
1147
+ */
1148
+ saltSeparator: string;
1149
+ /**
1150
+ * Key used to compute hash.
1151
+ */
1152
+ signerKey: string;
1153
+ };
1154
+ /**
1155
+ * AlgoArgon2
1156
+ */
1157
+ type AlgoArgon2 = {
1158
+ /**
1159
+ * Algo type.
1160
+ */
1161
+ type: string;
1162
+ /**
1163
+ * Memory used to compute hash.
1164
+ */
1165
+ memoryCost: number;
1166
+ /**
1167
+ * Amount of time consumed to compute hash
1168
+ */
1169
+ timeCost: number;
1170
+ /**
1171
+ * Number of threads used to compute hash.
1172
+ */
1173
+ threads: number;
1174
+ };
1175
+ /**
1176
+ * Preferences
1177
+ */
1178
+ type Preferences = {
1179
+ [key: string]: any;
1180
+ };
1181
+ /**
1182
+ * Session
1183
+ */
1184
+ type Session = {
1185
+ /**
1186
+ * Session ID.
1187
+ */
1188
+ $id: string;
1189
+ /**
1190
+ * Session creation date in ISO 8601 format.
1191
+ */
1192
+ $createdAt: string;
1193
+ /**
1194
+ * Session update date in ISO 8601 format.
1195
+ */
1196
+ $updatedAt: string;
1197
+ /**
1198
+ * User ID.
1199
+ */
1200
+ userId: string;
1201
+ /**
1202
+ * Session expiration date in ISO 8601 format.
1203
+ */
1204
+ expire: string;
1205
+ /**
1206
+ * Session Provider.
1207
+ */
1208
+ provider: string;
1209
+ /**
1210
+ * Session Provider User ID.
1211
+ */
1212
+ providerUid: string;
1213
+ /**
1214
+ * Session Provider Access Token.
1215
+ */
1216
+ providerAccessToken: string;
1217
+ /**
1218
+ * The date of when the access token expires in ISO 8601 format.
1219
+ */
1220
+ providerAccessTokenExpiry: string;
1221
+ /**
1222
+ * Session Provider Refresh Token.
1223
+ */
1224
+ providerRefreshToken: string;
1225
+ /**
1226
+ * IP in use when the session was created.
1227
+ */
1228
+ ip: string;
1229
+ /**
1230
+ * Operating system code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/os.json).
1231
+ */
1232
+ osCode: string;
1233
+ /**
1234
+ * Operating system name.
1235
+ */
1236
+ osName: string;
1237
+ /**
1238
+ * Operating system version.
1239
+ */
1240
+ osVersion: string;
1241
+ /**
1242
+ * Client type.
1243
+ */
1244
+ clientType: string;
1245
+ /**
1246
+ * Client code name. View list of [available options](https://github.com/appwrite/appwrite/blob/master/docs/lists/clients.json).
1247
+ */
1248
+ clientCode: string;
1249
+ /**
1250
+ * Client name.
1251
+ */
1252
+ clientName: string;
1253
+ /**
1254
+ * Client version.
1255
+ */
1256
+ clientVersion: string;
1257
+ /**
1258
+ * Client engine name.
1259
+ */
1260
+ clientEngine: string;
1261
+ /**
1262
+ * Client engine name.
1263
+ */
1264
+ clientEngineVersion: string;
1265
+ /**
1266
+ * Device name.
1267
+ */
1268
+ deviceName: string;
1269
+ /**
1270
+ * Device brand name.
1271
+ */
1272
+ deviceBrand: string;
1273
+ /**
1274
+ * Device model name.
1275
+ */
1276
+ deviceModel: string;
1277
+ /**
1278
+ * Country two-character ISO 3166-1 alpha code.
1279
+ */
1280
+ countryCode: string;
1281
+ /**
1282
+ * Country name.
1283
+ */
1284
+ countryName: string;
1285
+ /**
1286
+ * Returns true if this the current user session.
1287
+ */
1288
+ current: boolean;
1289
+ /**
1290
+ * Returns a list of active session factors.
1291
+ */
1292
+ factors: string[];
1293
+ /**
1294
+ * Secret used to authenticate the user. Only included if the request was made with an API key
1295
+ */
1296
+ secret: string;
1297
+ /**
1298
+ * Most recent date in ISO 8601 format when the session successfully passed MFA challenge.
1299
+ */
1300
+ mfaUpdatedAt: string;
1301
+ };
1302
+ /**
1303
+ * Identity
1304
+ */
1305
+ type Identity = {
1306
+ /**
1307
+ * Identity ID.
1308
+ */
1309
+ $id: string;
1310
+ /**
1311
+ * Identity creation date in ISO 8601 format.
1312
+ */
1313
+ $createdAt: string;
1314
+ /**
1315
+ * Identity update date in ISO 8601 format.
1316
+ */
1317
+ $updatedAt: string;
1318
+ /**
1319
+ * User ID.
1320
+ */
1321
+ userId: string;
1322
+ /**
1323
+ * Identity Provider.
1324
+ */
1325
+ provider: string;
1326
+ /**
1327
+ * ID of the User in the Identity Provider.
1328
+ */
1329
+ providerUid: string;
1330
+ /**
1331
+ * Email of the User in the Identity Provider.
1332
+ */
1333
+ providerEmail: string;
1334
+ /**
1335
+ * Identity Provider Access Token.
1336
+ */
1337
+ providerAccessToken: string;
1338
+ /**
1339
+ * The date of when the access token expires in ISO 8601 format.
1340
+ */
1341
+ providerAccessTokenExpiry: string;
1342
+ /**
1343
+ * Identity Provider Refresh Token.
1344
+ */
1345
+ providerRefreshToken: string;
1346
+ };
1347
+ /**
1348
+ * Token
1349
+ */
1350
+ type Token = {
1351
+ /**
1352
+ * Token ID.
1353
+ */
1354
+ $id: string;
1355
+ /**
1356
+ * Token creation date in ISO 8601 format.
1357
+ */
1358
+ $createdAt: string;
1359
+ /**
1360
+ * User ID.
1361
+ */
1362
+ userId: string;
1363
+ /**
1364
+ * Token secret key. This will return an empty string unless the response is returned using an API key or as part of a webhook payload.
1365
+ */
1366
+ secret: string;
1367
+ /**
1368
+ * Token expiration date in ISO 8601 format.
1369
+ */
1370
+ expire: string;
1371
+ /**
1372
+ * Security phrase of a token. Empty if security phrase was not requested when creating a token. It includes randomly generated phrase which is also sent in the external resource such as email.
1373
+ */
1374
+ phrase: string;
1375
+ };
1376
+ /**
1377
+ * JWT
1378
+ */
1379
+ type Jwt = {
1380
+ /**
1381
+ * JWT encoded string.
1382
+ */
1383
+ jwt: string;
1384
+ };
1385
+ /**
1386
+ * Locale
1387
+ */
1388
+ type Locale = {
1389
+ /**
1390
+ * User IP address.
1391
+ */
1392
+ ip: string;
1393
+ /**
1394
+ * Country code in [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) two-character format
1395
+ */
1396
+ countryCode: string;
1397
+ /**
1398
+ * Country name. This field support localization.
1399
+ */
1400
+ country: string;
1401
+ /**
1402
+ * Continent code. A two character continent code &quot;AF&quot; for Africa, &quot;AN&quot; for Antarctica, &quot;AS&quot; for Asia, &quot;EU&quot; for Europe, &quot;NA&quot; for North America, &quot;OC&quot; for Oceania, and &quot;SA&quot; for South America.
1403
+ */
1404
+ continentCode: string;
1405
+ /**
1406
+ * Continent name. This field support localization.
1407
+ */
1408
+ continent: string;
1409
+ /**
1410
+ * True if country is part of the European Union.
1411
+ */
1412
+ eu: boolean;
1413
+ /**
1414
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format
1415
+ */
1416
+ currency: string;
1417
+ };
1418
+ /**
1419
+ * LocaleCode
1420
+ */
1421
+ type LocaleCode = {
1422
+ /**
1423
+ * Locale codes in [ISO 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes)
1424
+ */
1425
+ code: string;
1426
+ /**
1427
+ * Locale name
1428
+ */
1429
+ name: string;
1430
+ };
1431
+ /**
1432
+ * File
1433
+ */
1434
+ type File = {
1435
+ /**
1436
+ * File ID.
1437
+ */
1438
+ $id: string;
1439
+ /**
1440
+ * Bucket ID.
1441
+ */
1442
+ bucketId: string;
1443
+ /**
1444
+ * File creation date in ISO 8601 format.
1445
+ */
1446
+ $createdAt: string;
1447
+ /**
1448
+ * File update date in ISO 8601 format.
1449
+ */
1450
+ $updatedAt: string;
1451
+ /**
1452
+ * File permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1453
+ */
1454
+ $permissions: string[];
1455
+ /**
1456
+ * File name.
1457
+ */
1458
+ name: string;
1459
+ /**
1460
+ * File MD5 signature.
1461
+ */
1462
+ signature: string;
1463
+ /**
1464
+ * File mime type.
1465
+ */
1466
+ mimeType: string;
1467
+ /**
1468
+ * File original size in bytes.
1469
+ */
1470
+ sizeOriginal: number;
1471
+ /**
1472
+ * Total number of chunks available
1473
+ */
1474
+ chunksTotal: number;
1475
+ /**
1476
+ * Total number of chunks uploaded
1477
+ */
1478
+ chunksUploaded: number;
1479
+ };
1480
+ /**
1481
+ * Bucket
1482
+ */
1483
+ type Bucket = {
1484
+ /**
1485
+ * Bucket ID.
1486
+ */
1487
+ $id: string;
1488
+ /**
1489
+ * Bucket creation time in ISO 8601 format.
1490
+ */
1491
+ $createdAt: string;
1492
+ /**
1493
+ * Bucket update date in ISO 8601 format.
1494
+ */
1495
+ $updatedAt: string;
1496
+ /**
1497
+ * Bucket permissions. [Learn more about permissions](https://appwrite.io/docs/permissions).
1498
+ */
1499
+ $permissions: string[];
1500
+ /**
1501
+ * Whether file-level security is enabled. [Learn more about permissions](https://appwrite.io/docs/permissions).
1502
+ */
1503
+ fileSecurity: boolean;
1504
+ /**
1505
+ * Bucket name.
1506
+ */
1507
+ name: string;
1508
+ /**
1509
+ * Bucket enabled.
1510
+ */
1511
+ enabled: boolean;
1512
+ /**
1513
+ * Maximum file size supported.
1514
+ */
1515
+ maximumFileSize: number;
1516
+ /**
1517
+ * Allowed file extensions.
1518
+ */
1519
+ allowedFileExtensions: string[];
1520
+ /**
1521
+ * Compression algorithm choosen for compression. Will be one of none, [gzip](https://en.wikipedia.org/wiki/Gzip), or [zstd](https://en.wikipedia.org/wiki/Zstd).
1522
+ */
1523
+ compression: string;
1524
+ /**
1525
+ * Bucket is encrypted.
1526
+ */
1527
+ encryption: boolean;
1528
+ /**
1529
+ * Virus scanning is enabled.
1530
+ */
1531
+ antivirus: boolean;
1532
+ };
1533
+ /**
1534
+ * Team
1535
+ */
1536
+ type Team<Preferences extends Models.Preferences> = {
1537
+ /**
1538
+ * Team ID.
1539
+ */
1540
+ $id: string;
1541
+ /**
1542
+ * Team creation date in ISO 8601 format.
1543
+ */
1544
+ $createdAt: string;
1545
+ /**
1546
+ * Team update date in ISO 8601 format.
1547
+ */
1548
+ $updatedAt: string;
1549
+ /**
1550
+ * Team name.
1551
+ */
1552
+ name: string;
1553
+ /**
1554
+ * Total number of team members.
1555
+ */
1556
+ total: number;
1557
+ /**
1558
+ * Team preferences as a key-value object
1559
+ */
1560
+ prefs: Preferences;
1561
+ };
1562
+ /**
1563
+ * Membership
1564
+ */
1565
+ type Membership = {
1566
+ /**
1567
+ * Membership ID.
1568
+ */
1569
+ $id: string;
1570
+ /**
1571
+ * Membership creation date in ISO 8601 format.
1572
+ */
1573
+ $createdAt: string;
1574
+ /**
1575
+ * Membership update date in ISO 8601 format.
1576
+ */
1577
+ $updatedAt: string;
1578
+ /**
1579
+ * User ID.
1580
+ */
1581
+ userId: string;
1582
+ /**
1583
+ * User name.
1584
+ */
1585
+ userName: string;
1586
+ /**
1587
+ * User email address.
1588
+ */
1589
+ userEmail: string;
1590
+ /**
1591
+ * Team ID.
1592
+ */
1593
+ teamId: string;
1594
+ /**
1595
+ * Team name.
1596
+ */
1597
+ teamName: string;
1598
+ /**
1599
+ * Date, the user has been invited to join the team in ISO 8601 format.
1600
+ */
1601
+ invited: string;
1602
+ /**
1603
+ * Date, the user has accepted the invitation to join the team in ISO 8601 format.
1604
+ */
1605
+ joined: string;
1606
+ /**
1607
+ * User confirmation status, true if the user has joined the team or false otherwise.
1608
+ */
1609
+ confirm: boolean;
1610
+ /**
1611
+ * Multi factor authentication status, true if the user has MFA enabled or false otherwise.
1612
+ */
1613
+ mfa: boolean;
1614
+ /**
1615
+ * User list of roles
1616
+ */
1617
+ roles: string[];
1618
+ };
1619
+ /**
1620
+ * Function
1621
+ */
1622
+ type Function = {
1623
+ /**
1624
+ * Function ID.
1625
+ */
1626
+ $id: string;
1627
+ /**
1628
+ * Function creation date in ISO 8601 format.
1629
+ */
1630
+ $createdAt: string;
1631
+ /**
1632
+ * Function update date in ISO 8601 format.
1633
+ */
1634
+ $updatedAt: string;
1635
+ /**
1636
+ * Execution permissions.
1637
+ */
1638
+ execute: string[];
1639
+ /**
1640
+ * Function name.
1641
+ */
1642
+ name: string;
1643
+ /**
1644
+ * Function enabled.
1645
+ */
1646
+ enabled: boolean;
1647
+ /**
1648
+ * Is the function deployed with the latest configuration? This is set to false if you&#039;ve changed an environment variables, entrypoint, commands, or other settings that needs redeploy to be applied. When the value is false, redeploy the function to update it with the latest configuration.
1649
+ */
1650
+ live: boolean;
1651
+ /**
1652
+ * Whether executions will be logged. When set to false, executions will not be logged, but will reduce resource used by your Appwrite project.
1653
+ */
1654
+ logging: boolean;
1655
+ /**
1656
+ * Function execution runtime.
1657
+ */
1658
+ runtime: string;
1659
+ /**
1660
+ * Function&#039;s active deployment ID.
1661
+ */
1662
+ deployment: string;
1663
+ /**
1664
+ * Function variables.
1665
+ */
1666
+ vars: Variable[];
1667
+ /**
1668
+ * Function trigger events.
1669
+ */
1670
+ events: string[];
1671
+ /**
1672
+ * Function execution schedult in CRON format.
1673
+ */
1674
+ schedule: string;
1675
+ /**
1676
+ * Function execution timeout in seconds.
1677
+ */
1678
+ timeout: number;
1679
+ /**
1680
+ * The entrypoint file used to execute the deployment.
1681
+ */
1682
+ entrypoint: string;
1683
+ /**
1684
+ * The build command used to build the deployment.
1685
+ */
1686
+ commands: string;
1687
+ /**
1688
+ * Version of Open Runtimes used for the function.
1689
+ */
1690
+ version: string;
1691
+ /**
1692
+ * Function VCS (Version Control System) installation id.
1693
+ */
1694
+ installationId: string;
1695
+ /**
1696
+ * VCS (Version Control System) Repository ID
1697
+ */
1698
+ providerRepositoryId: string;
1699
+ /**
1700
+ * VCS (Version Control System) branch name
1701
+ */
1702
+ providerBranch: string;
1703
+ /**
1704
+ * Path to function in VCS (Version Control System) repository
1705
+ */
1706
+ providerRootDirectory: string;
1707
+ /**
1708
+ * 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
1709
+ */
1710
+ providerSilentMode: boolean;
1711
+ };
1712
+ /**
1713
+ * Runtime
1714
+ */
1715
+ type Runtime = {
1716
+ /**
1717
+ * Runtime ID.
1718
+ */
1719
+ $id: string;
1720
+ /**
1721
+ * Runtime Name.
1722
+ */
1723
+ name: string;
1724
+ /**
1725
+ * Runtime version.
1726
+ */
1727
+ version: string;
1728
+ /**
1729
+ * Base Docker image used to build the runtime.
1730
+ */
1731
+ base: string;
1732
+ /**
1733
+ * Image name of Docker Hub.
1734
+ */
1735
+ image: string;
1736
+ /**
1737
+ * Name of the logo image.
1738
+ */
1739
+ logo: string;
1740
+ /**
1741
+ * List of supported architectures.
1742
+ */
1743
+ supports: string[];
1744
+ };
1745
+ /**
1746
+ * Deployment
1747
+ */
1748
+ type Deployment = {
1749
+ /**
1750
+ * Deployment ID.
1751
+ */
1752
+ $id: string;
1753
+ /**
1754
+ * Deployment creation date in ISO 8601 format.
1755
+ */
1756
+ $createdAt: string;
1757
+ /**
1758
+ * Deployment update date in ISO 8601 format.
1759
+ */
1760
+ $updatedAt: string;
1761
+ /**
1762
+ * Type of deployment.
1763
+ */
1764
+ type: string;
1765
+ /**
1766
+ * Resource ID.
1767
+ */
1768
+ resourceId: string;
1769
+ /**
1770
+ * Resource type.
1771
+ */
1772
+ resourceType: string;
1773
+ /**
1774
+ * The entrypoint file to use to execute the deployment code.
1775
+ */
1776
+ entrypoint: string;
1777
+ /**
1778
+ * The code size in bytes.
1779
+ */
1780
+ size: number;
1781
+ /**
1782
+ * The current build ID.
1783
+ */
1784
+ buildId: string;
1785
+ /**
1786
+ * Whether the deployment should be automatically activated.
1787
+ */
1788
+ activate: boolean;
1789
+ /**
1790
+ * The deployment status. Possible values are &quot;processing&quot;, &quot;building&quot;, &quot;waiting&quot;, &quot;ready&quot;, and &quot;failed&quot;.
1791
+ */
1792
+ status: string;
1793
+ /**
1794
+ * The build logs.
1795
+ */
1796
+ buildLogs: string;
1797
+ /**
1798
+ * The current build time in seconds.
1799
+ */
1800
+ buildTime: number;
1801
+ /**
1802
+ * The name of the vcs provider repository
1803
+ */
1804
+ providerRepositoryName: string;
1805
+ /**
1806
+ * The name of the vcs provider repository owner
1807
+ */
1808
+ providerRepositoryOwner: string;
1809
+ /**
1810
+ * The url of the vcs provider repository
1811
+ */
1812
+ providerRepositoryUrl: string;
1813
+ /**
1814
+ * The branch of the vcs repository
1815
+ */
1816
+ providerBranch: string;
1817
+ /**
1818
+ * The commit hash of the vcs commit
1819
+ */
1820
+ providerCommitHash: string;
1821
+ /**
1822
+ * The url of vcs commit author
1823
+ */
1824
+ providerCommitAuthorUrl: string;
1825
+ /**
1826
+ * The name of vcs commit author
1827
+ */
1828
+ providerCommitAuthor: string;
1829
+ /**
1830
+ * The commit message
1831
+ */
1832
+ providerCommitMessage: string;
1833
+ /**
1834
+ * The url of the vcs commit
1835
+ */
1836
+ providerCommitUrl: string;
1837
+ /**
1838
+ * The branch of the vcs repository
1839
+ */
1840
+ providerBranchUrl: string;
1841
+ };
1842
+ /**
1843
+ * Execution
1844
+ */
1845
+ type Execution = {
1846
+ /**
1847
+ * Execution ID.
1848
+ */
1849
+ $id: string;
1850
+ /**
1851
+ * Execution creation date in ISO 8601 format.
1852
+ */
1853
+ $createdAt: string;
1854
+ /**
1855
+ * Execution upate date in ISO 8601 format.
1856
+ */
1857
+ $updatedAt: string;
1858
+ /**
1859
+ * Execution roles.
1860
+ */
1861
+ $permissions: string[];
1862
+ /**
1863
+ * Function ID.
1864
+ */
1865
+ functionId: string;
1866
+ /**
1867
+ * The trigger that caused the function to execute. Possible values can be: `http`, `schedule`, or `event`.
1868
+ */
1869
+ trigger: string;
1870
+ /**
1871
+ * The status of the function execution. Possible values can be: `waiting`, `processing`, `completed`, or `failed`.
1872
+ */
1873
+ status: string;
1874
+ /**
1875
+ * HTTP request method type.
1876
+ */
1877
+ requestMethod: string;
1878
+ /**
1879
+ * HTTP request path and query.
1880
+ */
1881
+ requestPath: string;
1882
+ /**
1883
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1884
+ */
1885
+ requestHeaders: Headers[];
1886
+ /**
1887
+ * HTTP response status code.
1888
+ */
1889
+ responseStatusCode: number;
1890
+ /**
1891
+ * HTTP response body. This will return empty unless execution is created as synchronous.
1892
+ */
1893
+ responseBody: string;
1894
+ /**
1895
+ * HTTP response headers as a key-value object. This will return only whitelisted headers. All headers are returned if execution is created as synchronous.
1896
+ */
1897
+ responseHeaders: Headers[];
1898
+ /**
1899
+ * 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.
1900
+ */
1901
+ logs: string;
1902
+ /**
1903
+ * 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.
1904
+ */
1905
+ errors: string;
1906
+ /**
1907
+ * Function execution duration in seconds.
1908
+ */
1909
+ duration: number;
1910
+ };
1911
+ /**
1912
+ * Variable
1913
+ */
1914
+ type Variable = {
1915
+ /**
1916
+ * Variable ID.
1917
+ */
1918
+ $id: string;
1919
+ /**
1920
+ * Variable creation date in ISO 8601 format.
1921
+ */
1922
+ $createdAt: string;
1923
+ /**
1924
+ * Variable creation date in ISO 8601 format.
1925
+ */
1926
+ $updatedAt: string;
1927
+ /**
1928
+ * Variable key.
1929
+ */
1930
+ key: string;
1931
+ /**
1932
+ * Variable value.
1933
+ */
1934
+ value: string;
1935
+ /**
1936
+ * Service to which the variable belongs. Possible values are &quot;project&quot;, &quot;function&quot;
1937
+ */
1938
+ resourceType: string;
1939
+ /**
1940
+ * ID of resource to which the variable belongs. If resourceType is &quot;project&quot;, it is empty. If resourceType is &quot;function&quot;, it is ID of the function.
1941
+ */
1942
+ resourceId: string;
1943
+ };
1944
+ /**
1945
+ * Country
1946
+ */
1947
+ type Country = {
1948
+ /**
1949
+ * Country name.
1950
+ */
1951
+ name: string;
1952
+ /**
1953
+ * Country two-character ISO 3166-1 alpha code.
1954
+ */
1955
+ code: string;
1956
+ };
1957
+ /**
1958
+ * Continent
1959
+ */
1960
+ type Continent = {
1961
+ /**
1962
+ * Continent name.
1963
+ */
1964
+ name: string;
1965
+ /**
1966
+ * Continent two letter code.
1967
+ */
1968
+ code: string;
1969
+ };
1970
+ /**
1971
+ * Language
1972
+ */
1973
+ type Language = {
1974
+ /**
1975
+ * Language name.
1976
+ */
1977
+ name: string;
1978
+ /**
1979
+ * Language two-character ISO 639-1 codes.
1980
+ */
1981
+ code: string;
1982
+ /**
1983
+ * Language native name.
1984
+ */
1985
+ nativeName: string;
1986
+ };
1987
+ /**
1988
+ * Currency
1989
+ */
1990
+ type Currency = {
1991
+ /**
1992
+ * Currency symbol.
1993
+ */
1994
+ symbol: string;
1995
+ /**
1996
+ * Currency name.
1997
+ */
1998
+ name: string;
1999
+ /**
2000
+ * Currency native symbol.
2001
+ */
2002
+ symbolNative: string;
2003
+ /**
2004
+ * Number of decimal digits.
2005
+ */
2006
+ decimalDigits: number;
2007
+ /**
2008
+ * Currency digit rounding.
2009
+ */
2010
+ rounding: number;
2011
+ /**
2012
+ * Currency code in [ISO 4217-1](http://en.wikipedia.org/wiki/ISO_4217) three-character format.
2013
+ */
2014
+ code: string;
2015
+ /**
2016
+ * Currency plural name
2017
+ */
2018
+ namePlural: string;
2019
+ };
2020
+ /**
2021
+ * Phone
2022
+ */
2023
+ type Phone = {
2024
+ /**
2025
+ * Phone code.
2026
+ */
2027
+ code: string;
2028
+ /**
2029
+ * Country two-character ISO 3166-1 alpha code.
2030
+ */
2031
+ countryCode: string;
2032
+ /**
2033
+ * Country name.
2034
+ */
2035
+ countryName: string;
2036
+ };
2037
+ /**
2038
+ * Health Antivirus
2039
+ */
2040
+ type HealthAntivirus = {
2041
+ /**
2042
+ * Antivirus version.
2043
+ */
2044
+ version: string;
2045
+ /**
2046
+ * Antivirus status. Possible values can are: `disabled`, `offline`, `online`
2047
+ */
2048
+ status: string;
2049
+ };
2050
+ /**
2051
+ * Health Queue
2052
+ */
2053
+ type HealthQueue = {
2054
+ /**
2055
+ * Amount of actions in the queue.
2056
+ */
2057
+ size: number;
2058
+ };
2059
+ /**
2060
+ * Health Status
2061
+ */
2062
+ type HealthStatus = {
2063
+ /**
2064
+ * Name of the service.
2065
+ */
2066
+ name: string;
2067
+ /**
2068
+ * Duration in milliseconds how long the health check took.
2069
+ */
2070
+ ping: number;
2071
+ /**
2072
+ * Service status. Possible values can are: `pass`, `fail`
2073
+ */
2074
+ status: string;
2075
+ };
2076
+ /**
2077
+ * Health Certificate
2078
+ */
2079
+ type HealthCertificate = {
2080
+ /**
2081
+ * Certificate name
2082
+ */
2083
+ name: string;
2084
+ /**
2085
+ * Subject SN
2086
+ */
2087
+ subjectSN: string;
2088
+ /**
2089
+ * Issuer organisation
2090
+ */
2091
+ issuerOrganisation: string;
2092
+ /**
2093
+ * Valid from
2094
+ */
2095
+ validFrom: string;
2096
+ /**
2097
+ * Valid to
2098
+ */
2099
+ validTo: string;
2100
+ /**
2101
+ * Signature type SN
2102
+ */
2103
+ signatureTypeSN: string;
2104
+ };
2105
+ /**
2106
+ * Health Time
2107
+ */
2108
+ type HealthTime = {
2109
+ /**
2110
+ * Current unix timestamp on trustful remote server.
2111
+ */
2112
+ remoteTime: number;
2113
+ /**
2114
+ * Current unix timestamp of local server where Appwrite runs.
2115
+ */
2116
+ localTime: number;
2117
+ /**
2118
+ * Difference of unix remote and local timestamps in milliseconds.
2119
+ */
2120
+ diff: number;
2121
+ };
2122
+ /**
2123
+ * Headers
2124
+ */
2125
+ type Headers = {
2126
+ /**
2127
+ * Header name.
2128
+ */
2129
+ name: string;
2130
+ /**
2131
+ * Header value.
2132
+ */
2133
+ value: string;
2134
+ };
2135
+ /**
2136
+ * MFA Challenge
2137
+ */
2138
+ type MfaChallenge = {
2139
+ /**
2140
+ * Token ID.
2141
+ */
2142
+ $id: string;
2143
+ /**
2144
+ * Token creation date in ISO 8601 format.
2145
+ */
2146
+ $createdAt: string;
2147
+ /**
2148
+ * User ID.
2149
+ */
2150
+ userId: string;
2151
+ /**
2152
+ * Token expiration date in ISO 8601 format.
2153
+ */
2154
+ expire: string;
2155
+ };
2156
+ /**
2157
+ * MFA Recovery Codes
2158
+ */
2159
+ type MfaRecoveryCodes = {
2160
+ /**
2161
+ * Recovery codes.
2162
+ */
2163
+ recoveryCodes: string[];
2164
+ };
2165
+ /**
2166
+ * MFAType
2167
+ */
2168
+ type MfaType = {
2169
+ /**
2170
+ * Secret token used for TOTP factor.
2171
+ */
2172
+ secret: string;
2173
+ /**
2174
+ * URI for authenticator apps.
2175
+ */
2176
+ uri: string;
2177
+ };
2178
+ /**
2179
+ * MFAFactors
2180
+ */
2181
+ type MfaFactors = {
2182
+ /**
2183
+ * Can TOTP be used for MFA challenge for this account.
2184
+ */
2185
+ totp: boolean;
2186
+ /**
2187
+ * Can phone (SMS) be used for MFA challenge for this account.
2188
+ */
2189
+ phone: boolean;
2190
+ /**
2191
+ * Can email be used for MFA challenge for this account.
2192
+ */
2193
+ email: boolean;
2194
+ /**
2195
+ * Can recovery code be used for MFA challenge for this account.
2196
+ */
2197
+ recoveryCode: boolean;
2198
+ };
2199
+ /**
2200
+ * Provider
2201
+ */
2202
+ type Provider = {
2203
+ /**
2204
+ * Provider ID.
2205
+ */
2206
+ $id: string;
2207
+ /**
2208
+ * Provider creation time in ISO 8601 format.
2209
+ */
2210
+ $createdAt: string;
2211
+ /**
2212
+ * Provider update date in ISO 8601 format.
2213
+ */
2214
+ $updatedAt: string;
2215
+ /**
2216
+ * The name for the provider instance.
2217
+ */
2218
+ name: string;
2219
+ /**
2220
+ * The name of the provider service.
2221
+ */
2222
+ provider: string;
2223
+ /**
2224
+ * Is provider enabled?
2225
+ */
2226
+ enabled: boolean;
2227
+ /**
2228
+ * Type of provider.
2229
+ */
2230
+ type: string;
2231
+ /**
2232
+ * Provider credentials.
2233
+ */
2234
+ credentials: object;
2235
+ /**
2236
+ * Provider options.
2237
+ */
2238
+ options?: object;
2239
+ };
2240
+ /**
2241
+ * Message
2242
+ */
2243
+ type Message = {
2244
+ /**
2245
+ * Message ID.
2246
+ */
2247
+ $id: string;
2248
+ /**
2249
+ * Message creation time in ISO 8601 format.
2250
+ */
2251
+ $createdAt: string;
2252
+ /**
2253
+ * Message update date in ISO 8601 format.
2254
+ */
2255
+ $updatedAt: string;
2256
+ /**
2257
+ * Message provider type.
2258
+ */
2259
+ providerType: string;
2260
+ /**
2261
+ * Topic IDs set as recipients.
2262
+ */
2263
+ topics: string[];
2264
+ /**
2265
+ * User IDs set as recipients.
2266
+ */
2267
+ users: string[];
2268
+ /**
2269
+ * Target IDs set as recipients.
2270
+ */
2271
+ targets: string[];
2272
+ /**
2273
+ * The scheduled time for message.
2274
+ */
2275
+ scheduledAt?: string;
2276
+ /**
2277
+ * The time when the message was delivered.
2278
+ */
2279
+ deliveredAt?: string;
2280
+ /**
2281
+ * Delivery errors if any.
2282
+ */
2283
+ deliveryErrors?: string[];
2284
+ /**
2285
+ * Number of recipients the message was delivered to.
2286
+ */
2287
+ deliveredTotal: number;
2288
+ /**
2289
+ * Data of the message.
2290
+ */
2291
+ data: object;
2292
+ /**
2293
+ * Status of delivery.
2294
+ */
2295
+ status: string;
2296
+ };
2297
+ /**
2298
+ * Topic
2299
+ */
2300
+ type Topic = {
2301
+ /**
2302
+ * Topic ID.
2303
+ */
2304
+ $id: string;
2305
+ /**
2306
+ * Topic creation time in ISO 8601 format.
2307
+ */
2308
+ $createdAt: string;
2309
+ /**
2310
+ * Topic update date in ISO 8601 format.
2311
+ */
2312
+ $updatedAt: string;
2313
+ /**
2314
+ * The name of the topic.
2315
+ */
2316
+ name: string;
2317
+ /**
2318
+ * Total count of email subscribers subscribed to the topic.
2319
+ */
2320
+ emailTotal: number;
2321
+ /**
2322
+ * Total count of SMS subscribers subscribed to the topic.
2323
+ */
2324
+ smsTotal: number;
2325
+ /**
2326
+ * Total count of push subscribers subscribed to the topic.
2327
+ */
2328
+ pushTotal: number;
2329
+ /**
2330
+ * Subscribe permissions.
2331
+ */
2332
+ subscribe: string[];
2333
+ };
2334
+ /**
2335
+ * Subscriber
2336
+ */
2337
+ type Subscriber = {
2338
+ /**
2339
+ * Subscriber ID.
2340
+ */
2341
+ $id: string;
2342
+ /**
2343
+ * Subscriber creation time in ISO 8601 format.
2344
+ */
2345
+ $createdAt: string;
2346
+ /**
2347
+ * Subscriber update date in ISO 8601 format.
2348
+ */
2349
+ $updatedAt: string;
2350
+ /**
2351
+ * Target ID.
2352
+ */
2353
+ targetId: string;
2354
+ /**
2355
+ * Target.
2356
+ */
2357
+ target: Target;
2358
+ /**
2359
+ * Topic ID.
2360
+ */
2361
+ userId: string;
2362
+ /**
2363
+ * User Name.
2364
+ */
2365
+ userName: string;
2366
+ /**
2367
+ * Topic ID.
2368
+ */
2369
+ topicId: string;
2370
+ /**
2371
+ * The target provider type. Can be one of the following: `email`, `sms` or `push`.
2372
+ */
2373
+ providerType: string;
2374
+ };
2375
+ /**
2376
+ * Target
2377
+ */
2378
+ type Target = {
2379
+ /**
2380
+ * Target ID.
2381
+ */
2382
+ $id: string;
2383
+ /**
2384
+ * Target creation time in ISO 8601 format.
2385
+ */
2386
+ $createdAt: string;
2387
+ /**
2388
+ * Target update date in ISO 8601 format.
2389
+ */
2390
+ $updatedAt: string;
2391
+ /**
2392
+ * Target Name.
2393
+ */
2394
+ name: string;
2395
+ /**
2396
+ * User ID.
2397
+ */
2398
+ userId: string;
2399
+ /**
2400
+ * Provider ID.
2401
+ */
2402
+ providerId?: string;
2403
+ /**
2404
+ * The target provider type. Can be one of the following: `email`, `sms` or `push`.
2405
+ */
2406
+ providerType: string;
2407
+ /**
2408
+ * The target identifier.
2409
+ */
2410
+ identifier: string;
2411
+ };
2412
+ }
2413
+
2414
+ export { Models };