@appwrite.io/console 2.2.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (709) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/sdk.js +326 -194
  4. package/dist/cjs/sdk.js.map +1 -1
  5. package/dist/esm/sdk.js +327 -195
  6. package/dist/esm/sdk.js.map +1 -1
  7. package/dist/iife/sdk.js +326 -194
  8. package/docs/examples/account/create-anonymous-session.md +2 -0
  9. package/docs/examples/account/create-billing-address.md +2 -0
  10. package/docs/examples/account/create-email-password-session.md +2 -0
  11. package/docs/examples/account/create-email-token.md +2 -0
  12. package/docs/examples/account/create-email-verification.md +2 -0
  13. package/docs/examples/account/create-jwt.md +2 -0
  14. package/docs/examples/account/create-key.md +2 -0
  15. package/docs/examples/account/create-magic-url-token.md +2 -0
  16. package/docs/examples/account/create-mfa-authenticator.md +2 -0
  17. package/docs/examples/account/create-mfa-challenge.md +2 -0
  18. package/docs/examples/account/create-mfa-recovery-codes.md +2 -0
  19. package/docs/examples/account/create-o-auth-2-session.md +2 -0
  20. package/docs/examples/account/create-o-auth-2-token.md +2 -0
  21. package/docs/examples/account/create-payment-method.md +2 -0
  22. package/docs/examples/account/create-phone-token.md +2 -0
  23. package/docs/examples/account/create-phone-verification.md +2 -0
  24. package/docs/examples/account/create-push-target.md +2 -0
  25. package/docs/examples/account/create-recovery.md +2 -0
  26. package/docs/examples/account/create-session.md +2 -0
  27. package/docs/examples/account/create-verification.md +2 -0
  28. package/docs/examples/account/create.md +2 -0
  29. package/docs/examples/account/delete-billing-address.md +2 -0
  30. package/docs/examples/account/delete-identity.md +2 -0
  31. package/docs/examples/account/delete-key.md +2 -0
  32. package/docs/examples/account/delete-mfa-authenticator.md +2 -0
  33. package/docs/examples/account/delete-payment-method.md +2 -0
  34. package/docs/examples/account/delete-push-target.md +2 -0
  35. package/docs/examples/account/delete-session.md +2 -0
  36. package/docs/examples/account/delete-sessions.md +2 -0
  37. package/docs/examples/account/delete.md +2 -0
  38. package/docs/examples/account/get-billing-address.md +2 -0
  39. package/docs/examples/account/get-coupon.md +2 -0
  40. package/docs/examples/account/get-key.md +2 -0
  41. package/docs/examples/account/get-mfa-recovery-codes.md +2 -0
  42. package/docs/examples/account/get-payment-method.md +2 -0
  43. package/docs/examples/account/get-prefs.md +2 -0
  44. package/docs/examples/account/get-session.md +2 -0
  45. package/docs/examples/account/get.md +2 -0
  46. package/docs/examples/account/list-billing-addresses.md +2 -0
  47. package/docs/examples/account/list-identities.md +2 -0
  48. package/docs/examples/account/list-invoices.md +2 -0
  49. package/docs/examples/account/list-keys.md +2 -0
  50. package/docs/examples/account/list-logs.md +2 -0
  51. package/docs/examples/account/list-mfa-factors.md +2 -0
  52. package/docs/examples/account/list-payment-methods.md +2 -0
  53. package/docs/examples/account/list-sessions.md +2 -0
  54. package/docs/examples/account/update-billing-address.md +2 -0
  55. package/docs/examples/account/update-email-verification.md +2 -0
  56. package/docs/examples/account/update-email.md +2 -0
  57. package/docs/examples/account/update-key.md +2 -0
  58. package/docs/examples/account/update-magic-url-session.md +2 -0
  59. package/docs/examples/account/update-mfa-authenticator.md +2 -0
  60. package/docs/examples/account/update-mfa-challenge.md +2 -0
  61. package/docs/examples/account/update-mfa-recovery-codes.md +2 -0
  62. package/docs/examples/account/update-mfa.md +2 -0
  63. package/docs/examples/account/update-name.md +2 -0
  64. package/docs/examples/account/update-password.md +2 -0
  65. package/docs/examples/account/update-payment-method-mandate-options.md +2 -0
  66. package/docs/examples/account/update-payment-method-provider.md +2 -0
  67. package/docs/examples/account/update-payment-method.md +2 -0
  68. package/docs/examples/account/update-phone-session.md +2 -0
  69. package/docs/examples/account/update-phone-verification.md +2 -0
  70. package/docs/examples/account/update-phone.md +2 -0
  71. package/docs/examples/account/update-prefs.md +2 -0
  72. package/docs/examples/account/update-push-target.md +2 -0
  73. package/docs/examples/account/update-recovery.md +2 -0
  74. package/docs/examples/account/update-session.md +2 -0
  75. package/docs/examples/account/update-status.md +2 -0
  76. package/docs/examples/account/update-verification.md +2 -0
  77. package/docs/examples/assistant/chat.md +2 -0
  78. package/docs/examples/avatars/get-browser.md +2 -0
  79. package/docs/examples/avatars/get-credit-card.md +2 -0
  80. package/docs/examples/avatars/get-favicon.md +2 -0
  81. package/docs/examples/avatars/get-flag.md +2 -0
  82. package/docs/examples/avatars/get-image.md +2 -0
  83. package/docs/examples/avatars/get-initials.md +2 -0
  84. package/docs/examples/avatars/get-qr.md +2 -0
  85. package/docs/examples/avatars/get-screenshot.md +2 -0
  86. package/docs/examples/backups/create-archive.md +4 -2
  87. package/docs/examples/backups/create-policy.md +4 -2
  88. package/docs/examples/backups/create-restoration.md +4 -2
  89. package/docs/examples/backups/delete-archive.md +2 -0
  90. package/docs/examples/backups/delete-policy.md +2 -0
  91. package/docs/examples/backups/get-archive.md +2 -0
  92. package/docs/examples/backups/get-policy.md +2 -0
  93. package/docs/examples/backups/get-restoration.md +2 -0
  94. package/docs/examples/backups/list-archives.md +2 -0
  95. package/docs/examples/backups/list-policies.md +2 -0
  96. package/docs/examples/backups/list-restorations.md +2 -0
  97. package/docs/examples/backups/update-policy.md +2 -0
  98. package/docs/examples/console/create-program-membership.md +2 -0
  99. package/docs/examples/console/create-source.md +2 -0
  100. package/docs/examples/console/get-campaign.md +2 -0
  101. package/docs/examples/console/get-coupon.md +2 -0
  102. package/docs/examples/console/get-plan.md +2 -0
  103. package/docs/examples/console/get-plans.md +2 -0
  104. package/docs/examples/console/get-program.md +2 -0
  105. package/docs/examples/console/get-resource.md +2 -0
  106. package/docs/examples/console/list-regions.md +2 -0
  107. package/docs/examples/console/suggest-columns.md +2 -0
  108. package/docs/examples/console/suggest-indexes.md +2 -0
  109. package/docs/examples/console/variables.md +2 -0
  110. package/docs/examples/databases/create-boolean-attribute.md +2 -0
  111. package/docs/examples/databases/create-collection.md +2 -0
  112. package/docs/examples/databases/create-datetime-attribute.md +2 -0
  113. package/docs/examples/databases/create-document.md +2 -0
  114. package/docs/examples/databases/create-documents.md +2 -0
  115. package/docs/examples/databases/create-email-attribute.md +2 -0
  116. package/docs/examples/databases/create-enum-attribute.md +2 -0
  117. package/docs/examples/databases/create-float-attribute.md +2 -0
  118. package/docs/examples/databases/create-index.md +2 -0
  119. package/docs/examples/databases/create-integer-attribute.md +2 -0
  120. package/docs/examples/databases/create-ip-attribute.md +2 -0
  121. package/docs/examples/databases/create-line-attribute.md +2 -0
  122. package/docs/examples/databases/create-longtext-attribute.md +2 -0
  123. package/docs/examples/databases/create-mediumtext-attribute.md +2 -0
  124. package/docs/examples/databases/create-operations.md +2 -0
  125. package/docs/examples/databases/create-point-attribute.md +2 -0
  126. package/docs/examples/databases/create-polygon-attribute.md +2 -0
  127. package/docs/examples/databases/create-relationship-attribute.md +2 -0
  128. package/docs/examples/databases/create-string-attribute.md +2 -0
  129. package/docs/examples/databases/create-text-attribute.md +2 -0
  130. package/docs/examples/databases/create-transaction.md +2 -0
  131. package/docs/examples/databases/create-url-attribute.md +2 -0
  132. package/docs/examples/databases/create-varchar-attribute.md +2 -0
  133. package/docs/examples/databases/create.md +2 -0
  134. package/docs/examples/databases/decrement-document-attribute.md +2 -0
  135. package/docs/examples/databases/delete-attribute.md +2 -0
  136. package/docs/examples/databases/delete-collection.md +2 -0
  137. package/docs/examples/databases/delete-document.md +2 -0
  138. package/docs/examples/databases/delete-documents.md +2 -0
  139. package/docs/examples/databases/delete-index.md +2 -0
  140. package/docs/examples/databases/delete-transaction.md +2 -0
  141. package/docs/examples/databases/delete.md +2 -0
  142. package/docs/examples/databases/get-attribute.md +2 -0
  143. package/docs/examples/databases/get-collection-usage.md +2 -0
  144. package/docs/examples/databases/get-collection.md +2 -0
  145. package/docs/examples/databases/get-document.md +2 -0
  146. package/docs/examples/databases/get-index.md +2 -0
  147. package/docs/examples/databases/get-transaction.md +2 -0
  148. package/docs/examples/databases/get-usage.md +2 -0
  149. package/docs/examples/databases/get.md +2 -0
  150. package/docs/examples/databases/increment-document-attribute.md +2 -0
  151. package/docs/examples/databases/list-attributes.md +2 -0
  152. package/docs/examples/databases/list-collection-logs.md +2 -0
  153. package/docs/examples/databases/list-collections.md +2 -0
  154. package/docs/examples/databases/list-document-logs.md +2 -0
  155. package/docs/examples/databases/list-documents.md +2 -0
  156. package/docs/examples/databases/list-indexes.md +2 -0
  157. package/docs/examples/databases/list-logs.md +2 -0
  158. package/docs/examples/databases/list-transactions.md +2 -0
  159. package/docs/examples/databases/list-usage.md +2 -0
  160. package/docs/examples/databases/list.md +2 -0
  161. package/docs/examples/databases/update-boolean-attribute.md +2 -0
  162. package/docs/examples/databases/update-collection.md +2 -0
  163. package/docs/examples/databases/update-datetime-attribute.md +2 -0
  164. package/docs/examples/databases/update-document.md +2 -0
  165. package/docs/examples/databases/update-documents.md +2 -0
  166. package/docs/examples/databases/update-email-attribute.md +2 -0
  167. package/docs/examples/databases/update-enum-attribute.md +2 -0
  168. package/docs/examples/databases/update-float-attribute.md +2 -0
  169. package/docs/examples/databases/update-integer-attribute.md +2 -0
  170. package/docs/examples/databases/update-ip-attribute.md +2 -0
  171. package/docs/examples/databases/update-line-attribute.md +2 -0
  172. package/docs/examples/databases/update-longtext-attribute.md +2 -0
  173. package/docs/examples/databases/update-mediumtext-attribute.md +2 -0
  174. package/docs/examples/databases/update-point-attribute.md +2 -0
  175. package/docs/examples/databases/update-polygon-attribute.md +2 -0
  176. package/docs/examples/databases/update-relationship-attribute.md +2 -0
  177. package/docs/examples/databases/update-string-attribute.md +2 -0
  178. package/docs/examples/databases/update-text-attribute.md +2 -0
  179. package/docs/examples/databases/update-transaction.md +2 -0
  180. package/docs/examples/databases/update-url-attribute.md +2 -0
  181. package/docs/examples/databases/update-varchar-attribute.md +2 -0
  182. package/docs/examples/databases/update.md +2 -0
  183. package/docs/examples/databases/upsert-document.md +2 -0
  184. package/docs/examples/databases/upsert-documents.md +2 -0
  185. package/docs/examples/domains/create-preset-google-workspace.md +2 -0
  186. package/docs/examples/domains/create-preset-i-cloud.md +2 -0
  187. package/docs/examples/domains/create-preset-mailgun.md +2 -0
  188. package/docs/examples/domains/create-preset-outlook.md +2 -0
  189. package/docs/examples/domains/create-preset-proton-mail.md +2 -0
  190. package/docs/examples/domains/create-preset-zoho.md +2 -0
  191. package/docs/examples/domains/create-record-a.md +2 -0
  192. package/docs/examples/domains/create-record-aaaa.md +2 -0
  193. package/docs/examples/domains/create-record-alias.md +2 -0
  194. package/docs/examples/domains/create-record-caa.md +2 -0
  195. package/docs/examples/domains/create-record-cname.md +2 -0
  196. package/docs/examples/domains/create-record-https.md +2 -0
  197. package/docs/examples/domains/create-record-mx.md +2 -0
  198. package/docs/examples/domains/create-record-ns.md +2 -0
  199. package/docs/examples/domains/create-record-srv.md +2 -0
  200. package/docs/examples/domains/create-record-txt.md +2 -0
  201. package/docs/examples/domains/create.md +2 -0
  202. package/docs/examples/domains/delete-record.md +2 -0
  203. package/docs/examples/domains/delete.md +2 -0
  204. package/docs/examples/domains/get-preset-google-workspace.md +2 -0
  205. package/docs/examples/domains/get-preset-i-cloud.md +2 -0
  206. package/docs/examples/domains/get-preset-mailgun.md +2 -0
  207. package/docs/examples/domains/get-preset-outlook.md +2 -0
  208. package/docs/examples/domains/get-preset-proton-mail.md +2 -0
  209. package/docs/examples/domains/get-preset-zoho.md +2 -0
  210. package/docs/examples/domains/get-price.md +17 -0
  211. package/docs/examples/domains/get-record.md +2 -0
  212. package/docs/examples/domains/get-zone.md +2 -0
  213. package/docs/examples/domains/get.md +2 -0
  214. package/docs/examples/domains/list-records.md +2 -0
  215. package/docs/examples/domains/list-suggestions.md +2 -0
  216. package/docs/examples/domains/list.md +2 -0
  217. package/docs/examples/domains/update-nameservers.md +2 -0
  218. package/docs/examples/domains/update-record-a.md +2 -0
  219. package/docs/examples/domains/update-record-aaaa.md +2 -0
  220. package/docs/examples/domains/update-record-alias.md +2 -0
  221. package/docs/examples/domains/update-record-caa.md +2 -0
  222. package/docs/examples/domains/update-record-cname.md +2 -0
  223. package/docs/examples/domains/update-record-https.md +2 -0
  224. package/docs/examples/domains/update-record-mx.md +2 -0
  225. package/docs/examples/domains/update-record-ns.md +2 -0
  226. package/docs/examples/domains/update-record-srv.md +2 -0
  227. package/docs/examples/domains/update-record-txt.md +2 -0
  228. package/docs/examples/domains/update-team.md +2 -0
  229. package/docs/examples/domains/update-zone.md +2 -0
  230. package/docs/examples/functions/create-deployment.md +2 -0
  231. package/docs/examples/functions/create-duplicate-deployment.md +2 -0
  232. package/docs/examples/functions/create-execution.md +2 -0
  233. package/docs/examples/functions/create-template-deployment.md +2 -0
  234. package/docs/examples/functions/create-variable.md +2 -0
  235. package/docs/examples/functions/create-vcs-deployment.md +2 -0
  236. package/docs/examples/functions/create.md +2 -0
  237. package/docs/examples/functions/delete-deployment.md +2 -0
  238. package/docs/examples/functions/delete-execution.md +2 -0
  239. package/docs/examples/functions/delete-variable.md +2 -0
  240. package/docs/examples/functions/delete.md +2 -0
  241. package/docs/examples/functions/get-deployment-download.md +2 -0
  242. package/docs/examples/functions/get-deployment.md +2 -0
  243. package/docs/examples/functions/get-execution.md +2 -0
  244. package/docs/examples/functions/get-template.md +2 -0
  245. package/docs/examples/functions/get-usage.md +2 -0
  246. package/docs/examples/functions/get-variable.md +2 -0
  247. package/docs/examples/functions/get.md +2 -0
  248. package/docs/examples/functions/list-deployments.md +2 -0
  249. package/docs/examples/functions/list-executions.md +2 -0
  250. package/docs/examples/functions/list-runtimes.md +2 -0
  251. package/docs/examples/functions/list-specifications.md +2 -0
  252. package/docs/examples/functions/list-templates.md +2 -0
  253. package/docs/examples/functions/list-usage.md +2 -0
  254. package/docs/examples/functions/list-variables.md +2 -0
  255. package/docs/examples/functions/list.md +2 -0
  256. package/docs/examples/functions/update-deployment-status.md +2 -0
  257. package/docs/examples/functions/update-function-deployment.md +2 -0
  258. package/docs/examples/functions/update-variable.md +2 -0
  259. package/docs/examples/functions/update.md +2 -0
  260. package/docs/examples/graphql/mutation.md +2 -0
  261. package/docs/examples/graphql/query.md +2 -0
  262. package/docs/examples/health/get-antivirus.md +2 -0
  263. package/docs/examples/health/get-cache.md +2 -0
  264. package/docs/examples/health/get-certificate.md +2 -0
  265. package/docs/examples/health/get-db.md +2 -0
  266. package/docs/examples/health/get-failed-jobs.md +2 -0
  267. package/docs/examples/health/get-pub-sub.md +2 -0
  268. package/docs/examples/health/get-queue-audits.md +2 -0
  269. package/docs/examples/health/get-queue-billing-project-aggregation.md +2 -0
  270. package/docs/examples/health/get-queue-billing-team-aggregation.md +2 -0
  271. package/docs/examples/health/get-queue-builds.md +2 -0
  272. package/docs/examples/health/get-queue-certificates.md +2 -0
  273. package/docs/examples/health/get-queue-databases.md +2 -0
  274. package/docs/examples/health/get-queue-deletes.md +2 -0
  275. package/docs/examples/health/get-queue-functions.md +2 -0
  276. package/docs/examples/health/get-queue-logs.md +2 -0
  277. package/docs/examples/health/get-queue-mails.md +2 -0
  278. package/docs/examples/health/get-queue-messaging.md +2 -0
  279. package/docs/examples/health/get-queue-migrations.md +2 -0
  280. package/docs/examples/health/get-queue-priority-builds.md +2 -0
  281. package/docs/examples/health/get-queue-region-manager.md +2 -0
  282. package/docs/examples/health/get-queue-stats-resources.md +2 -0
  283. package/docs/examples/health/get-queue-threats.md +2 -0
  284. package/docs/examples/health/get-queue-usage.md +2 -0
  285. package/docs/examples/health/get-queue-webhooks.md +2 -0
  286. package/docs/examples/health/get-storage-local.md +2 -0
  287. package/docs/examples/health/get-storage.md +2 -0
  288. package/docs/examples/health/get-time.md +2 -0
  289. package/docs/examples/health/get.md +2 -0
  290. package/docs/examples/locale/get.md +2 -0
  291. package/docs/examples/locale/list-codes.md +2 -0
  292. package/docs/examples/locale/list-continents.md +2 -0
  293. package/docs/examples/locale/list-countries-eu.md +2 -0
  294. package/docs/examples/locale/list-countries-phones.md +2 -0
  295. package/docs/examples/locale/list-countries.md +2 -0
  296. package/docs/examples/locale/list-currencies.md +2 -0
  297. package/docs/examples/locale/list-languages.md +2 -0
  298. package/docs/examples/messaging/create-apns-provider.md +2 -0
  299. package/docs/examples/messaging/create-email.md +2 -0
  300. package/docs/examples/messaging/create-fcm-provider.md +2 -0
  301. package/docs/examples/messaging/create-mailgun-provider.md +2 -0
  302. package/docs/examples/messaging/create-msg-91-provider.md +2 -0
  303. package/docs/examples/messaging/create-push.md +2 -0
  304. package/docs/examples/messaging/create-resend-provider.md +2 -0
  305. package/docs/examples/messaging/create-sendgrid-provider.md +2 -0
  306. package/docs/examples/messaging/create-sms.md +2 -0
  307. package/docs/examples/messaging/create-smtp-provider.md +2 -0
  308. package/docs/examples/messaging/create-subscriber.md +2 -0
  309. package/docs/examples/messaging/create-telesign-provider.md +2 -0
  310. package/docs/examples/messaging/create-textmagic-provider.md +2 -0
  311. package/docs/examples/messaging/create-topic.md +2 -0
  312. package/docs/examples/messaging/create-twilio-provider.md +2 -0
  313. package/docs/examples/messaging/create-vonage-provider.md +2 -0
  314. package/docs/examples/messaging/delete-provider.md +2 -0
  315. package/docs/examples/messaging/delete-subscriber.md +2 -0
  316. package/docs/examples/messaging/delete-topic.md +2 -0
  317. package/docs/examples/messaging/delete.md +2 -0
  318. package/docs/examples/messaging/get-message.md +2 -0
  319. package/docs/examples/messaging/get-provider.md +2 -0
  320. package/docs/examples/messaging/get-subscriber.md +2 -0
  321. package/docs/examples/messaging/get-topic.md +2 -0
  322. package/docs/examples/messaging/list-message-logs.md +2 -0
  323. package/docs/examples/messaging/list-messages.md +2 -0
  324. package/docs/examples/messaging/list-provider-logs.md +2 -0
  325. package/docs/examples/messaging/list-providers.md +2 -0
  326. package/docs/examples/messaging/list-subscriber-logs.md +2 -0
  327. package/docs/examples/messaging/list-subscribers.md +2 -0
  328. package/docs/examples/messaging/list-targets.md +2 -0
  329. package/docs/examples/messaging/list-topic-logs.md +2 -0
  330. package/docs/examples/messaging/list-topics.md +2 -0
  331. package/docs/examples/messaging/update-apns-provider.md +2 -0
  332. package/docs/examples/messaging/update-email.md +2 -0
  333. package/docs/examples/messaging/update-fcm-provider.md +2 -0
  334. package/docs/examples/messaging/update-mailgun-provider.md +2 -0
  335. package/docs/examples/messaging/update-msg-91-provider.md +2 -0
  336. package/docs/examples/messaging/update-push.md +2 -0
  337. package/docs/examples/messaging/update-resend-provider.md +2 -0
  338. package/docs/examples/messaging/update-sendgrid-provider.md +2 -0
  339. package/docs/examples/messaging/update-sms.md +2 -0
  340. package/docs/examples/messaging/update-smtp-provider.md +2 -0
  341. package/docs/examples/messaging/update-telesign-provider.md +2 -0
  342. package/docs/examples/messaging/update-textmagic-provider.md +2 -0
  343. package/docs/examples/messaging/update-topic.md +2 -0
  344. package/docs/examples/messaging/update-twilio-provider.md +2 -0
  345. package/docs/examples/messaging/update-vonage-provider.md +2 -0
  346. package/docs/examples/migrations/create-appwrite-migration.md +2 -0
  347. package/docs/examples/migrations/create-csv-export.md +2 -0
  348. package/docs/examples/migrations/create-csv-import.md +2 -0
  349. package/docs/examples/migrations/create-firebase-migration.md +2 -0
  350. package/docs/examples/migrations/create-n-host-migration.md +2 -0
  351. package/docs/examples/migrations/create-supabase-migration.md +2 -0
  352. package/docs/examples/migrations/delete.md +2 -0
  353. package/docs/examples/migrations/get-appwrite-report.md +2 -0
  354. package/docs/examples/migrations/get-firebase-report.md +2 -0
  355. package/docs/examples/migrations/get-n-host-report.md +2 -0
  356. package/docs/examples/migrations/get-supabase-report.md +2 -0
  357. package/docs/examples/migrations/get.md +2 -0
  358. package/docs/examples/migrations/list.md +2 -0
  359. package/docs/examples/migrations/retry.md +2 -0
  360. package/docs/examples/organizations/add-credit.md +2 -0
  361. package/docs/examples/organizations/cancel-downgrade.md +2 -0
  362. package/docs/examples/organizations/create-downgrade-feedback.md +2 -0
  363. package/docs/examples/organizations/create-invoice-payment.md +2 -0
  364. package/docs/examples/organizations/create-key.md +2 -0
  365. package/docs/examples/organizations/create.md +2 -0
  366. package/docs/examples/organizations/delete-backup-payment-method.md +2 -0
  367. package/docs/examples/organizations/delete-billing-address.md +2 -0
  368. package/docs/examples/organizations/delete-default-payment-method.md +2 -0
  369. package/docs/examples/organizations/delete-key.md +2 -0
  370. package/docs/examples/organizations/delete.md +2 -0
  371. package/docs/examples/organizations/estimation-create-organization.md +2 -0
  372. package/docs/examples/organizations/estimation-delete-organization.md +2 -0
  373. package/docs/examples/organizations/estimation-update-plan.md +2 -0
  374. package/docs/examples/organizations/get-aggregation.md +2 -0
  375. package/docs/examples/organizations/get-available-credits.md +2 -0
  376. package/docs/examples/organizations/get-billing-address.md +2 -0
  377. package/docs/examples/organizations/get-credit.md +2 -0
  378. package/docs/examples/organizations/get-invoice-download.md +2 -0
  379. package/docs/examples/organizations/get-invoice-view.md +2 -0
  380. package/docs/examples/organizations/get-invoice.md +2 -0
  381. package/docs/examples/organizations/get-key.md +2 -0
  382. package/docs/examples/organizations/get-payment-method.md +2 -0
  383. package/docs/examples/organizations/get-plan.md +2 -0
  384. package/docs/examples/organizations/get-scopes.md +2 -0
  385. package/docs/examples/organizations/get-usage.md +2 -0
  386. package/docs/examples/organizations/list-aggregations.md +2 -0
  387. package/docs/examples/organizations/list-credits.md +2 -0
  388. package/docs/examples/organizations/list-invoices.md +2 -0
  389. package/docs/examples/organizations/list-keys.md +2 -0
  390. package/docs/examples/organizations/list-regions.md +2 -0
  391. package/docs/examples/organizations/list.md +2 -0
  392. package/docs/examples/organizations/set-backup-payment-method.md +2 -0
  393. package/docs/examples/organizations/set-billing-address.md +2 -0
  394. package/docs/examples/organizations/set-billing-email.md +2 -0
  395. package/docs/examples/organizations/set-billing-tax-id.md +2 -0
  396. package/docs/examples/organizations/set-default-payment-method.md +2 -0
  397. package/docs/examples/organizations/update-budget.md +2 -0
  398. package/docs/examples/organizations/update-key.md +2 -0
  399. package/docs/examples/organizations/update-plan.md +2 -0
  400. package/docs/examples/organizations/validate-invoice.md +2 -0
  401. package/docs/examples/organizations/validate-payment.md +2 -0
  402. package/docs/examples/project/create-variable.md +2 -0
  403. package/docs/examples/project/delete-variable.md +2 -0
  404. package/docs/examples/project/get-usage.md +2 -0
  405. package/docs/examples/project/get-variable.md +2 -0
  406. package/docs/examples/project/list-variables.md +2 -0
  407. package/docs/examples/project/update-variable.md +2 -0
  408. package/docs/examples/projects/create-dev-key.md +2 -0
  409. package/docs/examples/projects/create-jwt.md +2 -0
  410. package/docs/examples/projects/create-key.md +3 -0
  411. package/docs/examples/projects/create-platform.md +2 -0
  412. package/docs/examples/projects/create-smtp-test.md +2 -0
  413. package/docs/examples/projects/create-webhook.md +2 -0
  414. package/docs/examples/projects/create.md +2 -0
  415. package/docs/examples/projects/delete-dev-key.md +2 -0
  416. package/docs/examples/projects/delete-email-template.md +2 -0
  417. package/docs/examples/projects/delete-key.md +2 -0
  418. package/docs/examples/projects/delete-platform.md +2 -0
  419. package/docs/examples/projects/delete-sms-template.md +2 -0
  420. package/docs/examples/projects/delete-webhook.md +2 -0
  421. package/docs/examples/projects/delete.md +2 -0
  422. package/docs/examples/projects/get-dev-key.md +2 -0
  423. package/docs/examples/projects/get-email-template.md +2 -0
  424. package/docs/examples/projects/get-key.md +2 -0
  425. package/docs/examples/projects/get-platform.md +2 -0
  426. package/docs/examples/projects/get-sms-template.md +2 -0
  427. package/docs/examples/projects/get-webhook.md +2 -0
  428. package/docs/examples/projects/get.md +2 -0
  429. package/docs/examples/projects/list-dev-keys.md +2 -0
  430. package/docs/examples/projects/list-keys.md +3 -0
  431. package/docs/examples/projects/list-platforms.md +2 -0
  432. package/docs/examples/projects/list-webhooks.md +2 -0
  433. package/docs/examples/projects/list.md +2 -0
  434. package/docs/examples/projects/update-api-status-all.md +2 -0
  435. package/docs/examples/projects/update-api-status.md +2 -0
  436. package/docs/examples/projects/update-auth-duration.md +2 -0
  437. package/docs/examples/projects/update-auth-limit.md +2 -0
  438. package/docs/examples/projects/update-auth-password-dictionary.md +2 -0
  439. package/docs/examples/projects/update-auth-password-history.md +2 -0
  440. package/docs/examples/projects/update-auth-sessions-limit.md +2 -0
  441. package/docs/examples/projects/update-auth-status.md +2 -0
  442. package/docs/examples/projects/update-dev-key.md +2 -0
  443. package/docs/examples/projects/update-email-template.md +2 -0
  444. package/docs/examples/projects/update-key.md +2 -0
  445. package/docs/examples/projects/update-labels.md +2 -0
  446. package/docs/examples/projects/update-memberships-privacy.md +2 -0
  447. package/docs/examples/projects/update-mock-numbers.md +2 -0
  448. package/docs/examples/projects/update-o-auth-2.md +2 -0
  449. package/docs/examples/projects/update-personal-data-check.md +2 -0
  450. package/docs/examples/projects/update-platform.md +2 -0
  451. package/docs/examples/projects/update-service-status-all.md +2 -0
  452. package/docs/examples/projects/update-service-status.md +2 -0
  453. package/docs/examples/projects/update-session-alerts.md +2 -0
  454. package/docs/examples/projects/update-session-invalidation.md +2 -0
  455. package/docs/examples/projects/update-sms-template.md +2 -0
  456. package/docs/examples/projects/update-smtp.md +2 -0
  457. package/docs/examples/projects/update-team.md +2 -0
  458. package/docs/examples/projects/update-webhook-signature.md +2 -0
  459. package/docs/examples/projects/update-webhook.md +2 -0
  460. package/docs/examples/projects/update.md +2 -0
  461. package/docs/examples/proxy/create-api-rule.md +2 -0
  462. package/docs/examples/proxy/create-function-rule.md +2 -0
  463. package/docs/examples/proxy/create-redirect-rule.md +2 -0
  464. package/docs/examples/proxy/create-site-rule.md +2 -0
  465. package/docs/examples/proxy/delete-rule.md +2 -0
  466. package/docs/examples/proxy/get-rule.md +2 -0
  467. package/docs/examples/proxy/list-rules.md +2 -0
  468. package/docs/examples/proxy/update-rule-verification.md +2 -0
  469. package/docs/examples/sites/create-deployment.md +2 -0
  470. package/docs/examples/sites/create-duplicate-deployment.md +2 -0
  471. package/docs/examples/sites/create-template-deployment.md +2 -0
  472. package/docs/examples/sites/create-variable.md +2 -0
  473. package/docs/examples/sites/create-vcs-deployment.md +2 -0
  474. package/docs/examples/sites/create.md +2 -0
  475. package/docs/examples/sites/delete-deployment.md +2 -0
  476. package/docs/examples/sites/delete-log.md +2 -0
  477. package/docs/examples/sites/delete-variable.md +2 -0
  478. package/docs/examples/sites/delete.md +2 -0
  479. package/docs/examples/sites/get-deployment-download.md +2 -0
  480. package/docs/examples/sites/get-deployment.md +2 -0
  481. package/docs/examples/sites/get-log.md +2 -0
  482. package/docs/examples/sites/get-template.md +2 -0
  483. package/docs/examples/sites/get-usage.md +2 -0
  484. package/docs/examples/sites/get-variable.md +2 -0
  485. package/docs/examples/sites/get.md +2 -0
  486. package/docs/examples/sites/list-deployments.md +2 -0
  487. package/docs/examples/sites/list-frameworks.md +2 -0
  488. package/docs/examples/sites/list-logs.md +2 -0
  489. package/docs/examples/sites/list-specifications.md +2 -0
  490. package/docs/examples/sites/list-templates.md +2 -0
  491. package/docs/examples/sites/list-usage.md +2 -0
  492. package/docs/examples/sites/list-variables.md +2 -0
  493. package/docs/examples/sites/list.md +2 -0
  494. package/docs/examples/sites/update-deployment-status.md +2 -0
  495. package/docs/examples/sites/update-site-deployment.md +2 -0
  496. package/docs/examples/sites/update-variable.md +2 -0
  497. package/docs/examples/sites/update.md +2 -0
  498. package/docs/examples/storage/create-bucket.md +2 -0
  499. package/docs/examples/storage/create-file.md +2 -0
  500. package/docs/examples/storage/delete-bucket.md +2 -0
  501. package/docs/examples/storage/delete-file.md +2 -0
  502. package/docs/examples/storage/get-bucket-usage.md +2 -0
  503. package/docs/examples/storage/get-bucket.md +2 -0
  504. package/docs/examples/storage/get-file-download.md +2 -0
  505. package/docs/examples/storage/get-file-preview.md +2 -0
  506. package/docs/examples/storage/get-file-view.md +2 -0
  507. package/docs/examples/storage/get-file.md +2 -0
  508. package/docs/examples/storage/get-usage.md +2 -0
  509. package/docs/examples/storage/list-buckets.md +2 -0
  510. package/docs/examples/storage/list-files.md +2 -0
  511. package/docs/examples/storage/update-bucket.md +2 -0
  512. package/docs/examples/storage/update-file.md +2 -0
  513. package/docs/examples/tablesdb/create-boolean-column.md +2 -0
  514. package/docs/examples/tablesdb/create-datetime-column.md +2 -0
  515. package/docs/examples/tablesdb/create-email-column.md +2 -0
  516. package/docs/examples/tablesdb/create-enum-column.md +2 -0
  517. package/docs/examples/tablesdb/create-float-column.md +2 -0
  518. package/docs/examples/tablesdb/create-index.md +2 -0
  519. package/docs/examples/tablesdb/create-integer-column.md +2 -0
  520. package/docs/examples/tablesdb/create-ip-column.md +2 -0
  521. package/docs/examples/tablesdb/create-line-column.md +2 -0
  522. package/docs/examples/tablesdb/create-longtext-column.md +2 -0
  523. package/docs/examples/tablesdb/create-mediumtext-column.md +2 -0
  524. package/docs/examples/tablesdb/create-operations.md +2 -0
  525. package/docs/examples/tablesdb/create-point-column.md +2 -0
  526. package/docs/examples/tablesdb/create-polygon-column.md +2 -0
  527. package/docs/examples/tablesdb/create-relationship-column.md +2 -0
  528. package/docs/examples/tablesdb/create-row.md +2 -0
  529. package/docs/examples/tablesdb/create-rows.md +2 -0
  530. package/docs/examples/tablesdb/create-string-column.md +2 -0
  531. package/docs/examples/tablesdb/create-table.md +2 -0
  532. package/docs/examples/tablesdb/create-text-column.md +2 -0
  533. package/docs/examples/tablesdb/create-transaction.md +2 -0
  534. package/docs/examples/tablesdb/create-url-column.md +2 -0
  535. package/docs/examples/tablesdb/create-varchar-column.md +2 -0
  536. package/docs/examples/tablesdb/create.md +2 -0
  537. package/docs/examples/tablesdb/decrement-row-column.md +2 -0
  538. package/docs/examples/tablesdb/delete-column.md +2 -0
  539. package/docs/examples/tablesdb/delete-index.md +2 -0
  540. package/docs/examples/tablesdb/delete-row.md +2 -0
  541. package/docs/examples/tablesdb/delete-rows.md +2 -0
  542. package/docs/examples/tablesdb/delete-table.md +2 -0
  543. package/docs/examples/tablesdb/delete-transaction.md +2 -0
  544. package/docs/examples/tablesdb/delete.md +2 -0
  545. package/docs/examples/tablesdb/get-column.md +2 -0
  546. package/docs/examples/tablesdb/get-index.md +2 -0
  547. package/docs/examples/tablesdb/get-row.md +2 -0
  548. package/docs/examples/tablesdb/get-table-usage.md +2 -0
  549. package/docs/examples/tablesdb/get-table.md +2 -0
  550. package/docs/examples/tablesdb/get-transaction.md +2 -0
  551. package/docs/examples/tablesdb/get-usage.md +2 -0
  552. package/docs/examples/tablesdb/get.md +2 -0
  553. package/docs/examples/tablesdb/increment-row-column.md +2 -0
  554. package/docs/examples/tablesdb/list-columns.md +2 -0
  555. package/docs/examples/tablesdb/list-indexes.md +2 -0
  556. package/docs/examples/tablesdb/list-row-logs.md +2 -0
  557. package/docs/examples/tablesdb/list-rows.md +2 -0
  558. package/docs/examples/tablesdb/list-table-logs.md +2 -0
  559. package/docs/examples/tablesdb/list-tables.md +2 -0
  560. package/docs/examples/tablesdb/list-transactions.md +2 -0
  561. package/docs/examples/tablesdb/list-usage.md +2 -0
  562. package/docs/examples/tablesdb/list.md +2 -0
  563. package/docs/examples/tablesdb/update-boolean-column.md +2 -0
  564. package/docs/examples/tablesdb/update-datetime-column.md +2 -0
  565. package/docs/examples/tablesdb/update-email-column.md +2 -0
  566. package/docs/examples/tablesdb/update-enum-column.md +2 -0
  567. package/docs/examples/tablesdb/update-float-column.md +2 -0
  568. package/docs/examples/tablesdb/update-integer-column.md +2 -0
  569. package/docs/examples/tablesdb/update-ip-column.md +2 -0
  570. package/docs/examples/tablesdb/update-line-column.md +2 -0
  571. package/docs/examples/tablesdb/update-longtext-column.md +2 -0
  572. package/docs/examples/tablesdb/update-mediumtext-column.md +2 -0
  573. package/docs/examples/tablesdb/update-point-column.md +2 -0
  574. package/docs/examples/tablesdb/update-polygon-column.md +2 -0
  575. package/docs/examples/tablesdb/update-relationship-column.md +2 -0
  576. package/docs/examples/tablesdb/update-row.md +2 -0
  577. package/docs/examples/tablesdb/update-rows.md +2 -0
  578. package/docs/examples/tablesdb/update-string-column.md +2 -0
  579. package/docs/examples/tablesdb/update-table.md +2 -0
  580. package/docs/examples/tablesdb/update-text-column.md +2 -0
  581. package/docs/examples/tablesdb/update-transaction.md +2 -0
  582. package/docs/examples/tablesdb/update-url-column.md +2 -0
  583. package/docs/examples/tablesdb/update-varchar-column.md +2 -0
  584. package/docs/examples/tablesdb/update.md +2 -0
  585. package/docs/examples/tablesdb/upsert-row.md +2 -0
  586. package/docs/examples/tablesdb/upsert-rows.md +2 -0
  587. package/docs/examples/teams/create-membership.md +4 -2
  588. package/docs/examples/teams/create.md +2 -0
  589. package/docs/examples/teams/delete-membership.md +2 -0
  590. package/docs/examples/teams/delete.md +2 -0
  591. package/docs/examples/teams/get-membership.md +2 -0
  592. package/docs/examples/teams/get-prefs.md +2 -0
  593. package/docs/examples/teams/get.md +2 -0
  594. package/docs/examples/teams/list-logs.md +2 -0
  595. package/docs/examples/teams/list-memberships.md +2 -0
  596. package/docs/examples/teams/list.md +2 -0
  597. package/docs/examples/teams/update-membership-status.md +2 -0
  598. package/docs/examples/teams/update-membership.md +4 -2
  599. package/docs/examples/teams/update-name.md +2 -0
  600. package/docs/examples/teams/update-prefs.md +2 -0
  601. package/docs/examples/tokens/create-file-token.md +2 -0
  602. package/docs/examples/tokens/delete.md +2 -0
  603. package/docs/examples/tokens/get.md +2 -0
  604. package/docs/examples/tokens/list.md +2 -0
  605. package/docs/examples/tokens/update.md +2 -0
  606. package/docs/examples/users/create-argon-2-user.md +2 -0
  607. package/docs/examples/users/create-bcrypt-user.md +2 -0
  608. package/docs/examples/users/create-jwt.md +2 -0
  609. package/docs/examples/users/create-md-5-user.md +2 -0
  610. package/docs/examples/users/create-mfa-recovery-codes.md +2 -0
  611. package/docs/examples/users/create-ph-pass-user.md +2 -0
  612. package/docs/examples/users/create-scrypt-modified-user.md +2 -0
  613. package/docs/examples/users/create-scrypt-user.md +2 -0
  614. package/docs/examples/users/create-session.md +2 -0
  615. package/docs/examples/users/create-sha-user.md +2 -0
  616. package/docs/examples/users/create-target.md +2 -0
  617. package/docs/examples/users/create-token.md +2 -0
  618. package/docs/examples/users/create.md +2 -0
  619. package/docs/examples/users/delete-identity.md +2 -0
  620. package/docs/examples/users/delete-mfa-authenticator.md +2 -0
  621. package/docs/examples/users/delete-session.md +2 -0
  622. package/docs/examples/users/delete-sessions.md +2 -0
  623. package/docs/examples/users/delete-target.md +2 -0
  624. package/docs/examples/users/delete.md +2 -0
  625. package/docs/examples/users/get-mfa-recovery-codes.md +2 -0
  626. package/docs/examples/users/get-prefs.md +2 -0
  627. package/docs/examples/users/get-target.md +2 -0
  628. package/docs/examples/users/get-usage.md +2 -0
  629. package/docs/examples/users/get.md +2 -0
  630. package/docs/examples/users/list-identities.md +2 -0
  631. package/docs/examples/users/list-logs.md +2 -0
  632. package/docs/examples/users/list-memberships.md +2 -0
  633. package/docs/examples/users/list-mfa-factors.md +2 -0
  634. package/docs/examples/users/list-sessions.md +2 -0
  635. package/docs/examples/users/list-targets.md +2 -0
  636. package/docs/examples/users/list.md +2 -0
  637. package/docs/examples/users/update-email-verification.md +2 -0
  638. package/docs/examples/users/update-email.md +2 -0
  639. package/docs/examples/users/update-labels.md +2 -0
  640. package/docs/examples/users/update-mfa-recovery-codes.md +2 -0
  641. package/docs/examples/users/update-mfa.md +2 -0
  642. package/docs/examples/users/update-name.md +2 -0
  643. package/docs/examples/users/update-password.md +2 -0
  644. package/docs/examples/users/update-phone-verification.md +2 -0
  645. package/docs/examples/users/update-phone.md +2 -0
  646. package/docs/examples/users/update-prefs.md +2 -0
  647. package/docs/examples/users/update-status.md +2 -0
  648. package/docs/examples/users/update-target.md +2 -0
  649. package/docs/examples/vcs/create-repository-detection.md +2 -0
  650. package/docs/examples/vcs/create-repository.md +2 -0
  651. package/docs/examples/vcs/delete-installation.md +2 -0
  652. package/docs/examples/vcs/get-installation.md +2 -0
  653. package/docs/examples/vcs/get-repository-contents.md +2 -0
  654. package/docs/examples/vcs/get-repository.md +2 -0
  655. package/docs/examples/vcs/list-installations.md +2 -0
  656. package/docs/examples/vcs/list-repositories.md +2 -0
  657. package/docs/examples/vcs/list-repository-branches.md +2 -0
  658. package/docs/examples/vcs/update-external-deployments.md +2 -0
  659. package/package.json +1 -1
  660. package/src/channel.ts +30 -18
  661. package/src/client.ts +108 -22
  662. package/src/enums/{services.ts → backup-services.ts} +1 -1
  663. package/src/enums/build-runtime.ts +5 -0
  664. package/src/enums/registration-type.ts +6 -0
  665. package/src/enums/runtime.ts +5 -0
  666. package/src/enums/runtimes.ts +5 -0
  667. package/src/enums/scopes.ts +1 -0
  668. package/src/index.ts +2 -3
  669. package/src/models.ts +45 -3
  670. package/src/services/account.ts +11 -11
  671. package/src/services/avatars.ts +3 -3
  672. package/src/services/backups.ts +28 -28
  673. package/src/services/console.ts +1 -1
  674. package/src/services/databases.ts +1 -1
  675. package/src/services/domains.ts +70 -0
  676. package/src/services/functions.ts +2 -2
  677. package/src/services/graphql.ts +2 -2
  678. package/src/services/health.ts +1 -1
  679. package/src/services/migrations.ts +8 -8
  680. package/src/services/organizations.ts +0 -60
  681. package/src/services/projects.ts +28 -78
  682. package/src/services/realtime.ts +135 -58
  683. package/src/services/sites.ts +2 -2
  684. package/src/services/storage.ts +1 -1
  685. package/src/services/tables-db.ts +1 -1
  686. package/src/services/teams.ts +18 -19
  687. package/src/services/users.ts +1 -1
  688. package/types/channel.d.ts +4 -3
  689. package/types/client.d.ts +7 -2
  690. package/types/enums/{services.d.ts → backup-services.d.ts} +1 -1
  691. package/types/enums/build-runtime.d.ts +6 -1
  692. package/types/enums/registration-type.d.ts +6 -0
  693. package/types/enums/runtime.d.ts +6 -1
  694. package/types/enums/runtimes.d.ts +6 -1
  695. package/types/enums/scopes.d.ts +2 -1
  696. package/types/index.d.ts +2 -3
  697. package/types/models.d.ts +44 -3
  698. package/types/services/backups.d.ts +13 -13
  699. package/types/services/domains.d.ts +26 -0
  700. package/types/services/organizations.d.ts +0 -22
  701. package/types/services/projects.d.ts +8 -25
  702. package/types/services/realtime.d.ts +13 -6
  703. package/types/services/teams.d.ts +8 -9
  704. package/docs/examples/organizations/update-projects.md +0 -14
  705. package/docs/examples/projects/update-status.md +0 -14
  706. package/src/enums/roles.ts +0 -7
  707. package/src/enums/status.ts +0 -4
  708. package/types/enums/roles.d.ts +0 -7
  709. package/types/enums/status.d.ts +0 -4
@@ -21,6 +21,9 @@ export declare enum Runtimes {
21
21
  Python312 = "python-3.12",
22
22
  Pythonml311 = "python-ml-3.11",
23
23
  Pythonml312 = "python-ml-3.12",
24
+ Deno121 = "deno-1.21",
25
+ Deno124 = "deno-1.24",
26
+ Deno135 = "deno-1.35",
24
27
  Deno140 = "deno-1.40",
25
28
  Deno146 = "deno-1.46",
26
29
  Deno20 = "deno-2.0",
@@ -35,6 +38,7 @@ export declare enum Runtimes {
35
38
  Dart35 = "dart-3.5",
36
39
  Dart38 = "dart-3.8",
37
40
  Dart39 = "dart-3.9",
41
+ Dart310 = "dart-3.10",
38
42
  Dotnet60 = "dotnet-6.0",
39
43
  Dotnet70 = "dotnet-7.0",
40
44
  Dotnet80 = "dotnet-8.0",
@@ -62,5 +66,6 @@ export declare enum Runtimes {
62
66
  Flutter327 = "flutter-3.27",
63
67
  Flutter329 = "flutter-3.29",
64
68
  Flutter332 = "flutter-3.32",
65
- Flutter335 = "flutter-3.35"
69
+ Flutter335 = "flutter-3.35",
70
+ Flutter338 = "flutter-3.38"
66
71
  }
@@ -61,5 +61,6 @@ export declare enum Scopes {
61
61
  RestorationsRead = "restorations.read",
62
62
  RestorationsWrite = "restorations.write",
63
63
  DomainsRead = "domains.read",
64
- DomainsWrite = "domains.write"
64
+ DomainsWrite = "domains.write",
65
+ EventsRead = "events.read"
65
66
  }
package/types/index.d.ts CHANGED
@@ -49,7 +49,7 @@ export { Theme } from './enums/theme';
49
49
  export { Timezone } from './enums/timezone';
50
50
  export { BrowserPermission } from './enums/browser-permission';
51
51
  export { ImageFormat } from './enums/image-format';
52
- export { Services } from './enums/services';
52
+ export { BackupServices } from './enums/backup-services';
53
53
  export { Platform } from './enums/platform';
54
54
  export { ConsoleResourceType } from './enums/console-resource-type';
55
55
  export { UsageRange } from './enums/usage-range';
@@ -57,6 +57,7 @@ export { RelationshipType } from './enums/relationship-type';
57
57
  export { RelationMutate } from './enums/relation-mutate';
58
58
  export { IndexType } from './enums/index-type';
59
59
  export { OrderBy } from './enums/order-by';
60
+ export { RegistrationType } from './enums/registration-type';
60
61
  export { FilterType } from './enums/filter-type';
61
62
  export { Runtime } from './enums/runtime';
62
63
  export { Runtimes } from './enums/runtimes';
@@ -76,7 +77,6 @@ export { AuthMethod } from './enums/auth-method';
76
77
  export { PlatformType } from './enums/platform-type';
77
78
  export { ApiService } from './enums/api-service';
78
79
  export { SMTPSecure } from './enums/smtp-secure';
79
- export { Status } from './enums/status';
80
80
  export { EmailTemplateType } from './enums/email-template-type';
81
81
  export { EmailTemplateLocale } from './enums/email-template-locale';
82
82
  export { SmsTemplateType } from './enums/sms-template-type';
@@ -89,7 +89,6 @@ export { Adapter } from './enums/adapter';
89
89
  export { Frameworks } from './enums/frameworks';
90
90
  export { Compression } from './enums/compression';
91
91
  export { ImageGravity } from './enums/image-gravity';
92
- export { Roles } from './enums/roles';
93
92
  export { PasswordHash } from './enums/password-hash';
94
93
  export { MessagingProviderType } from './enums/messaging-provider-type';
95
94
  export { VCSDetectionType } from './enums/vcs-detection-type';
package/types/models.d.ts CHANGED
@@ -761,6 +761,14 @@ export declare namespace Models {
761
761
  * Collection indexes.
762
762
  */
763
763
  indexes: Index[];
764
+ /**
765
+ * Maximum document size in bytes. Returns 0 when no limit applies.
766
+ */
767
+ bytesMax: number;
768
+ /**
769
+ * Currently used document size in bytes based on defined attributes.
770
+ */
771
+ bytesUsed: number;
764
772
  };
765
773
  /**
766
774
  * Attributes List
@@ -1583,11 +1591,19 @@ export declare namespace Models {
1583
1591
  /**
1584
1592
  * Table columns.
1585
1593
  */
1586
- columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
1594
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
1587
1595
  /**
1588
1596
  * Table indexes.
1589
1597
  */
1590
1598
  indexes: ColumnIndex[];
1599
+ /**
1600
+ * Maximum row size in bytes. Returns 0 when no limit applies.
1601
+ */
1602
+ bytesMax: number;
1603
+ /**
1604
+ * Currently used row size in bytes based on defined columns.
1605
+ */
1606
+ bytesUsed: number;
1591
1607
  };
1592
1608
  /**
1593
1609
  * Columns List
@@ -1600,7 +1616,7 @@ export declare namespace Models {
1600
1616
  /**
1601
1617
  * List of columns.
1602
1618
  */
1603
- columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnString)[];
1619
+ columns: (Models.ColumnBoolean | Models.ColumnInteger | Models.ColumnFloat | Models.ColumnEmail | Models.ColumnEnum | Models.ColumnUrl | Models.ColumnIp | Models.ColumnDatetime | Models.ColumnRelationship | Models.ColumnPoint | Models.ColumnLine | Models.ColumnPolygon | Models.ColumnVarchar | Models.ColumnText | Models.ColumnMediumtext | Models.ColumnLongtext | Models.ColumnString)[];
1604
1620
  };
1605
1621
  /**
1606
1622
  * ColumnString
@@ -6094,7 +6110,7 @@ export declare namespace Models {
6094
6110
  */
6095
6111
  _APP_ASSISTANT_ENABLED: boolean;
6096
6112
  /**
6097
- * A domain to use for site URLs.
6113
+ * A comma separated list of domains to use for site URLs.
6098
6114
  */
6099
6115
  _APP_DOMAIN_SITES: string;
6100
6116
  /**
@@ -8351,6 +8367,31 @@ export declare namespace Models {
8351
8367
  */
8352
8368
  value: number;
8353
8369
  };
8370
+ /**
8371
+ * DomainPrice
8372
+ */
8373
+ export type DomainPrice = {
8374
+ /**
8375
+ * Domain name.
8376
+ */
8377
+ domain: string;
8378
+ /**
8379
+ * Top-level domain for the requested domain.
8380
+ */
8381
+ tld: string;
8382
+ /**
8383
+ * Whether the domain is currently available for registration.
8384
+ */
8385
+ available: boolean;
8386
+ /**
8387
+ * Domain registration price.
8388
+ */
8389
+ price: number;
8390
+ /**
8391
+ * Price period in years.
8392
+ */
8393
+ periodYears: number;
8394
+ };
8354
8395
  /**
8355
8396
  * DomainSuggestion
8356
8397
  */
@@ -1,6 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- import { Services } from '../enums/services';
3
+ import { BackupServices } from '../enums/backup-services';
4
4
  export declare class Backups {
5
5
  client: Client;
6
6
  constructor(client: Client);
@@ -26,25 +26,25 @@ export declare class Backups {
26
26
  /**
27
27
  * Create a new archive asynchronously for a project.
28
28
  *
29
- * @param {Services[]} params.services - Array of services to backup
29
+ * @param {BackupServices[]} params.services - Array of services to backup
30
30
  * @param {string} params.resourceId - Resource ID. When set, only this single resource will be backed up.
31
31
  * @throws {AppwriteException}
32
32
  * @returns {Promise<Models.BackupArchive>}
33
33
  */
34
34
  createArchive(params: {
35
- services: Services[];
35
+ services: BackupServices[];
36
36
  resourceId?: string;
37
37
  }): Promise<Models.BackupArchive>;
38
38
  /**
39
39
  * Create a new archive asynchronously for a project.
40
40
  *
41
- * @param {Services[]} services - Array of services to backup
41
+ * @param {BackupServices[]} services - Array of services to backup
42
42
  * @param {string} resourceId - Resource ID. When set, only this single resource will be backed up.
43
43
  * @throws {AppwriteException}
44
44
  * @returns {Promise<Models.BackupArchive>}
45
45
  * @deprecated Use the object parameter style method for a better developer experience.
46
46
  */
47
- createArchive(services: Services[], resourceId?: string): Promise<Models.BackupArchive>;
47
+ createArchive(services: BackupServices[], resourceId?: string): Promise<Models.BackupArchive>;
48
48
  /**
49
49
  * Get a backup archive using it's ID.
50
50
  *
@@ -106,7 +106,7 @@ export declare class Backups {
106
106
  * Create a new backup policy.
107
107
  *
108
108
  * @param {string} params.policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
109
- * @param {Services[]} params.services - Array of services to backup
109
+ * @param {BackupServices[]} params.services - Array of services to backup
110
110
  * @param {number} params.retention - Days to keep backups before deletion
111
111
  * @param {string} params.schedule - Schedule CRON syntax.
112
112
  * @param {string} params.name - Policy name. Max length: 128 chars.
@@ -117,7 +117,7 @@ export declare class Backups {
117
117
  */
118
118
  createPolicy(params: {
119
119
  policyId: string;
120
- services: Services[];
120
+ services: BackupServices[];
121
121
  retention: number;
122
122
  schedule: string;
123
123
  name?: string;
@@ -128,7 +128,7 @@ export declare class Backups {
128
128
  * Create a new backup policy.
129
129
  *
130
130
  * @param {string} policyId - Policy ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
131
- * @param {Services[]} services - Array of services to backup
131
+ * @param {BackupServices[]} services - Array of services to backup
132
132
  * @param {number} retention - Days to keep backups before deletion
133
133
  * @param {string} schedule - Schedule CRON syntax.
134
134
  * @param {string} name - Policy name. Max length: 128 chars.
@@ -138,7 +138,7 @@ export declare class Backups {
138
138
  * @returns {Promise<Models.BackupPolicy>}
139
139
  * @deprecated Use the object parameter style method for a better developer experience.
140
140
  */
141
- createPolicy(policyId: string, services: Services[], retention: number, schedule: string, name?: string, resourceId?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
141
+ createPolicy(policyId: string, services: BackupServices[], retention: number, schedule: string, name?: string, resourceId?: string, enabled?: boolean): Promise<Models.BackupPolicy>;
142
142
  /**
143
143
  * Get a backup policy using it's ID.
144
144
  *
@@ -212,7 +212,7 @@ export declare class Backups {
212
212
  * Create and trigger a new restoration for a backup on a project.
213
213
  *
214
214
  * @param {string} params.archiveId - Backup archive ID to restore
215
- * @param {Services[]} params.services - Array of services to restore
215
+ * @param {BackupServices[]} params.services - Array of services to restore
216
216
  * @param {string} params.newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
217
217
  * @param {string} params.newResourceName - Database name. Max length: 128 chars.
218
218
  * @throws {AppwriteException}
@@ -220,7 +220,7 @@ export declare class Backups {
220
220
  */
221
221
  createRestoration(params: {
222
222
  archiveId: string;
223
- services: Services[];
223
+ services: BackupServices[];
224
224
  newResourceId?: string;
225
225
  newResourceName?: string;
226
226
  }): Promise<Models.BackupRestoration>;
@@ -228,14 +228,14 @@ export declare class Backups {
228
228
  * Create and trigger a new restoration for a backup on a project.
229
229
  *
230
230
  * @param {string} archiveId - Backup archive ID to restore
231
- * @param {Services[]} services - Array of services to restore
231
+ * @param {BackupServices[]} services - Array of services to restore
232
232
  * @param {string} newResourceId - Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
233
233
  * @param {string} newResourceName - Database name. Max length: 128 chars.
234
234
  * @throws {AppwriteException}
235
235
  * @returns {Promise<Models.BackupRestoration>}
236
236
  * @deprecated Use the object parameter style method for a better developer experience.
237
237
  */
238
- createRestoration(archiveId: string, services: Services[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration>;
238
+ createRestoration(archiveId: string, services: BackupServices[], newResourceId?: string, newResourceName?: string): Promise<Models.BackupRestoration>;
239
239
  /**
240
240
  * List all backup restorations for a project.
241
241
  *
@@ -1,5 +1,6 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
+ import { RegistrationType } from '../enums/registration-type';
3
4
  import { FilterType } from '../enums/filter-type';
4
5
  export declare class Domains {
5
6
  client: Client;
@@ -48,6 +49,31 @@ export declare class Domains {
48
49
  * @deprecated Use the object parameter style method for a better developer experience.
49
50
  */
50
51
  create(teamId: string, domain: string): Promise<Models.Domain>;
52
+ /**
53
+ * Get the registration price for a domain name.
54
+ *
55
+ * @param {string} params.domain - Domain name to get price for.
56
+ * @param {number} params.periodYears - Number of years to calculate the domain price for. Must be at least 1.
57
+ * @param {RegistrationType} params.registrationType - Type of registration pricing to fetch. Allowed values: new, transfer, renewal, trade.
58
+ * @throws {AppwriteException}
59
+ * @returns {Promise<Models.DomainPrice>}
60
+ */
61
+ getPrice(params: {
62
+ domain: string;
63
+ periodYears?: number;
64
+ registrationType?: RegistrationType;
65
+ }): Promise<Models.DomainPrice>;
66
+ /**
67
+ * Get the registration price for a domain name.
68
+ *
69
+ * @param {string} domain - Domain name to get price for.
70
+ * @param {number} periodYears - Number of years to calculate the domain price for. Must be at least 1.
71
+ * @param {RegistrationType} registrationType - Type of registration pricing to fetch. Allowed values: new, transfer, renewal, trade.
72
+ * @throws {AppwriteException}
73
+ * @returns {Promise<Models.DomainPrice>}
74
+ * @deprecated Use the object parameter style method for a better developer experience.
75
+ */
76
+ getPrice(domain: string, periodYears?: number, registrationType?: RegistrationType): Promise<Models.DomainPrice>;
51
77
  /**
52
78
  * List domain suggestions.
53
79
  *
@@ -896,28 +896,6 @@ export declare class Organizations {
896
896
  * @deprecated Use the object parameter style method for a better developer experience.
897
897
  */
898
898
  cancelDowngrade<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string): Promise<Models.Organization<Preferences>>;
899
- /**
900
- * Update selected projects to keep in the organization.
901
- *
902
- * @param {string} params.organizationId - Organization Unique ID
903
- * @param {string[]} params.projects - List of project IDs to be selected for the organization
904
- * @throws {AppwriteException}
905
- * @returns {Promise<Models.Organization<Preferences>>}
906
- */
907
- updateProjects<Preferences extends Models.Preferences = Models.DefaultPreferences>(params: {
908
- organizationId: string;
909
- projects?: string[];
910
- }): Promise<Models.Organization<Preferences>>;
911
- /**
912
- * Update selected projects to keep in the organization.
913
- *
914
- * @param {string} organizationId - Organization Unique ID
915
- * @param {string[]} projects - List of project IDs to be selected for the organization
916
- * @throws {AppwriteException}
917
- * @returns {Promise<Models.Organization<Preferences>>}
918
- * @deprecated Use the object parameter style method for a better developer experience.
919
- */
920
- updateProjects<Preferences extends Models.Preferences = Models.DefaultPreferences>(organizationId: string, projects?: string[]): Promise<Models.Organization<Preferences>>;
921
899
  /**
922
900
  * Get all available regions for an organization.
923
901
  *
@@ -8,7 +8,6 @@ import { OAuthProvider } from '../enums/o-auth-provider';
8
8
  import { PlatformType } from '../enums/platform-type';
9
9
  import { ApiService } from '../enums/api-service';
10
10
  import { SMTPSecure } from '../enums/smtp-secure';
11
- import { Status } from '../enums/status';
12
11
  import { EmailTemplateType } from '../enums/email-template-type';
13
12
  import { EmailTemplateLocale } from '../enums/email-template-locale';
14
13
  import { SmsTemplateType } from '../enums/sms-template-type';
@@ -678,30 +677,34 @@ export declare class Projects {
678
677
  * Get a list of all API keys from the current project.
679
678
  *
680
679
  * @param {string} params.projectId - Project unique ID.
680
+ * @param {string[]} params.queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
681
681
  * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
682
682
  * @throws {AppwriteException}
683
683
  * @returns {Promise<Models.KeyList>}
684
684
  */
685
685
  listKeys(params: {
686
686
  projectId: string;
687
+ queries?: string[];
687
688
  total?: boolean;
688
689
  }): Promise<Models.KeyList>;
689
690
  /**
690
691
  * Get a list of all API keys from the current project.
691
692
  *
692
693
  * @param {string} projectId - Project unique ID.
694
+ * @param {string[]} queries - Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire, accessedAt, name, scopes
693
695
  * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
694
696
  * @throws {AppwriteException}
695
697
  * @returns {Promise<Models.KeyList>}
696
698
  * @deprecated Use the object parameter style method for a better developer experience.
697
699
  */
698
- listKeys(projectId: string, total?: boolean): Promise<Models.KeyList>;
700
+ listKeys(projectId: string, queries?: string[], total?: boolean): Promise<Models.KeyList>;
699
701
  /**
700
702
  * Create a new API key. It's recommended to have multiple API keys with strict scopes for separate functions within your project.
701
703
  *
702
704
  * @param {string} params.projectId - Project unique ID.
703
705
  * @param {string} params.name - Key name. Max length: 128 chars.
704
706
  * @param {Scopes[]} params.scopes - Key scopes list. Maximum of 100 scopes are allowed.
707
+ * @param {string} params.keyId - Key ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
705
708
  * @param {string} params.expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
706
709
  * @throws {AppwriteException}
707
710
  * @returns {Promise<Models.Key>}
@@ -710,6 +713,7 @@ export declare class Projects {
710
713
  projectId: string;
711
714
  name: string;
712
715
  scopes?: Scopes[];
716
+ keyId?: string;
713
717
  expire?: string;
714
718
  }): Promise<Models.Key>;
715
719
  /**
@@ -718,12 +722,13 @@ export declare class Projects {
718
722
  * @param {string} projectId - Project unique ID.
719
723
  * @param {string} name - Key name. Max length: 128 chars.
720
724
  * @param {Scopes[]} scopes - Key scopes list. Maximum of 100 scopes are allowed.
725
+ * @param {string} keyId - Key ID. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
721
726
  * @param {string} expire - Expiration time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. Use null for unlimited expiration.
722
727
  * @throws {AppwriteException}
723
728
  * @returns {Promise<Models.Key>}
724
729
  * @deprecated Use the object parameter style method for a better developer experience.
725
730
  */
726
- createKey(projectId: string, name: string, scopes?: Scopes[], expire?: string): Promise<Models.Key>;
731
+ createKey(projectId: string, name: string, scopes?: Scopes[], keyId?: string, expire?: string): Promise<Models.Key>;
727
732
  /**
728
733
  * Get a key by its unique ID. This endpoint returns details about a specific API key in your project including it's scopes.
729
734
  *
@@ -1219,28 +1224,6 @@ export declare class Projects {
1219
1224
  * @deprecated Use the object parameter style method for a better developer experience.
1220
1225
  */
1221
1226
  createSMTPTest(projectId: string, emails: string[], senderName: string, senderEmail: string, host: string, replyTo?: string, port?: number, username?: string, password?: string, secure?: SMTPSecure): Promise<{}>;
1222
- /**
1223
- * Update the status of a project
1224
- *
1225
- * @param {string} params.projectId - Project ID
1226
- * @param {Status} params.status - New status for the project
1227
- * @throws {AppwriteException}
1228
- * @returns {Promise<{}>}
1229
- */
1230
- updateStatus(params: {
1231
- projectId: string;
1232
- status: Status;
1233
- }): Promise<{}>;
1234
- /**
1235
- * Update the status of a project
1236
- *
1237
- * @param {string} projectId - Project ID
1238
- * @param {Status} status - New status for the project
1239
- * @throws {AppwriteException}
1240
- * @returns {Promise<{}>}
1241
- * @deprecated Use the object parameter style method for a better developer experience.
1242
- */
1243
- updateStatus(projectId: string, status: Status): Promise<{}>;
1244
1227
  /**
1245
1228
  * Update the team ID of a project allowing for it to be transferred to another team.
1246
1229
  *
@@ -1,10 +1,12 @@
1
1
  import { Client } from '../client';
2
2
  import { Channel, ActionableChannel, ResolvedChannel } from '../channel';
3
+ import { Query } from '../query';
3
4
  export declare type RealtimeSubscription = {
4
5
  close: () => Promise<void>;
5
6
  };
6
7
  export declare type RealtimeCallback<T = any> = {
7
8
  channels: Set<string>;
9
+ queries: string[];
8
10
  callback: (event: RealtimeResponseEvent<T>) => void;
9
11
  };
10
12
  export declare type RealtimeResponse = {
@@ -16,10 +18,14 @@ export declare type RealtimeResponseEvent<T = any> = {
16
18
  channels: string[];
17
19
  timestamp: string;
18
20
  payload: T;
21
+ subscriptions: string[];
19
22
  };
20
23
  export declare type RealtimeResponseConnected = {
21
24
  channels: string[];
22
25
  user?: object;
26
+ subscriptions?: {
27
+ [slot: string]: string;
28
+ };
23
29
  };
24
30
  export declare type RealtimeRequest = {
25
31
  type: 'authentication';
@@ -41,12 +47,14 @@ export declare class Realtime {
41
47
  private readonly HEARTBEAT_INTERVAL;
42
48
  private client;
43
49
  private socket?;
44
- private activeChannels;
45
50
  private activeSubscriptions;
51
+ private slotToSubscriptionId;
52
+ private subscriptionIdToSlot;
46
53
  private heartbeatTimer?;
47
54
  private subCallDepth;
48
55
  private reconnectAttempts;
49
56
  private subscriptionsCounter;
57
+ private connectionId;
50
58
  private reconnect;
51
59
  private onErrorCallbacks;
52
60
  private onCloseCallbacks;
@@ -94,7 +102,7 @@ export declare class Realtime {
94
102
  * @param {Function} callback - Callback function to handle events
95
103
  * @returns {Promise<RealtimeSubscription>} Subscription object with close method
96
104
  */
97
- subscribe(channel: string | Channel<any> | ActionableChannel | ResolvedChannel, callback: (event: RealtimeResponseEvent<any>) => void): Promise<RealtimeSubscription>;
105
+ subscribe(channel: string | Channel<any> | ActionableChannel | ResolvedChannel, callback: (event: RealtimeResponseEvent<any>) => void, queries?: (string | Query)[]): Promise<RealtimeSubscription>;
98
106
  /**
99
107
  * Subscribe to multiple channels
100
108
  *
@@ -102,7 +110,7 @@ export declare class Realtime {
102
110
  * @param {Function} callback - Callback function to handle events
103
111
  * @returns {Promise<RealtimeSubscription>} Subscription object with close method
104
112
  */
105
- subscribe(channels: (string | Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (event: RealtimeResponseEvent<any>) => void): Promise<RealtimeSubscription>;
113
+ subscribe(channels: (string | Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (event: RealtimeResponseEvent<any>) => void, queries?: (string | Query)[]): Promise<RealtimeSubscription>;
106
114
  /**
107
115
  * Subscribe to a single channel with typed payload
108
116
  *
@@ -110,7 +118,7 @@ export declare class Realtime {
110
118
  * @param {Function} callback - Callback function to handle events with typed payload
111
119
  * @returns {Promise<RealtimeSubscription>} Subscription object with close method
112
120
  */
113
- subscribe<T>(channel: string | Channel<any> | ActionableChannel | ResolvedChannel, callback: (event: RealtimeResponseEvent<T>) => void): Promise<RealtimeSubscription>;
121
+ subscribe<T>(channel: string | Channel<any> | ActionableChannel | ResolvedChannel, callback: (event: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): Promise<RealtimeSubscription>;
114
122
  /**
115
123
  * Subscribe to multiple channels with typed payload
116
124
  *
@@ -118,8 +126,7 @@ export declare class Realtime {
118
126
  * @param {Function} callback - Callback function to handle events with typed payload
119
127
  * @returns {Promise<RealtimeSubscription>} Subscription object with close method
120
128
  */
121
- subscribe<T>(channels: (string | Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (event: RealtimeResponseEvent<T>) => void): Promise<RealtimeSubscription>;
122
- private cleanUp;
129
+ subscribe<T>(channels: (string | Channel<any> | ActionableChannel | ResolvedChannel)[], callback: (event: RealtimeResponseEvent<T>) => void, queries?: (string | Query)[]): Promise<RealtimeSubscription>;
123
130
  private handleMessage;
124
131
  private handleResponseConnected;
125
132
  private handleResponseError;
@@ -1,6 +1,5 @@
1
1
  import { Client } from '../client';
2
2
  import type { Models } from '../models';
3
- import { Roles } from '../enums/roles';
4
3
  export declare class Teams {
5
4
  client: Client;
6
5
  constructor(client: Client);
@@ -178,7 +177,7 @@ export declare class Teams {
178
177
  *
179
178
  *
180
179
  * @param {string} params.teamId - Team ID.
181
- * @param {Roles[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
180
+ * @param {string[]} params.roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
182
181
  * @param {string} params.email - Email of the new team member.
183
182
  * @param {string} params.userId - ID of the user to be added to a team.
184
183
  * @param {string} params.phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -189,7 +188,7 @@ export declare class Teams {
189
188
  */
190
189
  createMembership(params: {
191
190
  teamId: string;
192
- roles: Roles[];
191
+ roles: string[];
193
192
  email?: string;
194
193
  userId?: string;
195
194
  phone?: string;
@@ -207,7 +206,7 @@ export declare class Teams {
207
206
  *
208
207
  *
209
208
  * @param {string} teamId - Team ID.
210
- * @param {Roles[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
209
+ * @param {string[]} roles - Array of strings. Use this param to set the user roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
211
210
  * @param {string} email - Email of the new team member.
212
211
  * @param {string} userId - ID of the user to be added to a team.
213
212
  * @param {string} phone - Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
@@ -217,7 +216,7 @@ export declare class Teams {
217
216
  * @returns {Promise<Models.Membership>}
218
217
  * @deprecated Use the object parameter style method for a better developer experience.
219
218
  */
220
- createMembership(teamId: string, roles: Roles[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
219
+ createMembership(teamId: string, roles: string[], email?: string, userId?: string, phone?: string, url?: string, name?: string): Promise<Models.Membership>;
221
220
  /**
222
221
  * Get a team member by the membership unique id. All team members have read access for this resource. Hide sensitive attributes from the response by toggling membership privacy in the Console.
223
222
  *
@@ -246,14 +245,14 @@ export declare class Teams {
246
245
  *
247
246
  * @param {string} params.teamId - Team ID.
248
247
  * @param {string} params.membershipId - Membership ID.
249
- * @param {Roles[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
248
+ * @param {string[]} params.roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
250
249
  * @throws {AppwriteException}
251
250
  * @returns {Promise<Models.Membership>}
252
251
  */
253
252
  updateMembership(params: {
254
253
  teamId: string;
255
254
  membershipId: string;
256
- roles: Roles[];
255
+ roles: string[];
257
256
  }): Promise<Models.Membership>;
258
257
  /**
259
258
  * Modify the roles of a team member. Only team members with the owner role have access to this endpoint. Learn more about [roles and permissions](https://appwrite.io/docs/permissions).
@@ -261,12 +260,12 @@ export declare class Teams {
261
260
  *
262
261
  * @param {string} teamId - Team ID.
263
262
  * @param {string} membershipId - Membership ID.
264
- * @param {Roles[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
263
+ * @param {string[]} roles - An array of strings. Use this param to set the user's roles in the team. A role can be any string. Learn more about [roles and permissions](https://appwrite.io/docs/permissions). Maximum of 100 roles are allowed, each 32 characters long.
265
264
  * @throws {AppwriteException}
266
265
  * @returns {Promise<Models.Membership>}
267
266
  * @deprecated Use the object parameter style method for a better developer experience.
268
267
  */
269
- updateMembership(teamId: string, membershipId: string, roles: Roles[]): Promise<Models.Membership>;
268
+ updateMembership(teamId: string, membershipId: string, roles: string[]): Promise<Models.Membership>;
270
269
  /**
271
270
  * This endpoint allows a user to leave a team or for a team owner to delete the membership of any other team member. You can also use this endpoint to delete a user membership even if it is not accepted.
272
271
  *
@@ -1,14 +0,0 @@
1
- import { Client, Organizations } from "@appwrite.io/console";
2
-
3
- const client = new Client()
4
- .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5
- .setProject('<YOUR_PROJECT_ID>'); // Your project ID
6
-
7
- const organizations = new Organizations(client);
8
-
9
- const result = await organizations.updateProjects({
10
- organizationId: '<ORGANIZATION_ID>',
11
- projects: [] // optional
12
- });
13
-
14
- console.log(result);
@@ -1,14 +0,0 @@
1
- import { Client, Projects, Status } from "@appwrite.io/console";
2
-
3
- const client = new Client()
4
- .setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
5
- .setProject('<YOUR_PROJECT_ID>'); // Your project ID
6
-
7
- const projects = new Projects(client);
8
-
9
- const result = await projects.updateStatus({
10
- projectId: '<PROJECT_ID>',
11
- status: Status.Active
12
- });
13
-
14
- console.log(result);
@@ -1,7 +0,0 @@
1
- export enum Roles {
2
- Developer = 'developer',
3
- Editor = 'editor',
4
- Analyst = 'analyst',
5
- Billing = 'billing',
6
- Owner = 'owner',
7
- }
@@ -1,4 +0,0 @@
1
- export enum Status {
2
- Active = 'active',
3
- Archived = 'archived',
4
- }
@@ -1,7 +0,0 @@
1
- export declare enum Roles {
2
- Developer = "developer",
3
- Editor = "editor",
4
- Analyst = "analyst",
5
- Billing = "billing",
6
- Owner = "owner"
7
- }
@@ -1,4 +0,0 @@
1
- export declare enum Status {
2
- Active = "active",
3
- Archived = "archived"
4
- }