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,606 @@
1
+ import { Client } from '../client.js';
2
+ import { Models } from '../models.js';
3
+ import { RelationshipType } from '../enums/relationship-type.js';
4
+ import { RelationMutate } from '../enums/relation-mutate.js';
5
+ import { IndexType } from '../enums/index-type.js';
6
+ import '../query.js';
7
+
8
+ declare class Databases {
9
+ client: Client;
10
+ constructor(client: Client);
11
+ /**
12
+ * List databases
13
+ *
14
+ * Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results.
15
+ *
16
+ * @param {string[]} queries
17
+ * @param {string} search
18
+ * @throws {AppwriteException}
19
+ * @returns {Promise<Models.DatabaseList>}
20
+ */
21
+ list(queries?: string[], search?: string): Promise<Models.DatabaseList>;
22
+ /**
23
+ * Create database
24
+ *
25
+ * Create a new Database.
26
+
27
+ *
28
+ * @param {string} databaseId
29
+ * @param {string} name
30
+ * @param {boolean} enabled
31
+ * @throws {AppwriteException}
32
+ * @returns {Promise<Models.Database>}
33
+ */
34
+ create(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
35
+ /**
36
+ * Get database
37
+ *
38
+ * Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata.
39
+ *
40
+ * @param {string} databaseId
41
+ * @throws {AppwriteException}
42
+ * @returns {Promise<Models.Database>}
43
+ */
44
+ get(databaseId: string): Promise<Models.Database>;
45
+ /**
46
+ * Update database
47
+ *
48
+ * Update a database by its unique ID.
49
+ *
50
+ * @param {string} databaseId
51
+ * @param {string} name
52
+ * @param {boolean} enabled
53
+ * @throws {AppwriteException}
54
+ * @returns {Promise<Models.Database>}
55
+ */
56
+ update(databaseId: string, name: string, enabled?: boolean): Promise<Models.Database>;
57
+ /**
58
+ * Delete database
59
+ *
60
+ * Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database.
61
+ *
62
+ * @param {string} databaseId
63
+ * @throws {AppwriteException}
64
+ * @returns {Promise<{}>}
65
+ */
66
+ delete(databaseId: string): Promise<{}>;
67
+ /**
68
+ * List collections
69
+ *
70
+ * Get a list of all collections that belong to the provided databaseId. You can use the search parameter to filter your results.
71
+ *
72
+ * @param {string} databaseId
73
+ * @param {string[]} queries
74
+ * @param {string} search
75
+ * @throws {AppwriteException}
76
+ * @returns {Promise<Models.CollectionList>}
77
+ */
78
+ listCollections(databaseId: string, queries?: string[], search?: string): Promise<Models.CollectionList>;
79
+ /**
80
+ * Create collection
81
+ *
82
+ * Create a new Collection. Before using this route, you should create a new database resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
83
+ *
84
+ * @param {string} databaseId
85
+ * @param {string} collectionId
86
+ * @param {string} name
87
+ * @param {string[]} permissions
88
+ * @param {boolean} documentSecurity
89
+ * @param {boolean} enabled
90
+ * @throws {AppwriteException}
91
+ * @returns {Promise<Models.Collection>}
92
+ */
93
+ createCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.Collection>;
94
+ /**
95
+ * Get collection
96
+ *
97
+ * Get a collection by its unique ID. This endpoint response returns a JSON object with the collection metadata.
98
+ *
99
+ * @param {string} databaseId
100
+ * @param {string} collectionId
101
+ * @throws {AppwriteException}
102
+ * @returns {Promise<Models.Collection>}
103
+ */
104
+ getCollection(databaseId: string, collectionId: string): Promise<Models.Collection>;
105
+ /**
106
+ * Update collection
107
+ *
108
+ * Update a collection by its unique ID.
109
+ *
110
+ * @param {string} databaseId
111
+ * @param {string} collectionId
112
+ * @param {string} name
113
+ * @param {string[]} permissions
114
+ * @param {boolean} documentSecurity
115
+ * @param {boolean} enabled
116
+ * @throws {AppwriteException}
117
+ * @returns {Promise<Models.Collection>}
118
+ */
119
+ updateCollection(databaseId: string, collectionId: string, name: string, permissions?: string[], documentSecurity?: boolean, enabled?: boolean): Promise<Models.Collection>;
120
+ /**
121
+ * Delete collection
122
+ *
123
+ * Delete a collection by its unique ID. Only users with write permissions have access to delete this resource.
124
+ *
125
+ * @param {string} databaseId
126
+ * @param {string} collectionId
127
+ * @throws {AppwriteException}
128
+ * @returns {Promise<{}>}
129
+ */
130
+ deleteCollection(databaseId: string, collectionId: string): Promise<{}>;
131
+ /**
132
+ * List attributes
133
+ *
134
+ * List attributes in the collection.
135
+ *
136
+ * @param {string} databaseId
137
+ * @param {string} collectionId
138
+ * @param {string[]} queries
139
+ * @throws {AppwriteException}
140
+ * @returns {Promise<Models.AttributeList>}
141
+ */
142
+ listAttributes(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.AttributeList>;
143
+ /**
144
+ * Create boolean attribute
145
+ *
146
+ * Create a boolean attribute.
147
+
148
+ *
149
+ * @param {string} databaseId
150
+ * @param {string} collectionId
151
+ * @param {string} key
152
+ * @param {boolean} required
153
+ * @param {boolean} xdefault
154
+ * @param {boolean} array
155
+ * @throws {AppwriteException}
156
+ * @returns {Promise<Models.AttributeBoolean>}
157
+ */
158
+ createBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean, array?: boolean): Promise<Models.AttributeBoolean>;
159
+ /**
160
+ * Update boolean attribute
161
+ *
162
+ * Update a boolean attribute. Changing the `default` value will not update already existing documents.
163
+ *
164
+ * @param {string} databaseId
165
+ * @param {string} collectionId
166
+ * @param {string} key
167
+ * @param {boolean} required
168
+ * @param {boolean} xdefault
169
+ * @throws {AppwriteException}
170
+ * @returns {Promise<Models.AttributeBoolean>}
171
+ */
172
+ updateBooleanAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: boolean): Promise<Models.AttributeBoolean>;
173
+ /**
174
+ * Create datetime attribute
175
+ *
176
+ * Create a date time attribute according to the ISO 8601 standard.
177
+ *
178
+ * @param {string} databaseId
179
+ * @param {string} collectionId
180
+ * @param {string} key
181
+ * @param {boolean} required
182
+ * @param {string} xdefault
183
+ * @param {boolean} array
184
+ * @throws {AppwriteException}
185
+ * @returns {Promise<Models.AttributeDatetime>}
186
+ */
187
+ createDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeDatetime>;
188
+ /**
189
+ * Update dateTime attribute
190
+ *
191
+ * Update a date time attribute. Changing the `default` value will not update already existing documents.
192
+ *
193
+ * @param {string} databaseId
194
+ * @param {string} collectionId
195
+ * @param {string} key
196
+ * @param {boolean} required
197
+ * @param {string} xdefault
198
+ * @throws {AppwriteException}
199
+ * @returns {Promise<Models.AttributeDatetime>}
200
+ */
201
+ updateDatetimeAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeDatetime>;
202
+ /**
203
+ * Create email attribute
204
+ *
205
+ * Create an email attribute.
206
+
207
+ *
208
+ * @param {string} databaseId
209
+ * @param {string} collectionId
210
+ * @param {string} key
211
+ * @param {boolean} required
212
+ * @param {string} xdefault
213
+ * @param {boolean} array
214
+ * @throws {AppwriteException}
215
+ * @returns {Promise<Models.AttributeEmail>}
216
+ */
217
+ createEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEmail>;
218
+ /**
219
+ * Update email attribute
220
+ *
221
+ * Update an email attribute. Changing the `default` value will not update already existing documents.
222
+
223
+ *
224
+ * @param {string} databaseId
225
+ * @param {string} collectionId
226
+ * @param {string} key
227
+ * @param {boolean} required
228
+ * @param {string} xdefault
229
+ * @throws {AppwriteException}
230
+ * @returns {Promise<Models.AttributeEmail>}
231
+ */
232
+ updateEmailAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeEmail>;
233
+ /**
234
+ * Create enum attribute
235
+ *
236
+ * Create an enumeration attribute. The `elements` param acts as a white-list of accepted values for this attribute.
237
+
238
+ *
239
+ * @param {string} databaseId
240
+ * @param {string} collectionId
241
+ * @param {string} key
242
+ * @param {string[]} elements
243
+ * @param {boolean} required
244
+ * @param {string} xdefault
245
+ * @param {boolean} array
246
+ * @throws {AppwriteException}
247
+ * @returns {Promise<Models.AttributeEnum>}
248
+ */
249
+ createEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeEnum>;
250
+ /**
251
+ * Update enum attribute
252
+ *
253
+ * Update an enum attribute. Changing the `default` value will not update already existing documents.
254
+
255
+ *
256
+ * @param {string} databaseId
257
+ * @param {string} collectionId
258
+ * @param {string} key
259
+ * @param {string[]} elements
260
+ * @param {boolean} required
261
+ * @param {string} xdefault
262
+ * @throws {AppwriteException}
263
+ * @returns {Promise<Models.AttributeEnum>}
264
+ */
265
+ updateEnumAttribute(databaseId: string, collectionId: string, key: string, elements: string[], required: boolean, xdefault?: string): Promise<Models.AttributeEnum>;
266
+ /**
267
+ * Create float attribute
268
+ *
269
+ * Create a float attribute. Optionally, minimum and maximum values can be provided.
270
+
271
+ *
272
+ * @param {string} databaseId
273
+ * @param {string} collectionId
274
+ * @param {string} key
275
+ * @param {boolean} required
276
+ * @param {number} min
277
+ * @param {number} max
278
+ * @param {number} xdefault
279
+ * @param {boolean} array
280
+ * @throws {AppwriteException}
281
+ * @returns {Promise<Models.AttributeFloat>}
282
+ */
283
+ createFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.AttributeFloat>;
284
+ /**
285
+ * Update float attribute
286
+ *
287
+ * Update a float attribute. Changing the `default` value will not update already existing documents.
288
+
289
+ *
290
+ * @param {string} databaseId
291
+ * @param {string} collectionId
292
+ * @param {string} key
293
+ * @param {boolean} required
294
+ * @param {number} min
295
+ * @param {number} max
296
+ * @param {number} xdefault
297
+ * @throws {AppwriteException}
298
+ * @returns {Promise<Models.AttributeFloat>}
299
+ */
300
+ updateFloatAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number): Promise<Models.AttributeFloat>;
301
+ /**
302
+ * Create integer attribute
303
+ *
304
+ * Create an integer attribute. Optionally, minimum and maximum values can be provided.
305
+
306
+ *
307
+ * @param {string} databaseId
308
+ * @param {string} collectionId
309
+ * @param {string} key
310
+ * @param {boolean} required
311
+ * @param {number} min
312
+ * @param {number} max
313
+ * @param {number} xdefault
314
+ * @param {boolean} array
315
+ * @throws {AppwriteException}
316
+ * @returns {Promise<Models.AttributeInteger>}
317
+ */
318
+ createIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min?: number, max?: number, xdefault?: number, array?: boolean): Promise<Models.AttributeInteger>;
319
+ /**
320
+ * Update integer attribute
321
+ *
322
+ * Update an integer attribute. Changing the `default` value will not update already existing documents.
323
+
324
+ *
325
+ * @param {string} databaseId
326
+ * @param {string} collectionId
327
+ * @param {string} key
328
+ * @param {boolean} required
329
+ * @param {number} min
330
+ * @param {number} max
331
+ * @param {number} xdefault
332
+ * @throws {AppwriteException}
333
+ * @returns {Promise<Models.AttributeInteger>}
334
+ */
335
+ updateIntegerAttribute(databaseId: string, collectionId: string, key: string, required: boolean, min: number, max: number, xdefault?: number): Promise<Models.AttributeInteger>;
336
+ /**
337
+ * Create IP address attribute
338
+ *
339
+ * Create IP address attribute.
340
+
341
+ *
342
+ * @param {string} databaseId
343
+ * @param {string} collectionId
344
+ * @param {string} key
345
+ * @param {boolean} required
346
+ * @param {string} xdefault
347
+ * @param {boolean} array
348
+ * @throws {AppwriteException}
349
+ * @returns {Promise<Models.AttributeIp>}
350
+ */
351
+ createIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeIp>;
352
+ /**
353
+ * Update IP address attribute
354
+ *
355
+ * Update an ip attribute. Changing the `default` value will not update already existing documents.
356
+
357
+ *
358
+ * @param {string} databaseId
359
+ * @param {string} collectionId
360
+ * @param {string} key
361
+ * @param {boolean} required
362
+ * @param {string} xdefault
363
+ * @throws {AppwriteException}
364
+ * @returns {Promise<Models.AttributeIp>}
365
+ */
366
+ updateIpAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeIp>;
367
+ /**
368
+ * Create relationship attribute
369
+ *
370
+ * Create relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
371
+
372
+ *
373
+ * @param {string} databaseId
374
+ * @param {string} collectionId
375
+ * @param {string} relatedCollectionId
376
+ * @param {RelationshipType} type
377
+ * @param {boolean} twoWay
378
+ * @param {string} key
379
+ * @param {string} twoWayKey
380
+ * @param {RelationMutate} onDelete
381
+ * @throws {AppwriteException}
382
+ * @returns {Promise<Models.AttributeRelationship>}
383
+ */
384
+ createRelationshipAttribute(databaseId: string, collectionId: string, relatedCollectionId: string, type: RelationshipType, twoWay?: boolean, key?: string, twoWayKey?: string, onDelete?: RelationMutate): Promise<Models.AttributeRelationship>;
385
+ /**
386
+ * Create string attribute
387
+ *
388
+ * Create a string attribute.
389
+
390
+ *
391
+ * @param {string} databaseId
392
+ * @param {string} collectionId
393
+ * @param {string} key
394
+ * @param {number} size
395
+ * @param {boolean} required
396
+ * @param {string} xdefault
397
+ * @param {boolean} array
398
+ * @param {boolean} encrypt
399
+ * @throws {AppwriteException}
400
+ * @returns {Promise<Models.AttributeString>}
401
+ */
402
+ createStringAttribute(databaseId: string, collectionId: string, key: string, size: number, required: boolean, xdefault?: string, array?: boolean, encrypt?: boolean): Promise<Models.AttributeString>;
403
+ /**
404
+ * Update string attribute
405
+ *
406
+ * Update a string attribute. Changing the `default` value will not update already existing documents.
407
+
408
+ *
409
+ * @param {string} databaseId
410
+ * @param {string} collectionId
411
+ * @param {string} key
412
+ * @param {boolean} required
413
+ * @param {string} xdefault
414
+ * @throws {AppwriteException}
415
+ * @returns {Promise<Models.AttributeString>}
416
+ */
417
+ updateStringAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeString>;
418
+ /**
419
+ * Create URL attribute
420
+ *
421
+ * Create a URL attribute.
422
+
423
+ *
424
+ * @param {string} databaseId
425
+ * @param {string} collectionId
426
+ * @param {string} key
427
+ * @param {boolean} required
428
+ * @param {string} xdefault
429
+ * @param {boolean} array
430
+ * @throws {AppwriteException}
431
+ * @returns {Promise<Models.AttributeUrl>}
432
+ */
433
+ createUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string, array?: boolean): Promise<Models.AttributeUrl>;
434
+ /**
435
+ * Update URL attribute
436
+ *
437
+ * Update an url attribute. Changing the `default` value will not update already existing documents.
438
+
439
+ *
440
+ * @param {string} databaseId
441
+ * @param {string} collectionId
442
+ * @param {string} key
443
+ * @param {boolean} required
444
+ * @param {string} xdefault
445
+ * @throws {AppwriteException}
446
+ * @returns {Promise<Models.AttributeUrl>}
447
+ */
448
+ updateUrlAttribute(databaseId: string, collectionId: string, key: string, required: boolean, xdefault?: string): Promise<Models.AttributeUrl>;
449
+ /**
450
+ * Get attribute
451
+ *
452
+ * Get attribute by ID.
453
+ *
454
+ * @param {string} databaseId
455
+ * @param {string} collectionId
456
+ * @param {string} key
457
+ * @throws {AppwriteException}
458
+ * @returns {Promise<{}>}
459
+ */
460
+ getAttribute(databaseId: string, collectionId: string, key: string): Promise<{}>;
461
+ /**
462
+ * Delete attribute
463
+ *
464
+ * Deletes an attribute.
465
+ *
466
+ * @param {string} databaseId
467
+ * @param {string} collectionId
468
+ * @param {string} key
469
+ * @throws {AppwriteException}
470
+ * @returns {Promise<{}>}
471
+ */
472
+ deleteAttribute(databaseId: string, collectionId: string, key: string): Promise<{}>;
473
+ /**
474
+ * Update relationship attribute
475
+ *
476
+ * Update relationship attribute. [Learn more about relationship attributes](https://appwrite.io/docs/databases-relationships#relationship-attributes).
477
+
478
+ *
479
+ * @param {string} databaseId
480
+ * @param {string} collectionId
481
+ * @param {string} key
482
+ * @param {RelationMutate} onDelete
483
+ * @throws {AppwriteException}
484
+ * @returns {Promise<Models.AttributeRelationship>}
485
+ */
486
+ updateRelationshipAttribute(databaseId: string, collectionId: string, key: string, onDelete?: RelationMutate): Promise<Models.AttributeRelationship>;
487
+ /**
488
+ * List documents
489
+ *
490
+ * Get a list of all the user&#039;s documents in a given collection. You can use the query params to filter your results.
491
+ *
492
+ * @param {string} databaseId
493
+ * @param {string} collectionId
494
+ * @param {string[]} queries
495
+ * @throws {AppwriteException}
496
+ * @returns {Promise<Models.DocumentList<Document>>}
497
+ */
498
+ listDocuments<Document extends Models.Document>(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.DocumentList<Document>>;
499
+ /**
500
+ * Create document
501
+ *
502
+ * Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection) API or directly from your database console.
503
+ *
504
+ * @param {string} databaseId
505
+ * @param {string} collectionId
506
+ * @param {string} documentId
507
+ * @param {Omit<Document, keyof Models.Document>} data
508
+ * @param {string[]} permissions
509
+ * @throws {AppwriteException}
510
+ * @returns {Promise<Document>}
511
+ */
512
+ createDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data: Omit<Document, keyof Models.Document>, permissions?: string[]): Promise<Document>;
513
+ /**
514
+ * Get document
515
+ *
516
+ * Get a document by its unique ID. This endpoint response returns a JSON object with the document data.
517
+ *
518
+ * @param {string} databaseId
519
+ * @param {string} collectionId
520
+ * @param {string} documentId
521
+ * @param {string[]} queries
522
+ * @throws {AppwriteException}
523
+ * @returns {Promise<Document>}
524
+ */
525
+ getDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, queries?: string[]): Promise<Document>;
526
+ /**
527
+ * Update document
528
+ *
529
+ * Update a document by its unique ID. Using the patch method you can pass only specific fields that will get updated.
530
+ *
531
+ * @param {string} databaseId
532
+ * @param {string} collectionId
533
+ * @param {string} documentId
534
+ * @param {Partial<Omit<Document, keyof Models.Document>>} data
535
+ * @param {string[]} permissions
536
+ * @throws {AppwriteException}
537
+ * @returns {Promise<Document>}
538
+ */
539
+ updateDocument<Document extends Models.Document>(databaseId: string, collectionId: string, documentId: string, data?: Partial<Omit<Document, keyof Models.Document>>, permissions?: string[]): Promise<Document>;
540
+ /**
541
+ * Delete document
542
+ *
543
+ * Delete a document by its unique ID.
544
+ *
545
+ * @param {string} databaseId
546
+ * @param {string} collectionId
547
+ * @param {string} documentId
548
+ * @throws {AppwriteException}
549
+ * @returns {Promise<{}>}
550
+ */
551
+ deleteDocument(databaseId: string, collectionId: string, documentId: string): Promise<{}>;
552
+ /**
553
+ * List indexes
554
+ *
555
+ * List indexes in the collection.
556
+ *
557
+ * @param {string} databaseId
558
+ * @param {string} collectionId
559
+ * @param {string[]} queries
560
+ * @throws {AppwriteException}
561
+ * @returns {Promise<Models.IndexList>}
562
+ */
563
+ listIndexes(databaseId: string, collectionId: string, queries?: string[]): Promise<Models.IndexList>;
564
+ /**
565
+ * Create index
566
+ *
567
+ * Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.
568
+ Attributes can be `key`, `fulltext`, and `unique`.
569
+ *
570
+ * @param {string} databaseId
571
+ * @param {string} collectionId
572
+ * @param {string} key
573
+ * @param {IndexType} type
574
+ * @param {string[]} attributes
575
+ * @param {string[]} orders
576
+ * @throws {AppwriteException}
577
+ * @returns {Promise<Models.Index>}
578
+ */
579
+ createIndex(databaseId: string, collectionId: string, key: string, type: IndexType, attributes: string[], orders?: string[]): Promise<Models.Index>;
580
+ /**
581
+ * Get index
582
+ *
583
+ * Get index by ID.
584
+ *
585
+ * @param {string} databaseId
586
+ * @param {string} collectionId
587
+ * @param {string} key
588
+ * @throws {AppwriteException}
589
+ * @returns {Promise<Models.Index>}
590
+ */
591
+ getIndex(databaseId: string, collectionId: string, key: string): Promise<Models.Index>;
592
+ /**
593
+ * Delete index
594
+ *
595
+ * Delete an index.
596
+ *
597
+ * @param {string} databaseId
598
+ * @param {string} collectionId
599
+ * @param {string} key
600
+ * @throws {AppwriteException}
601
+ * @returns {Promise<{}>}
602
+ */
603
+ deleteIndex(databaseId: string, collectionId: string, key: string): Promise<{}>;
604
+ }
605
+
606
+ export { Databases };