@appwrite.io/console 1.5.2 → 1.7.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 (607) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/README.md +3 -3
  3. package/dist/cjs/sdk.js +11874 -11100
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +11872 -11101
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +11874 -11100
  8. package/docs/examples/account/create-anonymous-session.md +1 -1
  9. package/docs/examples/account/create-billing-address.md +1 -1
  10. package/docs/examples/account/create-email-password-session.md +1 -1
  11. package/docs/examples/account/create-email-token.md +1 -1
  12. package/docs/examples/account/create-j-w-t.md +1 -1
  13. package/docs/examples/account/create-magic-u-r-l-token.md +1 -1
  14. package/docs/examples/account/create-mfa-authenticator.md +1 -1
  15. package/docs/examples/account/create-mfa-challenge.md +1 -1
  16. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  17. package/docs/examples/account/create-o-auth2session.md +1 -1
  18. package/docs/examples/account/create-o-auth2token.md +1 -1
  19. package/docs/examples/account/create-payment-method.md +1 -1
  20. package/docs/examples/account/create-phone-token.md +1 -1
  21. package/docs/examples/account/create-phone-verification.md +1 -1
  22. package/docs/examples/account/create-push-target.md +1 -1
  23. package/docs/examples/account/create-recovery.md +1 -1
  24. package/docs/examples/account/create-session.md +1 -1
  25. package/docs/examples/account/create-verification.md +1 -1
  26. package/docs/examples/account/create.md +1 -1
  27. package/docs/examples/account/delete-billing-address.md +1 -1
  28. package/docs/examples/account/delete-identity.md +1 -1
  29. package/docs/examples/account/delete-mfa-authenticator.md +1 -1
  30. package/docs/examples/account/delete-payment-method.md +1 -1
  31. package/docs/examples/account/delete-push-target.md +1 -1
  32. package/docs/examples/account/delete-session.md +1 -1
  33. package/docs/examples/account/delete-sessions.md +1 -1
  34. package/docs/examples/account/delete.md +1 -1
  35. package/docs/examples/account/get-billing-address.md +1 -1
  36. package/docs/examples/account/get-coupon.md +1 -1
  37. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  38. package/docs/examples/account/get-payment-method.md +1 -1
  39. package/docs/examples/account/get-prefs.md +1 -1
  40. package/docs/examples/account/get-session.md +1 -1
  41. package/docs/examples/account/get.md +1 -1
  42. package/docs/examples/account/list-billing-addresses.md +1 -1
  43. package/docs/examples/account/list-identities.md +1 -1
  44. package/docs/examples/account/list-invoices.md +1 -1
  45. package/docs/examples/account/list-logs.md +1 -1
  46. package/docs/examples/account/list-mfa-factors.md +1 -1
  47. package/docs/examples/account/list-payment-methods.md +1 -1
  48. package/docs/examples/account/list-sessions.md +1 -1
  49. package/docs/examples/account/update-billing-address.md +1 -1
  50. package/docs/examples/account/update-email.md +1 -1
  51. package/docs/examples/account/update-m-f-a.md +1 -1
  52. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  53. package/docs/examples/account/update-mfa-authenticator.md +1 -1
  54. package/docs/examples/account/update-mfa-challenge.md +1 -1
  55. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  56. package/docs/examples/account/update-name.md +1 -1
  57. package/docs/examples/account/update-password.md +1 -1
  58. package/docs/examples/account/update-payment-method-mandate-options.md +1 -1
  59. package/docs/examples/account/update-payment-method-provider.md +1 -1
  60. package/docs/examples/account/update-payment-method.md +1 -1
  61. package/docs/examples/account/update-phone-session.md +1 -1
  62. package/docs/examples/account/update-phone-verification.md +1 -1
  63. package/docs/examples/account/update-phone.md +1 -1
  64. package/docs/examples/account/update-prefs.md +1 -1
  65. package/docs/examples/account/update-push-target.md +1 -1
  66. package/docs/examples/account/update-recovery.md +1 -1
  67. package/docs/examples/account/update-session.md +1 -1
  68. package/docs/examples/account/update-status.md +1 -1
  69. package/docs/examples/account/update-verification.md +1 -1
  70. package/docs/examples/assistant/chat.md +1 -1
  71. package/docs/examples/avatars/get-browser.md +2 -2
  72. package/docs/examples/avatars/get-credit-card.md +2 -2
  73. package/docs/examples/avatars/get-favicon.md +1 -1
  74. package/docs/examples/avatars/get-flag.md +2 -2
  75. package/docs/examples/avatars/get-image.md +1 -1
  76. package/docs/examples/avatars/get-initials.md +1 -1
  77. package/docs/examples/avatars/get-q-r.md +1 -1
  78. package/docs/examples/backups/create-archive.md +1 -1
  79. package/docs/examples/backups/create-policy.md +1 -1
  80. package/docs/examples/backups/create-restoration.md +1 -1
  81. package/docs/examples/backups/delete-archive.md +1 -1
  82. package/docs/examples/backups/delete-policy.md +1 -1
  83. package/docs/examples/backups/get-archive.md +1 -1
  84. package/docs/examples/backups/get-policy.md +1 -1
  85. package/docs/examples/backups/get-restoration.md +1 -1
  86. package/docs/examples/backups/list-archives.md +1 -1
  87. package/docs/examples/backups/list-policies.md +1 -1
  88. package/docs/examples/backups/list-restorations.md +1 -1
  89. package/docs/examples/backups/update-policy.md +1 -1
  90. package/docs/examples/console/create-program-membership.md +1 -1
  91. package/docs/examples/console/create-source.md +1 -1
  92. package/docs/examples/console/get-campaign.md +1 -1
  93. package/docs/examples/console/get-coupon.md +1 -1
  94. package/docs/examples/console/get-resource.md +14 -0
  95. package/docs/examples/console/plans.md +1 -1
  96. package/docs/examples/console/regions.md +1 -1
  97. package/docs/examples/console/variables.md +1 -1
  98. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  99. package/docs/examples/databases/create-collection.md +1 -1
  100. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  101. package/docs/examples/databases/create-document.md +4 -2
  102. package/docs/examples/databases/create-documents.md +15 -0
  103. package/docs/examples/databases/create-email-attribute.md +1 -1
  104. package/docs/examples/databases/create-enum-attribute.md +1 -1
  105. package/docs/examples/databases/create-float-attribute.md +1 -1
  106. package/docs/examples/databases/create-index.md +3 -2
  107. package/docs/examples/databases/create-integer-attribute.md +1 -1
  108. package/docs/examples/databases/create-ip-attribute.md +1 -1
  109. package/docs/examples/databases/create-relationship-attribute.md +1 -1
  110. package/docs/examples/databases/create-string-attribute.md +1 -1
  111. package/docs/examples/databases/create-url-attribute.md +1 -1
  112. package/docs/examples/databases/create.md +1 -1
  113. package/docs/examples/databases/delete-attribute.md +1 -1
  114. package/docs/examples/databases/delete-collection.md +1 -1
  115. package/docs/examples/databases/delete-document.md +1 -1
  116. package/docs/examples/databases/delete-documents.md +15 -0
  117. package/docs/examples/databases/delete-index.md +1 -1
  118. package/docs/examples/databases/delete.md +1 -1
  119. package/docs/examples/databases/get-attribute.md +1 -1
  120. package/docs/examples/databases/get-collection-usage.md +1 -1
  121. package/docs/examples/databases/get-collection.md +1 -1
  122. package/docs/examples/databases/get-database-usage.md +1 -1
  123. package/docs/examples/databases/get-document.md +1 -1
  124. package/docs/examples/databases/get-index.md +1 -1
  125. package/docs/examples/databases/get-usage.md +1 -1
  126. package/docs/examples/databases/get.md +1 -1
  127. package/docs/examples/databases/list-attributes.md +1 -1
  128. package/docs/examples/databases/list-collection-logs.md +1 -1
  129. package/docs/examples/databases/list-collections.md +1 -1
  130. package/docs/examples/databases/list-document-logs.md +1 -1
  131. package/docs/examples/databases/list-documents.md +1 -1
  132. package/docs/examples/databases/list-indexes.md +1 -1
  133. package/docs/examples/databases/list-logs.md +1 -1
  134. package/docs/examples/databases/list.md +1 -1
  135. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  136. package/docs/examples/databases/update-collection.md +1 -1
  137. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  138. package/docs/examples/databases/update-document.md +1 -1
  139. package/docs/examples/databases/update-documents.md +16 -0
  140. package/docs/examples/databases/update-email-attribute.md +1 -1
  141. package/docs/examples/databases/update-enum-attribute.md +1 -1
  142. package/docs/examples/databases/update-float-attribute.md +1 -1
  143. package/docs/examples/databases/update-integer-attribute.md +1 -1
  144. package/docs/examples/databases/update-ip-attribute.md +1 -1
  145. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  146. package/docs/examples/databases/update-string-attribute.md +1 -1
  147. package/docs/examples/databases/update-url-attribute.md +1 -1
  148. package/docs/examples/databases/update.md +1 -1
  149. package/docs/examples/databases/upsert-documents.md +15 -0
  150. package/docs/examples/domains/create-preset-google-workspace.md +13 -0
  151. package/docs/examples/domains/create-preset-i-cloud.md +13 -0
  152. package/docs/examples/domains/create-preset-mailgun.md +13 -0
  153. package/docs/examples/domains/create-preset-outlook.md +13 -0
  154. package/docs/examples/domains/create-preset-proton-mail.md +13 -0
  155. package/docs/examples/domains/create-preset-zoho.md +13 -0
  156. package/docs/examples/domains/create-record-a-a-a-a.md +17 -0
  157. package/docs/examples/domains/create-record-a.md +17 -0
  158. package/docs/examples/domains/create-record-alias.md +17 -0
  159. package/docs/examples/domains/create-record-c-a-a.md +17 -0
  160. package/docs/examples/domains/create-record-c-n-a-m-e.md +17 -0
  161. package/docs/examples/domains/create-record-h-t-t-p-s.md +17 -0
  162. package/docs/examples/domains/create-record-m-x.md +18 -0
  163. package/docs/examples/domains/create-record-n-s.md +17 -0
  164. package/docs/examples/domains/create-record-s-r-v.md +20 -0
  165. package/docs/examples/domains/create-record-t-x-t.md +17 -0
  166. package/docs/examples/domains/create.md +14 -0
  167. package/docs/examples/domains/delete-record.md +14 -0
  168. package/docs/examples/domains/delete.md +13 -0
  169. package/docs/examples/domains/get-preset-google-workspace.md +13 -0
  170. package/docs/examples/domains/get-preset-i-cloud.md +13 -0
  171. package/docs/examples/domains/get-preset-mailgun.md +13 -0
  172. package/docs/examples/domains/get-preset-outlook.md +13 -0
  173. package/docs/examples/domains/get-preset-proton-mail.md +13 -0
  174. package/docs/examples/domains/get-preset-zoho.md +13 -0
  175. package/docs/examples/domains/get-record.md +14 -0
  176. package/docs/examples/domains/get-zone.md +13 -0
  177. package/docs/examples/domains/get.md +13 -0
  178. package/docs/examples/domains/list-records.md +14 -0
  179. package/docs/examples/domains/list.md +14 -0
  180. package/docs/examples/domains/update-nameservers.md +13 -0
  181. package/docs/examples/domains/update-record-a-a-a-a.md +18 -0
  182. package/docs/examples/domains/update-record-a.md +18 -0
  183. package/docs/examples/domains/update-record-alias.md +18 -0
  184. package/docs/examples/domains/update-record-c-a-a.md +18 -0
  185. package/docs/examples/domains/update-record-c-n-a-m-e.md +18 -0
  186. package/docs/examples/domains/update-record-h-t-t-p-s.md +18 -0
  187. package/docs/examples/domains/update-record-m-x.md +19 -0
  188. package/docs/examples/domains/update-record-n-s.md +18 -0
  189. package/docs/examples/domains/update-record-s-r-v.md +21 -0
  190. package/docs/examples/domains/update-record-t-x-t.md +18 -0
  191. package/docs/examples/domains/update-team.md +14 -0
  192. package/docs/examples/domains/update-zone.md +14 -0
  193. package/docs/examples/functions/create-deployment.md +1 -1
  194. package/docs/examples/functions/create-duplicate-deployment.md +15 -0
  195. package/docs/examples/functions/create-execution.md +1 -1
  196. package/docs/examples/functions/create-template-deployment.md +18 -0
  197. package/docs/examples/functions/create-variable.md +3 -2
  198. package/docs/examples/functions/create-vcs-deployment.md +16 -0
  199. package/docs/examples/functions/create.md +3 -3
  200. package/docs/examples/functions/delete-deployment.md +1 -1
  201. package/docs/examples/functions/delete-execution.md +1 -1
  202. package/docs/examples/functions/delete-variable.md +1 -1
  203. package/docs/examples/functions/delete.md +1 -1
  204. package/docs/examples/functions/get-deployment-download.md +4 -3
  205. package/docs/examples/functions/get-deployment.md +1 -1
  206. package/docs/examples/functions/get-execution.md +1 -1
  207. package/docs/examples/functions/get-template.md +1 -1
  208. package/docs/examples/functions/get-usage.md +2 -1
  209. package/docs/examples/functions/get-variable.md +1 -1
  210. package/docs/examples/functions/get.md +1 -1
  211. package/docs/examples/functions/list-deployments.md +1 -1
  212. package/docs/examples/functions/list-executions.md +2 -3
  213. package/docs/examples/functions/list-runtimes.md +1 -1
  214. package/docs/examples/functions/list-specifications.md +1 -1
  215. package/docs/examples/functions/list-templates.md +1 -1
  216. package/docs/examples/functions/list-usage.md +13 -0
  217. package/docs/examples/functions/list-variables.md +1 -1
  218. package/docs/examples/functions/list.md +1 -1
  219. package/docs/examples/functions/update-deployment-status.md +14 -0
  220. package/docs/examples/functions/update-function-deployment.md +14 -0
  221. package/docs/examples/functions/update-variable.md +3 -2
  222. package/docs/examples/functions/update.md +1 -1
  223. package/docs/examples/graphql/mutation.md +1 -1
  224. package/docs/examples/graphql/query.md +1 -1
  225. package/docs/examples/health/get-antivirus.md +1 -1
  226. package/docs/examples/health/get-cache.md +1 -1
  227. package/docs/examples/health/get-certificate.md +1 -1
  228. package/docs/examples/health/get-d-b.md +1 -1
  229. package/docs/examples/health/get-failed-jobs.md +1 -1
  230. package/docs/examples/health/get-pub-sub.md +1 -1
  231. package/docs/examples/health/get-queue-billing-aggregation.md +1 -1
  232. package/docs/examples/health/get-queue-builds.md +1 -1
  233. package/docs/examples/health/get-queue-certificates.md +1 -1
  234. package/docs/examples/health/get-queue-databases.md +1 -1
  235. package/docs/examples/health/get-queue-deletes.md +1 -1
  236. package/docs/examples/health/get-queue-functions.md +1 -1
  237. package/docs/examples/health/get-queue-logs.md +1 -1
  238. package/docs/examples/health/get-queue-mails.md +1 -1
  239. package/docs/examples/health/get-queue-messaging.md +1 -1
  240. package/docs/examples/health/get-queue-migrations.md +1 -1
  241. package/docs/examples/health/get-queue-priority-builds.md +1 -1
  242. package/docs/examples/health/get-queue-region-manager.md +13 -0
  243. package/docs/examples/health/get-queue-stats-resources.md +1 -1
  244. package/docs/examples/health/get-queue-usage.md +1 -1
  245. package/docs/examples/health/get-queue-webhooks.md +1 -1
  246. package/docs/examples/health/get-storage-local.md +1 -1
  247. package/docs/examples/health/get-storage.md +1 -1
  248. package/docs/examples/health/get-time.md +1 -1
  249. package/docs/examples/health/get.md +1 -1
  250. package/docs/examples/locale/get.md +1 -1
  251. package/docs/examples/locale/list-codes.md +1 -1
  252. package/docs/examples/locale/list-continents.md +1 -1
  253. package/docs/examples/locale/list-countries-e-u.md +1 -1
  254. package/docs/examples/locale/list-countries-phones.md +1 -1
  255. package/docs/examples/locale/list-countries.md +1 -1
  256. package/docs/examples/locale/list-currencies.md +1 -1
  257. package/docs/examples/locale/list-languages.md +1 -1
  258. package/docs/examples/messaging/create-apns-provider.md +1 -1
  259. package/docs/examples/messaging/create-email.md +1 -1
  260. package/docs/examples/messaging/create-fcm-provider.md +1 -1
  261. package/docs/examples/messaging/create-mailgun-provider.md +1 -1
  262. package/docs/examples/messaging/create-msg91provider.md +1 -1
  263. package/docs/examples/messaging/create-push.md +1 -1
  264. package/docs/examples/messaging/create-sendgrid-provider.md +1 -1
  265. package/docs/examples/messaging/create-sms.md +1 -1
  266. package/docs/examples/messaging/create-smtp-provider.md +1 -1
  267. package/docs/examples/messaging/create-subscriber.md +1 -1
  268. package/docs/examples/messaging/create-telesign-provider.md +1 -1
  269. package/docs/examples/messaging/create-textmagic-provider.md +1 -1
  270. package/docs/examples/messaging/create-topic.md +1 -1
  271. package/docs/examples/messaging/create-twilio-provider.md +1 -1
  272. package/docs/examples/messaging/create-vonage-provider.md +1 -1
  273. package/docs/examples/messaging/delete-provider.md +1 -1
  274. package/docs/examples/messaging/delete-subscriber.md +1 -1
  275. package/docs/examples/messaging/delete-topic.md +1 -1
  276. package/docs/examples/messaging/delete.md +1 -1
  277. package/docs/examples/messaging/get-message.md +1 -1
  278. package/docs/examples/messaging/get-provider.md +1 -1
  279. package/docs/examples/messaging/get-subscriber.md +1 -1
  280. package/docs/examples/messaging/get-topic.md +1 -1
  281. package/docs/examples/messaging/list-message-logs.md +1 -1
  282. package/docs/examples/messaging/list-messages.md +1 -1
  283. package/docs/examples/messaging/list-provider-logs.md +1 -1
  284. package/docs/examples/messaging/list-providers.md +1 -1
  285. package/docs/examples/messaging/list-subscriber-logs.md +1 -1
  286. package/docs/examples/messaging/list-subscribers.md +1 -1
  287. package/docs/examples/messaging/list-targets.md +1 -1
  288. package/docs/examples/messaging/list-topic-logs.md +1 -1
  289. package/docs/examples/messaging/list-topics.md +1 -1
  290. package/docs/examples/messaging/update-apns-provider.md +1 -1
  291. package/docs/examples/messaging/update-email.md +1 -1
  292. package/docs/examples/messaging/update-fcm-provider.md +1 -1
  293. package/docs/examples/messaging/update-mailgun-provider.md +1 -1
  294. package/docs/examples/messaging/update-msg91provider.md +1 -1
  295. package/docs/examples/messaging/update-push.md +1 -1
  296. package/docs/examples/messaging/update-sendgrid-provider.md +1 -1
  297. package/docs/examples/messaging/update-sms.md +1 -1
  298. package/docs/examples/messaging/update-smtp-provider.md +1 -1
  299. package/docs/examples/messaging/update-telesign-provider.md +1 -1
  300. package/docs/examples/messaging/update-textmagic-provider.md +1 -1
  301. package/docs/examples/messaging/update-topic.md +1 -1
  302. package/docs/examples/messaging/update-twilio-provider.md +1 -1
  303. package/docs/examples/messaging/update-vonage-provider.md +1 -1
  304. package/docs/examples/migrations/create-appwrite-migration.md +1 -1
  305. package/docs/examples/migrations/create-csv-migration.md +15 -0
  306. package/docs/examples/migrations/create-firebase-migration.md +1 -1
  307. package/docs/examples/migrations/create-n-host-migration.md +1 -1
  308. package/docs/examples/migrations/create-supabase-migration.md +1 -1
  309. package/docs/examples/migrations/delete.md +1 -1
  310. package/docs/examples/migrations/get-appwrite-report.md +1 -1
  311. package/docs/examples/migrations/get-firebase-report.md +1 -1
  312. package/docs/examples/migrations/get-n-host-report.md +1 -1
  313. package/docs/examples/migrations/get-supabase-report.md +1 -1
  314. package/docs/examples/migrations/get.md +1 -1
  315. package/docs/examples/migrations/list.md +1 -1
  316. package/docs/examples/migrations/retry.md +1 -1
  317. package/docs/examples/organizations/add-credit.md +1 -1
  318. package/docs/examples/organizations/create-invoice-payment.md +1 -1
  319. package/docs/examples/organizations/create.md +1 -1
  320. package/docs/examples/organizations/delete-backup-payment-method.md +1 -1
  321. package/docs/examples/organizations/delete-billing-address.md +1 -1
  322. package/docs/examples/organizations/delete-default-payment-method.md +1 -1
  323. package/docs/examples/organizations/delete.md +1 -1
  324. package/docs/examples/organizations/get-aggregation.md +1 -1
  325. package/docs/examples/organizations/get-billing-address.md +1 -1
  326. package/docs/examples/organizations/get-credit.md +1 -1
  327. package/docs/examples/organizations/get-invoice-download.md +1 -1
  328. package/docs/examples/organizations/get-invoice-view.md +1 -1
  329. package/docs/examples/organizations/get-invoice.md +1 -1
  330. package/docs/examples/organizations/get-payment-method.md +1 -1
  331. package/docs/examples/organizations/get-plan.md +1 -1
  332. package/docs/examples/organizations/get-scopes.md +1 -1
  333. package/docs/examples/organizations/list-aggregations.md +1 -1
  334. package/docs/examples/organizations/list-credits.md +1 -1
  335. package/docs/examples/organizations/list-invoices.md +1 -1
  336. package/docs/examples/organizations/list.md +1 -1
  337. package/docs/examples/organizations/set-backup-payment-method.md +1 -1
  338. package/docs/examples/organizations/set-billing-address.md +1 -1
  339. package/docs/examples/organizations/set-billing-email.md +1 -1
  340. package/docs/examples/organizations/set-billing-tax-id.md +1 -1
  341. package/docs/examples/organizations/set-default-payment-method.md +1 -1
  342. package/docs/examples/organizations/update-budget.md +1 -1
  343. package/docs/examples/organizations/update-plan.md +1 -1
  344. package/docs/examples/organizations/validate-invoice.md +14 -0
  345. package/docs/examples/project/create-variable.md +3 -2
  346. package/docs/examples/project/delete-variable.md +1 -1
  347. package/docs/examples/project/get-usage.md +1 -1
  348. package/docs/examples/project/get-variable.md +1 -1
  349. package/docs/examples/project/list-variables.md +1 -1
  350. package/docs/examples/project/update-variable.md +3 -2
  351. package/docs/examples/projects/create-dev-key.md +15 -0
  352. package/docs/examples/projects/create-j-w-t.md +1 -1
  353. package/docs/examples/projects/create-key.md +1 -1
  354. package/docs/examples/projects/create-platform.md +1 -1
  355. package/docs/examples/projects/create-smtp-test.md +1 -1
  356. package/docs/examples/projects/create-webhook.md +1 -1
  357. package/docs/examples/projects/create.md +2 -2
  358. package/docs/examples/projects/delete-dev-key.md +14 -0
  359. package/docs/examples/projects/delete-email-template.md +1 -1
  360. package/docs/examples/projects/delete-key.md +1 -1
  361. package/docs/examples/projects/delete-platform.md +1 -1
  362. package/docs/examples/projects/delete-sms-template.md +1 -1
  363. package/docs/examples/projects/delete-webhook.md +1 -1
  364. package/docs/examples/projects/delete.md +1 -1
  365. package/docs/examples/projects/get-dev-key.md +14 -0
  366. package/docs/examples/projects/get-email-template.md +1 -1
  367. package/docs/examples/projects/get-key.md +1 -1
  368. package/docs/examples/projects/get-platform.md +1 -1
  369. package/docs/examples/projects/get-sms-template.md +1 -1
  370. package/docs/examples/projects/get-webhook.md +1 -1
  371. package/docs/examples/projects/get.md +1 -1
  372. package/docs/examples/projects/list-dev-keys.md +14 -0
  373. package/docs/examples/projects/list-keys.md +1 -1
  374. package/docs/examples/projects/list-platforms.md +1 -1
  375. package/docs/examples/projects/list-webhooks.md +1 -1
  376. package/docs/examples/projects/list.md +1 -1
  377. package/docs/examples/projects/update-api-status-all.md +1 -1
  378. package/docs/examples/projects/update-api-status.md +1 -1
  379. package/docs/examples/projects/update-auth-duration.md +1 -1
  380. package/docs/examples/projects/update-auth-limit.md +1 -1
  381. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  382. package/docs/examples/projects/update-auth-password-history.md +1 -1
  383. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  384. package/docs/examples/projects/update-auth-status.md +1 -1
  385. package/docs/examples/projects/update-dev-key.md +16 -0
  386. package/docs/examples/projects/update-email-template.md +1 -1
  387. package/docs/examples/projects/update-key.md +1 -1
  388. package/docs/examples/projects/update-memberships-privacy.md +1 -1
  389. package/docs/examples/projects/update-mock-numbers.md +1 -1
  390. package/docs/examples/projects/update-o-auth2.md +1 -1
  391. package/docs/examples/projects/update-personal-data-check.md +1 -1
  392. package/docs/examples/projects/update-platform.md +1 -1
  393. package/docs/examples/projects/update-service-status-all.md +1 -1
  394. package/docs/examples/projects/update-service-status.md +1 -1
  395. package/docs/examples/projects/update-session-alerts.md +1 -1
  396. package/docs/examples/projects/update-sms-template.md +1 -1
  397. package/docs/examples/projects/update-smtp.md +1 -1
  398. package/docs/examples/projects/update-team.md +1 -1
  399. package/docs/examples/projects/update-webhook-signature.md +1 -1
  400. package/docs/examples/projects/update-webhook.md +1 -1
  401. package/docs/examples/projects/update.md +1 -1
  402. package/docs/examples/proxy/create-a-p-i-rule.md +13 -0
  403. package/docs/examples/proxy/create-function-rule.md +15 -0
  404. package/docs/examples/proxy/create-redirect-rule.md +15 -0
  405. package/docs/examples/proxy/create-site-rule.md +15 -0
  406. package/docs/examples/proxy/delete-rule.md +1 -1
  407. package/docs/examples/proxy/get-rule.md +1 -1
  408. package/docs/examples/proxy/list-rules.md +1 -1
  409. package/docs/examples/proxy/update-rule-verification.md +1 -1
  410. package/docs/examples/sites/create-deployment.md +18 -0
  411. package/docs/examples/sites/create-duplicate-deployment.md +14 -0
  412. package/docs/examples/sites/create-template-deployment.md +18 -0
  413. package/docs/examples/sites/create-variable.md +16 -0
  414. package/docs/examples/sites/create-vcs-deployment.md +16 -0
  415. package/docs/examples/sites/create.md +30 -0
  416. package/docs/examples/sites/delete-deployment.md +14 -0
  417. package/docs/examples/sites/delete-log.md +14 -0
  418. package/docs/examples/sites/delete-variable.md +14 -0
  419. package/docs/examples/sites/delete.md +13 -0
  420. package/docs/examples/sites/get-deployment-download.md +15 -0
  421. package/docs/examples/sites/get-deployment.md +14 -0
  422. package/docs/examples/sites/get-log.md +14 -0
  423. package/docs/examples/sites/get-template.md +13 -0
  424. package/docs/examples/sites/get-usage.md +14 -0
  425. package/docs/examples/sites/get-variable.md +14 -0
  426. package/docs/examples/sites/get.md +13 -0
  427. package/docs/examples/sites/list-deployments.md +15 -0
  428. package/docs/examples/sites/list-frameworks.md +11 -0
  429. package/docs/examples/sites/list-logs.md +14 -0
  430. package/docs/examples/sites/list-specifications.md +11 -0
  431. package/docs/examples/sites/list-templates.md +16 -0
  432. package/docs/examples/sites/list-usage.md +13 -0
  433. package/docs/examples/sites/list-variables.md +13 -0
  434. package/docs/examples/sites/list.md +14 -0
  435. package/docs/examples/sites/update-deployment-status.md +14 -0
  436. package/docs/examples/sites/update-site-deployment.md +14 -0
  437. package/docs/examples/sites/update-variable.md +17 -0
  438. package/docs/examples/sites/update.md +30 -0
  439. package/docs/examples/storage/create-bucket.md +1 -1
  440. package/docs/examples/storage/create-file.md +1 -1
  441. package/docs/examples/storage/delete-bucket.md +1 -1
  442. package/docs/examples/storage/delete-file.md +1 -1
  443. package/docs/examples/storage/get-bucket-usage.md +1 -1
  444. package/docs/examples/storage/get-bucket.md +1 -1
  445. package/docs/examples/storage/get-file-download.md +3 -2
  446. package/docs/examples/storage/get-file-preview.md +4 -3
  447. package/docs/examples/storage/get-file-view.md +3 -2
  448. package/docs/examples/storage/get-file.md +1 -1
  449. package/docs/examples/storage/get-usage.md +1 -1
  450. package/docs/examples/storage/list-buckets.md +1 -1
  451. package/docs/examples/storage/list-files.md +1 -1
  452. package/docs/examples/storage/update-bucket.md +1 -1
  453. package/docs/examples/storage/update-file.md +1 -1
  454. package/docs/examples/teams/create-membership.md +1 -1
  455. package/docs/examples/teams/create.md +1 -1
  456. package/docs/examples/teams/delete-membership.md +1 -1
  457. package/docs/examples/teams/delete.md +1 -1
  458. package/docs/examples/teams/get-membership.md +1 -1
  459. package/docs/examples/teams/get-prefs.md +1 -1
  460. package/docs/examples/teams/get.md +1 -1
  461. package/docs/examples/teams/list-logs.md +1 -1
  462. package/docs/examples/teams/list-memberships.md +1 -1
  463. package/docs/examples/teams/list.md +1 -1
  464. package/docs/examples/teams/update-membership-status.md +1 -1
  465. package/docs/examples/teams/update-membership.md +1 -1
  466. package/docs/examples/teams/update-name.md +1 -1
  467. package/docs/examples/teams/update-prefs.md +1 -1
  468. package/docs/examples/tokens/create-file-token.md +15 -0
  469. package/docs/examples/tokens/delete.md +13 -0
  470. package/docs/examples/tokens/get.md +13 -0
  471. package/docs/examples/tokens/list.md +15 -0
  472. package/docs/examples/tokens/update.md +14 -0
  473. package/docs/examples/users/create-argon2user.md +1 -1
  474. package/docs/examples/users/create-bcrypt-user.md +1 -1
  475. package/docs/examples/users/create-j-w-t.md +1 -1
  476. package/docs/examples/users/create-m-d5user.md +1 -1
  477. package/docs/examples/users/create-mfa-recovery-codes.md +1 -1
  478. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  479. package/docs/examples/users/create-s-h-a-user.md +1 -1
  480. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  481. package/docs/examples/users/create-scrypt-user.md +1 -1
  482. package/docs/examples/users/create-session.md +1 -1
  483. package/docs/examples/users/create-target.md +1 -1
  484. package/docs/examples/users/create-token.md +1 -1
  485. package/docs/examples/users/create.md +1 -1
  486. package/docs/examples/users/delete-identity.md +1 -1
  487. package/docs/examples/users/delete-mfa-authenticator.md +1 -1
  488. package/docs/examples/users/delete-session.md +1 -1
  489. package/docs/examples/users/delete-sessions.md +1 -1
  490. package/docs/examples/users/delete-target.md +1 -1
  491. package/docs/examples/users/delete.md +1 -1
  492. package/docs/examples/users/get-mfa-recovery-codes.md +1 -1
  493. package/docs/examples/users/get-prefs.md +1 -1
  494. package/docs/examples/users/get-target.md +1 -1
  495. package/docs/examples/users/get-usage.md +1 -1
  496. package/docs/examples/users/get.md +1 -1
  497. package/docs/examples/users/list-identities.md +1 -1
  498. package/docs/examples/users/list-logs.md +1 -1
  499. package/docs/examples/users/list-memberships.md +4 -2
  500. package/docs/examples/users/list-mfa-factors.md +1 -1
  501. package/docs/examples/users/list-sessions.md +1 -1
  502. package/docs/examples/users/list-targets.md +1 -1
  503. package/docs/examples/users/list.md +1 -1
  504. package/docs/examples/users/update-email-verification.md +1 -1
  505. package/docs/examples/users/update-email.md +1 -1
  506. package/docs/examples/users/update-labels.md +1 -1
  507. package/docs/examples/users/update-mfa-recovery-codes.md +1 -1
  508. package/docs/examples/users/update-mfa.md +1 -1
  509. package/docs/examples/users/update-name.md +1 -1
  510. package/docs/examples/users/update-password.md +1 -1
  511. package/docs/examples/users/update-phone-verification.md +1 -1
  512. package/docs/examples/users/update-phone.md +1 -1
  513. package/docs/examples/users/update-prefs.md +1 -1
  514. package/docs/examples/users/update-status.md +1 -1
  515. package/docs/examples/users/update-target.md +1 -1
  516. package/docs/examples/vcs/create-repository-detection.md +3 -2
  517. package/docs/examples/vcs/create-repository.md +1 -1
  518. package/docs/examples/vcs/delete-installation.md +1 -1
  519. package/docs/examples/vcs/get-installation.md +1 -1
  520. package/docs/examples/vcs/get-repository-contents.md +1 -1
  521. package/docs/examples/vcs/get-repository.md +1 -1
  522. package/docs/examples/vcs/list-installations.md +1 -1
  523. package/docs/examples/vcs/list-repositories.md +3 -2
  524. package/docs/examples/vcs/list-repository-branches.md +1 -1
  525. package/docs/examples/vcs/update-external-deployments.md +1 -1
  526. package/package.json +1 -1
  527. package/src/client.ts +32 -5
  528. package/src/enums/adapter.ts +4 -0
  529. package/src/enums/api-service.ts +1 -0
  530. package/src/enums/build-runtime.ts +62 -0
  531. package/src/enums/console-resource-type.ts +3 -0
  532. package/src/enums/deployment-download-type.ts +4 -0
  533. package/src/enums/framework.ts +16 -0
  534. package/src/enums/image-format.ts +0 -1
  535. package/src/enums/name.ts +0 -1
  536. package/src/enums/o-auth-provider.ts +1 -0
  537. package/src/enums/region.ts +2 -1
  538. package/src/enums/runtime.ts +4 -3
  539. package/src/enums/site-usage-range.ts +5 -0
  540. package/src/enums/status-code.ts +6 -0
  541. package/src/enums/v-c-s-deployment-type.ts +5 -0
  542. package/src/enums/v-c-s-detection-type.ts +4 -0
  543. package/src/index.ts +13 -2
  544. package/src/models.ts +1171 -188
  545. package/src/services/account.ts +126 -446
  546. package/src/services/assistant.ts +2 -7
  547. package/src/services/avatars.ts +7 -28
  548. package/src/services/backups.ts +24 -90
  549. package/src/services/console.ts +48 -52
  550. package/src/services/databases.ts +241 -350
  551. package/src/services/domains.ts +1821 -0
  552. package/src/services/functions.ts +216 -248
  553. package/src/services/graphql.ts +4 -14
  554. package/src/services/health.ts +56 -206
  555. package/src/services/locale.ts +16 -64
  556. package/src/services/messaging.ts +92 -335
  557. package/src/services/migrations.ts +66 -89
  558. package/src/services/organizations.ts +84 -241
  559. package/src/services/project.ts +20 -45
  560. package/src/services/projects.ts +262 -330
  561. package/src/services/proxy.ts +129 -44
  562. package/src/services/sites.ts +1104 -0
  563. package/src/services/storage.ts +42 -105
  564. package/src/services/teams.ts +28 -104
  565. package/src/services/tokens.ts +160 -0
  566. package/src/services/users.ts +94 -313
  567. package/src/services/vcs.ts +70 -108
  568. package/types/enums/adapter.d.ts +4 -0
  569. package/types/enums/api-service.d.ts +1 -0
  570. package/types/enums/build-runtime.d.ts +62 -0
  571. package/types/enums/console-resource-type.d.ts +3 -0
  572. package/types/enums/deployment-download-type.d.ts +4 -0
  573. package/types/enums/framework.d.ts +16 -0
  574. package/types/enums/image-format.d.ts +0 -1
  575. package/types/enums/name.d.ts +0 -1
  576. package/types/enums/o-auth-provider.d.ts +1 -0
  577. package/types/enums/region.d.ts +3 -2
  578. package/types/enums/runtime.d.ts +5 -4
  579. package/types/enums/site-usage-range.d.ts +5 -0
  580. package/types/enums/status-code.d.ts +6 -0
  581. package/types/enums/v-c-s-deployment-type.d.ts +5 -0
  582. package/types/enums/v-c-s-detection-type.d.ts +4 -0
  583. package/types/index.d.ts +13 -2
  584. package/types/models.d.ts +1171 -188
  585. package/types/services/account.d.ts +4 -128
  586. package/types/services/assistant.d.ts +0 -2
  587. package/types/services/avatars.d.ts +0 -14
  588. package/types/services/backups.d.ts +0 -24
  589. package/types/services/console.d.ts +9 -13
  590. package/types/services/databases.d.ts +43 -97
  591. package/types/services/domains.d.ts +524 -0
  592. package/types/services/functions.d.ts +58 -84
  593. package/types/services/graphql.d.ts +0 -4
  594. package/types/services/health.d.ts +6 -56
  595. package/types/services/locale.d.ts +0 -16
  596. package/types/services/messaging.d.ts +0 -92
  597. package/types/services/migrations.d.ts +9 -23
  598. package/types/services/organizations.d.ts +11 -68
  599. package/types/services/project.d.ts +4 -14
  600. package/types/services/projects.d.ts +47 -91
  601. package/types/services/proxy.d.ts +31 -13
  602. package/types/services/sites.d.ts +319 -0
  603. package/types/services/storage.d.ts +6 -33
  604. package/types/services/teams.d.ts +0 -28
  605. package/types/services/tokens.d.ts +51 -0
  606. package/types/services/users.d.ts +3 -87
  607. package/types/services/vcs.d.ts +14 -31
@@ -21,8 +21,6 @@ export class Projects {
21
21
  }
22
22
 
23
23
  /**
24
- * List projects
25
- *
26
24
  * Get a list of all projects. You can use the query params to filter your results.
27
25
  *
28
26
  * @param {string[]} queries
@@ -30,7 +28,7 @@ export class Projects {
30
28
  * @throws {AppwriteException}
31
29
  * @returns {Promise<Models.ProjectList>}
32
30
  */
33
- async list(queries?: string[], search?: string): Promise<Models.ProjectList> {
31
+ list(queries?: string[], search?: string): Promise<Models.ProjectList> {
34
32
  const apiPath = '/projects';
35
33
  const payload: Payload = {};
36
34
  if (typeof queries !== 'undefined') {
@@ -42,13 +40,9 @@ export class Projects {
42
40
  const uri = new URL(this.client.config.endpoint + apiPath);
43
41
 
44
42
  const apiHeaders: { [header: string]: string } = {
45
- 'content-type': 'application/json',
46
43
  }
47
44
 
48
- payload['project'] = this.client.config.project;
49
-
50
-
51
- return await this.client.call(
45
+ return this.client.call(
52
46
  'get',
53
47
  uri,
54
48
  apiHeaders,
@@ -56,8 +50,6 @@ export class Projects {
56
50
  );
57
51
  }
58
52
  /**
59
- * Create project
60
- *
61
53
  * Create a new project. You can create a maximum of 100 projects per account.
62
54
  *
63
55
  * @param {string} projectId
@@ -76,7 +68,7 @@ export class Projects {
76
68
  * @throws {AppwriteException}
77
69
  * @returns {Promise<Models.Project>}
78
70
  */
79
- async create(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> {
71
+ create(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> {
80
72
  if (typeof projectId === 'undefined') {
81
73
  throw new AppwriteException('Missing required parameter: "projectId"');
82
74
  }
@@ -133,10 +125,7 @@ export class Projects {
133
125
  'content-type': 'application/json',
134
126
  }
135
127
 
136
- payload['project'] = this.client.config.project;
137
-
138
-
139
- return await this.client.call(
128
+ return this.client.call(
140
129
  'post',
141
130
  uri,
142
131
  apiHeaders,
@@ -144,15 +133,13 @@ export class Projects {
144
133
  );
145
134
  }
146
135
  /**
147
- * Get project
148
- *
149
136
  * Get a project by its unique ID. This endpoint allows you to retrieve the project&#039;s details, including its name, description, team, region, and other metadata.
150
137
  *
151
138
  * @param {string} projectId
152
139
  * @throws {AppwriteException}
153
140
  * @returns {Promise<Models.Project>}
154
141
  */
155
- async get(projectId: string): Promise<Models.Project> {
142
+ get(projectId: string): Promise<Models.Project> {
156
143
  if (typeof projectId === 'undefined') {
157
144
  throw new AppwriteException('Missing required parameter: "projectId"');
158
145
  }
@@ -161,13 +148,9 @@ export class Projects {
161
148
  const uri = new URL(this.client.config.endpoint + apiPath);
162
149
 
163
150
  const apiHeaders: { [header: string]: string } = {
164
- 'content-type': 'application/json',
165
151
  }
166
152
 
167
- payload['project'] = this.client.config.project;
168
-
169
-
170
- return await this.client.call(
153
+ return this.client.call(
171
154
  'get',
172
155
  uri,
173
156
  apiHeaders,
@@ -175,8 +158,6 @@ export class Projects {
175
158
  );
176
159
  }
177
160
  /**
178
- * Update project
179
- *
180
161
  * Update a project by its unique ID.
181
162
  *
182
163
  * @param {string} projectId
@@ -193,7 +174,7 @@ export class Projects {
193
174
  * @throws {AppwriteException}
194
175
  * @returns {Promise<Models.Project>}
195
176
  */
196
- async update(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> {
177
+ update(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> {
197
178
  if (typeof projectId === 'undefined') {
198
179
  throw new AppwriteException('Missing required parameter: "projectId"');
199
180
  }
@@ -238,10 +219,7 @@ export class Projects {
238
219
  'content-type': 'application/json',
239
220
  }
240
221
 
241
- payload['project'] = this.client.config.project;
242
-
243
-
244
- return await this.client.call(
222
+ return this.client.call(
245
223
  'patch',
246
224
  uri,
247
225
  apiHeaders,
@@ -249,15 +227,13 @@ export class Projects {
249
227
  );
250
228
  }
251
229
  /**
252
- * Delete project
253
- *
254
230
  * Delete a project by its unique ID.
255
231
  *
256
232
  * @param {string} projectId
257
233
  * @throws {AppwriteException}
258
234
  * @returns {Promise<{}>}
259
235
  */
260
- async delete(projectId: string): Promise<{}> {
236
+ delete(projectId: string): Promise<{}> {
261
237
  if (typeof projectId === 'undefined') {
262
238
  throw new AppwriteException('Missing required parameter: "projectId"');
263
239
  }
@@ -269,10 +245,7 @@ export class Projects {
269
245
  'content-type': 'application/json',
270
246
  }
271
247
 
272
- payload['project'] = this.client.config.project;
273
-
274
-
275
- return await this.client.call(
248
+ return this.client.call(
276
249
  'delete',
277
250
  uri,
278
251
  apiHeaders,
@@ -280,8 +253,6 @@ export class Projects {
280
253
  );
281
254
  }
282
255
  /**
283
- * Update API status
284
- *
285
256
  * Update the status of a specific API type. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime.
286
257
  *
287
258
  * @param {string} projectId
@@ -290,7 +261,7 @@ export class Projects {
290
261
  * @throws {AppwriteException}
291
262
  * @returns {Promise<Models.Project>}
292
263
  */
293
- async updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project> {
264
+ updateApiStatus(projectId: string, api: Api, status: boolean): Promise<Models.Project> {
294
265
  if (typeof projectId === 'undefined') {
295
266
  throw new AppwriteException('Missing required parameter: "projectId"');
296
267
  }
@@ -314,10 +285,7 @@ export class Projects {
314
285
  'content-type': 'application/json',
315
286
  }
316
287
 
317
- payload['project'] = this.client.config.project;
318
-
319
-
320
- return await this.client.call(
288
+ return this.client.call(
321
289
  'patch',
322
290
  uri,
323
291
  apiHeaders,
@@ -325,8 +293,6 @@ export class Projects {
325
293
  );
326
294
  }
327
295
  /**
328
- * Update all API status
329
- *
330
296
  * 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.
331
297
  *
332
298
  * @param {string} projectId
@@ -334,7 +300,7 @@ export class Projects {
334
300
  * @throws {AppwriteException}
335
301
  * @returns {Promise<Models.Project>}
336
302
  */
337
- async updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
303
+ updateApiStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
338
304
  if (typeof projectId === 'undefined') {
339
305
  throw new AppwriteException('Missing required parameter: "projectId"');
340
306
  }
@@ -352,10 +318,7 @@ export class Projects {
352
318
  'content-type': 'application/json',
353
319
  }
354
320
 
355
- payload['project'] = this.client.config.project;
356
-
357
-
358
- return await this.client.call(
321
+ return this.client.call(
359
322
  'patch',
360
323
  uri,
361
324
  apiHeaders,
@@ -363,8 +326,6 @@ export class Projects {
363
326
  );
364
327
  }
365
328
  /**
366
- * Update project authentication duration
367
- *
368
329
  * Update how long sessions created within a project should stay active for.
369
330
  *
370
331
  * @param {string} projectId
@@ -372,7 +333,7 @@ export class Projects {
372
333
  * @throws {AppwriteException}
373
334
  * @returns {Promise<Models.Project>}
374
335
  */
375
- async updateAuthDuration(projectId: string, duration: number): Promise<Models.Project> {
336
+ updateAuthDuration(projectId: string, duration: number): Promise<Models.Project> {
376
337
  if (typeof projectId === 'undefined') {
377
338
  throw new AppwriteException('Missing required parameter: "projectId"');
378
339
  }
@@ -390,10 +351,7 @@ export class Projects {
390
351
  'content-type': 'application/json',
391
352
  }
392
353
 
393
- payload['project'] = this.client.config.project;
394
-
395
-
396
- return await this.client.call(
354
+ return this.client.call(
397
355
  'patch',
398
356
  uri,
399
357
  apiHeaders,
@@ -401,8 +359,6 @@ export class Projects {
401
359
  );
402
360
  }
403
361
  /**
404
- * Update project users limit
405
- *
406
362
  * Update the maximum number of users allowed in this project. Set to 0 for unlimited users.
407
363
  *
408
364
  * @param {string} projectId
@@ -410,7 +366,7 @@ export class Projects {
410
366
  * @throws {AppwriteException}
411
367
  * @returns {Promise<Models.Project>}
412
368
  */
413
- async updateAuthLimit(projectId: string, limit: number): Promise<Models.Project> {
369
+ updateAuthLimit(projectId: string, limit: number): Promise<Models.Project> {
414
370
  if (typeof projectId === 'undefined') {
415
371
  throw new AppwriteException('Missing required parameter: "projectId"');
416
372
  }
@@ -428,10 +384,7 @@ export class Projects {
428
384
  'content-type': 'application/json',
429
385
  }
430
386
 
431
- payload['project'] = this.client.config.project;
432
-
433
-
434
- return await this.client.call(
387
+ return this.client.call(
435
388
  'patch',
436
389
  uri,
437
390
  apiHeaders,
@@ -439,8 +392,6 @@ export class Projects {
439
392
  );
440
393
  }
441
394
  /**
442
- * Update project user sessions limit
443
- *
444
395
  * 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.
445
396
  *
446
397
  * @param {string} projectId
@@ -448,7 +399,7 @@ export class Projects {
448
399
  * @throws {AppwriteException}
449
400
  * @returns {Promise<Models.Project>}
450
401
  */
451
- async updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project> {
402
+ updateAuthSessionsLimit(projectId: string, limit: number): Promise<Models.Project> {
452
403
  if (typeof projectId === 'undefined') {
453
404
  throw new AppwriteException('Missing required parameter: "projectId"');
454
405
  }
@@ -466,10 +417,7 @@ export class Projects {
466
417
  'content-type': 'application/json',
467
418
  }
468
419
 
469
- payload['project'] = this.client.config.project;
470
-
471
-
472
- return await this.client.call(
420
+ return this.client.call(
473
421
  'patch',
474
422
  uri,
475
423
  apiHeaders,
@@ -477,8 +425,6 @@ export class Projects {
477
425
  );
478
426
  }
479
427
  /**
480
- * Update project memberships privacy attributes
481
- *
482
428
  * 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.
483
429
  *
484
430
  * @param {string} projectId
@@ -488,7 +434,7 @@ export class Projects {
488
434
  * @throws {AppwriteException}
489
435
  * @returns {Promise<Models.Project>}
490
436
  */
491
- async updateMembershipsPrivacy(projectId: string, userName: boolean, userEmail: boolean, mfa: boolean): Promise<Models.Project> {
437
+ updateMembershipsPrivacy(projectId: string, userName: boolean, userEmail: boolean, mfa: boolean): Promise<Models.Project> {
492
438
  if (typeof projectId === 'undefined') {
493
439
  throw new AppwriteException('Missing required parameter: "projectId"');
494
440
  }
@@ -518,10 +464,7 @@ export class Projects {
518
464
  'content-type': 'application/json',
519
465
  }
520
466
 
521
- payload['project'] = this.client.config.project;
522
-
523
-
524
- return await this.client.call(
467
+ return this.client.call(
525
468
  'patch',
526
469
  uri,
527
470
  apiHeaders,
@@ -529,8 +472,6 @@ export class Projects {
529
472
  );
530
473
  }
531
474
  /**
532
- * Update the mock numbers for the project
533
- *
534
475
  * Update the list of mock phone numbers for testing. Use these numbers to bypass SMS verification in development.
535
476
  *
536
477
  * @param {string} projectId
@@ -538,7 +479,7 @@ export class Projects {
538
479
  * @throws {AppwriteException}
539
480
  * @returns {Promise<Models.Project>}
540
481
  */
541
- async updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project> {
482
+ updateMockNumbers(projectId: string, numbers: object[]): Promise<Models.Project> {
542
483
  if (typeof projectId === 'undefined') {
543
484
  throw new AppwriteException('Missing required parameter: "projectId"');
544
485
  }
@@ -556,10 +497,7 @@ export class Projects {
556
497
  'content-type': 'application/json',
557
498
  }
558
499
 
559
- payload['project'] = this.client.config.project;
560
-
561
-
562
- return await this.client.call(
500
+ return this.client.call(
563
501
  'patch',
564
502
  uri,
565
503
  apiHeaders,
@@ -567,8 +505,6 @@ export class Projects {
567
505
  );
568
506
  }
569
507
  /**
570
- * Update authentication password dictionary status. Use this endpoint to enable or disable the dicitonary check for user password
571
- *
572
508
  * Enable or disable checking user passwords against common passwords dictionary. This helps ensure users don&#039;t use common and insecure passwords.
573
509
  *
574
510
  * @param {string} projectId
@@ -576,7 +512,7 @@ export class Projects {
576
512
  * @throws {AppwriteException}
577
513
  * @returns {Promise<Models.Project>}
578
514
  */
579
- async updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project> {
515
+ updateAuthPasswordDictionary(projectId: string, enabled: boolean): Promise<Models.Project> {
580
516
  if (typeof projectId === 'undefined') {
581
517
  throw new AppwriteException('Missing required parameter: "projectId"');
582
518
  }
@@ -594,10 +530,7 @@ export class Projects {
594
530
  'content-type': 'application/json',
595
531
  }
596
532
 
597
- payload['project'] = this.client.config.project;
598
-
599
-
600
- return await this.client.call(
533
+ return this.client.call(
601
534
  'patch',
602
535
  uri,
603
536
  apiHeaders,
@@ -605,8 +538,6 @@ export class Projects {
605
538
  );
606
539
  }
607
540
  /**
608
- * Update authentication password history. Use this endpoint to set the number of password history to save and 0 to disable password history.
609
- *
610
541
  * 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.
611
542
  *
612
543
  * @param {string} projectId
@@ -614,7 +545,7 @@ export class Projects {
614
545
  * @throws {AppwriteException}
615
546
  * @returns {Promise<Models.Project>}
616
547
  */
617
- async updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project> {
548
+ updateAuthPasswordHistory(projectId: string, limit: number): Promise<Models.Project> {
618
549
  if (typeof projectId === 'undefined') {
619
550
  throw new AppwriteException('Missing required parameter: "projectId"');
620
551
  }
@@ -632,10 +563,7 @@ export class Projects {
632
563
  'content-type': 'application/json',
633
564
  }
634
565
 
635
- payload['project'] = this.client.config.project;
636
-
637
-
638
- return await this.client.call(
566
+ return this.client.call(
639
567
  'patch',
640
568
  uri,
641
569
  apiHeaders,
@@ -643,8 +571,6 @@ export class Projects {
643
571
  );
644
572
  }
645
573
  /**
646
- * Enable or disable checking user passwords for similarity with their personal data.
647
- *
648
574
  * Enable or disable checking user passwords against their personal data. This helps prevent users from using personal information in their passwords.
649
575
  *
650
576
  * @param {string} projectId
@@ -652,7 +578,7 @@ export class Projects {
652
578
  * @throws {AppwriteException}
653
579
  * @returns {Promise<Models.Project>}
654
580
  */
655
- async updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project> {
581
+ updatePersonalDataCheck(projectId: string, enabled: boolean): Promise<Models.Project> {
656
582
  if (typeof projectId === 'undefined') {
657
583
  throw new AppwriteException('Missing required parameter: "projectId"');
658
584
  }
@@ -670,10 +596,7 @@ export class Projects {
670
596
  'content-type': 'application/json',
671
597
  }
672
598
 
673
- payload['project'] = this.client.config.project;
674
-
675
-
676
- return await this.client.call(
599
+ return this.client.call(
677
600
  'patch',
678
601
  uri,
679
602
  apiHeaders,
@@ -681,8 +604,6 @@ export class Projects {
681
604
  );
682
605
  }
683
606
  /**
684
- * Update project sessions emails
685
- *
686
607
  * Enable or disable session email alerts. When enabled, users will receive email notifications when new sessions are created.
687
608
  *
688
609
  * @param {string} projectId
@@ -690,7 +611,7 @@ export class Projects {
690
611
  * @throws {AppwriteException}
691
612
  * @returns {Promise<Models.Project>}
692
613
  */
693
- async updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project> {
614
+ updateSessionAlerts(projectId: string, alerts: boolean): Promise<Models.Project> {
694
615
  if (typeof projectId === 'undefined') {
695
616
  throw new AppwriteException('Missing required parameter: "projectId"');
696
617
  }
@@ -708,10 +629,7 @@ export class Projects {
708
629
  'content-type': 'application/json',
709
630
  }
710
631
 
711
- payload['project'] = this.client.config.project;
712
-
713
-
714
- return await this.client.call(
632
+ return this.client.call(
715
633
  'patch',
716
634
  uri,
717
635
  apiHeaders,
@@ -719,8 +637,6 @@ export class Projects {
719
637
  );
720
638
  }
721
639
  /**
722
- * Update project auth method status. Use this endpoint to enable or disable a given auth method for this project.
723
- *
724
640
  * 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.
725
641
  *
726
642
  * @param {string} projectId
@@ -729,7 +645,7 @@ export class Projects {
729
645
  * @throws {AppwriteException}
730
646
  * @returns {Promise<Models.Project>}
731
647
  */
732
- async updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project> {
648
+ updateAuthStatus(projectId: string, method: AuthMethod, status: boolean): Promise<Models.Project> {
733
649
  if (typeof projectId === 'undefined') {
734
650
  throw new AppwriteException('Missing required parameter: "projectId"');
735
651
  }
@@ -750,19 +666,186 @@ export class Projects {
750
666
  'content-type': 'application/json',
751
667
  }
752
668
 
753
- payload['project'] = this.client.config.project;
669
+ return this.client.call(
670
+ 'patch',
671
+ uri,
672
+ apiHeaders,
673
+ payload
674
+ );
675
+ }
676
+ /**
677
+ * List all the project\&#039;s dev keys. Dev keys are project specific and allow you to bypass rate limits and get better error logging during development.&#039;
678
+ *
679
+ * @param {string} projectId
680
+ * @param {string[]} queries
681
+ * @throws {AppwriteException}
682
+ * @returns {Promise<Models.DevKeyList>}
683
+ */
684
+ listDevKeys(projectId: string, queries?: string[]): Promise<Models.DevKeyList> {
685
+ if (typeof projectId === 'undefined') {
686
+ throw new AppwriteException('Missing required parameter: "projectId"');
687
+ }
688
+ const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', projectId);
689
+ const payload: Payload = {};
690
+ if (typeof queries !== 'undefined') {
691
+ payload['queries'] = queries;
692
+ }
693
+ const uri = new URL(this.client.config.endpoint + apiPath);
694
+
695
+ const apiHeaders: { [header: string]: string } = {
696
+ }
697
+
698
+ return this.client.call(
699
+ 'get',
700
+ uri,
701
+ apiHeaders,
702
+ payload
703
+ );
704
+ }
705
+ /**
706
+ * 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.
707
+ *
708
+ * @param {string} projectId
709
+ * @param {string} name
710
+ * @param {string} expire
711
+ * @throws {AppwriteException}
712
+ * @returns {Promise<Models.DevKey>}
713
+ */
714
+ createDevKey(projectId: string, name: string, expire: string): Promise<Models.DevKey> {
715
+ if (typeof projectId === 'undefined') {
716
+ throw new AppwriteException('Missing required parameter: "projectId"');
717
+ }
718
+ if (typeof name === 'undefined') {
719
+ throw new AppwriteException('Missing required parameter: "name"');
720
+ }
721
+ if (typeof expire === 'undefined') {
722
+ throw new AppwriteException('Missing required parameter: "expire"');
723
+ }
724
+ const apiPath = '/projects/{projectId}/dev-keys'.replace('{projectId}', projectId);
725
+ const payload: Payload = {};
726
+ if (typeof name !== 'undefined') {
727
+ payload['name'] = name;
728
+ }
729
+ if (typeof expire !== 'undefined') {
730
+ payload['expire'] = expire;
731
+ }
732
+ const uri = new URL(this.client.config.endpoint + apiPath);
733
+
734
+ const apiHeaders: { [header: string]: string } = {
735
+ 'content-type': 'application/json',
736
+ }
737
+
738
+ return this.client.call(
739
+ 'post',
740
+ uri,
741
+ apiHeaders,
742
+ payload
743
+ );
744
+ }
745
+ /**
746
+ * Get a project\&#039;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.
747
+ *
748
+ * @param {string} projectId
749
+ * @param {string} keyId
750
+ * @throws {AppwriteException}
751
+ * @returns {Promise<Models.DevKey>}
752
+ */
753
+ getDevKey(projectId: string, keyId: string): Promise<Models.DevKey> {
754
+ if (typeof projectId === 'undefined') {
755
+ throw new AppwriteException('Missing required parameter: "projectId"');
756
+ }
757
+ if (typeof keyId === 'undefined') {
758
+ throw new AppwriteException('Missing required parameter: "keyId"');
759
+ }
760
+ const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
761
+ const payload: Payload = {};
762
+ const uri = new URL(this.client.config.endpoint + apiPath);
754
763
 
764
+ const apiHeaders: { [header: string]: string } = {
765
+ }
755
766
 
756
- return await this.client.call(
757
- 'patch',
767
+ return this.client.call(
768
+ 'get',
769
+ uri,
770
+ apiHeaders,
771
+ payload
772
+ );
773
+ }
774
+ /**
775
+ * Update a project\&#039;s dev key by its unique ID. Use this endpoint to update a project\&#039;s dev key name or expiration time.&#039;
776
+ *
777
+ * @param {string} projectId
778
+ * @param {string} keyId
779
+ * @param {string} name
780
+ * @param {string} expire
781
+ * @throws {AppwriteException}
782
+ * @returns {Promise<Models.DevKey>}
783
+ */
784
+ updateDevKey(projectId: string, keyId: string, name: string, expire: string): Promise<Models.DevKey> {
785
+ if (typeof projectId === 'undefined') {
786
+ throw new AppwriteException('Missing required parameter: "projectId"');
787
+ }
788
+ if (typeof keyId === 'undefined') {
789
+ throw new AppwriteException('Missing required parameter: "keyId"');
790
+ }
791
+ if (typeof name === 'undefined') {
792
+ throw new AppwriteException('Missing required parameter: "name"');
793
+ }
794
+ if (typeof expire === 'undefined') {
795
+ throw new AppwriteException('Missing required parameter: "expire"');
796
+ }
797
+ const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
798
+ const payload: Payload = {};
799
+ if (typeof name !== 'undefined') {
800
+ payload['name'] = name;
801
+ }
802
+ if (typeof expire !== 'undefined') {
803
+ payload['expire'] = expire;
804
+ }
805
+ const uri = new URL(this.client.config.endpoint + apiPath);
806
+
807
+ const apiHeaders: { [header: string]: string } = {
808
+ 'content-type': 'application/json',
809
+ }
810
+
811
+ return this.client.call(
812
+ 'put',
758
813
  uri,
759
814
  apiHeaders,
760
815
  payload
761
816
  );
762
817
  }
763
818
  /**
764
- * Create JWT
819
+ * Delete a project\&#039;s dev key by its unique ID. Once deleted, the key will no longer allow bypassing of rate limits and better logging of errors.
765
820
  *
821
+ * @param {string} projectId
822
+ * @param {string} keyId
823
+ * @throws {AppwriteException}
824
+ * @returns {Promise<{}>}
825
+ */
826
+ deleteDevKey(projectId: string, keyId: string): Promise<{}> {
827
+ if (typeof projectId === 'undefined') {
828
+ throw new AppwriteException('Missing required parameter: "projectId"');
829
+ }
830
+ if (typeof keyId === 'undefined') {
831
+ throw new AppwriteException('Missing required parameter: "keyId"');
832
+ }
833
+ const apiPath = '/projects/{projectId}/dev-keys/{keyId}'.replace('{projectId}', projectId).replace('{keyId}', keyId);
834
+ const payload: Payload = {};
835
+ const uri = new URL(this.client.config.endpoint + apiPath);
836
+
837
+ const apiHeaders: { [header: string]: string } = {
838
+ 'content-type': 'application/json',
839
+ }
840
+
841
+ return this.client.call(
842
+ 'delete',
843
+ uri,
844
+ apiHeaders,
845
+ payload
846
+ );
847
+ }
848
+ /**
766
849
  * Create a new JWT token. This token can be used to authenticate users with custom scopes and expiration time.
767
850
  *
768
851
  * @param {string} projectId
@@ -771,7 +854,7 @@ export class Projects {
771
854
  * @throws {AppwriteException}
772
855
  * @returns {Promise<Models.Jwt>}
773
856
  */
774
- async createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt> {
857
+ createJWT(projectId: string, scopes: string[], duration?: number): Promise<Models.Jwt> {
775
858
  if (typeof projectId === 'undefined') {
776
859
  throw new AppwriteException('Missing required parameter: "projectId"');
777
860
  }
@@ -792,10 +875,7 @@ export class Projects {
792
875
  'content-type': 'application/json',
793
876
  }
794
877
 
795
- payload['project'] = this.client.config.project;
796
-
797
-
798
- return await this.client.call(
878
+ return this.client.call(
799
879
  'post',
800
880
  uri,
801
881
  apiHeaders,
@@ -803,15 +883,13 @@ export class Projects {
803
883
  );
804
884
  }
805
885
  /**
806
- * List keys
807
- *
808
886
  * Get a list of all API keys from the current project.
809
887
  *
810
888
  * @param {string} projectId
811
889
  * @throws {AppwriteException}
812
890
  * @returns {Promise<Models.KeyList>}
813
891
  */
814
- async listKeys(projectId: string): Promise<Models.KeyList> {
892
+ listKeys(projectId: string): Promise<Models.KeyList> {
815
893
  if (typeof projectId === 'undefined') {
816
894
  throw new AppwriteException('Missing required parameter: "projectId"');
817
895
  }
@@ -820,13 +898,9 @@ export class Projects {
820
898
  const uri = new URL(this.client.config.endpoint + apiPath);
821
899
 
822
900
  const apiHeaders: { [header: string]: string } = {
823
- 'content-type': 'application/json',
824
901
  }
825
902
 
826
- payload['project'] = this.client.config.project;
827
-
828
-
829
- return await this.client.call(
903
+ return this.client.call(
830
904
  'get',
831
905
  uri,
832
906
  apiHeaders,
@@ -834,8 +908,6 @@ export class Projects {
834
908
  );
835
909
  }
836
910
  /**
837
- * Create key
838
- *
839
911
  * Create a new API key. It&#039;s recommended to have multiple API keys with strict scopes for separate functions within your project.
840
912
  *
841
913
  * @param {string} projectId
@@ -845,7 +917,7 @@ export class Projects {
845
917
  * @throws {AppwriteException}
846
918
  * @returns {Promise<Models.Key>}
847
919
  */
848
- async createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key> {
920
+ createKey(projectId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key> {
849
921
  if (typeof projectId === 'undefined') {
850
922
  throw new AppwriteException('Missing required parameter: "projectId"');
851
923
  }
@@ -872,10 +944,7 @@ export class Projects {
872
944
  'content-type': 'application/json',
873
945
  }
874
946
 
875
- payload['project'] = this.client.config.project;
876
-
877
-
878
- return await this.client.call(
947
+ return this.client.call(
879
948
  'post',
880
949
  uri,
881
950
  apiHeaders,
@@ -883,8 +952,6 @@ export class Projects {
883
952
  );
884
953
  }
885
954
  /**
886
- * Get key
887
- *
888
955
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it&#039;s scopes.
889
956
  *
890
957
  * @param {string} projectId
@@ -892,7 +959,7 @@ export class Projects {
892
959
  * @throws {AppwriteException}
893
960
  * @returns {Promise<Models.Key>}
894
961
  */
895
- async getKey(projectId: string, keyId: string): Promise<Models.Key> {
962
+ getKey(projectId: string, keyId: string): Promise<Models.Key> {
896
963
  if (typeof projectId === 'undefined') {
897
964
  throw new AppwriteException('Missing required parameter: "projectId"');
898
965
  }
@@ -904,13 +971,9 @@ export class Projects {
904
971
  const uri = new URL(this.client.config.endpoint + apiPath);
905
972
 
906
973
  const apiHeaders: { [header: string]: string } = {
907
- 'content-type': 'application/json',
908
974
  }
909
975
 
910
- payload['project'] = this.client.config.project;
911
-
912
-
913
- return await this.client.call(
976
+ return this.client.call(
914
977
  'get',
915
978
  uri,
916
979
  apiHeaders,
@@ -918,8 +981,6 @@ export class Projects {
918
981
  );
919
982
  }
920
983
  /**
921
- * Update key
922
- *
923
984
  * Update a key by its unique ID. Use this endpoint to update the name, scopes, or expiration time of an API key.
924
985
  *
925
986
  * @param {string} projectId
@@ -930,7 +991,7 @@ export class Projects {
930
991
  * @throws {AppwriteException}
931
992
  * @returns {Promise<Models.Key>}
932
993
  */
933
- async updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key> {
994
+ updateKey(projectId: string, keyId: string, name: string, scopes: string[], expire?: string): Promise<Models.Key> {
934
995
  if (typeof projectId === 'undefined') {
935
996
  throw new AppwriteException('Missing required parameter: "projectId"');
936
997
  }
@@ -960,10 +1021,7 @@ export class Projects {
960
1021
  'content-type': 'application/json',
961
1022
  }
962
1023
 
963
- payload['project'] = this.client.config.project;
964
-
965
-
966
- return await this.client.call(
1024
+ return this.client.call(
967
1025
  'put',
968
1026
  uri,
969
1027
  apiHeaders,
@@ -971,8 +1029,6 @@ export class Projects {
971
1029
  );
972
1030
  }
973
1031
  /**
974
- * Delete key
975
- *
976
1032
  * Delete a key by its unique ID. Once deleted, the key can no longer be used to authenticate API calls.
977
1033
  *
978
1034
  * @param {string} projectId
@@ -980,7 +1036,7 @@ export class Projects {
980
1036
  * @throws {AppwriteException}
981
1037
  * @returns {Promise<{}>}
982
1038
  */
983
- async deleteKey(projectId: string, keyId: string): Promise<{}> {
1039
+ deleteKey(projectId: string, keyId: string): Promise<{}> {
984
1040
  if (typeof projectId === 'undefined') {
985
1041
  throw new AppwriteException('Missing required parameter: "projectId"');
986
1042
  }
@@ -995,10 +1051,7 @@ export class Projects {
995
1051
  'content-type': 'application/json',
996
1052
  }
997
1053
 
998
- payload['project'] = this.client.config.project;
999
-
1000
-
1001
- return await this.client.call(
1054
+ return this.client.call(
1002
1055
  'delete',
1003
1056
  uri,
1004
1057
  apiHeaders,
@@ -1006,8 +1059,6 @@ export class Projects {
1006
1059
  );
1007
1060
  }
1008
1061
  /**
1009
- * Update project OAuth2
1010
- *
1011
1062
  * Update the OAuth2 provider configurations. Use this endpoint to set up or update the OAuth2 provider credentials or enable/disable providers.
1012
1063
  *
1013
1064
  * @param {string} projectId
@@ -1018,7 +1069,7 @@ export class Projects {
1018
1069
  * @throws {AppwriteException}
1019
1070
  * @returns {Promise<Models.Project>}
1020
1071
  */
1021
- async updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project> {
1072
+ updateOAuth2(projectId: string, provider: OAuthProvider, appId?: string, secret?: string, enabled?: boolean): Promise<Models.Project> {
1022
1073
  if (typeof projectId === 'undefined') {
1023
1074
  throw new AppwriteException('Missing required parameter: "projectId"');
1024
1075
  }
@@ -1045,10 +1096,7 @@ export class Projects {
1045
1096
  'content-type': 'application/json',
1046
1097
  }
1047
1098
 
1048
- payload['project'] = this.client.config.project;
1049
-
1050
-
1051
- return await this.client.call(
1099
+ return this.client.call(
1052
1100
  'patch',
1053
1101
  uri,
1054
1102
  apiHeaders,
@@ -1056,15 +1104,13 @@ export class Projects {
1056
1104
  );
1057
1105
  }
1058
1106
  /**
1059
- * List platforms
1060
- *
1061
1107
  * Get a list of all platforms in the project. This endpoint returns an array of all platforms and their configurations.
1062
1108
  *
1063
1109
  * @param {string} projectId
1064
1110
  * @throws {AppwriteException}
1065
1111
  * @returns {Promise<Models.PlatformList>}
1066
1112
  */
1067
- async listPlatforms(projectId: string): Promise<Models.PlatformList> {
1113
+ listPlatforms(projectId: string): Promise<Models.PlatformList> {
1068
1114
  if (typeof projectId === 'undefined') {
1069
1115
  throw new AppwriteException('Missing required parameter: "projectId"');
1070
1116
  }
@@ -1073,13 +1119,9 @@ export class Projects {
1073
1119
  const uri = new URL(this.client.config.endpoint + apiPath);
1074
1120
 
1075
1121
  const apiHeaders: { [header: string]: string } = {
1076
- 'content-type': 'application/json',
1077
1122
  }
1078
1123
 
1079
- payload['project'] = this.client.config.project;
1080
-
1081
-
1082
- return await this.client.call(
1124
+ return this.client.call(
1083
1125
  'get',
1084
1126
  uri,
1085
1127
  apiHeaders,
@@ -1087,8 +1129,6 @@ export class Projects {
1087
1129
  );
1088
1130
  }
1089
1131
  /**
1090
- * Create platform
1091
- *
1092
1132
  * 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.
1093
1133
  *
1094
1134
  * @param {string} projectId
@@ -1100,7 +1140,7 @@ export class Projects {
1100
1140
  * @throws {AppwriteException}
1101
1141
  * @returns {Promise<Models.Platform>}
1102
1142
  */
1103
- async createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform> {
1143
+ createPlatform(projectId: string, type: PlatformType, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform> {
1104
1144
  if (typeof projectId === 'undefined') {
1105
1145
  throw new AppwriteException('Missing required parameter: "projectId"');
1106
1146
  }
@@ -1133,10 +1173,7 @@ export class Projects {
1133
1173
  'content-type': 'application/json',
1134
1174
  }
1135
1175
 
1136
- payload['project'] = this.client.config.project;
1137
-
1138
-
1139
- return await this.client.call(
1176
+ return this.client.call(
1140
1177
  'post',
1141
1178
  uri,
1142
1179
  apiHeaders,
@@ -1144,8 +1181,6 @@ export class Projects {
1144
1181
  );
1145
1182
  }
1146
1183
  /**
1147
- * Get platform
1148
- *
1149
1184
  * Get a platform by its unique ID. This endpoint returns the platform&#039;s details, including its name, type, and key configurations.
1150
1185
  *
1151
1186
  * @param {string} projectId
@@ -1153,7 +1188,7 @@ export class Projects {
1153
1188
  * @throws {AppwriteException}
1154
1189
  * @returns {Promise<Models.Platform>}
1155
1190
  */
1156
- async getPlatform(projectId: string, platformId: string): Promise<Models.Platform> {
1191
+ getPlatform(projectId: string, platformId: string): Promise<Models.Platform> {
1157
1192
  if (typeof projectId === 'undefined') {
1158
1193
  throw new AppwriteException('Missing required parameter: "projectId"');
1159
1194
  }
@@ -1165,13 +1200,9 @@ export class Projects {
1165
1200
  const uri = new URL(this.client.config.endpoint + apiPath);
1166
1201
 
1167
1202
  const apiHeaders: { [header: string]: string } = {
1168
- 'content-type': 'application/json',
1169
1203
  }
1170
1204
 
1171
- payload['project'] = this.client.config.project;
1172
-
1173
-
1174
- return await this.client.call(
1205
+ return this.client.call(
1175
1206
  'get',
1176
1207
  uri,
1177
1208
  apiHeaders,
@@ -1179,8 +1210,6 @@ export class Projects {
1179
1210
  );
1180
1211
  }
1181
1212
  /**
1182
- * Update platform
1183
- *
1184
1213
  * Update a platform by its unique ID. Use this endpoint to update the platform&#039;s name, key, platform store ID, or hostname.
1185
1214
  *
1186
1215
  * @param {string} projectId
@@ -1192,7 +1221,7 @@ export class Projects {
1192
1221
  * @throws {AppwriteException}
1193
1222
  * @returns {Promise<Models.Platform>}
1194
1223
  */
1195
- async updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform> {
1224
+ updatePlatform(projectId: string, platformId: string, name: string, key?: string, store?: string, hostname?: string): Promise<Models.Platform> {
1196
1225
  if (typeof projectId === 'undefined') {
1197
1226
  throw new AppwriteException('Missing required parameter: "projectId"');
1198
1227
  }
@@ -1222,10 +1251,7 @@ export class Projects {
1222
1251
  'content-type': 'application/json',
1223
1252
  }
1224
1253
 
1225
- payload['project'] = this.client.config.project;
1226
-
1227
-
1228
- return await this.client.call(
1254
+ return this.client.call(
1229
1255
  'put',
1230
1256
  uri,
1231
1257
  apiHeaders,
@@ -1233,8 +1259,6 @@ export class Projects {
1233
1259
  );
1234
1260
  }
1235
1261
  /**
1236
- * Delete platform
1237
- *
1238
1262
  * Delete a platform by its unique ID. This endpoint removes the platform and all its configurations from the project.
1239
1263
  *
1240
1264
  * @param {string} projectId
@@ -1242,7 +1266,7 @@ export class Projects {
1242
1266
  * @throws {AppwriteException}
1243
1267
  * @returns {Promise<{}>}
1244
1268
  */
1245
- async deletePlatform(projectId: string, platformId: string): Promise<{}> {
1269
+ deletePlatform(projectId: string, platformId: string): Promise<{}> {
1246
1270
  if (typeof projectId === 'undefined') {
1247
1271
  throw new AppwriteException('Missing required parameter: "projectId"');
1248
1272
  }
@@ -1257,10 +1281,7 @@ export class Projects {
1257
1281
  'content-type': 'application/json',
1258
1282
  }
1259
1283
 
1260
- payload['project'] = this.client.config.project;
1261
-
1262
-
1263
- return await this.client.call(
1284
+ return this.client.call(
1264
1285
  'delete',
1265
1286
  uri,
1266
1287
  apiHeaders,
@@ -1268,8 +1289,6 @@ export class Projects {
1268
1289
  );
1269
1290
  }
1270
1291
  /**
1271
- * Update service status
1272
- *
1273
1292
  * Update the status of a specific service. Use this endpoint to enable or disable a service in your project.
1274
1293
  *
1275
1294
  * @param {string} projectId
@@ -1278,7 +1297,7 @@ export class Projects {
1278
1297
  * @throws {AppwriteException}
1279
1298
  * @returns {Promise<Models.Project>}
1280
1299
  */
1281
- async updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project> {
1300
+ updateServiceStatus(projectId: string, service: ApiService, status: boolean): Promise<Models.Project> {
1282
1301
  if (typeof projectId === 'undefined') {
1283
1302
  throw new AppwriteException('Missing required parameter: "projectId"');
1284
1303
  }
@@ -1302,10 +1321,7 @@ export class Projects {
1302
1321
  'content-type': 'application/json',
1303
1322
  }
1304
1323
 
1305
- payload['project'] = this.client.config.project;
1306
-
1307
-
1308
- return await this.client.call(
1324
+ return this.client.call(
1309
1325
  'patch',
1310
1326
  uri,
1311
1327
  apiHeaders,
@@ -1313,8 +1329,6 @@ export class Projects {
1313
1329
  );
1314
1330
  }
1315
1331
  /**
1316
- * Update all service status
1317
- *
1318
1332
  * Update the status of all services. Use this endpoint to enable or disable all optional services at once.
1319
1333
  *
1320
1334
  * @param {string} projectId
@@ -1322,7 +1336,7 @@ export class Projects {
1322
1336
  * @throws {AppwriteException}
1323
1337
  * @returns {Promise<Models.Project>}
1324
1338
  */
1325
- async updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
1339
+ updateServiceStatusAll(projectId: string, status: boolean): Promise<Models.Project> {
1326
1340
  if (typeof projectId === 'undefined') {
1327
1341
  throw new AppwriteException('Missing required parameter: "projectId"');
1328
1342
  }
@@ -1340,10 +1354,7 @@ export class Projects {
1340
1354
  'content-type': 'application/json',
1341
1355
  }
1342
1356
 
1343
- payload['project'] = this.client.config.project;
1344
-
1345
-
1346
- return await this.client.call(
1357
+ return this.client.call(
1347
1358
  'patch',
1348
1359
  uri,
1349
1360
  apiHeaders,
@@ -1351,8 +1362,6 @@ export class Projects {
1351
1362
  );
1352
1363
  }
1353
1364
  /**
1354
- * Update SMTP
1355
- *
1356
1365
  * Update the SMTP configuration for your project. Use this endpoint to configure your project&#039;s SMTP provider with your custom settings for sending transactional emails.
1357
1366
  *
1358
1367
  * @param {string} projectId
@@ -1368,7 +1377,7 @@ export class Projects {
1368
1377
  * @throws {AppwriteException}
1369
1378
  * @returns {Promise<Models.Project>}
1370
1379
  */
1371
- async updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project> {
1380
+ updateSmtp(projectId: string, enabled: boolean, senderName?: string, senderEmail?: string, replyTo?: string, host?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<Models.Project> {
1372
1381
  if (typeof projectId === 'undefined') {
1373
1382
  throw new AppwriteException('Missing required parameter: "projectId"');
1374
1383
  }
@@ -1410,10 +1419,7 @@ export class Projects {
1410
1419
  'content-type': 'application/json',
1411
1420
  }
1412
1421
 
1413
- payload['project'] = this.client.config.project;
1414
-
1415
-
1416
- return await this.client.call(
1422
+ return this.client.call(
1417
1423
  'patch',
1418
1424
  uri,
1419
1425
  apiHeaders,
@@ -1421,8 +1427,6 @@ export class Projects {
1421
1427
  );
1422
1428
  }
1423
1429
  /**
1424
- * Create SMTP test
1425
- *
1426
1430
  * Send a test email to verify SMTP configuration.
1427
1431
  *
1428
1432
  * @param {string} projectId
@@ -1438,7 +1442,7 @@ export class Projects {
1438
1442
  * @throws {AppwriteException}
1439
1443
  * @returns {Promise<{}>}
1440
1444
  */
1441
- async createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}> {
1445
+ createSmtpTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}> {
1442
1446
  if (typeof projectId === 'undefined') {
1443
1447
  throw new AppwriteException('Missing required parameter: "projectId"');
1444
1448
  }
@@ -1489,10 +1493,7 @@ export class Projects {
1489
1493
  'content-type': 'application/json',
1490
1494
  }
1491
1495
 
1492
- payload['project'] = this.client.config.project;
1493
-
1494
-
1495
- return await this.client.call(
1496
+ return this.client.call(
1496
1497
  'post',
1497
1498
  uri,
1498
1499
  apiHeaders,
@@ -1500,8 +1501,6 @@ export class Projects {
1500
1501
  );
1501
1502
  }
1502
1503
  /**
1503
- * Update project team
1504
- *
1505
1504
  * Update the team ID of a project allowing for it to be transferred to another team.
1506
1505
  *
1507
1506
  * @param {string} projectId
@@ -1509,7 +1508,7 @@ export class Projects {
1509
1508
  * @throws {AppwriteException}
1510
1509
  * @returns {Promise<Models.Project>}
1511
1510
  */
1512
- async updateTeam(projectId: string, teamId: string): Promise<Models.Project> {
1511
+ updateTeam(projectId: string, teamId: string): Promise<Models.Project> {
1513
1512
  if (typeof projectId === 'undefined') {
1514
1513
  throw new AppwriteException('Missing required parameter: "projectId"');
1515
1514
  }
@@ -1527,10 +1526,7 @@ export class Projects {
1527
1526
  'content-type': 'application/json',
1528
1527
  }
1529
1528
 
1530
- payload['project'] = this.client.config.project;
1531
-
1532
-
1533
- return await this.client.call(
1529
+ return this.client.call(
1534
1530
  'patch',
1535
1531
  uri,
1536
1532
  apiHeaders,
@@ -1538,8 +1534,6 @@ export class Projects {
1538
1534
  );
1539
1535
  }
1540
1536
  /**
1541
- * Get custom email template
1542
- *
1543
1537
  * Get a custom email template for the specified locale and type. This endpoint returns the template content, subject, and other configuration details.
1544
1538
  *
1545
1539
  * @param {string} projectId
@@ -1548,7 +1542,7 @@ export class Projects {
1548
1542
  * @throws {AppwriteException}
1549
1543
  * @returns {Promise<Models.EmailTemplate>}
1550
1544
  */
1551
- async getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate> {
1545
+ getEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate> {
1552
1546
  if (typeof projectId === 'undefined') {
1553
1547
  throw new AppwriteException('Missing required parameter: "projectId"');
1554
1548
  }
@@ -1563,13 +1557,9 @@ export class Projects {
1563
1557
  const uri = new URL(this.client.config.endpoint + apiPath);
1564
1558
 
1565
1559
  const apiHeaders: { [header: string]: string } = {
1566
- 'content-type': 'application/json',
1567
1560
  }
1568
1561
 
1569
- payload['project'] = this.client.config.project;
1570
-
1571
-
1572
- return await this.client.call(
1562
+ return this.client.call(
1573
1563
  'get',
1574
1564
  uri,
1575
1565
  apiHeaders,
@@ -1577,8 +1567,6 @@ export class Projects {
1577
1567
  );
1578
1568
  }
1579
1569
  /**
1580
- * Update custom email templates
1581
- *
1582
1570
  * Update a custom email template for the specified locale and type. Use this endpoint to modify the content of your email templates.
1583
1571
  *
1584
1572
  * @param {string} projectId
@@ -1592,7 +1580,7 @@ export class Projects {
1592
1580
  * @throws {AppwriteException}
1593
1581
  * @returns {Promise<Models.EmailTemplate>}
1594
1582
  */
1595
- async updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate> {
1583
+ updateEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale, subject: string, message: string, senderName?: string, senderEmail?: string, replyTo?: string): Promise<Models.EmailTemplate> {
1596
1584
  if (typeof projectId === 'undefined') {
1597
1585
  throw new AppwriteException('Missing required parameter: "projectId"');
1598
1586
  }
@@ -1631,10 +1619,7 @@ export class Projects {
1631
1619
  'content-type': 'application/json',
1632
1620
  }
1633
1621
 
1634
- payload['project'] = this.client.config.project;
1635
-
1636
-
1637
- return await this.client.call(
1622
+ return this.client.call(
1638
1623
  'patch',
1639
1624
  uri,
1640
1625
  apiHeaders,
@@ -1642,8 +1627,6 @@ export class Projects {
1642
1627
  );
1643
1628
  }
1644
1629
  /**
1645
- * Reset custom email template
1646
- *
1647
1630
  * Reset a custom email template to its default value. This endpoint removes any custom content and restores the template to its original state.
1648
1631
  *
1649
1632
  * @param {string} projectId
@@ -1652,7 +1635,7 @@ export class Projects {
1652
1635
  * @throws {AppwriteException}
1653
1636
  * @returns {Promise<Models.EmailTemplate>}
1654
1637
  */
1655
- async deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate> {
1638
+ deleteEmailTemplate(projectId: string, type: EmailTemplateType, locale: EmailTemplateLocale): Promise<Models.EmailTemplate> {
1656
1639
  if (typeof projectId === 'undefined') {
1657
1640
  throw new AppwriteException('Missing required parameter: "projectId"');
1658
1641
  }
@@ -1670,10 +1653,7 @@ export class Projects {
1670
1653
  'content-type': 'application/json',
1671
1654
  }
1672
1655
 
1673
- payload['project'] = this.client.config.project;
1674
-
1675
-
1676
- return await this.client.call(
1656
+ return this.client.call(
1677
1657
  'delete',
1678
1658
  uri,
1679
1659
  apiHeaders,
@@ -1681,8 +1661,6 @@ export class Projects {
1681
1661
  );
1682
1662
  }
1683
1663
  /**
1684
- * Get custom SMS template
1685
- *
1686
1664
  * Get a custom SMS template for the specified locale and type returning it&#039;s contents.
1687
1665
  *
1688
1666
  * @param {string} projectId
@@ -1691,7 +1669,7 @@ export class Projects {
1691
1669
  * @throws {AppwriteException}
1692
1670
  * @returns {Promise<Models.SmsTemplate>}
1693
1671
  */
1694
- async getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate> {
1672
+ getSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate> {
1695
1673
  if (typeof projectId === 'undefined') {
1696
1674
  throw new AppwriteException('Missing required parameter: "projectId"');
1697
1675
  }
@@ -1706,13 +1684,9 @@ export class Projects {
1706
1684
  const uri = new URL(this.client.config.endpoint + apiPath);
1707
1685
 
1708
1686
  const apiHeaders: { [header: string]: string } = {
1709
- 'content-type': 'application/json',
1710
1687
  }
1711
1688
 
1712
- payload['project'] = this.client.config.project;
1713
-
1714
-
1715
- return await this.client.call(
1689
+ return this.client.call(
1716
1690
  'get',
1717
1691
  uri,
1718
1692
  apiHeaders,
@@ -1720,8 +1694,6 @@ export class Projects {
1720
1694
  );
1721
1695
  }
1722
1696
  /**
1723
- * Update custom SMS template
1724
- *
1725
1697
  * Update a custom SMS template for the specified locale and type. Use this endpoint to modify the content of your SMS templates.
1726
1698
  *
1727
1699
  * @param {string} projectId
@@ -1731,7 +1703,7 @@ export class Projects {
1731
1703
  * @throws {AppwriteException}
1732
1704
  * @returns {Promise<Models.SmsTemplate>}
1733
1705
  */
1734
- async updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate> {
1706
+ updateSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale, message: string): Promise<Models.SmsTemplate> {
1735
1707
  if (typeof projectId === 'undefined') {
1736
1708
  throw new AppwriteException('Missing required parameter: "projectId"');
1737
1709
  }
@@ -1755,10 +1727,7 @@ export class Projects {
1755
1727
  'content-type': 'application/json',
1756
1728
  }
1757
1729
 
1758
- payload['project'] = this.client.config.project;
1759
-
1760
-
1761
- return await this.client.call(
1730
+ return this.client.call(
1762
1731
  'patch',
1763
1732
  uri,
1764
1733
  apiHeaders,
@@ -1766,8 +1735,6 @@ export class Projects {
1766
1735
  );
1767
1736
  }
1768
1737
  /**
1769
- * Reset custom SMS template
1770
- *
1771
1738
  * Reset a custom SMS template to its default value. This endpoint removes any custom message and restores the template to its original state.
1772
1739
  *
1773
1740
  * @param {string} projectId
@@ -1776,7 +1743,7 @@ export class Projects {
1776
1743
  * @throws {AppwriteException}
1777
1744
  * @returns {Promise<Models.SmsTemplate>}
1778
1745
  */
1779
- async deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate> {
1746
+ deleteSmsTemplate(projectId: string, type: SmsTemplateType, locale: SmsTemplateLocale): Promise<Models.SmsTemplate> {
1780
1747
  if (typeof projectId === 'undefined') {
1781
1748
  throw new AppwriteException('Missing required parameter: "projectId"');
1782
1749
  }
@@ -1794,10 +1761,7 @@ export class Projects {
1794
1761
  'content-type': 'application/json',
1795
1762
  }
1796
1763
 
1797
- payload['project'] = this.client.config.project;
1798
-
1799
-
1800
- return await this.client.call(
1764
+ return this.client.call(
1801
1765
  'delete',
1802
1766
  uri,
1803
1767
  apiHeaders,
@@ -1805,15 +1769,13 @@ export class Projects {
1805
1769
  );
1806
1770
  }
1807
1771
  /**
1808
- * List webhooks
1809
- *
1810
1772
  * Get a list of all webhooks belonging to the project. You can use the query params to filter your results.
1811
1773
  *
1812
1774
  * @param {string} projectId
1813
1775
  * @throws {AppwriteException}
1814
1776
  * @returns {Promise<Models.WebhookList>}
1815
1777
  */
1816
- async listWebhooks(projectId: string): Promise<Models.WebhookList> {
1778
+ listWebhooks(projectId: string): Promise<Models.WebhookList> {
1817
1779
  if (typeof projectId === 'undefined') {
1818
1780
  throw new AppwriteException('Missing required parameter: "projectId"');
1819
1781
  }
@@ -1822,13 +1784,9 @@ export class Projects {
1822
1784
  const uri = new URL(this.client.config.endpoint + apiPath);
1823
1785
 
1824
1786
  const apiHeaders: { [header: string]: string } = {
1825
- 'content-type': 'application/json',
1826
1787
  }
1827
1788
 
1828
- payload['project'] = this.client.config.project;
1829
-
1830
-
1831
- return await this.client.call(
1789
+ return this.client.call(
1832
1790
  'get',
1833
1791
  uri,
1834
1792
  apiHeaders,
@@ -1836,8 +1794,6 @@ export class Projects {
1836
1794
  );
1837
1795
  }
1838
1796
  /**
1839
- * Create webhook
1840
- *
1841
1797
  * Create a new webhook. Use this endpoint to configure a URL that will receive events from Appwrite when specific events occur.
1842
1798
  *
1843
1799
  * @param {string} projectId
@@ -1851,7 +1807,7 @@ export class Projects {
1851
1807
  * @throws {AppwriteException}
1852
1808
  * @returns {Promise<Models.Webhook>}
1853
1809
  */
1854
- async createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook> {
1810
+ createWebhook(projectId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook> {
1855
1811
  if (typeof projectId === 'undefined') {
1856
1812
  throw new AppwriteException('Missing required parameter: "projectId"');
1857
1813
  }
@@ -1896,10 +1852,7 @@ export class Projects {
1896
1852
  'content-type': 'application/json',
1897
1853
  }
1898
1854
 
1899
- payload['project'] = this.client.config.project;
1900
-
1901
-
1902
- return await this.client.call(
1855
+ return this.client.call(
1903
1856
  'post',
1904
1857
  uri,
1905
1858
  apiHeaders,
@@ -1907,8 +1860,6 @@ export class Projects {
1907
1860
  );
1908
1861
  }
1909
1862
  /**
1910
- * Get webhook
1911
- *
1912
1863
  * Get a webhook by its unique ID. This endpoint returns details about a specific webhook configured for a project.
1913
1864
  *
1914
1865
  * @param {string} projectId
@@ -1916,7 +1867,7 @@ export class Projects {
1916
1867
  * @throws {AppwriteException}
1917
1868
  * @returns {Promise<Models.Webhook>}
1918
1869
  */
1919
- async getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook> {
1870
+ getWebhook(projectId: string, webhookId: string): Promise<Models.Webhook> {
1920
1871
  if (typeof projectId === 'undefined') {
1921
1872
  throw new AppwriteException('Missing required parameter: "projectId"');
1922
1873
  }
@@ -1928,13 +1879,9 @@ export class Projects {
1928
1879
  const uri = new URL(this.client.config.endpoint + apiPath);
1929
1880
 
1930
1881
  const apiHeaders: { [header: string]: string } = {
1931
- 'content-type': 'application/json',
1932
1882
  }
1933
1883
 
1934
- payload['project'] = this.client.config.project;
1935
-
1936
-
1937
- return await this.client.call(
1884
+ return this.client.call(
1938
1885
  'get',
1939
1886
  uri,
1940
1887
  apiHeaders,
@@ -1942,8 +1889,6 @@ export class Projects {
1942
1889
  );
1943
1890
  }
1944
1891
  /**
1945
- * Update webhook
1946
- *
1947
1892
  * Update a webhook by its unique ID. Use this endpoint to update the URL, events, or status of an existing webhook.
1948
1893
  *
1949
1894
  * @param {string} projectId
@@ -1958,7 +1903,7 @@ export class Projects {
1958
1903
  * @throws {AppwriteException}
1959
1904
  * @returns {Promise<Models.Webhook>}
1960
1905
  */
1961
- async updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook> {
1906
+ updateWebhook(projectId: string, webhookId: string, name: string, events: string[], url: string, security: boolean, enabled?: boolean, httpUser?: string, httpPass?: string): Promise<Models.Webhook> {
1962
1907
  if (typeof projectId === 'undefined') {
1963
1908
  throw new AppwriteException('Missing required parameter: "projectId"');
1964
1909
  }
@@ -2006,10 +1951,7 @@ export class Projects {
2006
1951
  'content-type': 'application/json',
2007
1952
  }
2008
1953
 
2009
- payload['project'] = this.client.config.project;
2010
-
2011
-
2012
- return await this.client.call(
1954
+ return this.client.call(
2013
1955
  'put',
2014
1956
  uri,
2015
1957
  apiHeaders,
@@ -2017,8 +1959,6 @@ export class Projects {
2017
1959
  );
2018
1960
  }
2019
1961
  /**
2020
- * Delete webhook
2021
- *
2022
1962
  * Delete a webhook by its unique ID. Once deleted, the webhook will no longer receive project events.
2023
1963
  *
2024
1964
  * @param {string} projectId
@@ -2026,7 +1966,7 @@ export class Projects {
2026
1966
  * @throws {AppwriteException}
2027
1967
  * @returns {Promise<{}>}
2028
1968
  */
2029
- async deleteWebhook(projectId: string, webhookId: string): Promise<{}> {
1969
+ deleteWebhook(projectId: string, webhookId: string): Promise<{}> {
2030
1970
  if (typeof projectId === 'undefined') {
2031
1971
  throw new AppwriteException('Missing required parameter: "projectId"');
2032
1972
  }
@@ -2041,10 +1981,7 @@ export class Projects {
2041
1981
  'content-type': 'application/json',
2042
1982
  }
2043
1983
 
2044
- payload['project'] = this.client.config.project;
2045
-
2046
-
2047
- return await this.client.call(
1984
+ return this.client.call(
2048
1985
  'delete',
2049
1986
  uri,
2050
1987
  apiHeaders,
@@ -2052,8 +1989,6 @@ export class Projects {
2052
1989
  );
2053
1990
  }
2054
1991
  /**
2055
- * Update webhook signature key
2056
- *
2057
1992
  * 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.
2058
1993
  *
2059
1994
  * @param {string} projectId
@@ -2061,7 +1996,7 @@ export class Projects {
2061
1996
  * @throws {AppwriteException}
2062
1997
  * @returns {Promise<Models.Webhook>}
2063
1998
  */
2064
- async updateWebhookSignature(projectId: string, webhookId: string): Promise<Models.Webhook> {
1999
+ updateWebhookSignature(projectId: string, webhookId: string): Promise<Models.Webhook> {
2065
2000
  if (typeof projectId === 'undefined') {
2066
2001
  throw new AppwriteException('Missing required parameter: "projectId"');
2067
2002
  }
@@ -2076,10 +2011,7 @@ export class Projects {
2076
2011
  'content-type': 'application/json',
2077
2012
  }
2078
2013
 
2079
- payload['project'] = this.client.config.project;
2080
-
2081
-
2082
- return await this.client.call(
2014
+ return this.client.call(
2083
2015
  'patch',
2084
2016
  uri,
2085
2017
  apiHeaders,