@appwrite.io/console 2.1.3 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (734) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +2201 -692
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +2202 -693
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +2201 -692
  8. package/docs/examples/account/create-anonymous-session.md +2 -0
  9. package/docs/examples/account/create-billing-address.md +2 -0
  10. package/docs/examples/account/create-email-password-session.md +2 -0
  11. package/docs/examples/account/create-email-token.md +2 -0
  12. package/docs/examples/account/create-email-verification.md +2 -0
  13. package/docs/examples/account/create-jwt.md +2 -0
  14. package/docs/examples/account/create-key.md +17 -0
  15. package/docs/examples/account/create-magic-url-token.md +2 -0
  16. package/docs/examples/account/create-mfa-authenticator.md +2 -0
  17. package/docs/examples/account/create-mfa-challenge.md +2 -0
  18. package/docs/examples/account/create-mfa-recovery-codes.md +2 -0
  19. package/docs/examples/account/create-o-auth-2-session.md +2 -0
  20. package/docs/examples/account/create-o-auth-2-token.md +2 -0
  21. package/docs/examples/account/create-payment-method.md +2 -0
  22. package/docs/examples/account/create-phone-token.md +2 -0
  23. package/docs/examples/account/create-phone-verification.md +2 -0
  24. package/docs/examples/account/create-push-target.md +2 -0
  25. package/docs/examples/account/create-recovery.md +2 -0
  26. package/docs/examples/account/create-session.md +2 -0
  27. package/docs/examples/account/create-verification.md +2 -0
  28. package/docs/examples/account/create.md +2 -0
  29. package/docs/examples/account/delete-billing-address.md +2 -0
  30. package/docs/examples/account/delete-identity.md +2 -0
  31. package/docs/examples/account/delete-key.md +15 -0
  32. package/docs/examples/account/delete-mfa-authenticator.md +2 -0
  33. package/docs/examples/account/delete-payment-method.md +2 -0
  34. package/docs/examples/account/delete-push-target.md +2 -0
  35. package/docs/examples/account/delete-session.md +2 -0
  36. package/docs/examples/account/delete-sessions.md +2 -0
  37. package/docs/examples/account/delete.md +2 -0
  38. package/docs/examples/account/get-billing-address.md +2 -0
  39. package/docs/examples/account/get-coupon.md +2 -0
  40. package/docs/examples/account/get-key.md +15 -0
  41. package/docs/examples/account/get-mfa-recovery-codes.md +2 -0
  42. package/docs/examples/account/get-payment-method.md +2 -0
  43. package/docs/examples/account/get-prefs.md +2 -0
  44. package/docs/examples/account/get-session.md +2 -0
  45. package/docs/examples/account/get.md +2 -0
  46. package/docs/examples/account/list-billing-addresses.md +2 -0
  47. package/docs/examples/account/list-identities.md +2 -0
  48. package/docs/examples/account/list-invoices.md +2 -0
  49. package/docs/examples/account/list-keys.md +15 -0
  50. package/docs/examples/account/list-logs.md +2 -0
  51. package/docs/examples/account/list-mfa-factors.md +2 -0
  52. package/docs/examples/account/list-payment-methods.md +2 -0
  53. package/docs/examples/account/list-sessions.md +2 -0
  54. package/docs/examples/account/update-billing-address.md +2 -0
  55. package/docs/examples/account/update-email-verification.md +2 -0
  56. package/docs/examples/account/update-email.md +2 -0
  57. package/docs/examples/account/update-key.md +18 -0
  58. package/docs/examples/account/update-magic-url-session.md +2 -0
  59. package/docs/examples/account/update-mfa-authenticator.md +2 -0
  60. package/docs/examples/account/update-mfa-challenge.md +2 -0
  61. package/docs/examples/account/update-mfa-recovery-codes.md +2 -0
  62. package/docs/examples/account/update-mfa.md +2 -0
  63. package/docs/examples/account/update-name.md +2 -0
  64. package/docs/examples/account/update-password.md +2 -0
  65. package/docs/examples/account/update-payment-method-mandate-options.md +2 -0
  66. package/docs/examples/account/update-payment-method-provider.md +2 -0
  67. package/docs/examples/account/update-payment-method.md +2 -0
  68. package/docs/examples/account/update-phone-session.md +2 -0
  69. package/docs/examples/account/update-phone-verification.md +2 -0
  70. package/docs/examples/account/update-phone.md +2 -0
  71. package/docs/examples/account/update-prefs.md +2 -0
  72. package/docs/examples/account/update-push-target.md +2 -0
  73. package/docs/examples/account/update-recovery.md +2 -0
  74. package/docs/examples/account/update-session.md +2 -0
  75. package/docs/examples/account/update-status.md +2 -0
  76. package/docs/examples/account/update-verification.md +2 -0
  77. package/docs/examples/assistant/chat.md +2 -0
  78. package/docs/examples/avatars/get-browser.md +2 -0
  79. package/docs/examples/avatars/get-credit-card.md +2 -0
  80. package/docs/examples/avatars/get-favicon.md +2 -0
  81. package/docs/examples/avatars/get-flag.md +2 -0
  82. package/docs/examples/avatars/get-image.md +2 -0
  83. package/docs/examples/avatars/get-initials.md +2 -0
  84. package/docs/examples/avatars/get-qr.md +2 -0
  85. package/docs/examples/avatars/get-screenshot.md +7 -5
  86. package/docs/examples/backups/create-archive.md +4 -2
  87. package/docs/examples/backups/create-policy.md +4 -2
  88. package/docs/examples/backups/create-restoration.md +4 -2
  89. package/docs/examples/backups/delete-archive.md +2 -0
  90. package/docs/examples/backups/delete-policy.md +2 -0
  91. package/docs/examples/backups/get-archive.md +2 -0
  92. package/docs/examples/backups/get-policy.md +2 -0
  93. package/docs/examples/backups/get-restoration.md +2 -0
  94. package/docs/examples/backups/list-archives.md +2 -0
  95. package/docs/examples/backups/list-policies.md +2 -0
  96. package/docs/examples/backups/list-restorations.md +2 -0
  97. package/docs/examples/backups/update-policy.md +2 -0
  98. package/docs/examples/console/create-program-membership.md +2 -0
  99. package/docs/examples/console/create-source.md +2 -0
  100. package/docs/examples/console/get-campaign.md +2 -0
  101. package/docs/examples/console/get-coupon.md +2 -0
  102. package/docs/examples/console/get-plan.md +2 -0
  103. package/docs/examples/console/get-plans.md +2 -0
  104. package/docs/examples/console/get-program.md +2 -0
  105. package/docs/examples/console/get-resource.md +2 -0
  106. package/docs/examples/console/{get-regions.md → list-regions.md} +3 -3
  107. package/docs/examples/console/suggest-columns.md +2 -0
  108. package/docs/examples/console/suggest-indexes.md +2 -0
  109. package/docs/examples/console/variables.md +2 -0
  110. package/docs/examples/databases/create-boolean-attribute.md +2 -0
  111. package/docs/examples/databases/create-collection.md +2 -0
  112. package/docs/examples/databases/create-datetime-attribute.md +2 -0
  113. package/docs/examples/databases/create-document.md +2 -0
  114. package/docs/examples/databases/create-documents.md +2 -0
  115. package/docs/examples/databases/create-email-attribute.md +2 -0
  116. package/docs/examples/databases/create-enum-attribute.md +2 -0
  117. package/docs/examples/databases/create-float-attribute.md +2 -0
  118. package/docs/examples/databases/create-index.md +4 -2
  119. package/docs/examples/databases/create-integer-attribute.md +2 -0
  120. package/docs/examples/databases/create-ip-attribute.md +2 -0
  121. package/docs/examples/databases/create-line-attribute.md +2 -0
  122. package/docs/examples/databases/create-longtext-attribute.md +20 -0
  123. package/docs/examples/databases/create-mediumtext-attribute.md +20 -0
  124. package/docs/examples/databases/create-operations.md +2 -0
  125. package/docs/examples/databases/create-point-attribute.md +2 -0
  126. package/docs/examples/databases/create-polygon-attribute.md +2 -0
  127. package/docs/examples/databases/create-relationship-attribute.md +2 -0
  128. package/docs/examples/databases/create-string-attribute.md +2 -0
  129. package/docs/examples/databases/create-text-attribute.md +20 -0
  130. package/docs/examples/databases/create-transaction.md +2 -0
  131. package/docs/examples/databases/create-url-attribute.md +2 -0
  132. package/docs/examples/databases/create-varchar-attribute.md +21 -0
  133. package/docs/examples/databases/create.md +2 -0
  134. package/docs/examples/databases/decrement-document-attribute.md +2 -0
  135. package/docs/examples/databases/delete-attribute.md +2 -0
  136. package/docs/examples/databases/delete-collection.md +2 -0
  137. package/docs/examples/databases/delete-document.md +2 -0
  138. package/docs/examples/databases/delete-documents.md +2 -0
  139. package/docs/examples/databases/delete-index.md +2 -0
  140. package/docs/examples/databases/delete-transaction.md +2 -0
  141. package/docs/examples/databases/delete.md +2 -0
  142. package/docs/examples/databases/get-attribute.md +2 -0
  143. package/docs/examples/databases/get-collection-usage.md +2 -0
  144. package/docs/examples/databases/get-collection.md +2 -0
  145. package/docs/examples/databases/get-document.md +2 -0
  146. package/docs/examples/databases/get-index.md +2 -0
  147. package/docs/examples/databases/get-transaction.md +2 -0
  148. package/docs/examples/databases/get-usage.md +2 -0
  149. package/docs/examples/databases/get.md +2 -0
  150. package/docs/examples/databases/increment-document-attribute.md +2 -0
  151. package/docs/examples/databases/list-attributes.md +2 -0
  152. package/docs/examples/databases/list-collection-logs.md +2 -0
  153. package/docs/examples/databases/list-collections.md +2 -0
  154. package/docs/examples/databases/list-document-logs.md +2 -0
  155. package/docs/examples/databases/list-documents.md +2 -0
  156. package/docs/examples/databases/list-indexes.md +2 -0
  157. package/docs/examples/databases/list-logs.md +2 -0
  158. package/docs/examples/databases/list-transactions.md +2 -0
  159. package/docs/examples/databases/list-usage.md +2 -0
  160. package/docs/examples/databases/list.md +2 -0
  161. package/docs/examples/databases/update-boolean-attribute.md +2 -0
  162. package/docs/examples/databases/update-collection.md +3 -1
  163. package/docs/examples/databases/update-datetime-attribute.md +2 -0
  164. package/docs/examples/databases/update-document.md +2 -0
  165. package/docs/examples/databases/update-documents.md +2 -0
  166. package/docs/examples/databases/update-email-attribute.md +2 -0
  167. package/docs/examples/databases/update-enum-attribute.md +2 -0
  168. package/docs/examples/databases/update-float-attribute.md +2 -0
  169. package/docs/examples/databases/update-integer-attribute.md +2 -0
  170. package/docs/examples/databases/update-ip-attribute.md +2 -0
  171. package/docs/examples/databases/update-line-attribute.md +2 -0
  172. package/docs/examples/databases/update-longtext-attribute.md +20 -0
  173. package/docs/examples/databases/update-mediumtext-attribute.md +20 -0
  174. package/docs/examples/databases/update-point-attribute.md +2 -0
  175. package/docs/examples/databases/update-polygon-attribute.md +2 -0
  176. package/docs/examples/databases/update-relationship-attribute.md +2 -0
  177. package/docs/examples/databases/update-string-attribute.md +2 -0
  178. package/docs/examples/databases/update-text-attribute.md +20 -0
  179. package/docs/examples/databases/update-transaction.md +2 -0
  180. package/docs/examples/databases/update-url-attribute.md +2 -0
  181. package/docs/examples/databases/update-varchar-attribute.md +21 -0
  182. package/docs/examples/databases/update.md +3 -1
  183. package/docs/examples/databases/upsert-document.md +2 -0
  184. package/docs/examples/databases/upsert-documents.md +2 -0
  185. package/docs/examples/domains/create-preset-google-workspace.md +2 -0
  186. package/docs/examples/domains/create-preset-i-cloud.md +2 -0
  187. package/docs/examples/domains/create-preset-mailgun.md +2 -0
  188. package/docs/examples/domains/create-preset-outlook.md +2 -0
  189. package/docs/examples/domains/create-preset-proton-mail.md +2 -0
  190. package/docs/examples/domains/create-preset-zoho.md +2 -0
  191. package/docs/examples/domains/create-record-a.md +2 -0
  192. package/docs/examples/domains/create-record-aaaa.md +2 -0
  193. package/docs/examples/domains/create-record-alias.md +2 -0
  194. package/docs/examples/domains/create-record-caa.md +2 -0
  195. package/docs/examples/domains/create-record-cname.md +2 -0
  196. package/docs/examples/domains/create-record-https.md +2 -0
  197. package/docs/examples/domains/create-record-mx.md +2 -0
  198. package/docs/examples/domains/create-record-ns.md +2 -0
  199. package/docs/examples/domains/create-record-srv.md +2 -0
  200. package/docs/examples/domains/create-record-txt.md +2 -0
  201. package/docs/examples/domains/create.md +2 -0
  202. package/docs/examples/domains/delete-record.md +2 -0
  203. package/docs/examples/domains/delete.md +2 -0
  204. package/docs/examples/domains/get-preset-google-workspace.md +2 -0
  205. package/docs/examples/domains/get-preset-i-cloud.md +2 -0
  206. package/docs/examples/domains/get-preset-mailgun.md +2 -0
  207. package/docs/examples/domains/get-preset-outlook.md +2 -0
  208. package/docs/examples/domains/get-preset-proton-mail.md +2 -0
  209. package/docs/examples/domains/get-preset-zoho.md +2 -0
  210. package/docs/examples/domains/get-price.md +17 -0
  211. package/docs/examples/domains/get-record.md +2 -0
  212. package/docs/examples/domains/get-zone.md +2 -0
  213. package/docs/examples/domains/get.md +2 -0
  214. package/docs/examples/domains/list-records.md +2 -0
  215. package/docs/examples/domains/list-suggestions.md +2 -0
  216. package/docs/examples/domains/list.md +2 -0
  217. package/docs/examples/domains/update-nameservers.md +2 -0
  218. package/docs/examples/domains/update-record-a.md +2 -0
  219. package/docs/examples/domains/update-record-aaaa.md +2 -0
  220. package/docs/examples/domains/update-record-alias.md +2 -0
  221. package/docs/examples/domains/update-record-caa.md +2 -0
  222. package/docs/examples/domains/update-record-cname.md +2 -0
  223. package/docs/examples/domains/update-record-https.md +2 -0
  224. package/docs/examples/domains/update-record-mx.md +2 -0
  225. package/docs/examples/domains/update-record-ns.md +2 -0
  226. package/docs/examples/domains/update-record-srv.md +2 -0
  227. package/docs/examples/domains/update-record-txt.md +2 -0
  228. package/docs/examples/domains/update-team.md +2 -0
  229. package/docs/examples/domains/update-zone.md +2 -0
  230. package/docs/examples/functions/create-deployment.md +2 -0
  231. package/docs/examples/functions/create-duplicate-deployment.md +2 -0
  232. package/docs/examples/functions/create-execution.md +2 -0
  233. package/docs/examples/functions/create-template-deployment.md +2 -0
  234. package/docs/examples/functions/create-variable.md +2 -0
  235. package/docs/examples/functions/create-vcs-deployment.md +2 -0
  236. package/docs/examples/functions/create.md +4 -2
  237. package/docs/examples/functions/delete-deployment.md +2 -0
  238. package/docs/examples/functions/delete-execution.md +2 -0
  239. package/docs/examples/functions/delete-variable.md +2 -0
  240. package/docs/examples/functions/delete.md +2 -0
  241. package/docs/examples/functions/get-deployment-download.md +2 -0
  242. package/docs/examples/functions/get-deployment.md +2 -0
  243. package/docs/examples/functions/get-execution.md +2 -0
  244. package/docs/examples/functions/get-template.md +2 -0
  245. package/docs/examples/functions/get-usage.md +2 -0
  246. package/docs/examples/functions/get-variable.md +2 -0
  247. package/docs/examples/functions/get.md +2 -0
  248. package/docs/examples/functions/list-deployments.md +2 -0
  249. package/docs/examples/functions/list-executions.md +2 -0
  250. package/docs/examples/functions/list-runtimes.md +2 -0
  251. package/docs/examples/functions/list-specifications.md +2 -0
  252. package/docs/examples/functions/list-templates.md +5 -3
  253. package/docs/examples/functions/list-usage.md +2 -0
  254. package/docs/examples/functions/list-variables.md +2 -0
  255. package/docs/examples/functions/list.md +2 -0
  256. package/docs/examples/functions/update-deployment-status.md +2 -0
  257. package/docs/examples/functions/update-function-deployment.md +2 -0
  258. package/docs/examples/functions/update-variable.md +2 -0
  259. package/docs/examples/functions/update.md +4 -2
  260. package/docs/examples/graphql/mutation.md +2 -0
  261. package/docs/examples/graphql/query.md +2 -0
  262. package/docs/examples/health/get-antivirus.md +2 -0
  263. package/docs/examples/health/get-cache.md +2 -0
  264. package/docs/examples/health/get-certificate.md +2 -0
  265. package/docs/examples/health/get-db.md +2 -0
  266. package/docs/examples/health/get-failed-jobs.md +2 -0
  267. package/docs/examples/health/get-pub-sub.md +2 -0
  268. package/docs/examples/health/get-queue-audits.md +2 -0
  269. package/docs/examples/health/get-queue-billing-project-aggregation.md +2 -0
  270. package/docs/examples/health/get-queue-billing-team-aggregation.md +2 -0
  271. package/docs/examples/health/get-queue-builds.md +2 -0
  272. package/docs/examples/health/get-queue-certificates.md +2 -0
  273. package/docs/examples/health/get-queue-databases.md +2 -0
  274. package/docs/examples/health/get-queue-deletes.md +2 -0
  275. package/docs/examples/health/get-queue-functions.md +2 -0
  276. package/docs/examples/health/get-queue-logs.md +2 -0
  277. package/docs/examples/health/get-queue-mails.md +2 -0
  278. package/docs/examples/health/get-queue-messaging.md +2 -0
  279. package/docs/examples/health/get-queue-migrations.md +2 -0
  280. package/docs/examples/health/get-queue-priority-builds.md +2 -0
  281. package/docs/examples/health/get-queue-region-manager.md +2 -0
  282. package/docs/examples/health/get-queue-stats-resources.md +2 -0
  283. package/docs/examples/health/get-queue-threats.md +2 -0
  284. package/docs/examples/health/get-queue-usage.md +2 -0
  285. package/docs/examples/health/get-queue-webhooks.md +2 -0
  286. package/docs/examples/health/get-storage-local.md +2 -0
  287. package/docs/examples/health/get-storage.md +2 -0
  288. package/docs/examples/health/get-time.md +2 -0
  289. package/docs/examples/health/get.md +2 -0
  290. package/docs/examples/locale/get.md +2 -0
  291. package/docs/examples/locale/list-codes.md +2 -0
  292. package/docs/examples/locale/list-continents.md +2 -0
  293. package/docs/examples/locale/list-countries-eu.md +2 -0
  294. package/docs/examples/locale/list-countries-phones.md +2 -0
  295. package/docs/examples/locale/list-countries.md +2 -0
  296. package/docs/examples/locale/list-currencies.md +2 -0
  297. package/docs/examples/locale/list-languages.md +2 -0
  298. package/docs/examples/messaging/create-apns-provider.md +2 -0
  299. package/docs/examples/messaging/create-email.md +2 -0
  300. package/docs/examples/messaging/create-fcm-provider.md +2 -0
  301. package/docs/examples/messaging/create-mailgun-provider.md +2 -0
  302. package/docs/examples/messaging/create-msg-91-provider.md +2 -0
  303. package/docs/examples/messaging/create-push.md +2 -0
  304. package/docs/examples/messaging/create-resend-provider.md +2 -0
  305. package/docs/examples/messaging/create-sendgrid-provider.md +2 -0
  306. package/docs/examples/messaging/create-sms.md +2 -0
  307. package/docs/examples/messaging/create-smtp-provider.md +2 -0
  308. package/docs/examples/messaging/create-subscriber.md +2 -0
  309. package/docs/examples/messaging/create-telesign-provider.md +2 -0
  310. package/docs/examples/messaging/create-textmagic-provider.md +2 -0
  311. package/docs/examples/messaging/create-topic.md +2 -0
  312. package/docs/examples/messaging/create-twilio-provider.md +2 -0
  313. package/docs/examples/messaging/create-vonage-provider.md +2 -0
  314. package/docs/examples/messaging/delete-provider.md +2 -0
  315. package/docs/examples/messaging/delete-subscriber.md +2 -0
  316. package/docs/examples/messaging/delete-topic.md +2 -0
  317. package/docs/examples/messaging/delete.md +2 -0
  318. package/docs/examples/messaging/get-message.md +2 -0
  319. package/docs/examples/messaging/get-provider.md +2 -0
  320. package/docs/examples/messaging/get-subscriber.md +2 -0
  321. package/docs/examples/messaging/get-topic.md +2 -0
  322. package/docs/examples/messaging/list-message-logs.md +2 -0
  323. package/docs/examples/messaging/list-messages.md +2 -0
  324. package/docs/examples/messaging/list-provider-logs.md +2 -0
  325. package/docs/examples/messaging/list-providers.md +2 -0
  326. package/docs/examples/messaging/list-subscriber-logs.md +2 -0
  327. package/docs/examples/messaging/list-subscribers.md +2 -0
  328. package/docs/examples/messaging/list-targets.md +2 -0
  329. package/docs/examples/messaging/list-topic-logs.md +2 -0
  330. package/docs/examples/messaging/list-topics.md +2 -0
  331. package/docs/examples/messaging/update-apns-provider.md +2 -0
  332. package/docs/examples/messaging/update-email.md +2 -0
  333. package/docs/examples/messaging/update-fcm-provider.md +2 -0
  334. package/docs/examples/messaging/update-mailgun-provider.md +2 -0
  335. package/docs/examples/messaging/update-msg-91-provider.md +2 -0
  336. package/docs/examples/messaging/update-push.md +2 -0
  337. package/docs/examples/messaging/update-resend-provider.md +2 -0
  338. package/docs/examples/messaging/update-sendgrid-provider.md +2 -0
  339. package/docs/examples/messaging/update-sms.md +2 -0
  340. package/docs/examples/messaging/update-smtp-provider.md +2 -0
  341. package/docs/examples/messaging/update-telesign-provider.md +2 -0
  342. package/docs/examples/messaging/update-textmagic-provider.md +2 -0
  343. package/docs/examples/messaging/update-topic.md +2 -0
  344. package/docs/examples/messaging/update-twilio-provider.md +2 -0
  345. package/docs/examples/messaging/update-vonage-provider.md +2 -0
  346. package/docs/examples/migrations/create-appwrite-migration.md +4 -2
  347. package/docs/examples/migrations/create-csv-export.md +2 -0
  348. package/docs/examples/migrations/create-csv-import.md +2 -0
  349. package/docs/examples/migrations/create-firebase-migration.md +4 -2
  350. package/docs/examples/migrations/create-n-host-migration.md +4 -2
  351. package/docs/examples/migrations/create-supabase-migration.md +4 -2
  352. package/docs/examples/migrations/delete.md +2 -0
  353. package/docs/examples/migrations/get-appwrite-report.md +4 -2
  354. package/docs/examples/migrations/get-firebase-report.md +4 -2
  355. package/docs/examples/migrations/get-n-host-report.md +4 -2
  356. package/docs/examples/migrations/get-supabase-report.md +4 -2
  357. package/docs/examples/migrations/get.md +2 -0
  358. package/docs/examples/migrations/list.md +2 -0
  359. package/docs/examples/migrations/retry.md +2 -0
  360. package/docs/examples/organizations/add-credit.md +2 -0
  361. package/docs/examples/organizations/cancel-downgrade.md +2 -0
  362. package/docs/examples/organizations/create-downgrade-feedback.md +2 -0
  363. package/docs/examples/organizations/create-invoice-payment.md +2 -0
  364. package/docs/examples/organizations/create-key.md +18 -0
  365. package/docs/examples/organizations/create.md +4 -2
  366. package/docs/examples/organizations/delete-backup-payment-method.md +2 -0
  367. package/docs/examples/organizations/delete-billing-address.md +2 -0
  368. package/docs/examples/organizations/delete-default-payment-method.md +2 -0
  369. package/docs/examples/organizations/delete-key.md +16 -0
  370. package/docs/examples/organizations/delete.md +2 -0
  371. package/docs/examples/organizations/estimation-create-organization.md +4 -2
  372. package/docs/examples/organizations/estimation-delete-organization.md +2 -0
  373. package/docs/examples/organizations/estimation-update-plan.md +4 -2
  374. package/docs/examples/organizations/get-aggregation.md +2 -0
  375. package/docs/examples/organizations/get-available-credits.md +2 -0
  376. package/docs/examples/organizations/get-billing-address.md +2 -0
  377. package/docs/examples/organizations/get-credit.md +2 -0
  378. package/docs/examples/organizations/get-invoice-download.md +2 -0
  379. package/docs/examples/organizations/get-invoice-view.md +2 -0
  380. package/docs/examples/organizations/get-invoice.md +2 -0
  381. package/docs/examples/organizations/{update-projects.md → get-key.md} +4 -2
  382. package/docs/examples/organizations/get-payment-method.md +2 -0
  383. package/docs/examples/organizations/get-plan.md +2 -0
  384. package/docs/examples/organizations/get-scopes.md +2 -0
  385. package/docs/examples/organizations/get-usage.md +2 -0
  386. package/docs/examples/organizations/list-aggregations.md +2 -0
  387. package/docs/examples/organizations/list-credits.md +2 -0
  388. package/docs/examples/organizations/list-invoices.md +2 -0
  389. package/docs/examples/organizations/list-keys.md +16 -0
  390. package/docs/examples/organizations/list-regions.md +15 -0
  391. package/docs/examples/organizations/list.md +2 -0
  392. package/docs/examples/organizations/set-backup-payment-method.md +2 -0
  393. package/docs/examples/organizations/set-billing-address.md +2 -0
  394. package/docs/examples/organizations/set-billing-email.md +2 -0
  395. package/docs/examples/organizations/set-billing-tax-id.md +2 -0
  396. package/docs/examples/organizations/set-default-payment-method.md +2 -0
  397. package/docs/examples/organizations/update-budget.md +2 -0
  398. package/docs/examples/organizations/update-key.md +19 -0
  399. package/docs/examples/organizations/update-plan.md +4 -2
  400. package/docs/examples/organizations/validate-invoice.md +2 -0
  401. package/docs/examples/organizations/validate-payment.md +2 -0
  402. package/docs/examples/project/create-variable.md +2 -0
  403. package/docs/examples/project/delete-variable.md +2 -0
  404. package/docs/examples/project/get-usage.md +2 -0
  405. package/docs/examples/project/get-variable.md +2 -0
  406. package/docs/examples/project/list-variables.md +2 -0
  407. package/docs/examples/project/update-variable.md +2 -0
  408. package/docs/examples/projects/create-dev-key.md +2 -0
  409. package/docs/examples/projects/create-jwt.md +4 -2
  410. package/docs/examples/projects/create-key.md +5 -2
  411. package/docs/examples/projects/create-platform.md +2 -0
  412. package/docs/examples/projects/create-smtp-test.md +2 -0
  413. package/docs/examples/projects/create-webhook.md +2 -0
  414. package/docs/examples/projects/create.md +2 -0
  415. package/docs/examples/projects/delete-dev-key.md +2 -0
  416. package/docs/examples/projects/delete-email-template.md +2 -0
  417. package/docs/examples/projects/delete-key.md +2 -0
  418. package/docs/examples/projects/delete-platform.md +2 -0
  419. package/docs/examples/projects/delete-sms-template.md +2 -0
  420. package/docs/examples/projects/delete-webhook.md +2 -0
  421. package/docs/examples/projects/delete.md +2 -0
  422. package/docs/examples/projects/get-dev-key.md +2 -0
  423. package/docs/examples/projects/get-email-template.md +2 -0
  424. package/docs/examples/projects/get-key.md +2 -0
  425. package/docs/examples/projects/get-platform.md +2 -0
  426. package/docs/examples/projects/get-sms-template.md +2 -0
  427. package/docs/examples/projects/get-webhook.md +2 -0
  428. package/docs/examples/projects/get.md +2 -0
  429. package/docs/examples/projects/list-dev-keys.md +2 -0
  430. package/docs/examples/projects/list-keys.md +3 -0
  431. package/docs/examples/projects/list-platforms.md +2 -0
  432. package/docs/examples/projects/list-webhooks.md +2 -0
  433. package/docs/examples/projects/list.md +2 -0
  434. package/docs/examples/projects/update-api-status-all.md +2 -0
  435. package/docs/examples/projects/update-api-status.md +2 -0
  436. package/docs/examples/projects/update-auth-duration.md +2 -0
  437. package/docs/examples/projects/update-auth-limit.md +2 -0
  438. package/docs/examples/projects/update-auth-password-dictionary.md +2 -0
  439. package/docs/examples/projects/update-auth-password-history.md +2 -0
  440. package/docs/examples/projects/update-auth-sessions-limit.md +2 -0
  441. package/docs/examples/projects/update-auth-status.md +2 -0
  442. package/docs/examples/projects/update-dev-key.md +2 -0
  443. package/docs/examples/projects/update-email-template.md +2 -0
  444. package/docs/examples/projects/update-key.md +4 -2
  445. package/docs/examples/projects/update-labels.md +2 -0
  446. package/docs/examples/projects/update-memberships-privacy.md +2 -0
  447. package/docs/examples/projects/update-mock-numbers.md +2 -0
  448. package/docs/examples/projects/update-o-auth-2.md +2 -0
  449. package/docs/examples/projects/update-personal-data-check.md +2 -0
  450. package/docs/examples/projects/update-platform.md +2 -0
  451. package/docs/examples/projects/update-service-status-all.md +2 -0
  452. package/docs/examples/projects/update-service-status.md +2 -0
  453. package/docs/examples/projects/update-session-alerts.md +2 -0
  454. package/docs/examples/projects/update-session-invalidation.md +2 -0
  455. package/docs/examples/projects/update-sms-template.md +2 -0
  456. package/docs/examples/projects/update-smtp.md +2 -0
  457. package/docs/examples/projects/update-team.md +2 -0
  458. package/docs/examples/projects/update-webhook-signature.md +2 -0
  459. package/docs/examples/projects/update-webhook.md +2 -0
  460. package/docs/examples/projects/update.md +2 -0
  461. package/docs/examples/proxy/create-api-rule.md +2 -0
  462. package/docs/examples/proxy/create-function-rule.md +2 -0
  463. package/docs/examples/proxy/create-redirect-rule.md +2 -0
  464. package/docs/examples/proxy/create-site-rule.md +2 -0
  465. package/docs/examples/proxy/delete-rule.md +2 -0
  466. package/docs/examples/proxy/get-rule.md +2 -0
  467. package/docs/examples/proxy/list-rules.md +2 -0
  468. package/docs/examples/proxy/update-rule-verification.md +2 -0
  469. package/docs/examples/sites/create-deployment.md +2 -0
  470. package/docs/examples/sites/create-duplicate-deployment.md +2 -0
  471. package/docs/examples/sites/create-template-deployment.md +2 -0
  472. package/docs/examples/sites/create-variable.md +2 -0
  473. package/docs/examples/sites/create-vcs-deployment.md +2 -0
  474. package/docs/examples/sites/create.md +2 -0
  475. package/docs/examples/sites/delete-deployment.md +2 -0
  476. package/docs/examples/sites/delete-log.md +2 -0
  477. package/docs/examples/sites/delete-variable.md +2 -0
  478. package/docs/examples/sites/delete.md +2 -0
  479. package/docs/examples/sites/get-deployment-download.md +2 -0
  480. package/docs/examples/sites/get-deployment.md +2 -0
  481. package/docs/examples/sites/get-log.md +2 -0
  482. package/docs/examples/sites/get-template.md +2 -0
  483. package/docs/examples/sites/get-usage.md +2 -0
  484. package/docs/examples/sites/get-variable.md +2 -0
  485. package/docs/examples/sites/get.md +2 -0
  486. package/docs/examples/sites/list-deployments.md +2 -0
  487. package/docs/examples/sites/list-frameworks.md +2 -0
  488. package/docs/examples/sites/list-logs.md +2 -0
  489. package/docs/examples/sites/list-specifications.md +2 -0
  490. package/docs/examples/sites/list-templates.md +5 -3
  491. package/docs/examples/sites/list-usage.md +2 -0
  492. package/docs/examples/sites/list-variables.md +2 -0
  493. package/docs/examples/sites/list.md +2 -0
  494. package/docs/examples/sites/update-deployment-status.md +2 -0
  495. package/docs/examples/sites/update-site-deployment.md +2 -0
  496. package/docs/examples/sites/update-variable.md +2 -0
  497. package/docs/examples/sites/update.md +2 -0
  498. package/docs/examples/storage/create-bucket.md +2 -0
  499. package/docs/examples/storage/create-file.md +2 -0
  500. package/docs/examples/storage/delete-bucket.md +2 -0
  501. package/docs/examples/storage/delete-file.md +2 -0
  502. package/docs/examples/storage/get-bucket-usage.md +2 -0
  503. package/docs/examples/storage/get-bucket.md +2 -0
  504. package/docs/examples/storage/get-file-download.md +2 -0
  505. package/docs/examples/storage/get-file-preview.md +2 -0
  506. package/docs/examples/storage/get-file-view.md +2 -0
  507. package/docs/examples/storage/get-file.md +2 -0
  508. package/docs/examples/storage/get-usage.md +2 -0
  509. package/docs/examples/storage/list-buckets.md +2 -0
  510. package/docs/examples/storage/list-files.md +2 -0
  511. package/docs/examples/storage/update-bucket.md +2 -0
  512. package/docs/examples/storage/update-file.md +2 -0
  513. package/docs/examples/tablesdb/create-boolean-column.md +2 -0
  514. package/docs/examples/tablesdb/create-datetime-column.md +2 -0
  515. package/docs/examples/tablesdb/create-email-column.md +2 -0
  516. package/docs/examples/tablesdb/create-enum-column.md +2 -0
  517. package/docs/examples/tablesdb/create-float-column.md +2 -0
  518. package/docs/examples/tablesdb/create-index.md +4 -2
  519. package/docs/examples/tablesdb/create-integer-column.md +2 -0
  520. package/docs/examples/tablesdb/create-ip-column.md +2 -0
  521. package/docs/examples/tablesdb/create-line-column.md +2 -0
  522. package/docs/examples/tablesdb/create-longtext-column.md +20 -0
  523. package/docs/examples/tablesdb/create-mediumtext-column.md +20 -0
  524. package/docs/examples/tablesdb/create-operations.md +2 -0
  525. package/docs/examples/tablesdb/create-point-column.md +2 -0
  526. package/docs/examples/tablesdb/create-polygon-column.md +2 -0
  527. package/docs/examples/tablesdb/create-relationship-column.md +2 -0
  528. package/docs/examples/tablesdb/create-row.md +2 -0
  529. package/docs/examples/tablesdb/create-rows.md +2 -0
  530. package/docs/examples/tablesdb/create-string-column.md +2 -0
  531. package/docs/examples/tablesdb/create-table.md +2 -0
  532. package/docs/examples/tablesdb/create-text-column.md +20 -0
  533. package/docs/examples/tablesdb/create-transaction.md +2 -0
  534. package/docs/examples/tablesdb/create-url-column.md +2 -0
  535. package/docs/examples/tablesdb/create-varchar-column.md +21 -0
  536. package/docs/examples/tablesdb/create.md +2 -0
  537. package/docs/examples/tablesdb/decrement-row-column.md +2 -0
  538. package/docs/examples/tablesdb/delete-column.md +2 -0
  539. package/docs/examples/tablesdb/delete-index.md +2 -0
  540. package/docs/examples/tablesdb/delete-row.md +2 -0
  541. package/docs/examples/tablesdb/delete-rows.md +2 -0
  542. package/docs/examples/tablesdb/delete-table.md +2 -0
  543. package/docs/examples/tablesdb/delete-transaction.md +2 -0
  544. package/docs/examples/tablesdb/delete.md +2 -0
  545. package/docs/examples/tablesdb/get-column.md +2 -0
  546. package/docs/examples/tablesdb/get-index.md +2 -0
  547. package/docs/examples/tablesdb/get-row.md +2 -0
  548. package/docs/examples/tablesdb/get-table-usage.md +2 -0
  549. package/docs/examples/tablesdb/get-table.md +2 -0
  550. package/docs/examples/tablesdb/get-transaction.md +2 -0
  551. package/docs/examples/tablesdb/get-usage.md +2 -0
  552. package/docs/examples/tablesdb/get.md +2 -0
  553. package/docs/examples/tablesdb/increment-row-column.md +2 -0
  554. package/docs/examples/tablesdb/list-columns.md +2 -0
  555. package/docs/examples/tablesdb/list-indexes.md +2 -0
  556. package/docs/examples/tablesdb/list-row-logs.md +2 -0
  557. package/docs/examples/tablesdb/list-rows.md +2 -0
  558. package/docs/examples/tablesdb/list-table-logs.md +2 -0
  559. package/docs/examples/tablesdb/list-tables.md +2 -0
  560. package/docs/examples/tablesdb/list-transactions.md +2 -0
  561. package/docs/examples/tablesdb/list-usage.md +2 -0
  562. package/docs/examples/tablesdb/list.md +2 -0
  563. package/docs/examples/tablesdb/update-boolean-column.md +2 -0
  564. package/docs/examples/tablesdb/update-datetime-column.md +2 -0
  565. package/docs/examples/tablesdb/update-email-column.md +2 -0
  566. package/docs/examples/tablesdb/update-enum-column.md +2 -0
  567. package/docs/examples/tablesdb/update-float-column.md +2 -0
  568. package/docs/examples/tablesdb/update-integer-column.md +2 -0
  569. package/docs/examples/tablesdb/update-ip-column.md +2 -0
  570. package/docs/examples/tablesdb/update-line-column.md +2 -0
  571. package/docs/examples/tablesdb/update-longtext-column.md +20 -0
  572. package/docs/examples/tablesdb/update-mediumtext-column.md +20 -0
  573. package/docs/examples/tablesdb/update-point-column.md +2 -0
  574. package/docs/examples/tablesdb/update-polygon-column.md +2 -0
  575. package/docs/examples/tablesdb/update-relationship-column.md +2 -0
  576. package/docs/examples/tablesdb/update-row.md +2 -0
  577. package/docs/examples/tablesdb/update-rows.md +2 -0
  578. package/docs/examples/tablesdb/update-string-column.md +2 -0
  579. package/docs/examples/tablesdb/update-table.md +3 -1
  580. package/docs/examples/tablesdb/update-text-column.md +20 -0
  581. package/docs/examples/tablesdb/update-transaction.md +2 -0
  582. package/docs/examples/tablesdb/update-url-column.md +2 -0
  583. package/docs/examples/tablesdb/update-varchar-column.md +21 -0
  584. package/docs/examples/tablesdb/update.md +3 -1
  585. package/docs/examples/tablesdb/upsert-row.md +2 -0
  586. package/docs/examples/tablesdb/upsert-rows.md +2 -0
  587. package/docs/examples/teams/create-membership.md +2 -0
  588. package/docs/examples/teams/create.md +2 -0
  589. package/docs/examples/teams/delete-membership.md +2 -0
  590. package/docs/examples/teams/delete.md +2 -0
  591. package/docs/examples/teams/get-membership.md +2 -0
  592. package/docs/examples/teams/get-prefs.md +2 -0
  593. package/docs/examples/teams/get.md +2 -0
  594. package/docs/examples/teams/list-logs.md +2 -0
  595. package/docs/examples/teams/list-memberships.md +2 -0
  596. package/docs/examples/teams/list.md +2 -0
  597. package/docs/examples/teams/update-membership-status.md +2 -0
  598. package/docs/examples/teams/update-membership.md +2 -0
  599. package/docs/examples/teams/update-name.md +2 -0
  600. package/docs/examples/teams/update-prefs.md +2 -0
  601. package/docs/examples/tokens/create-file-token.md +2 -0
  602. package/docs/examples/tokens/delete.md +2 -0
  603. package/docs/examples/tokens/get.md +2 -0
  604. package/docs/examples/tokens/list.md +2 -0
  605. package/docs/examples/tokens/update.md +2 -0
  606. package/docs/examples/users/create-argon-2-user.md +2 -0
  607. package/docs/examples/users/create-bcrypt-user.md +2 -0
  608. package/docs/examples/users/create-jwt.md +2 -0
  609. package/docs/examples/users/create-md-5-user.md +2 -0
  610. package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
  611. package/docs/examples/users/create-ph-pass-user.md +2 -0
  612. package/docs/examples/users/create-scrypt-modified-user.md +2 -0
  613. package/docs/examples/users/create-scrypt-user.md +2 -0
  614. package/docs/examples/users/create-session.md +2 -0
  615. package/docs/examples/users/create-sha-user.md +2 -0
  616. package/docs/examples/users/create-target.md +2 -0
  617. package/docs/examples/users/create-token.md +2 -0
  618. package/docs/examples/users/create.md +2 -0
  619. package/docs/examples/users/delete-identity.md +2 -0
  620. package/docs/examples/users/delete-mfa-authenticator.md +2 -0
  621. package/docs/examples/users/delete-session.md +2 -0
  622. package/docs/examples/users/delete-sessions.md +2 -0
  623. package/docs/examples/users/delete-target.md +2 -0
  624. package/docs/examples/users/delete.md +2 -0
  625. package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
  626. package/docs/examples/users/get-prefs.md +2 -0
  627. package/docs/examples/users/get-target.md +2 -0
  628. package/docs/examples/users/get-usage.md +2 -0
  629. package/docs/examples/users/get.md +2 -0
  630. package/docs/examples/users/list-identities.md +2 -0
  631. package/docs/examples/users/list-logs.md +2 -0
  632. package/docs/examples/users/list-memberships.md +2 -0
  633. package/docs/examples/users/list-mfa-factors.md +2 -0
  634. package/docs/examples/users/list-sessions.md +2 -0
  635. package/docs/examples/users/list-targets.md +2 -0
  636. package/docs/examples/users/list.md +2 -0
  637. package/docs/examples/users/update-email-verification.md +2 -0
  638. package/docs/examples/users/update-email.md +2 -0
  639. package/docs/examples/users/update-labels.md +2 -0
  640. package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
  641. package/docs/examples/users/update-mfa.md +2 -0
  642. package/docs/examples/users/update-name.md +2 -0
  643. package/docs/examples/users/update-password.md +2 -0
  644. package/docs/examples/users/update-phone-verification.md +2 -0
  645. package/docs/examples/users/update-phone.md +2 -0
  646. package/docs/examples/users/update-prefs.md +2 -0
  647. package/docs/examples/users/update-status.md +2 -0
  648. package/docs/examples/users/update-target.md +2 -0
  649. package/docs/examples/vcs/create-repository-detection.md +2 -0
  650. package/docs/examples/vcs/create-repository.md +2 -0
  651. package/docs/examples/vcs/delete-installation.md +2 -0
  652. package/docs/examples/vcs/get-installation.md +2 -0
  653. package/docs/examples/vcs/get-repository-contents.md +2 -0
  654. package/docs/examples/vcs/get-repository.md +2 -0
  655. package/docs/examples/vcs/list-installations.md +2 -0
  656. package/docs/examples/vcs/list-repositories.md +2 -0
  657. package/docs/examples/vcs/list-repository-branches.md +2 -0
  658. package/docs/examples/vcs/update-external-deployments.md +2 -0
  659. package/package.json +1 -1
  660. package/src/channel.ts +38 -22
  661. package/src/client.ts +110 -49
  662. package/src/enums/backup-services.ts +5 -0
  663. package/src/enums/browser-permission.ts +22 -0
  664. package/src/enums/build-runtime.ts +5 -0
  665. package/src/enums/deployment-status.ts +1 -0
  666. package/src/enums/frameworks.ts +17 -0
  667. package/src/enums/order-by.ts +4 -0
  668. package/src/enums/registration-type.ts +6 -0
  669. package/src/enums/resources.ts +13 -0
  670. package/src/enums/runtime.ts +5 -0
  671. package/src/enums/runtimes.ts +71 -0
  672. package/src/enums/scopes.ts +66 -0
  673. package/src/enums/use-cases.ts +11 -0
  674. package/src/index.ts +9 -2
  675. package/src/models.ts +394 -4
  676. package/src/services/account.ts +375 -67
  677. package/src/services/assistant.ts +1 -1
  678. package/src/services/avatars.ts +20 -19
  679. package/src/services/backups.ts +37 -36
  680. package/src/services/console.ts +12 -43
  681. package/src/services/databases.ts +1061 -281
  682. package/src/services/domains.ts +114 -44
  683. package/src/services/functions.ts +61 -58
  684. package/src/services/graphql.ts +4 -4
  685. package/src/services/health.ts +23 -21
  686. package/src/services/messaging.ts +56 -56
  687. package/src/services/migrations.ts +79 -78
  688. package/src/services/organizations.ts +430 -94
  689. package/src/services/project.ts +5 -5
  690. package/src/services/projects.ts +106 -155
  691. package/src/services/proxy.ts +8 -8
  692. package/src/services/realtime.ts +135 -58
  693. package/src/services/sites.ts +43 -41
  694. package/src/services/storage.ts +17 -17
  695. package/src/services/tables-db.ts +1051 -269
  696. package/src/services/teams.ts +14 -14
  697. package/src/services/tokens.ts +5 -5
  698. package/src/services/users.ts +50 -50
  699. package/src/services/vcs.ts +10 -10
  700. package/types/channel.d.ts +9 -7
  701. package/types/client.d.ts +7 -2
  702. package/types/enums/backup-services.d.ts +5 -0
  703. package/types/enums/browser-permission.d.ts +22 -0
  704. package/types/enums/build-runtime.d.ts +6 -1
  705. package/types/enums/deployment-status.d.ts +1 -0
  706. package/types/enums/frameworks.d.ts +17 -0
  707. package/types/enums/order-by.d.ts +4 -0
  708. package/types/enums/registration-type.d.ts +6 -0
  709. package/types/enums/resources.d.ts +13 -0
  710. package/types/enums/runtime.d.ts +6 -1
  711. package/types/enums/runtimes.d.ts +71 -0
  712. package/types/enums/scopes.d.ts +66 -0
  713. package/types/enums/use-cases.d.ts +11 -0
  714. package/types/index.d.ts +9 -2
  715. package/types/models.d.ts +385 -4
  716. package/types/services/account.d.ts +111 -0
  717. package/types/services/avatars.d.ts +5 -4
  718. package/types/services/backups.d.ts +13 -12
  719. package/types/services/console.d.ts +1 -13
  720. package/types/services/databases.d.ts +303 -8
  721. package/types/services/domains.d.ts +26 -0
  722. package/types/services/functions.d.ts +18 -15
  723. package/types/services/health.d.ts +2 -0
  724. package/types/services/migrations.d.ts +33 -32
  725. package/types/services/organizations.d.ts +151 -29
  726. package/types/services/projects.d.ts +20 -36
  727. package/types/services/realtime.d.ts +13 -6
  728. package/types/services/sites.d.ts +9 -7
  729. package/types/services/tables-db.d.ts +305 -8
  730. package/docs/examples/projects/update-status.md +0 -14
  731. package/src/enums/billing-plan.ts +0 -17
  732. package/src/enums/status.ts +0 -4
  733. package/types/enums/billing-plan.d.ts +0 -17
  734. package/types/enums/status.d.ts +0 -4
@@ -5,11 +5,11 @@ import type { Models } from '../models';
5
5
  import { Region } from '../enums/region';
6
6
  import { Api } from '../enums/api';
7
7
  import { AuthMethod } from '../enums/auth-method';
8
+ import { Scopes } from '../enums/scopes';
8
9
  import { OAuthProvider } from '../enums/o-auth-provider';
9
10
  import { PlatformType } from '../enums/platform-type';
10
11
  import { ApiService } from '../enums/api-service';
11
12
  import { SMTPSecure } from '../enums/smtp-secure';
12
- import { Status } from '../enums/status';
13
13
  import { EmailTemplateType } from '../enums/email-template-type';
14
14
  import { EmailTemplateLocale } from '../enums/email-template-locale';
15
15
  import { SmsTemplateType } from '../enums/sms-template-type';
@@ -31,7 +31,7 @@ export class Projects {
31
31
  * @throws {AppwriteException}
32
32
  * @returns {Promise<Models.ProjectList>}
33
33
  */
34
- list(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.ProjectList>;
34
+ list(params?: { queries?: string[], search?: string, total?: boolean }): Promise<Models.ProjectList>;
35
35
  /**
36
36
  * Get a list of all projects. You can use the query params to filter your results.
37
37
  *
@@ -107,7 +107,7 @@ export class Projects {
107
107
  * @throws {AppwriteException}
108
108
  * @returns {Promise<Models.Project>}
109
109
  */
110
- create(params: { projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
110
+ create(params: { projectId: string, name: string, teamId: string, region?: Region, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
111
111
  /**
112
112
  * Create a new project. You can create a maximum of 100 projects per account.
113
113
  *
@@ -241,7 +241,7 @@ export class Projects {
241
241
  * @throws {AppwriteException}
242
242
  * @returns {Promise<Models.Project>}
243
243
  */
244
- get(params: { projectId: string }): Promise<Models.Project>;
244
+ get(params: { projectId: string }): Promise<Models.Project>;
245
245
  /**
246
246
  * Get a project by its unique ID. This endpoint allows you to retrieve the project's details, including its name, description, team, region, and other metadata.
247
247
  *
@@ -302,7 +302,7 @@ export class Projects {
302
302
  * @throws {AppwriteException}
303
303
  * @returns {Promise<Models.Project>}
304
304
  */
305
- update(params: { projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
305
+ update(params: { projectId: string, name: string, description?: string, logo?: string, url?: string, legalName?: string, legalCountry?: string, legalState?: string, legalCity?: string, legalAddress?: string, legalTaxId?: string }): Promise<Models.Project>;
306
306
  /**
307
307
  * Update a project by its unique ID.
308
308
  *
@@ -418,7 +418,7 @@ export class Projects {
418
418
  * @throws {AppwriteException}
419
419
  * @returns {Promise<{}>}
420
420
  */
421
- delete(params: { projectId: string }): Promise<{}>;
421
+ delete(params: { projectId: string }): Promise<{}>;
422
422
  /**
423
423
  * Delete a project by its unique ID.
424
424
  *
@@ -473,7 +473,7 @@ export class Projects {
473
473
  * @returns {Promise<Models.Project>}
474
474
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateAPIStatus` instead.
475
475
  */
476
- updateApiStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
476
+ updateApiStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
477
477
  /**
478
478
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
479
479
  *
@@ -546,7 +546,7 @@ export class Projects {
546
546
  * @throws {AppwriteException}
547
547
  * @returns {Promise<Models.Project>}
548
548
  */
549
- updateAPIStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
549
+ updateAPIStatus(params: { projectId: string, api: Api, status: boolean }): Promise<Models.Project>;
550
550
  /**
551
551
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
552
552
  *
@@ -619,7 +619,7 @@ export class Projects {
619
619
  * @returns {Promise<Models.Project>}
620
620
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateAPIStatusAll` instead.
621
621
  */
622
- updateApiStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
622
+ updateApiStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
623
623
  /**
624
624
  * Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
625
625
  *
@@ -682,7 +682,7 @@ export class Projects {
682
682
  * @throws {AppwriteException}
683
683
  * @returns {Promise<Models.Project>}
684
684
  */
685
- updateAPIStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
685
+ updateAPIStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
686
686
  /**
687
687
  * Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.
688
688
  *
@@ -745,7 +745,7 @@ export class Projects {
745
745
  * @throws {AppwriteException}
746
746
  * @returns {Promise<Models.Project>}
747
747
  */
748
- updateAuthDuration(params: { projectId: string, duration: number }): Promise<Models.Project>;
748
+ updateAuthDuration(params: { projectId: string, duration: number }): Promise<Models.Project>;
749
749
  /**
750
750
  * Update how long sessions created within a project should stay active for.
751
751
  *
@@ -808,7 +808,7 @@ export class Projects {
808
808
  * @throws {AppwriteException}
809
809
  * @returns {Promise<Models.Project>}
810
810
  */
811
- updateAuthLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
811
+ updateAuthLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
812
812
  /**
813
813
  * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
814
814
  *
@@ -871,7 +871,7 @@ export class Projects {
871
871
  * @throws {AppwriteException}
872
872
  * @returns {Promise<Models.Project>}
873
873
  */
874
- updateAuthSessionsLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
874
+ updateAuthSessionsLimit(params: { projectId: string, limit: number }): Promise<Models.Project>;
875
875
  /**
876
876
  * Update the maximum number of sessions allowed per user within the project, if the limit is hit the oldest session will be deleted to make room for new sessions.
877
877
  *
@@ -936,7 +936,7 @@ export class Projects {
936
936
  * @throws {AppwriteException}
937
937
  * @returns {Promise<Models.Project>}
938
938
  */
939
- updateMembershipsPrivacy(params: { projectId: string, userName: boolean, userEmail: boolean, mfa: boolean }): Promise<Models.Project>;
939
+ updateMembershipsPrivacy(params: { projectId: string, userName: boolean, userEmail: boolean, mfa: boolean }): Promise<Models.Project>;
940
940
  /**
941
941
  * Update project membership privacy settings. Use this endpoint to control what user information is visible to other team members, such as user name, email, and MFA status.
942
942
  *
@@ -1017,7 +1017,7 @@ export class Projects {
1017
1017
  * @throws {AppwriteException}
1018
1018
  * @returns {Promise<Models.Project>}
1019
1019
  */
1020
- updateMockNumbers(params: { projectId: string, numbers: object[] }): Promise<Models.Project>;
1020
+ updateMockNumbers(params: { projectId: string, numbers: object[] }): Promise<Models.Project>;
1021
1021
  /**
1022
1022
  * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
1023
1023
  *
@@ -1080,7 +1080,7 @@ export class Projects {
1080
1080
  * @throws {AppwriteException}
1081
1081
  * @returns {Promise<Models.Project>}
1082
1082
  */
1083
- updateAuthPasswordDictionary(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1083
+ updateAuthPasswordDictionary(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1084
1084
  /**
1085
1085
  * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don't use common and insecure passwords.
1086
1086
  *
@@ -1143,7 +1143,7 @@ export class Projects {
1143
1143
  * @throws {AppwriteException}
1144
1144
  * @returns {Promise<Models.Project>}
1145
1145
  */
1146
- updateAuthPasswordHistory(params: { projectId: string, limit: number }): Promise<Models.Project>;
1146
+ updateAuthPasswordHistory(params: { projectId: string, limit: number }): Promise<Models.Project>;
1147
1147
  /**
1148
1148
  * Update the authentication password history requirement. Use this endpoint to require new passwords to be different than the last X amount of previously used ones.
1149
1149
  *
@@ -1206,7 +1206,7 @@ export class Projects {
1206
1206
  * @throws {AppwriteException}
1207
1207
  * @returns {Promise<Models.Project>}
1208
1208
  */
1209
- updatePersonalDataCheck(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1209
+ updatePersonalDataCheck(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1210
1210
  /**
1211
1211
  * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
1212
1212
  *
@@ -1269,7 +1269,7 @@ export class Projects {
1269
1269
  * @throws {AppwriteException}
1270
1270
  * @returns {Promise<Models.Project>}
1271
1271
  */
1272
- updateSessionAlerts(params: { projectId: string, alerts: boolean }): Promise<Models.Project>;
1272
+ updateSessionAlerts(params: { projectId: string, alerts: boolean }): Promise<Models.Project>;
1273
1273
  /**
1274
1274
  * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
1275
1275
  *
@@ -1332,7 +1332,7 @@ export class Projects {
1332
1332
  * @throws {AppwriteException}
1333
1333
  * @returns {Promise<Models.Project>}
1334
1334
  */
1335
- updateSessionInvalidation(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1335
+ updateSessionInvalidation(params: { projectId: string, enabled: boolean }): Promise<Models.Project>;
1336
1336
  /**
1337
1337
  * Invalidate all existing sessions. An optional auth security setting for projects, and enabled by default for console project.
1338
1338
  *
@@ -1396,7 +1396,7 @@ export class Projects {
1396
1396
  * @throws {AppwriteException}
1397
1397
  * @returns {Promise<Models.Project>}
1398
1398
  */
1399
- updateAuthStatus(params: { projectId: string, method: AuthMethod, status: boolean }): Promise<Models.Project>;
1399
+ updateAuthStatus(params: { projectId: string, method: AuthMethod, status: boolean }): Promise<Models.Project>;
1400
1400
  /**
1401
1401
  * Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project.
1402
1402
  *
@@ -1465,7 +1465,7 @@ export class Projects {
1465
1465
  * @throws {AppwriteException}
1466
1466
  * @returns {Promise<Models.DevKeyList>}
1467
1467
  */
1468
- listDevKeys(params: { projectId: string, queries?: string[] }): Promise<Models.DevKeyList>;
1468
+ listDevKeys(params: { projectId: string, queries?: string[] }): Promise<Models.DevKeyList>;
1469
1469
  /**
1470
1470
  * List all the project\'s dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.'
1471
1471
  *
@@ -1525,7 +1525,7 @@ export class Projects {
1525
1525
  * @throws {AppwriteException}
1526
1526
  * @returns {Promise<Models.DevKey>}
1527
1527
  */
1528
- createDevKey(params: { projectId: string, name: string, expire: string }): Promise<Models.DevKey>;
1528
+ createDevKey(params: { projectId: string, name: string, expire: string }): Promise<Models.DevKey>;
1529
1529
  /**
1530
1530
  * Create a new project dev key. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development. Strictly meant for development purposes only.
1531
1531
  *
@@ -1597,7 +1597,7 @@ export class Projects {
1597
1597
  * @throws {AppwriteException}
1598
1598
  * @returns {Promise<Models.DevKey>}
1599
1599
  */
1600
- getDevKey(params: { projectId: string, keyId: string }): Promise<Models.DevKey>;
1600
+ getDevKey(params: { projectId: string, keyId: string }): Promise<Models.DevKey>;
1601
1601
  /**
1602
1602
  * Get a project\'s dev key by its unique ID. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.
1603
1603
  *
@@ -1658,7 +1658,7 @@ export class Projects {
1658
1658
  * @throws {AppwriteException}
1659
1659
  * @returns {Promise<Models.DevKey>}
1660
1660
  */
1661
- updateDevKey(params: { projectId: string, keyId: string, name: string, expire: string }): Promise<Models.DevKey>;
1661
+ updateDevKey(params: { projectId: string, keyId: string, name: string, expire: string }): Promise<Models.DevKey>;
1662
1662
  /**
1663
1663
  * Update a project\'s dev key by its unique ID. Use this endpoint to update a project\'s dev key name or expiration time.'
1664
1664
  *
@@ -1736,7 +1736,7 @@ export class Projects {
1736
1736
  * @throws {AppwriteException}
1737
1737
  * @returns {Promise<{}>}
1738
1738
  */
1739
- deleteDevKey(params: { projectId: string, keyId: string }): Promise<{}>;
1739
+ deleteDevKey(params: { projectId: string, keyId: string }): Promise<{}>;
1740
1740
  /**
1741
1741
  * Delete a project\'s dev key by its unique ID. Once deleted, the key will no longer allow bypassing of rate limits and better logging of errors.
1742
1742
  *
@@ -1792,35 +1792,35 @@ export class Projects {
1792
1792
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
1793
1793
  *
1794
1794
  * @param {string} params.projectId - Project unique ID.
1795
- * @param {string[]} params.scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1795
+ * @param {Scopes[]} params.scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1796
1796
  * @param {number} params.duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1797
1797
  * @throws {AppwriteException}
1798
1798
  * @returns {Promise<Models.Jwt>}
1799
1799
  */
1800
- createJWT(params: { projectId: string, scopes: string[], duration?: number }): Promise<Models.Jwt>;
1800
+ createJWT(params: { projectId: string, scopes: Scopes[], duration?: number }): Promise<Models.Jwt>;
1801
1801
  /**
1802
1802
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
1803
1803
  *
1804
1804
  * @param {string} projectId - Project unique ID.
1805
- * @param {string[]} scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1805
+ * @param {Scopes[]} scopes - List of scopes allowed for JWT key. Maximum of 100 scopes are allowed.
1806
1806
  * @param {number} duration - Time in seconds before JWT expires. Default duration is 900 seconds, and maximum is 3600 seconds.
1807
1807
  * @throws {AppwriteException}
1808
1808
  * @returns {Promise<Models.Jwt>}
1809
1809
  * @deprecated Use the object parameter style method for a better developer experience.
1810
1810
  */
1811
- createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt>;
1811
+ createJWT(projectId: string, scopes: Scopes[], duration?: number): Promise<Models.Jwt>;
1812
1812
  createJWT(
1813
- paramsOrFirst: { projectId: string, scopes: string[], duration?: number } | string,
1814
- ...rest: [(string[])?, (number)?]
1813
+ paramsOrFirst: { projectId: string, scopes: Scopes[], duration?: number } | string,
1814
+ ...rest: [(Scopes[])?, (number)?]
1815
1815
  ): Promise<Models.Jwt> {
1816
- let params: { projectId: string, scopes: string[], duration?: number };
1816
+ let params: { projectId: string, scopes: Scopes[], duration?: number };
1817
1817
 
1818
1818
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1819
- params = (paramsOrFirst || {}) as { projectId: string, scopes: string[], duration?: number };
1819
+ params = (paramsOrFirst || {}) as { projectId: string, scopes: Scopes[], duration?: number };
1820
1820
  } else {
1821
1821
  params = {
1822
1822
  projectId: paramsOrFirst as string,
1823
- scopes: rest[0] as string[],
1823
+ scopes: rest[0] as Scopes[],
1824
1824
  duration: rest[1] as number
1825
1825
  };
1826
1826
  }
@@ -1862,37 +1862,41 @@ export class Projects {
1862
1862
  * Get a list of all API keys from the current project.
1863
1863
  *
1864
1864
  * @param {string} params.projectId - Project unique ID.
1865
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
1865
1866
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
1866
1867
  * @throws {AppwriteException}
1867
1868
  * @returns {Promise<Models.KeyList>}
1868
1869
  */
1869
- listKeys(params: { projectId: string, total?: boolean }): Promise<Models.KeyList>;
1870
+ listKeys(params: { projectId: string, queries?: string[], total?: boolean }): Promise<Models.KeyList>;
1870
1871
  /**
1871
1872
  * Get a list of all API keys from the current project.
1872
1873
  *
1873
1874
  * @param {string} projectId - Project unique ID.
1875
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
1874
1876
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
1875
1877
  * @throws {AppwriteException}
1876
1878
  * @returns {Promise<Models.KeyList>}
1877
1879
  * @deprecated Use the object parameter style method for a better developer experience.
1878
1880
  */
1879
- listKeys(projectId: string, total?: boolean): Promise<Models.KeyList>;
1881
+ listKeys(projectId: string, queries?: string[], total?: boolean): Promise<Models.KeyList>;
1880
1882
  listKeys(
1881
- paramsOrFirst: { projectId: string, total?: boolean } | string,
1882
- ...rest: [(boolean)?]
1883
+ paramsOrFirst: { projectId: string, queries?: string[], total?: boolean } | string,
1884
+ ...rest: [(string[])?, (boolean)?]
1883
1885
  ): Promise<Models.KeyList> {
1884
- let params: { projectId: string, total?: boolean };
1886
+ let params: { projectId: string, queries?: string[], total?: boolean };
1885
1887
 
1886
1888
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1887
- params = (paramsOrFirst || {}) as { projectId: string, total?: boolean };
1889
+ params = (paramsOrFirst || {}) as { projectId: string, queries?: string[], total?: boolean };
1888
1890
  } else {
1889
1891
  params = {
1890
1892
  projectId: paramsOrFirst as string,
1891
- total: rest[0] as boolean
1893
+ queries: rest[0] as string[],
1894
+ total: rest[1] as boolean
1892
1895
  };
1893
1896
  }
1894
1897
 
1895
1898
  const projectId = params.projectId;
1899
+ const queries = params.queries;
1896
1900
  const total = params.total;
1897
1901
 
1898
1902
  if (typeof projectId === 'undefined') {
@@ -1901,6 +1905,9 @@ export class Projects {
1901
1905
 
1902
1906
  const apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
1903
1907
  const payload: Payload = {};
1908
+ if (typeof queries !== 'undefined') {
1909
+ payload['queries'] = queries;
1910
+ }
1904
1911
  if (typeof total !== 'undefined') {
1905
1912
  payload['total'] = total;
1906
1913
  }
@@ -1922,44 +1929,48 @@ export class Projects {
1922
1929
  *
1923
1930
  * @param {string} params.projectId - Project unique ID.
1924
1931
  * @param {string} params.name - Key name. Max length: 128 chars.
1925
- * @param {string[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
1932
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
1933
+ * @param {string} params.keyId - Key ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1926
1934
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
1927
1935
  * @throws {AppwriteException}
1928
1936
  * @returns {Promise<Models.Key>}
1929
1937
  */
1930
- createKey(params: { projectId: string, name: string, scopes?: string[], expire?: string }): Promise<Models.Key>;
1938
+ createKey(params: { projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string }): Promise<Models.Key>;
1931
1939
  /**
1932
1940
  * Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
1933
1941
  *
1934
1942
  * @param {string} projectId - Project unique ID.
1935
1943
  * @param {string} name - Key name. Max length: 128 chars.
1936
- * @param {string[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
1944
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
1945
+ * @param {string} keyId - Key ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1937
1946
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
1938
1947
  * @throws {AppwriteException}
1939
1948
  * @returns {Promise<Models.Key>}
1940
1949
  * @deprecated Use the object parameter style method for a better developer experience.
1941
1950
  */
1942
- createKey(projectId: string, name: string, scopes?: string[], expire?: string): Promise<Models.Key>;
1951
+ createKey(projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string): Promise<Models.Key>;
1943
1952
  createKey(
1944
- paramsOrFirst: { projectId: string, name: string, scopes?: string[], expire?: string } | string,
1945
- ...rest: [(string)?, (string[])?, (string)?]
1953
+ paramsOrFirst: { projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string } | string,
1954
+ ...rest: [(string)?, (Scopes[])?, (string)?, (string)?]
1946
1955
  ): Promise<Models.Key> {
1947
- let params: { projectId: string, name: string, scopes?: string[], expire?: string };
1956
+ let params: { projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string };
1948
1957
 
1949
1958
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
1950
- params = (paramsOrFirst || {}) as { projectId: string, name: string, scopes?: string[], expire?: string };
1959
+ params = (paramsOrFirst || {}) as { projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string };
1951
1960
  } else {
1952
1961
  params = {
1953
1962
  projectId: paramsOrFirst as string,
1954
1963
  name: rest[0] as string,
1955
- scopes: rest[1] as string[],
1956
- expire: rest[2] as string
1964
+ scopes: rest[1] as Scopes[],
1965
+ keyId: rest[2] as string,
1966
+ expire: rest[3] as string
1957
1967
  };
1958
1968
  }
1959
1969
 
1960
1970
  const projectId = params.projectId;
1961
1971
  const name = params.name;
1962
1972
  const scopes = params.scopes;
1973
+ const keyId = params.keyId;
1963
1974
  const expire = params.expire;
1964
1975
 
1965
1976
  if (typeof projectId === 'undefined') {
@@ -1974,6 +1985,9 @@ export class Projects {
1974
1985
 
1975
1986
  const apiPath = '/projects/{projectId}/keys'.replace('{projectId}', projectId);
1976
1987
  const payload: Payload = {};
1988
+ if (typeof keyId !== 'undefined') {
1989
+ payload['keyId'] = keyId;
1990
+ }
1977
1991
  if (typeof name !== 'undefined') {
1978
1992
  payload['name'] = name;
1979
1993
  }
@@ -2005,7 +2019,7 @@ export class Projects {
2005
2019
  * @throws {AppwriteException}
2006
2020
  * @returns {Promise<Models.Key>}
2007
2021
  */
2008
- getKey(params: { projectId: string, keyId: string }): Promise<Models.Key>;
2022
+ getKey(params: { projectId: string, keyId: string }): Promise<Models.Key>;
2009
2023
  /**
2010
2024
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
2011
2025
  *
@@ -2062,39 +2076,39 @@ export class Projects {
2062
2076
  * @param {string} params.projectId - Project unique ID.
2063
2077
  * @param {string} params.keyId - Key unique ID.
2064
2078
  * @param {string} params.name - Key name. Max length: 128 chars.
2065
- * @param {string[]} params.scopes - Key scopes list. Maximum of 100 events are allowed.
2079
+ * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 events are allowed.
2066
2080
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
2067
2081
  * @throws {AppwriteException}
2068
2082
  * @returns {Promise<Models.Key>}
2069
2083
  */
2070
- updateKey(params: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string }): Promise<Models.Key>;
2084
+ updateKey(params: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string }): Promise<Models.Key>;
2071
2085
  /**
2072
2086
  * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
2073
2087
  *
2074
2088
  * @param {string} projectId - Project unique ID.
2075
2089
  * @param {string} keyId - Key unique ID.
2076
2090
  * @param {string} name - Key name. Max length: 128 chars.
2077
- * @param {string[]} scopes - Key scopes list. Maximum of 100 events are allowed.
2091
+ * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 events are allowed.
2078
2092
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
2079
2093
  * @throws {AppwriteException}
2080
2094
  * @returns {Promise<Models.Key>}
2081
2095
  * @deprecated Use the object parameter style method for a better developer experience.
2082
2096
  */
2083
- updateKey(projectId: string, keyId: string, name: string, scopes?: string[], expire?: string): Promise<Models.Key>;
2097
+ updateKey(projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string): Promise<Models.Key>;
2084
2098
  updateKey(
2085
- paramsOrFirst: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string } | string,
2086
- ...rest: [(string)?, (string)?, (string[])?, (string)?]
2099
+ paramsOrFirst: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string } | string,
2100
+ ...rest: [(string)?, (string)?, (Scopes[])?, (string)?]
2087
2101
  ): Promise<Models.Key> {
2088
- let params: { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string };
2102
+ let params: { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string };
2089
2103
 
2090
2104
  if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
2091
- params = (paramsOrFirst || {}) as { projectId: string, keyId: string, name: string, scopes?: string[], expire?: string };
2105
+ params = (paramsOrFirst || {}) as { projectId: string, keyId: string, name: string, scopes?: Scopes[], expire?: string };
2092
2106
  } else {
2093
2107
  params = {
2094
2108
  projectId: paramsOrFirst as string,
2095
2109
  keyId: rest[0] as string,
2096
2110
  name: rest[1] as string,
2097
- scopes: rest[2] as string[],
2111
+ scopes: rest[2] as Scopes[],
2098
2112
  expire: rest[3] as string
2099
2113
  };
2100
2114
  }
@@ -2151,7 +2165,7 @@ export class Projects {
2151
2165
  * @throws {AppwriteException}
2152
2166
  * @returns {Promise<{}>}
2153
2167
  */
2154
- deleteKey(params: { projectId: string, keyId: string }): Promise<{}>;
2168
+ deleteKey(params: { projectId: string, keyId: string }): Promise<{}>;
2155
2169
  /**
2156
2170
  * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
2157
2171
  *
@@ -2211,7 +2225,7 @@ export class Projects {
2211
2225
  * @throws {AppwriteException}
2212
2226
  * @returns {Promise<Models.Project>}
2213
2227
  */
2214
- updateLabels(params: { projectId: string, labels: string[] }): Promise<Models.Project>;
2228
+ updateLabels(params: { projectId: string, labels: string[] }): Promise<Models.Project>;
2215
2229
  /**
2216
2230
  * Update the project labels by its unique ID. Labels can be used to easily filter projects in an organization.
2217
2231
  *
@@ -2277,7 +2291,7 @@ export class Projects {
2277
2291
  * @throws {AppwriteException}
2278
2292
  * @returns {Promise<Models.Project>}
2279
2293
  */
2280
- updateOAuth2(params: { projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean }): Promise<Models.Project>;
2294
+ updateOAuth2(params: { projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean }): Promise<Models.Project>;
2281
2295
  /**
2282
2296
  * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
2283
2297
  *
@@ -2358,7 +2372,7 @@ export class Projects {
2358
2372
  * @throws {AppwriteException}
2359
2373
  * @returns {Promise<Models.PlatformList>}
2360
2374
  */
2361
- listPlatforms(params: { projectId: string, total?: boolean }): Promise<Models.PlatformList>;
2375
+ listPlatforms(params: { projectId: string, total?: boolean }): Promise<Models.PlatformList>;
2362
2376
  /**
2363
2377
  * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
2364
2378
  *
@@ -2421,7 +2435,7 @@ export class Projects {
2421
2435
  * @throws {AppwriteException}
2422
2436
  * @returns {Promise<Models.Platform>}
2423
2437
  */
2424
- createPlatform(params: { projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2438
+ createPlatform(params: { projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2425
2439
  /**
2426
2440
  * Create a new platform for your project. Use this endpoint to register a new platform where your users will run your application which will interact with the Appwrite API.
2427
2441
  *
@@ -2511,7 +2525,7 @@ export class Projects {
2511
2525
  * @throws {AppwriteException}
2512
2526
  * @returns {Promise<Models.Platform>}
2513
2527
  */
2514
- getPlatform(params: { projectId: string, platformId: string }): Promise<Models.Platform>;
2528
+ getPlatform(params: { projectId: string, platformId: string }): Promise<Models.Platform>;
2515
2529
  /**
2516
2530
  * Get a platform by its unique ID. This endpoint returns the platform's details, including its name, type, and key configurations.
2517
2531
  *
@@ -2574,7 +2588,7 @@ export class Projects {
2574
2588
  * @throws {AppwriteException}
2575
2589
  * @returns {Promise<Models.Platform>}
2576
2590
  */
2577
- updatePlatform(params: { projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2591
+ updatePlatform(params: { projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string }): Promise<Models.Platform>;
2578
2592
  /**
2579
2593
  * Update a platform by its unique ID. Use this endpoint to update the platform's name, key, platform store ID, or hostname.
2580
2594
  *
@@ -2661,7 +2675,7 @@ export class Projects {
2661
2675
  * @throws {AppwriteException}
2662
2676
  * @returns {Promise<{}>}
2663
2677
  */
2664
- deletePlatform(params: { projectId: string, platformId: string }): Promise<{}>;
2678
+ deletePlatform(params: { projectId: string, platformId: string }): Promise<{}>;
2665
2679
  /**
2666
2680
  * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
2667
2681
  *
@@ -2722,7 +2736,7 @@ export class Projects {
2722
2736
  * @throws {AppwriteException}
2723
2737
  * @returns {Promise<Models.Project>}
2724
2738
  */
2725
- updateServiceStatus(params: { projectId: string, service: ApiService, status: boolean }): Promise<Models.Project>;
2739
+ updateServiceStatus(params: { projectId: string, service: ApiService, status: boolean }): Promise<Models.Project>;
2726
2740
  /**
2727
2741
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
2728
2742
  *
@@ -2794,7 +2808,7 @@ export class Projects {
2794
2808
  * @throws {AppwriteException}
2795
2809
  * @returns {Promise<Models.Project>}
2796
2810
  */
2797
- updateServiceStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
2811
+ updateServiceStatusAll(params: { projectId: string, status: boolean }): Promise<Models.Project>;
2798
2812
  /**
2799
2813
  * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
2800
2814
  *
@@ -2866,7 +2880,7 @@ export class Projects {
2866
2880
  * @returns {Promise<Models.Project>}
2867
2881
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateSMTP` instead.
2868
2882
  */
2869
- updateSmtp(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2883
+ updateSmtp(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2870
2884
  /**
2871
2885
  * Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
2872
2886
  *
@@ -2985,7 +2999,7 @@ export class Projects {
2985
2999
  * @throws {AppwriteException}
2986
3000
  * @returns {Promise<Models.Project>}
2987
3001
  */
2988
- updateSMTP(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
3002
+ updateSMTP(params: { projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<Models.Project>;
2989
3003
  /**
2990
3004
  * Update the SMTP configuration for your project. Use this endpoint to configure your project's SMTP provider with your custom settings for sending transactional emails.
2991
3005
  *
@@ -3105,7 +3119,7 @@ export class Projects {
3105
3119
  * @returns {Promise<{}>}
3106
3120
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.createSMTPTest` instead.
3107
3121
  */
3108
- createSmtpTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3122
+ createSmtpTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3109
3123
  /**
3110
3124
  * Send a test email to verify SMTP configuration.
3111
3125
  *
@@ -3233,7 +3247,7 @@ export class Projects {
3233
3247
  * @throws {AppwriteException}
3234
3248
  * @returns {Promise<{}>}
3235
3249
  */
3236
- createSMTPTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3250
+ createSMTPTest(params: { projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure }): Promise<{}>;
3237
3251
  /**
3238
3252
  * Send a test email to verify SMTP configuration.
3239
3253
  *
@@ -3345,69 +3359,6 @@ export class Projects {
3345
3359
  );
3346
3360
  }
3347
3361
 
3348
- /**
3349
- * Update the status of a project
3350
- *
3351
- * @param {string} params.projectId - Project ID
3352
- * @param {Status} params.status - New status for the project
3353
- * @throws {AppwriteException}
3354
- * @returns {Promise<{}>}
3355
- */
3356
- updateStatus(params: { projectId: string, status: Status }): Promise<{}>;
3357
- /**
3358
- * Update the status of a project
3359
- *
3360
- * @param {string} projectId - Project ID
3361
- * @param {Status} status - New status for the project
3362
- * @throws {AppwriteException}
3363
- * @returns {Promise<{}>}
3364
- * @deprecated Use the object parameter style method for a better developer experience.
3365
- */
3366
- updateStatus(projectId: string, status: Status): Promise<{}>;
3367
- updateStatus(
3368
- paramsOrFirst: { projectId: string, status: Status } | string,
3369
- ...rest: [(Status)?]
3370
- ): Promise<{}> {
3371
- let params: { projectId: string, status: Status };
3372
-
3373
- if ((paramsOrFirst && typeof paramsOrFirst === 'object' && !Array.isArray(paramsOrFirst))) {
3374
- params = (paramsOrFirst || {}) as { projectId: string, status: Status };
3375
- } else {
3376
- params = {
3377
- projectId: paramsOrFirst as string,
3378
- status: rest[0] as Status
3379
- };
3380
- }
3381
-
3382
- const projectId = params.projectId;
3383
- const status = params.status;
3384
-
3385
- if (typeof projectId === 'undefined') {
3386
- throw new AppwriteException('Missing required parameter: "projectId"');
3387
- }
3388
- if (typeof status === 'undefined') {
3389
- throw new AppwriteException('Missing required parameter: "status"');
3390
- }
3391
-
3392
- const apiPath = '/projects/{projectId}/status'.replace('{projectId}', projectId);
3393
- const payload: Payload = {};
3394
- if (typeof status !== 'undefined') {
3395
- payload['status'] = status;
3396
- }
3397
- const uri = new URL(this.client.config.endpoint + apiPath);
3398
-
3399
- const apiHeaders: { [header: string]: string } = {
3400
- 'content-type': 'application/json',
3401
- }
3402
-
3403
- return this.client.call(
3404
- 'patch',
3405
- uri,
3406
- apiHeaders,
3407
- payload
3408
- );
3409
- }
3410
-
3411
3362
  /**
3412
3363
  * Update the team ID of a project allowing for it to be transferred to another team.
3413
3364
  *
@@ -3416,7 +3367,7 @@ export class Projects {
3416
3367
  * @throws {AppwriteException}
3417
3368
  * @returns {Promise<Models.Project>}
3418
3369
  */
3419
- updateTeam(params: { projectId: string, teamId: string }): Promise<Models.Project>;
3370
+ updateTeam(params: { projectId: string, teamId: string }): Promise<Models.Project>;
3420
3371
  /**
3421
3372
  * Update the team ID of a project allowing for it to be transferred to another team.
3422
3373
  *
@@ -3480,7 +3431,7 @@ export class Projects {
3480
3431
  * @throws {AppwriteException}
3481
3432
  * @returns {Promise<Models.EmailTemplate>}
3482
3433
  */
3483
- getEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3434
+ getEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3484
3435
  /**
3485
3436
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
3486
3437
  *
@@ -3551,7 +3502,7 @@ export class Projects {
3551
3502
  * @throws {AppwriteException}
3552
3503
  * @returns {Promise<Models.EmailTemplate>}
3553
3504
  */
3554
- updateEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string }): Promise<Models.EmailTemplate>;
3505
+ updateEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string }): Promise<Models.EmailTemplate>;
3555
3506
  /**
3556
3507
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
3557
3508
  *
@@ -3654,7 +3605,7 @@ export class Projects {
3654
3605
  * @throws {AppwriteException}
3655
3606
  * @returns {Promise<Models.EmailTemplate>}
3656
3607
  */
3657
- deleteEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3608
+ deleteEmailTemplate(params: { projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale }): Promise<Models.EmailTemplate>;
3658
3609
  /**
3659
3610
  * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
3660
3611
  *
@@ -3722,7 +3673,7 @@ export class Projects {
3722
3673
  * @returns {Promise<Models.SmsTemplate>}
3723
3674
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.getSMSTemplate` instead.
3724
3675
  */
3725
- getSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3676
+ getSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3726
3677
  /**
3727
3678
  * Get a custom SMS template for the specified locale and type returning it's contents.
3728
3679
  *
@@ -3788,7 +3739,7 @@ export class Projects {
3788
3739
  * @throws {AppwriteException}
3789
3740
  * @returns {Promise<Models.SmsTemplate>}
3790
3741
  */
3791
- getSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3742
+ getSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3792
3743
  /**
3793
3744
  * Get a custom SMS template for the specified locale and type returning it's contents.
3794
3745
  *
@@ -3856,7 +3807,7 @@ export class Projects {
3856
3807
  * @returns {Promise<Models.SmsTemplate>}
3857
3808
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.updateSMSTemplate` instead.
3858
3809
  */
3859
- updateSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3810
+ updateSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3860
3811
  /**
3861
3812
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
3862
3813
  *
@@ -3933,7 +3884,7 @@ export class Projects {
3933
3884
  * @throws {AppwriteException}
3934
3885
  * @returns {Promise<Models.SmsTemplate>}
3935
3886
  */
3936
- updateSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3887
+ updateSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string }): Promise<Models.SmsTemplate>;
3937
3888
  /**
3938
3889
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
3939
3890
  *
@@ -4010,7 +3961,7 @@ export class Projects {
4010
3961
  * @returns {Promise<Models.SmsTemplate>}
4011
3962
  * @deprecated This API has been deprecated since 1.8.0. Please use `Projects.deleteSMSTemplate` instead.
4012
3963
  */
4013
- deleteSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
3964
+ deleteSmsTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4014
3965
  /**
4015
3966
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
4016
3967
  *
@@ -4077,7 +4028,7 @@ export class Projects {
4077
4028
  * @throws {AppwriteException}
4078
4029
  * @returns {Promise<Models.SmsTemplate>}
4079
4030
  */
4080
- deleteSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4031
+ deleteSMSTemplate(params: { projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale }): Promise<Models.SmsTemplate>;
4081
4032
  /**
4082
4033
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
4083
4034
  *
@@ -4143,7 +4094,7 @@ export class Projects {
4143
4094
  * @throws {AppwriteException}
4144
4095
  * @returns {Promise<Models.WebhookList>}
4145
4096
  */
4146
- listWebhooks(params: { projectId: string, total?: boolean }): Promise<Models.WebhookList>;
4097
+ listWebhooks(params: { projectId: string, total?: boolean }): Promise<Models.WebhookList>;
4147
4098
  /**
4148
4099
  * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
4149
4100
  *
@@ -4208,7 +4159,7 @@ export class Projects {
4208
4159
  * @throws {AppwriteException}
4209
4160
  * @returns {Promise<Models.Webhook>}
4210
4161
  */
4211
- createWebhook(params: { projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4162
+ createWebhook(params: { projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4212
4163
  /**
4213
4164
  * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
4214
4165
  *
@@ -4316,7 +4267,7 @@ export class Projects {
4316
4267
  * @throws {AppwriteException}
4317
4268
  * @returns {Promise<Models.Webhook>}
4318
4269
  */
4319
- getWebhook(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4270
+ getWebhook(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4320
4271
  /**
4321
4272
  * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
4322
4273
  *
@@ -4382,7 +4333,7 @@ export class Projects {
4382
4333
  * @throws {AppwriteException}
4383
4334
  * @returns {Promise<Models.Webhook>}
4384
4335
  */
4385
- updateWebhook(params: { projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4336
+ updateWebhook(params: { projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string }): Promise<Models.Webhook>;
4386
4337
  /**
4387
4338
  * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
4388
4339
  *
@@ -4496,7 +4447,7 @@ export class Projects {
4496
4447
  * @throws {AppwriteException}
4497
4448
  * @returns {Promise<{}>}
4498
4449
  */
4499
- deleteWebhook(params: { projectId: string, webhookId: string }): Promise<{}>;
4450
+ deleteWebhook(params: { projectId: string, webhookId: string }): Promise<{}>;
4500
4451
  /**
4501
4452
  * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
4502
4453
  *
@@ -4556,7 +4507,7 @@ export class Projects {
4556
4507
  * @throws {AppwriteException}
4557
4508
  * @returns {Promise<Models.Webhook>}
4558
4509
  */
4559
- updateWebhookSignature(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4510
+ updateWebhookSignature(params: { projectId: string, webhookId: string }): Promise<Models.Webhook>;
4560
4511
  /**
4561
4512
  * Update the webhook signature key. This endpoint can be used to regenerate the signature key used to sign and validate payload deliveries for a specific webhook.
4562
4513
  *