@appwrite.io/console 1.10.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (745) hide show
  1. package/.github/workflows/publish.yml +9 -8
  2. package/CHANGELOG.md +6 -0
  3. package/LICENSE +1 -1
  4. package/README.md +4 -4
  5. package/dist/cjs/sdk.js +15239 -6070
  6. package/dist/cjs/sdk.js.map +1 -1
  7. package/dist/esm/sdk.js +15237 -6071
  8. package/dist/esm/sdk.js.map +1 -1
  9. package/dist/iife/sdk.js +15239 -6070
  10. package/docs/examples/account/create-billing-address.md +8 -8
  11. package/docs/examples/account/create-email-password-session.md +4 -4
  12. package/docs/examples/account/create-email-token.md +5 -5
  13. package/docs/examples/account/{update-magic-u-r-l-session.md → create-email-verification.md} +3 -4
  14. package/docs/examples/account/{update-m-f-a.md → create-jwt.md} +3 -3
  15. package/docs/examples/account/{create-magic-u-r-l-token.md → create-magic-url-token.md} +6 -6
  16. package/docs/examples/account/create-mfa-authenticator.md +3 -3
  17. package/docs/examples/account/create-mfa-challenge.md +3 -3
  18. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  19. package/docs/examples/account/{create-o-auth2token.md → create-o-auth-2-session.md} +6 -6
  20. package/docs/examples/account/{create-o-auth2session.md → create-o-auth-2-token.md} +6 -6
  21. package/docs/examples/account/create-phone-token.md +4 -4
  22. package/docs/examples/account/create-push-target.md +5 -5
  23. package/docs/examples/account/create-recovery.md +4 -4
  24. package/docs/examples/account/create-session.md +4 -4
  25. package/docs/examples/account/create-verification.md +3 -3
  26. package/docs/examples/account/create.md +6 -6
  27. package/docs/examples/account/delete-billing-address.md +3 -3
  28. package/docs/examples/account/delete-identity.md +3 -3
  29. package/docs/examples/account/delete-mfa-authenticator.md +3 -3
  30. package/docs/examples/account/delete-payment-method.md +3 -3
  31. package/docs/examples/account/delete-push-target.md +3 -3
  32. package/docs/examples/account/delete-session.md +3 -3
  33. package/docs/examples/account/get-billing-address.md +3 -3
  34. package/docs/examples/account/get-coupon.md +3 -3
  35. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  36. package/docs/examples/account/get-payment-method.md +3 -3
  37. package/docs/examples/account/get-session.md +3 -3
  38. package/docs/examples/account/list-billing-addresses.md +3 -3
  39. package/docs/examples/account/list-identities.md +4 -3
  40. package/docs/examples/account/list-invoices.md +3 -3
  41. package/docs/examples/account/list-logs.md +4 -3
  42. package/docs/examples/account/list-mfa-factors.md +1 -1
  43. package/docs/examples/account/list-payment-methods.md +3 -3
  44. package/docs/examples/account/update-billing-address.md +9 -9
  45. package/docs/examples/account/update-email-verification.md +14 -0
  46. package/docs/examples/account/update-email.md +4 -4
  47. package/docs/examples/account/update-magic-url-session.md +14 -0
  48. package/docs/examples/account/update-mfa-authenticator.md +4 -4
  49. package/docs/examples/account/update-mfa-challenge.md +4 -4
  50. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  51. package/docs/examples/account/{create-j-w-t.md → update-mfa.md} +3 -1
  52. package/docs/examples/account/update-name.md +3 -3
  53. package/docs/examples/account/update-password.md +4 -4
  54. package/docs/examples/account/update-payment-method-mandate-options.md +3 -3
  55. package/docs/examples/account/update-payment-method-provider.md +6 -5
  56. package/docs/examples/account/update-payment-method.md +6 -5
  57. package/docs/examples/account/update-phone-session.md +4 -4
  58. package/docs/examples/account/update-phone-verification.md +4 -4
  59. package/docs/examples/account/update-phone.md +4 -4
  60. package/docs/examples/account/update-prefs.md +7 -3
  61. package/docs/examples/account/update-push-target.md +4 -4
  62. package/docs/examples/account/update-recovery.md +5 -5
  63. package/docs/examples/account/update-session.md +3 -3
  64. package/docs/examples/account/update-verification.md +4 -4
  65. package/docs/examples/assistant/chat.md +3 -3
  66. package/docs/examples/avatars/get-browser.md +6 -6
  67. package/docs/examples/avatars/get-credit-card.md +6 -6
  68. package/docs/examples/avatars/get-favicon.md +3 -3
  69. package/docs/examples/avatars/get-flag.md +6 -6
  70. package/docs/examples/avatars/get-image.md +5 -5
  71. package/docs/examples/avatars/get-initials.md +6 -6
  72. package/docs/examples/avatars/{get-q-r.md → get-qr.md} +6 -6
  73. package/docs/examples/avatars/get-screenshot.md +35 -0
  74. package/docs/examples/backups/create-archive.md +4 -4
  75. package/docs/examples/backups/create-policy.md +9 -9
  76. package/docs/examples/backups/create-restoration.md +6 -6
  77. package/docs/examples/backups/delete-archive.md +3 -3
  78. package/docs/examples/backups/delete-policy.md +3 -3
  79. package/docs/examples/backups/get-archive.md +3 -3
  80. package/docs/examples/backups/get-policy.md +3 -3
  81. package/docs/examples/backups/get-restoration.md +3 -3
  82. package/docs/examples/backups/list-archives.md +3 -3
  83. package/docs/examples/backups/list-policies.md +3 -3
  84. package/docs/examples/backups/list-restorations.md +3 -3
  85. package/docs/examples/backups/update-policy.md +7 -7
  86. package/docs/examples/console/create-program-membership.md +3 -3
  87. package/docs/examples/console/create-source.md +7 -7
  88. package/docs/examples/console/get-campaign.md +3 -3
  89. package/docs/examples/console/get-coupon.md +3 -3
  90. package/docs/examples/console/{plans.md → get-plan.md} +3 -1
  91. package/docs/examples/console/get-plans.md +13 -0
  92. package/docs/examples/console/{regions.md → get-program.md} +3 -1
  93. package/docs/examples/console/get-regions.md +13 -0
  94. package/docs/examples/console/get-resource.md +4 -4
  95. package/docs/examples/console/suggest-columns.md +17 -0
  96. package/docs/examples/console/suggest-indexes.md +16 -0
  97. package/docs/examples/databases/create-boolean-attribute.md +8 -8
  98. package/docs/examples/databases/create-collection.md +11 -9
  99. package/docs/examples/databases/create-datetime-attribute.md +8 -8
  100. package/docs/examples/databases/create-document.md +15 -8
  101. package/docs/examples/databases/create-documents.md +6 -5
  102. package/docs/examples/databases/create-email-attribute.md +8 -8
  103. package/docs/examples/databases/create-enum-attribute.md +9 -9
  104. package/docs/examples/databases/create-float-attribute.md +10 -10
  105. package/docs/examples/databases/create-index.md +9 -9
  106. package/docs/examples/databases/create-integer-attribute.md +10 -10
  107. package/docs/examples/databases/create-ip-attribute.md +8 -8
  108. package/docs/examples/databases/create-line-attribute.md +17 -0
  109. package/docs/examples/databases/create-operations.md +24 -0
  110. package/docs/examples/databases/create-point-attribute.md +17 -0
  111. package/docs/examples/databases/create-polygon-attribute.md +17 -0
  112. package/docs/examples/databases/create-relationship-attribute.md +10 -10
  113. package/docs/examples/databases/create-string-attribute.md +10 -10
  114. package/docs/examples/databases/create-transaction.md +13 -0
  115. package/docs/examples/databases/create-url-attribute.md +8 -8
  116. package/docs/examples/databases/create.md +5 -5
  117. package/docs/examples/databases/decrement-document-attribute.md +9 -8
  118. package/docs/examples/databases/delete-attribute.md +5 -5
  119. package/docs/examples/databases/delete-collection.md +4 -4
  120. package/docs/examples/databases/delete-document.md +6 -5
  121. package/docs/examples/databases/delete-documents.md +6 -5
  122. package/docs/examples/databases/delete-index.md +5 -5
  123. package/docs/examples/databases/{get-database-usage.md → delete-transaction.md} +4 -5
  124. package/docs/examples/databases/delete.md +3 -3
  125. package/docs/examples/databases/get-attribute.md +5 -5
  126. package/docs/examples/databases/get-collection-usage.md +6 -6
  127. package/docs/examples/databases/get-collection.md +4 -4
  128. package/docs/examples/databases/get-document.md +7 -6
  129. package/docs/examples/databases/get-index.md +5 -5
  130. package/docs/examples/databases/get-transaction.md +13 -0
  131. package/docs/examples/databases/get-usage.md +5 -4
  132. package/docs/examples/databases/get.md +3 -3
  133. package/docs/examples/databases/increment-document-attribute.md +9 -8
  134. package/docs/examples/databases/list-attributes.md +6 -5
  135. package/docs/examples/databases/list-collection-logs.md +5 -5
  136. package/docs/examples/databases/list-collections.md +6 -5
  137. package/docs/examples/databases/list-document-logs.md +6 -6
  138. package/docs/examples/databases/list-documents.md +7 -5
  139. package/docs/examples/databases/list-indexes.md +6 -5
  140. package/docs/examples/databases/list-logs.md +4 -4
  141. package/docs/examples/databases/list-transactions.md +13 -0
  142. package/docs/examples/databases/list-usage.md +13 -0
  143. package/docs/examples/databases/list.md +5 -4
  144. package/docs/examples/databases/update-boolean-attribute.md +8 -8
  145. package/docs/examples/databases/update-collection.md +9 -9
  146. package/docs/examples/databases/update-datetime-attribute.md +8 -8
  147. package/docs/examples/databases/update-document.md +15 -8
  148. package/docs/examples/databases/update-documents.md +13 -6
  149. package/docs/examples/databases/update-email-attribute.md +8 -8
  150. package/docs/examples/databases/update-enum-attribute.md +9 -9
  151. package/docs/examples/databases/update-float-attribute.md +10 -10
  152. package/docs/examples/databases/update-integer-attribute.md +10 -10
  153. package/docs/examples/databases/update-ip-attribute.md +8 -8
  154. package/docs/examples/databases/update-line-attribute.md +18 -0
  155. package/docs/examples/databases/update-point-attribute.md +18 -0
  156. package/docs/examples/databases/update-polygon-attribute.md +18 -0
  157. package/docs/examples/databases/update-relationship-attribute.md +7 -7
  158. package/docs/examples/databases/update-string-attribute.md +9 -9
  159. package/docs/examples/databases/update-transaction.md +15 -0
  160. package/docs/examples/databases/update-url-attribute.md +8 -8
  161. package/docs/examples/databases/update.md +5 -5
  162. package/docs/examples/databases/upsert-document.md +15 -8
  163. package/docs/examples/databases/upsert-documents.md +6 -5
  164. package/docs/examples/domains/create-preset-google-workspace.md +3 -3
  165. package/docs/examples/domains/create-preset-i-cloud.md +3 -3
  166. package/docs/examples/domains/create-preset-mailgun.md +3 -3
  167. package/docs/examples/domains/create-preset-outlook.md +3 -3
  168. package/docs/examples/domains/create-preset-proton-mail.md +3 -3
  169. package/docs/examples/domains/create-preset-zoho.md +3 -3
  170. package/docs/examples/domains/create-record-a.md +7 -7
  171. package/docs/examples/domains/{create-record-a-a-a-a.md → create-record-aaaa.md} +7 -7
  172. package/docs/examples/domains/create-record-alias.md +7 -7
  173. package/docs/examples/domains/{create-record-n-s.md → create-record-caa.md} +7 -7
  174. package/docs/examples/domains/{create-record-c-a-a.md → create-record-cname.md} +7 -7
  175. package/docs/examples/domains/{create-record-h-t-t-p-s.md → create-record-https.md} +7 -7
  176. package/docs/examples/domains/create-record-mx.md +18 -0
  177. package/docs/examples/domains/create-record-ns.md +17 -0
  178. package/docs/examples/domains/create-record-srv.md +20 -0
  179. package/docs/examples/domains/{create-record-c-n-a-m-e.md → create-record-txt.md} +7 -7
  180. package/docs/examples/domains/create.md +4 -4
  181. package/docs/examples/domains/delete-record.md +4 -4
  182. package/docs/examples/domains/delete.md +3 -3
  183. package/docs/examples/domains/get-preset-google-workspace.md +3 -3
  184. package/docs/examples/domains/get-preset-i-cloud.md +3 -3
  185. package/docs/examples/domains/get-preset-mailgun.md +3 -3
  186. package/docs/examples/domains/get-preset-outlook.md +3 -3
  187. package/docs/examples/domains/get-preset-proton-mail.md +3 -3
  188. package/docs/examples/domains/get-preset-zoho.md +3 -3
  189. package/docs/examples/domains/get-record.md +4 -4
  190. package/docs/examples/domains/get-zone.md +3 -3
  191. package/docs/examples/domains/get.md +3 -3
  192. package/docs/examples/domains/list-records.md +4 -4
  193. package/docs/examples/domains/list.md +4 -4
  194. package/docs/examples/domains/update-nameservers.md +3 -3
  195. package/docs/examples/domains/update-record-a.md +8 -8
  196. package/docs/examples/domains/update-record-aaaa.md +18 -0
  197. package/docs/examples/domains/update-record-alias.md +8 -8
  198. package/docs/examples/domains/update-record-caa.md +18 -0
  199. package/docs/examples/domains/update-record-cname.md +18 -0
  200. package/docs/examples/domains/update-record-https.md +18 -0
  201. package/docs/examples/domains/update-record-mx.md +19 -0
  202. package/docs/examples/domains/update-record-ns.md +18 -0
  203. package/docs/examples/domains/update-record-srv.md +21 -0
  204. package/docs/examples/domains/update-record-txt.md +18 -0
  205. package/docs/examples/domains/update-team.md +4 -4
  206. package/docs/examples/domains/update-zone.md +4 -4
  207. package/docs/examples/functions/create-deployment.md +7 -7
  208. package/docs/examples/functions/create-duplicate-deployment.md +5 -5
  209. package/docs/examples/functions/create-execution.md +9 -9
  210. package/docs/examples/functions/create-template-deployment.md +10 -9
  211. package/docs/examples/functions/create-variable.md +6 -6
  212. package/docs/examples/functions/create-vcs-deployment.md +7 -7
  213. package/docs/examples/functions/create.md +21 -21
  214. package/docs/examples/functions/delete-deployment.md +4 -4
  215. package/docs/examples/functions/delete-execution.md +4 -4
  216. package/docs/examples/functions/delete-variable.md +4 -4
  217. package/docs/examples/functions/delete.md +3 -3
  218. package/docs/examples/functions/get-deployment-download.md +5 -5
  219. package/docs/examples/functions/get-deployment.md +4 -4
  220. package/docs/examples/functions/get-execution.md +4 -4
  221. package/docs/examples/functions/get-template.md +3 -3
  222. package/docs/examples/functions/get-usage.md +5 -5
  223. package/docs/examples/functions/get-variable.md +4 -4
  224. package/docs/examples/functions/get.md +3 -3
  225. package/docs/examples/functions/list-deployments.md +6 -5
  226. package/docs/examples/functions/list-executions.md +5 -4
  227. package/docs/examples/functions/list-templates.md +7 -6
  228. package/docs/examples/functions/list-usage.md +4 -4
  229. package/docs/examples/functions/list-variables.md +3 -3
  230. package/docs/examples/functions/list.md +5 -4
  231. package/docs/examples/functions/update-deployment-status.md +4 -4
  232. package/docs/examples/functions/update-function-deployment.md +4 -4
  233. package/docs/examples/functions/update-variable.md +7 -7
  234. package/docs/examples/functions/update.md +21 -21
  235. package/docs/examples/graphql/mutation.md +3 -3
  236. package/docs/examples/graphql/query.md +3 -3
  237. package/docs/examples/health/get-certificate.md +3 -3
  238. package/docs/examples/health/get-failed-jobs.md +5 -5
  239. package/docs/examples/health/get-queue-billing-project-aggregation.md +3 -3
  240. package/docs/examples/health/get-queue-billing-team-aggregation.md +3 -3
  241. package/docs/examples/health/get-queue-builds.md +3 -3
  242. package/docs/examples/health/get-queue-certificates.md +3 -3
  243. package/docs/examples/health/get-queue-databases.md +4 -4
  244. package/docs/examples/health/get-queue-deletes.md +3 -3
  245. package/docs/examples/health/get-queue-functions.md +3 -3
  246. package/docs/examples/health/get-queue-logs.md +3 -3
  247. package/docs/examples/health/get-queue-mails.md +3 -3
  248. package/docs/examples/health/get-queue-messaging.md +3 -3
  249. package/docs/examples/health/get-queue-migrations.md +3 -3
  250. package/docs/examples/health/get-queue-priority-builds.md +3 -3
  251. package/docs/examples/health/get-queue-region-manager.md +3 -3
  252. package/docs/examples/health/get-queue-stats-resources.md +3 -3
  253. package/docs/examples/health/get-queue-threats.md +13 -0
  254. package/docs/examples/health/get-queue-usage.md +3 -3
  255. package/docs/examples/health/get-queue-webhooks.md +3 -3
  256. package/docs/examples/messaging/create-apns-provider.md +10 -10
  257. package/docs/examples/messaging/create-email.md +14 -14
  258. package/docs/examples/messaging/create-fcm-provider.md +6 -6
  259. package/docs/examples/messaging/create-mailgun-provider.md +12 -12
  260. package/docs/examples/messaging/{create-msg91provider.md → create-msg-91-provider.md} +8 -8
  261. package/docs/examples/messaging/create-push.md +21 -21
  262. package/docs/examples/messaging/create-resend-provider.md +20 -0
  263. package/docs/examples/messaging/create-sendgrid-provider.md +10 -10
  264. package/docs/examples/messaging/create-sms.md +9 -9
  265. package/docs/examples/messaging/create-smtp-provider.md +16 -16
  266. package/docs/examples/messaging/create-subscriber.md +5 -5
  267. package/docs/examples/messaging/create-telesign-provider.md +8 -8
  268. package/docs/examples/messaging/create-textmagic-provider.md +8 -8
  269. package/docs/examples/messaging/create-topic.md +5 -5
  270. package/docs/examples/messaging/create-twilio-provider.md +8 -8
  271. package/docs/examples/messaging/create-vonage-provider.md +8 -8
  272. package/docs/examples/messaging/delete-provider.md +3 -3
  273. package/docs/examples/messaging/delete-subscriber.md +4 -4
  274. package/docs/examples/messaging/delete-topic.md +3 -3
  275. package/docs/examples/messaging/delete.md +3 -3
  276. package/docs/examples/messaging/get-message.md +3 -3
  277. package/docs/examples/messaging/get-provider.md +3 -3
  278. package/docs/examples/messaging/get-subscriber.md +4 -4
  279. package/docs/examples/messaging/get-topic.md +3 -3
  280. package/docs/examples/messaging/list-message-logs.md +5 -4
  281. package/docs/examples/messaging/list-messages.md +5 -4
  282. package/docs/examples/messaging/list-provider-logs.md +5 -4
  283. package/docs/examples/messaging/list-providers.md +5 -4
  284. package/docs/examples/messaging/list-subscriber-logs.md +5 -4
  285. package/docs/examples/messaging/list-subscribers.md +6 -5
  286. package/docs/examples/messaging/list-targets.md +5 -4
  287. package/docs/examples/messaging/list-topic-logs.md +5 -4
  288. package/docs/examples/messaging/list-topics.md +5 -4
  289. package/docs/examples/messaging/update-apns-provider.md +10 -10
  290. package/docs/examples/messaging/update-email.md +14 -14
  291. package/docs/examples/messaging/update-fcm-provider.md +6 -6
  292. package/docs/examples/messaging/update-mailgun-provider.md +12 -12
  293. package/docs/examples/messaging/{update-msg91provider.md → update-msg-91-provider.md} +8 -8
  294. package/docs/examples/messaging/update-push.md +21 -21
  295. package/docs/examples/messaging/update-resend-provider.md +20 -0
  296. package/docs/examples/messaging/update-sendgrid-provider.md +10 -10
  297. package/docs/examples/messaging/update-sms.md +9 -9
  298. package/docs/examples/messaging/update-smtp-provider.md +16 -16
  299. package/docs/examples/messaging/update-telesign-provider.md +8 -8
  300. package/docs/examples/messaging/update-textmagic-provider.md +8 -8
  301. package/docs/examples/messaging/update-topic.md +5 -5
  302. package/docs/examples/messaging/update-twilio-provider.md +8 -8
  303. package/docs/examples/messaging/update-vonage-provider.md +8 -8
  304. package/docs/examples/migrations/create-appwrite-migration.md +6 -6
  305. package/docs/examples/migrations/create-csv-export.md +21 -0
  306. package/docs/examples/migrations/{create-csv-migration.md → create-csv-import.md} +6 -5
  307. package/docs/examples/migrations/create-firebase-migration.md +4 -4
  308. package/docs/examples/migrations/create-n-host-migration.md +10 -10
  309. package/docs/examples/migrations/create-supabase-migration.md +9 -9
  310. package/docs/examples/migrations/delete.md +3 -3
  311. package/docs/examples/migrations/get-appwrite-report.md +6 -6
  312. package/docs/examples/migrations/get-firebase-report.md +4 -4
  313. package/docs/examples/migrations/get-n-host-report.md +10 -10
  314. package/docs/examples/migrations/get-supabase-report.md +9 -9
  315. package/docs/examples/migrations/get.md +3 -3
  316. package/docs/examples/migrations/list.md +5 -4
  317. package/docs/examples/migrations/retry.md +3 -3
  318. package/docs/examples/organizations/add-credit.md +4 -4
  319. package/docs/examples/organizations/cancel-downgrade.md +3 -3
  320. package/docs/examples/organizations/create-downgrade-feedback.md +17 -0
  321. package/docs/examples/organizations/create-invoice-payment.md +5 -5
  322. package/docs/examples/organizations/create.md +13 -12
  323. package/docs/examples/organizations/delete-backup-payment-method.md +3 -3
  324. package/docs/examples/organizations/delete-billing-address.md +3 -3
  325. package/docs/examples/organizations/delete-default-payment-method.md +3 -3
  326. package/docs/examples/organizations/delete.md +3 -3
  327. package/docs/examples/organizations/estimation-create-organization.md +8 -7
  328. package/docs/examples/organizations/estimation-delete-organization.md +3 -3
  329. package/docs/examples/organizations/estimation-update-plan.md +7 -7
  330. package/docs/examples/organizations/get-aggregation.md +6 -4
  331. package/docs/examples/organizations/get-available-credits.md +3 -3
  332. package/docs/examples/organizations/get-billing-address.md +4 -4
  333. package/docs/examples/organizations/get-credit.md +4 -4
  334. package/docs/examples/organizations/get-invoice-download.md +4 -4
  335. package/docs/examples/organizations/get-invoice-view.md +4 -4
  336. package/docs/examples/organizations/get-invoice.md +4 -4
  337. package/docs/examples/organizations/get-payment-method.md +4 -4
  338. package/docs/examples/organizations/get-plan.md +3 -3
  339. package/docs/examples/organizations/get-scopes.md +3 -3
  340. package/docs/examples/organizations/get-usage.md +5 -5
  341. package/docs/examples/organizations/list-aggregations.md +4 -4
  342. package/docs/examples/organizations/list-credits.md +4 -4
  343. package/docs/examples/organizations/list-invoices.md +4 -4
  344. package/docs/examples/organizations/list.md +4 -4
  345. package/docs/examples/organizations/set-backup-payment-method.md +4 -4
  346. package/docs/examples/organizations/set-billing-address.md +4 -4
  347. package/docs/examples/organizations/set-billing-email.md +4 -4
  348. package/docs/examples/organizations/set-billing-tax-id.md +4 -4
  349. package/docs/examples/organizations/set-default-payment-method.md +4 -4
  350. package/docs/examples/organizations/update-budget.md +5 -5
  351. package/docs/examples/organizations/update-plan.md +11 -11
  352. package/docs/examples/organizations/update-projects.md +4 -4
  353. package/docs/examples/organizations/validate-invoice.md +4 -4
  354. package/docs/examples/organizations/validate-payment.md +4 -4
  355. package/docs/examples/project/create-variable.md +5 -5
  356. package/docs/examples/project/delete-variable.md +3 -3
  357. package/docs/examples/project/get-usage.md +5 -5
  358. package/docs/examples/project/get-variable.md +3 -3
  359. package/docs/examples/project/update-variable.md +6 -6
  360. package/docs/examples/projects/create-dev-key.md +5 -5
  361. package/docs/examples/projects/{create-j-w-t.md → create-jwt.md} +5 -5
  362. package/docs/examples/projects/create-key.md +6 -6
  363. package/docs/examples/projects/create-platform.md +8 -8
  364. package/docs/examples/projects/create-smtp-test.md +12 -12
  365. package/docs/examples/projects/create-webhook.md +10 -10
  366. package/docs/examples/projects/create.md +16 -16
  367. package/docs/examples/projects/delete-dev-key.md +4 -4
  368. package/docs/examples/projects/delete-email-template.md +5 -5
  369. package/docs/examples/projects/delete-key.md +4 -4
  370. package/docs/examples/projects/delete-platform.md +4 -4
  371. package/docs/examples/projects/delete-sms-template.md +5 -5
  372. package/docs/examples/projects/delete-webhook.md +4 -4
  373. package/docs/examples/projects/delete.md +3 -3
  374. package/docs/examples/projects/get-dev-key.md +4 -4
  375. package/docs/examples/projects/get-email-template.md +5 -5
  376. package/docs/examples/projects/get-key.md +4 -4
  377. package/docs/examples/projects/get-platform.md +4 -4
  378. package/docs/examples/projects/get-sms-template.md +5 -5
  379. package/docs/examples/projects/get-webhook.md +4 -4
  380. package/docs/examples/projects/get.md +3 -3
  381. package/docs/examples/projects/list-dev-keys.md +4 -4
  382. package/docs/examples/projects/list-keys.md +4 -3
  383. package/docs/examples/projects/list-platforms.md +4 -3
  384. package/docs/examples/projects/list-webhooks.md +4 -3
  385. package/docs/examples/projects/list.md +5 -4
  386. package/docs/examples/projects/update-api-status-all.md +4 -4
  387. package/docs/examples/projects/update-api-status.md +6 -6
  388. package/docs/examples/projects/update-auth-duration.md +4 -4
  389. package/docs/examples/projects/update-auth-limit.md +4 -4
  390. package/docs/examples/projects/update-auth-password-dictionary.md +4 -4
  391. package/docs/examples/projects/update-auth-password-history.md +4 -4
  392. package/docs/examples/projects/update-auth-sessions-limit.md +4 -4
  393. package/docs/examples/projects/update-auth-status.md +5 -5
  394. package/docs/examples/projects/update-dev-key.md +6 -6
  395. package/docs/examples/projects/update-email-template.md +10 -10
  396. package/docs/examples/projects/update-key.md +7 -7
  397. package/docs/examples/projects/update-memberships-privacy.md +6 -6
  398. package/docs/examples/projects/update-mock-numbers.md +4 -4
  399. package/docs/examples/projects/{update-o-auth2.md → update-o-auth-2.md} +7 -7
  400. package/docs/examples/projects/update-personal-data-check.md +4 -4
  401. package/docs/examples/projects/update-platform.md +8 -8
  402. package/docs/examples/projects/update-service-status-all.md +4 -4
  403. package/docs/examples/projects/update-service-status.md +5 -5
  404. package/docs/examples/projects/update-session-alerts.md +4 -4
  405. package/docs/examples/projects/update-session-invalidation.md +14 -0
  406. package/docs/examples/projects/update-sms-template.md +6 -6
  407. package/docs/examples/projects/update-smtp.md +12 -12
  408. package/docs/examples/projects/update-status.md +14 -0
  409. package/docs/examples/projects/update-team.md +4 -4
  410. package/docs/examples/projects/update-webhook-signature.md +4 -4
  411. package/docs/examples/projects/update-webhook.md +11 -11
  412. package/docs/examples/projects/update.md +13 -13
  413. package/docs/examples/proxy/{create-a-p-i-rule.md → create-api-rule.md} +3 -3
  414. package/docs/examples/proxy/create-function-rule.md +5 -5
  415. package/docs/examples/proxy/create-redirect-rule.md +8 -8
  416. package/docs/examples/proxy/create-site-rule.md +5 -5
  417. package/docs/examples/proxy/delete-rule.md +3 -3
  418. package/docs/examples/proxy/get-rule.md +3 -3
  419. package/docs/examples/proxy/list-rules.md +5 -4
  420. package/docs/examples/proxy/update-rule-verification.md +3 -3
  421. package/docs/examples/sites/create-deployment.md +8 -8
  422. package/docs/examples/sites/create-duplicate-deployment.md +4 -4
  423. package/docs/examples/sites/create-template-deployment.md +10 -9
  424. package/docs/examples/sites/create-variable.md +6 -6
  425. package/docs/examples/sites/create-vcs-deployment.md +7 -7
  426. package/docs/examples/sites/create.md +21 -21
  427. package/docs/examples/sites/delete-deployment.md +4 -4
  428. package/docs/examples/sites/delete-log.md +4 -4
  429. package/docs/examples/sites/delete-variable.md +4 -4
  430. package/docs/examples/sites/delete.md +3 -3
  431. package/docs/examples/sites/get-deployment-download.md +5 -5
  432. package/docs/examples/sites/get-deployment.md +4 -4
  433. package/docs/examples/sites/get-log.md +4 -4
  434. package/docs/examples/sites/get-template.md +3 -3
  435. package/docs/examples/sites/get-usage.md +5 -5
  436. package/docs/examples/sites/get-variable.md +4 -4
  437. package/docs/examples/sites/get.md +3 -3
  438. package/docs/examples/sites/list-deployments.md +6 -5
  439. package/docs/examples/sites/list-logs.md +5 -4
  440. package/docs/examples/sites/list-templates.md +6 -6
  441. package/docs/examples/sites/list-usage.md +4 -4
  442. package/docs/examples/sites/list-variables.md +3 -3
  443. package/docs/examples/sites/list.md +5 -4
  444. package/docs/examples/sites/update-deployment-status.md +4 -4
  445. package/docs/examples/sites/update-site-deployment.md +4 -4
  446. package/docs/examples/sites/update-variable.md +7 -7
  447. package/docs/examples/sites/update.md +21 -21
  448. package/docs/examples/storage/create-bucket.md +14 -13
  449. package/docs/examples/storage/create-file.md +7 -7
  450. package/docs/examples/storage/delete-bucket.md +3 -3
  451. package/docs/examples/storage/delete-file.md +4 -4
  452. package/docs/examples/storage/get-bucket-usage.md +5 -5
  453. package/docs/examples/storage/get-bucket.md +3 -3
  454. package/docs/examples/storage/get-file-download.md +5 -5
  455. package/docs/examples/storage/get-file-preview.md +16 -16
  456. package/docs/examples/storage/get-file-view.md +5 -5
  457. package/docs/examples/storage/get-file.md +4 -4
  458. package/docs/examples/storage/get-usage.md +4 -4
  459. package/docs/examples/storage/list-buckets.md +5 -4
  460. package/docs/examples/storage/list-files.md +6 -5
  461. package/docs/examples/storage/update-bucket.md +14 -13
  462. package/docs/examples/storage/update-file.md +7 -7
  463. package/docs/examples/tablesdb/create-boolean-column.md +18 -0
  464. package/docs/examples/tablesdb/create-datetime-column.md +18 -0
  465. package/docs/examples/tablesdb/create-email-column.md +18 -0
  466. package/docs/examples/tablesdb/create-enum-column.md +19 -0
  467. package/docs/examples/tablesdb/create-float-column.md +20 -0
  468. package/docs/examples/tablesdb/create-index.md +19 -0
  469. package/docs/examples/tablesdb/create-integer-column.md +20 -0
  470. package/docs/examples/tablesdb/create-ip-column.md +18 -0
  471. package/docs/examples/tablesdb/create-line-column.md +17 -0
  472. package/docs/examples/tablesdb/create-operations.md +24 -0
  473. package/docs/examples/tablesdb/create-point-column.md +17 -0
  474. package/docs/examples/tablesdb/create-polygon-column.md +17 -0
  475. package/docs/examples/tablesdb/create-relationship-column.md +20 -0
  476. package/docs/examples/tablesdb/create-row.md +24 -0
  477. package/docs/examples/tablesdb/create-rows.md +16 -0
  478. package/docs/examples/tablesdb/create-string-column.md +20 -0
  479. package/docs/examples/tablesdb/create-table.md +20 -0
  480. package/docs/examples/tablesdb/create-transaction.md +13 -0
  481. package/docs/examples/tablesdb/create-url-column.md +18 -0
  482. package/docs/examples/tablesdb/create.md +15 -0
  483. package/docs/examples/tablesdb/decrement-row-column.md +19 -0
  484. package/docs/examples/tablesdb/delete-column.md +15 -0
  485. package/docs/examples/tablesdb/delete-index.md +15 -0
  486. package/docs/examples/tablesdb/delete-row.md +16 -0
  487. package/docs/examples/tablesdb/delete-rows.md +16 -0
  488. package/docs/examples/tablesdb/delete-table.md +14 -0
  489. package/docs/examples/tablesdb/delete-transaction.md +13 -0
  490. package/docs/examples/tablesdb/delete.md +13 -0
  491. package/docs/examples/tablesdb/get-column.md +15 -0
  492. package/docs/examples/tablesdb/get-index.md +15 -0
  493. package/docs/examples/tablesdb/get-row.md +17 -0
  494. package/docs/examples/tablesdb/get-table-usage.md +15 -0
  495. package/docs/examples/tablesdb/get-table.md +14 -0
  496. package/docs/examples/tablesdb/get-transaction.md +13 -0
  497. package/docs/examples/tablesdb/get-usage.md +14 -0
  498. package/docs/examples/tablesdb/get.md +13 -0
  499. package/docs/examples/tablesdb/increment-row-column.md +19 -0
  500. package/docs/examples/tablesdb/list-columns.md +16 -0
  501. package/docs/examples/tablesdb/list-indexes.md +16 -0
  502. package/docs/examples/tablesdb/list-row-logs.md +16 -0
  503. package/docs/examples/tablesdb/list-rows.md +17 -0
  504. package/docs/examples/tablesdb/list-table-logs.md +15 -0
  505. package/docs/examples/tablesdb/list-tables.md +16 -0
  506. package/docs/examples/tablesdb/list-transactions.md +13 -0
  507. package/docs/examples/tablesdb/list-usage.md +13 -0
  508. package/docs/examples/tablesdb/list.md +15 -0
  509. package/docs/examples/tablesdb/update-boolean-column.md +18 -0
  510. package/docs/examples/tablesdb/update-datetime-column.md +18 -0
  511. package/docs/examples/tablesdb/update-email-column.md +18 -0
  512. package/docs/examples/tablesdb/update-enum-column.md +19 -0
  513. package/docs/examples/tablesdb/update-float-column.md +20 -0
  514. package/docs/examples/tablesdb/update-integer-column.md +20 -0
  515. package/docs/examples/tablesdb/update-ip-column.md +18 -0
  516. package/docs/examples/tablesdb/update-line-column.md +18 -0
  517. package/docs/examples/tablesdb/update-point-column.md +18 -0
  518. package/docs/examples/tablesdb/update-polygon-column.md +18 -0
  519. package/docs/examples/tablesdb/update-relationship-column.md +17 -0
  520. package/docs/examples/tablesdb/update-row.md +24 -0
  521. package/docs/examples/tablesdb/update-rows.md +23 -0
  522. package/docs/examples/tablesdb/update-string-column.md +19 -0
  523. package/docs/examples/tablesdb/update-table.md +18 -0
  524. package/docs/examples/tablesdb/update-transaction.md +15 -0
  525. package/docs/examples/tablesdb/update-url-column.md +18 -0
  526. package/docs/examples/tablesdb/update.md +15 -0
  527. package/docs/examples/tablesdb/upsert-row.md +24 -0
  528. package/docs/examples/tablesdb/upsert-rows.md +16 -0
  529. package/docs/examples/teams/create-membership.md +9 -9
  530. package/docs/examples/teams/create.md +5 -5
  531. package/docs/examples/teams/delete-membership.md +4 -4
  532. package/docs/examples/teams/delete.md +3 -3
  533. package/docs/examples/teams/get-membership.md +4 -4
  534. package/docs/examples/teams/get-prefs.md +3 -3
  535. package/docs/examples/teams/get.md +3 -3
  536. package/docs/examples/teams/list-logs.md +5 -4
  537. package/docs/examples/teams/list-memberships.md +6 -5
  538. package/docs/examples/teams/list.md +5 -4
  539. package/docs/examples/teams/update-membership-status.md +6 -6
  540. package/docs/examples/teams/update-membership.md +5 -5
  541. package/docs/examples/teams/update-name.md +4 -4
  542. package/docs/examples/teams/update-prefs.md +4 -4
  543. package/docs/examples/tokens/create-file-token.md +5 -5
  544. package/docs/examples/tokens/delete.md +3 -3
  545. package/docs/examples/tokens/get.md +3 -3
  546. package/docs/examples/tokens/list.md +6 -5
  547. package/docs/examples/tokens/update.md +4 -4
  548. package/docs/examples/users/{create-m-d5user.md → create-argon-2-user.md} +6 -6
  549. package/docs/examples/users/create-bcrypt-user.md +6 -6
  550. package/docs/examples/users/{create-j-w-t.md → create-jwt.md} +5 -5
  551. package/docs/examples/users/{create-argon2user.md → create-md-5-user.md} +6 -6
  552. package/docs/examples/users/create-mfa-recovery-codes.md +3 -3
  553. package/docs/examples/users/{create-p-h-pass-user.md → create-ph-pass-user.md} +6 -6
  554. package/docs/examples/users/create-scrypt-modified-user.md +9 -9
  555. package/docs/examples/users/create-scrypt-user.md +11 -11
  556. package/docs/examples/users/create-session.md +3 -3
  557. package/docs/examples/users/{create-s-h-a-user.md → create-sha-user.md} +7 -7
  558. package/docs/examples/users/create-target.md +8 -8
  559. package/docs/examples/users/create-token.md +5 -5
  560. package/docs/examples/users/create.md +7 -7
  561. package/docs/examples/users/delete-identity.md +3 -3
  562. package/docs/examples/users/delete-mfa-authenticator.md +4 -4
  563. package/docs/examples/users/delete-session.md +4 -4
  564. package/docs/examples/users/delete-sessions.md +3 -3
  565. package/docs/examples/users/delete-target.md +4 -4
  566. package/docs/examples/users/delete.md +3 -3
  567. package/docs/examples/users/get-mfa-recovery-codes.md +3 -3
  568. package/docs/examples/users/get-prefs.md +3 -3
  569. package/docs/examples/users/get-target.md +4 -4
  570. package/docs/examples/users/get-usage.md +4 -4
  571. package/docs/examples/users/get.md +3 -3
  572. package/docs/examples/users/list-identities.md +5 -4
  573. package/docs/examples/users/list-logs.md +5 -4
  574. package/docs/examples/users/list-memberships.md +6 -5
  575. package/docs/examples/users/list-mfa-factors.md +3 -3
  576. package/docs/examples/users/list-sessions.md +4 -3
  577. package/docs/examples/users/list-targets.md +5 -4
  578. package/docs/examples/users/list.md +5 -4
  579. package/docs/examples/users/update-email-verification.md +4 -4
  580. package/docs/examples/users/update-email.md +4 -4
  581. package/docs/examples/users/update-labels.md +4 -4
  582. package/docs/examples/users/update-mfa-recovery-codes.md +3 -3
  583. package/docs/examples/users/update-mfa.md +4 -4
  584. package/docs/examples/users/update-name.md +4 -4
  585. package/docs/examples/users/update-password.md +4 -4
  586. package/docs/examples/users/update-phone-verification.md +4 -4
  587. package/docs/examples/users/update-phone.md +4 -4
  588. package/docs/examples/users/update-prefs.md +4 -4
  589. package/docs/examples/users/update-status.md +4 -4
  590. package/docs/examples/users/update-target.md +7 -7
  591. package/docs/examples/vcs/create-repository-detection.md +6 -6
  592. package/docs/examples/vcs/create-repository.md +5 -5
  593. package/docs/examples/vcs/delete-installation.md +3 -3
  594. package/docs/examples/vcs/get-installation.md +3 -3
  595. package/docs/examples/vcs/get-repository-contents.md +6 -6
  596. package/docs/examples/vcs/get-repository.md +4 -4
  597. package/docs/examples/vcs/list-installations.md +5 -4
  598. package/docs/examples/vcs/list-repositories.md +6 -5
  599. package/docs/examples/vcs/list-repository-branches.md +4 -4
  600. package/docs/examples/vcs/update-external-deployments.md +5 -5
  601. package/package.json +4 -4
  602. package/src/client.ts +42 -7
  603. package/src/enums/api-service.ts +1 -0
  604. package/src/enums/attribute-status.ts +7 -0
  605. package/src/enums/billing-plan-group.ts +5 -0
  606. package/src/enums/build-runtime.ts +2 -0
  607. package/src/enums/column-status.ts +7 -0
  608. package/src/enums/credit-card.ts +1 -1
  609. package/src/enums/database-type.ts +4 -0
  610. package/src/enums/deployment-status.ts +7 -0
  611. package/src/enums/execution-method.ts +1 -0
  612. package/src/enums/execution-status.ts +7 -0
  613. package/src/enums/execution-trigger.ts +5 -0
  614. package/src/enums/framework.ts +1 -0
  615. package/src/enums/health-antivirus-status.ts +5 -0
  616. package/src/enums/health-check-status.ts +4 -0
  617. package/src/enums/index-status.ts +7 -0
  618. package/src/enums/index-type.ts +1 -0
  619. package/src/enums/message-status.ts +7 -0
  620. package/src/enums/o-auth-provider.ts +3 -0
  621. package/src/enums/platform.ts +4 -0
  622. package/src/enums/proxy-rule-deployment-resource-type.ts +4 -0
  623. package/src/enums/proxy-rule-status.ts +6 -0
  624. package/src/enums/region.ts +3 -0
  625. package/src/enums/runtime.ts +2 -0
  626. package/src/enums/status.ts +4 -0
  627. package/src/enums/template-reference-type.ts +5 -0
  628. package/src/enums/theme.ts +4 -0
  629. package/src/enums/timezone.ts +421 -0
  630. package/src/enums/{user-usage-range.ts → usage-range.ts} +1 -1
  631. package/src/enums/{v-c-s-deployment-type.ts → vcs-reference-type.ts} +1 -1
  632. package/src/index.ts +27 -11
  633. package/src/models.ts +1692 -238
  634. package/src/operator.ts +308 -0
  635. package/src/query.ts +246 -2
  636. package/src/services/account.ts +2205 -223
  637. package/src/services/assistant.ts +29 -3
  638. package/src/services/avatars.ts +486 -33
  639. package/src/services/backups.ts +389 -42
  640. package/src/services/console.ts +492 -19
  641. package/src/services/databases.ts +3521 -431
  642. package/src/services/domains.ts +1684 -197
  643. package/src/services/functions.ts +1162 -149
  644. package/src/services/graphql.ts +55 -4
  645. package/src/services/health.ts +560 -41
  646. package/src/services/locale.ts +9 -0
  647. package/src/services/messaging.ts +3367 -380
  648. package/src/services/migrations.ts +641 -65
  649. package/src/services/organizations.ts +1323 -128
  650. package/src/services/project.ts +168 -17
  651. package/src/services/projects.ts +2742 -266
  652. package/src/services/proxy.ts +265 -26
  653. package/src/services/realtime.ts +437 -0
  654. package/src/services/sites.ts +1098 -140
  655. package/src/services/storage.ts +651 -82
  656. package/src/services/tables-db.ts +5439 -0
  657. package/src/services/teams.ts +512 -55
  658. package/src/services/tokens.ts +167 -16
  659. package/src/services/users.ts +1873 -181
  660. package/src/services/vcs.ts +359 -39
  661. package/types/client.d.ts +14 -5
  662. package/types/enums/api-service.d.ts +1 -0
  663. package/types/enums/attribute-status.d.ts +7 -0
  664. package/types/enums/billing-plan-group.d.ts +5 -0
  665. package/types/enums/build-runtime.d.ts +3 -1
  666. package/types/enums/column-status.d.ts +7 -0
  667. package/types/enums/credit-card.d.ts +1 -1
  668. package/types/enums/database-type.d.ts +4 -0
  669. package/types/enums/deployment-status.d.ts +7 -0
  670. package/types/enums/execution-method.d.ts +2 -1
  671. package/types/enums/execution-status.d.ts +7 -0
  672. package/types/enums/execution-trigger.d.ts +5 -0
  673. package/types/enums/framework.d.ts +1 -0
  674. package/types/enums/health-antivirus-status.d.ts +5 -0
  675. package/types/enums/health-check-status.d.ts +4 -0
  676. package/types/enums/index-status.d.ts +7 -0
  677. package/types/enums/index-type.d.ts +2 -1
  678. package/types/enums/message-status.d.ts +7 -0
  679. package/types/enums/o-auth-provider.d.ts +4 -1
  680. package/types/enums/platform.d.ts +4 -0
  681. package/types/enums/proxy-rule-deployment-resource-type.d.ts +4 -0
  682. package/types/enums/proxy-rule-status.d.ts +6 -0
  683. package/types/enums/region.d.ts +4 -1
  684. package/types/enums/runtime.d.ts +3 -1
  685. package/types/enums/status.d.ts +4 -0
  686. package/types/enums/template-reference-type.d.ts +5 -0
  687. package/types/enums/theme.d.ts +4 -0
  688. package/types/enums/timezone.d.ts +421 -0
  689. package/types/enums/{site-usage-range.d.ts → usage-range.d.ts} +1 -1
  690. package/types/enums/{v-c-s-deployment-type.d.ts → vcs-reference-type.d.ts} +1 -1
  691. package/types/index.d.ts +27 -11
  692. package/types/models.d.ts +1664 -245
  693. package/types/operator.d.ts +180 -0
  694. package/types/query.d.ts +198 -2
  695. package/types/services/account.d.ts +985 -123
  696. package/types/services/assistant.d.ts +13 -2
  697. package/types/services/avatars.d.ts +244 -26
  698. package/types/services/backups.d.ts +190 -30
  699. package/types/services/console.d.ts +201 -14
  700. package/types/services/databases.d.ts +1731 -284
  701. package/types/services/domains.d.ts +904 -152
  702. package/types/services/functions.d.ts +616 -125
  703. package/types/services/graphql.d.ts +24 -2
  704. package/types/services/health.d.ts +245 -23
  705. package/types/services/messaging.d.ts +1660 -271
  706. package/types/services/migrations.d.ts +319 -53
  707. package/types/services/organizations.d.ts +635 -97
  708. package/types/services/project.d.ts +81 -12
  709. package/types/services/projects.d.ts +1308 -202
  710. package/types/services/proxy.d.ts +128 -19
  711. package/types/services/realtime.d.ts +118 -0
  712. package/types/services/sites.d.ts +577 -116
  713. package/types/services/storage.d.ts +354 -73
  714. package/types/services/tables-db.d.ts +2040 -0
  715. package/types/services/teams.d.ts +260 -44
  716. package/types/services/tokens.d.ts +80 -12
  717. package/types/services/users.d.ts +881 -124
  718. package/types/services/vcs.d.ts +179 -31
  719. package/docs/examples/domains/create-record-m-x.md +0 -18
  720. package/docs/examples/domains/create-record-s-r-v.md +0 -20
  721. package/docs/examples/domains/create-record-t-x-t.md +0 -17
  722. package/docs/examples/domains/update-record-a-a-a-a.md +0 -18
  723. package/docs/examples/domains/update-record-c-a-a.md +0 -18
  724. package/docs/examples/domains/update-record-c-n-a-m-e.md +0 -18
  725. package/docs/examples/domains/update-record-h-t-t-p-s.md +0 -18
  726. package/docs/examples/domains/update-record-m-x.md +0 -19
  727. package/docs/examples/domains/update-record-n-s.md +0 -18
  728. package/docs/examples/domains/update-record-s-r-v.md +0 -21
  729. package/docs/examples/domains/update-record-t-x-t.md +0 -18
  730. package/src/enums/billing-plan.ts +0 -5
  731. package/src/enums/database-usage-range.ts +0 -5
  732. package/src/enums/function-usage-range.ts +0 -5
  733. package/src/enums/site-usage-range.ts +0 -5
  734. package/src/enums/storage-usage-range.ts +0 -5
  735. package/types/enums/billing-plan.d.ts +0 -5
  736. package/types/enums/database-usage-range.d.ts +0 -5
  737. package/types/enums/function-usage-range.d.ts +0 -5
  738. package/types/enums/storage-usage-range.d.ts +0 -5
  739. package/types/enums/user-usage-range.d.ts +0 -5
  740. /package/docs/examples/health/{get-d-b.md → get-db.md} +0 -0
  741. /package/docs/examples/locale/{list-countries-e-u.md → list-countries-eu.md} +0 -0
  742. /package/src/enums/{s-m-t-p-secure.ts → smtp-secure.ts} +0 -0
  743. /package/src/enums/{v-c-s-detection-type.ts → vcs-detection-type.ts} +0 -0
  744. /package/types/enums/{s-m-t-p-secure.d.ts → smtp-secure.d.ts} +0 -0
  745. /package/types/enums/{v-c-s-detection-type.d.ts → vcs-detection-type.d.ts} +0 -0
@@ -1,45 +1,107 @@
1
1
  import { Client, UploadProgress } from '../client';
2
2
  import type { Models } from '../models';
3
3
  import { Runtime } from '../enums/runtime';
4
- import { FunctionUsageRange } from '../enums/function-usage-range';
5
- import { VCSDeploymentType } from '../enums/v-c-s-deployment-type';
4
+ import { UsageRange } from '../enums/usage-range';
5
+ import { TemplateReferenceType } from '../enums/template-reference-type';
6
+ import { VCSReferenceType } from '../enums/vcs-reference-type';
6
7
  import { DeploymentDownloadType } from '../enums/deployment-download-type';
7
8
  import { ExecutionMethod } from '../enums/execution-method';
8
9
  export declare class Functions {
9
10
  client: Client;
10
11
  constructor(client: Client);
11
12
  /**
12
- * Get a list of all the project's functions. You can use the query params to filter your results.
13
+ * Get a list of all the project's functions. You can use the query params to filter your results.
13
14
  *
14
- * @param {string[]} queries
15
- * @param {string} search
15
+ * @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: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
16
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
17
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
16
18
  * @throws {AppwriteException}
17
19
  * @returns {Promise<Models.FunctionList>}
18
20
  */
19
- list(queries?: string[], search?: string): Promise<Models.FunctionList>;
21
+ list(params?: {
22
+ queries?: string[];
23
+ search?: string;
24
+ total?: boolean;
25
+ }): Promise<Models.FunctionList>;
26
+ /**
27
+ * Get a list of all the project's functions. You can use the query params to filter your results.
28
+ *
29
+ * @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: name, enabled, runtime, deploymentId, schedule, scheduleNext, schedulePrevious, timeout, entrypoint, commands, installationId
30
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
31
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
32
+ * @throws {AppwriteException}
33
+ * @returns {Promise<Models.FunctionList>}
34
+ * @deprecated Use the object parameter style method for a better developer experience.
35
+ */
36
+ list(queries?: string[], search?: string, total?: boolean): Promise<Models.FunctionList>;
37
+ /**
38
+ * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
39
+ *
40
+ * @param {string} params.functionId - Function 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.
41
+ * @param {string} params.name - Function name. Max length: 128 chars.
42
+ * @param {Runtime} params.runtime - Execution runtime.
43
+ * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
44
+ * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
45
+ * @param {string} params.schedule - Schedule CRON syntax.
46
+ * @param {number} params.timeout - Function maximum execution time in seconds.
47
+ * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
48
+ * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
49
+ * @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
50
+ * @param {string} params.commands - Build Commands.
51
+ * @param {string[]} params.scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
52
+ * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
53
+ * @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function.
54
+ * @param {string} params.providerBranch - Production branch for the repo linked to the function.
55
+ * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
56
+ * @param {string} params.providerRootDirectory - Path to function code in the linked repo.
57
+ * @param {string} params.specification - Runtime specification for the function and builds.
58
+ * @throws {AppwriteException}
59
+ * @returns {Promise<Models.Function>}
60
+ */
61
+ create(params: {
62
+ functionId: string;
63
+ name: string;
64
+ runtime: Runtime;
65
+ execute?: string[];
66
+ events?: string[];
67
+ schedule?: string;
68
+ timeout?: number;
69
+ enabled?: boolean;
70
+ logging?: boolean;
71
+ entrypoint?: string;
72
+ commands?: string;
73
+ scopes?: string[];
74
+ installationId?: string;
75
+ providerRepositoryId?: string;
76
+ providerBranch?: string;
77
+ providerSilentMode?: boolean;
78
+ providerRootDirectory?: string;
79
+ specification?: string;
80
+ }): Promise<Models.Function>;
20
81
  /**
21
82
  * Create a new function. You can pass a list of [permissions](https://appwrite.io/docs/permissions) to allow different project users or team with access to execute the function using the client API.
22
83
  *
23
- * @param {string} functionId
24
- * @param {string} name
25
- * @param {Runtime} runtime
26
- * @param {string[]} execute
27
- * @param {string[]} events
28
- * @param {string} schedule
29
- * @param {number} timeout
30
- * @param {boolean} enabled
31
- * @param {boolean} logging
32
- * @param {string} entrypoint
33
- * @param {string} commands
34
- * @param {string[]} scopes
35
- * @param {string} installationId
36
- * @param {string} providerRepositoryId
37
- * @param {string} providerBranch
38
- * @param {boolean} providerSilentMode
39
- * @param {string} providerRootDirectory
40
- * @param {string} specification
84
+ * @param {string} functionId - Function 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.
85
+ * @param {string} name - Function name. Max length: 128 chars.
86
+ * @param {Runtime} runtime - Execution runtime.
87
+ * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
88
+ * @param {string[]} events - Events list. Maximum of 100 events are allowed.
89
+ * @param {string} schedule - Schedule CRON syntax.
90
+ * @param {number} timeout - Function maximum execution time in seconds.
91
+ * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
92
+ * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
93
+ * @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
94
+ * @param {string} commands - Build Commands.
95
+ * @param {string[]} scopes - List of scopes allowed for API key auto-generated for every execution. Maximum of 100 scopes are allowed.
96
+ * @param {string} installationId - Appwrite Installation ID for VCS (Version Control System) deployment.
97
+ * @param {string} providerRepositoryId - Repository ID of the repo linked to the function.
98
+ * @param {string} providerBranch - Production branch for the repo linked to the function.
99
+ * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
100
+ * @param {string} providerRootDirectory - Path to function code in the linked repo.
101
+ * @param {string} specification - Runtime specification for the function and builds.
41
102
  * @throws {AppwriteException}
42
103
  * @returns {Promise<Models.Function>}
104
+ * @deprecated Use the object parameter style method for a better developer experience.
43
105
  */
44
106
  create(functionId: string, name: string, runtime: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
45
107
  /**
@@ -59,278 +121,707 @@ export declare class Functions {
59
121
  /**
60
122
  * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
61
123
  *
62
- * @param {string[]} runtimes
63
- * @param {string[]} useCases
64
- * @param {number} limit
65
- * @param {number} offset
124
+ * @param {string[]} params.runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
125
+ * @param {string[]} params.useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
126
+ * @param {number} params.limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
127
+ * @param {number} params.offset - Offset the list of returned templates. Maximum offset is 5000.
128
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
66
129
  * @throws {AppwriteException}
67
130
  * @returns {Promise<Models.TemplateFunctionList>}
68
131
  */
69
- listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number): Promise<Models.TemplateFunctionList>;
132
+ listTemplates(params?: {
133
+ runtimes?: string[];
134
+ useCases?: string[];
135
+ limit?: number;
136
+ offset?: number;
137
+ total?: boolean;
138
+ }): Promise<Models.TemplateFunctionList>;
139
+ /**
140
+ * List available function templates. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
141
+ *
142
+ * @param {string[]} runtimes - List of runtimes allowed for filtering function templates. Maximum of 100 runtimes are allowed.
143
+ * @param {string[]} useCases - List of use cases allowed for filtering function templates. Maximum of 100 use cases are allowed.
144
+ * @param {number} limit - Limit the number of templates returned in the response. Default limit is 25, and maximum limit is 5000.
145
+ * @param {number} offset - Offset the list of returned templates. Maximum offset is 5000.
146
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
147
+ * @throws {AppwriteException}
148
+ * @returns {Promise<Models.TemplateFunctionList>}
149
+ * @deprecated Use the object parameter style method for a better developer experience.
150
+ */
151
+ listTemplates(runtimes?: string[], useCases?: string[], limit?: number, offset?: number, total?: boolean): Promise<Models.TemplateFunctionList>;
152
+ /**
153
+ * Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
154
+ *
155
+ * @param {string} params.templateId - Template ID.
156
+ * @throws {AppwriteException}
157
+ * @returns {Promise<Models.TemplateFunction>}
158
+ */
159
+ getTemplate(params: {
160
+ templateId: string;
161
+ }): Promise<Models.TemplateFunction>;
70
162
  /**
71
163
  * Get a function template using ID. You can use template details in [createFunction](/docs/references/cloud/server-nodejs/functions#create) method.
72
164
  *
73
- * @param {string} templateId
165
+ * @param {string} templateId - Template ID.
74
166
  * @throws {AppwriteException}
75
167
  * @returns {Promise<Models.TemplateFunction>}
168
+ * @deprecated Use the object parameter style method for a better developer experience.
76
169
  */
77
170
  getTemplate(templateId: string): Promise<Models.TemplateFunction>;
78
171
  /**
79
172
  * Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
80
173
  *
81
- * @param {FunctionUsageRange} range
174
+ * @param {UsageRange} params.range - Date range.
82
175
  * @throws {AppwriteException}
83
176
  * @returns {Promise<Models.UsageFunctions>}
84
177
  */
85
- listUsage(range?: FunctionUsageRange): Promise<Models.UsageFunctions>;
178
+ listUsage(params?: {
179
+ range?: UsageRange;
180
+ }): Promise<Models.UsageFunctions>;
181
+ /**
182
+ * Get usage metrics and statistics for all functions in the project. View statistics including total deployments, builds, logs, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
183
+ *
184
+ * @param {UsageRange} range - Date range.
185
+ * @throws {AppwriteException}
186
+ * @returns {Promise<Models.UsageFunctions>}
187
+ * @deprecated Use the object parameter style method for a better developer experience.
188
+ */
189
+ listUsage(range?: UsageRange): Promise<Models.UsageFunctions>;
86
190
  /**
87
191
  * Get a function by its unique ID.
88
192
  *
89
- * @param {string} functionId
193
+ * @param {string} params.functionId - Function ID.
90
194
  * @throws {AppwriteException}
91
195
  * @returns {Promise<Models.Function>}
92
196
  */
197
+ get(params: {
198
+ functionId: string;
199
+ }): Promise<Models.Function>;
200
+ /**
201
+ * Get a function by its unique ID.
202
+ *
203
+ * @param {string} functionId - Function ID.
204
+ * @throws {AppwriteException}
205
+ * @returns {Promise<Models.Function>}
206
+ * @deprecated Use the object parameter style method for a better developer experience.
207
+ */
93
208
  get(functionId: string): Promise<Models.Function>;
94
209
  /**
95
210
  * Update function by its unique ID.
96
211
  *
97
- * @param {string} functionId
98
- * @param {string} name
99
- * @param {Runtime} runtime
100
- * @param {string[]} execute
101
- * @param {string[]} events
102
- * @param {string} schedule
103
- * @param {number} timeout
104
- * @param {boolean} enabled
105
- * @param {boolean} logging
106
- * @param {string} entrypoint
107
- * @param {string} commands
108
- * @param {string[]} scopes
109
- * @param {string} installationId
110
- * @param {string} providerRepositoryId
111
- * @param {string} providerBranch
112
- * @param {boolean} providerSilentMode
113
- * @param {string} providerRootDirectory
114
- * @param {string} specification
212
+ * @param {string} params.functionId - Function ID.
213
+ * @param {string} params.name - Function name. Max length: 128 chars.
214
+ * @param {Runtime} params.runtime - Execution runtime.
215
+ * @param {string[]} params.execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
216
+ * @param {string[]} params.events - Events list. Maximum of 100 events are allowed.
217
+ * @param {string} params.schedule - Schedule CRON syntax.
218
+ * @param {number} params.timeout - Maximum execution time in seconds.
219
+ * @param {boolean} params.enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
220
+ * @param {boolean} params.logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
221
+ * @param {string} params.entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
222
+ * @param {string} params.commands - Build Commands.
223
+ * @param {string[]} params.scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
224
+ * @param {string} params.installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
225
+ * @param {string} params.providerRepositoryId - Repository ID of the repo linked to the function
226
+ * @param {string} params.providerBranch - Production branch for the repo linked to the function
227
+ * @param {boolean} params.providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
228
+ * @param {string} params.providerRootDirectory - Path to function code in the linked repo.
229
+ * @param {string} params.specification - Runtime specification for the function and builds.
230
+ * @throws {AppwriteException}
231
+ * @returns {Promise<Models.Function>}
232
+ */
233
+ update(params: {
234
+ functionId: string;
235
+ name: string;
236
+ runtime?: Runtime;
237
+ execute?: string[];
238
+ events?: string[];
239
+ schedule?: string;
240
+ timeout?: number;
241
+ enabled?: boolean;
242
+ logging?: boolean;
243
+ entrypoint?: string;
244
+ commands?: string;
245
+ scopes?: string[];
246
+ installationId?: string;
247
+ providerRepositoryId?: string;
248
+ providerBranch?: string;
249
+ providerSilentMode?: boolean;
250
+ providerRootDirectory?: string;
251
+ specification?: string;
252
+ }): Promise<Models.Function>;
253
+ /**
254
+ * Update function by its unique ID.
255
+ *
256
+ * @param {string} functionId - Function ID.
257
+ * @param {string} name - Function name. Max length: 128 chars.
258
+ * @param {Runtime} runtime - Execution runtime.
259
+ * @param {string[]} execute - An array of role strings with execution permissions. By default no user is granted with any execute permissions. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
260
+ * @param {string[]} events - Events list. Maximum of 100 events are allowed.
261
+ * @param {string} schedule - Schedule CRON syntax.
262
+ * @param {number} timeout - Maximum execution time in seconds.
263
+ * @param {boolean} enabled - Is function enabled? When set to 'disabled', users cannot access the function but Server SDKs with and API key can still access the function. No data is lost when this is toggled.
264
+ * @param {boolean} logging - When disabled, executions will exclude logs and errors, and will be slightly faster.
265
+ * @param {string} entrypoint - Entrypoint File. This path is relative to the "providerRootDirectory".
266
+ * @param {string} commands - Build Commands.
267
+ * @param {string[]} scopes - List of scopes allowed for API Key auto-generated for every execution. Maximum of 100 scopes are allowed.
268
+ * @param {string} installationId - Appwrite Installation ID for VCS (Version Controle System) deployment.
269
+ * @param {string} providerRepositoryId - Repository ID of the repo linked to the function
270
+ * @param {string} providerBranch - Production branch for the repo linked to the function
271
+ * @param {boolean} providerSilentMode - Is the VCS (Version Control System) connection in silent mode for the repo linked to the function? In silent mode, comments will not be made on commits and pull requests.
272
+ * @param {string} providerRootDirectory - Path to function code in the linked repo.
273
+ * @param {string} specification - Runtime specification for the function and builds.
115
274
  * @throws {AppwriteException}
116
275
  * @returns {Promise<Models.Function>}
276
+ * @deprecated Use the object parameter style method for a better developer experience.
117
277
  */
118
278
  update(functionId: string, name: string, runtime?: Runtime, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, scopes?: string[], installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, specification?: string): Promise<Models.Function>;
119
279
  /**
120
280
  * Delete a function by its unique ID.
121
281
  *
122
- * @param {string} functionId
282
+ * @param {string} params.functionId - Function ID.
283
+ * @throws {AppwriteException}
284
+ * @returns {Promise<{}>}
285
+ */
286
+ delete(params: {
287
+ functionId: string;
288
+ }): Promise<{}>;
289
+ /**
290
+ * Delete a function by its unique ID.
291
+ *
292
+ * @param {string} functionId - Function ID.
123
293
  * @throws {AppwriteException}
124
294
  * @returns {Promise<{}>}
295
+ * @deprecated Use the object parameter style method for a better developer experience.
125
296
  */
126
297
  delete(functionId: string): Promise<{}>;
127
298
  /**
128
299
  * Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
129
300
  *
130
- * @param {string} functionId
131
- * @param {string} deploymentId
301
+ * @param {string} params.functionId - Function ID.
302
+ * @param {string} params.deploymentId - Deployment ID.
303
+ * @throws {AppwriteException}
304
+ * @returns {Promise<Models.Function>}
305
+ */
306
+ updateFunctionDeployment(params: {
307
+ functionId: string;
308
+ deploymentId: string;
309
+ }): Promise<Models.Function>;
310
+ /**
311
+ * Update the function active deployment. Use this endpoint to switch the code deployment that should be used when visitor opens your function.
312
+ *
313
+ * @param {string} functionId - Function ID.
314
+ * @param {string} deploymentId - Deployment ID.
132
315
  * @throws {AppwriteException}
133
316
  * @returns {Promise<Models.Function>}
317
+ * @deprecated Use the object parameter style method for a better developer experience.
134
318
  */
135
319
  updateFunctionDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
136
320
  /**
137
- * Get a list of all the function&#039;s code deployments. You can use the query params to filter your results.
321
+ * Get a list of all the function's code deployments. You can use the query params to filter your results.
138
322
  *
139
- * @param {string} functionId
140
- * @param {string[]} queries
141
- * @param {string} search
323
+ * @param {string} params.functionId - Function ID.
324
+ * @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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
325
+ * @param {string} params.search - Search term to filter your list results. Max length: 256 chars.
326
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
142
327
  * @throws {AppwriteException}
143
328
  * @returns {Promise<Models.DeploymentList>}
144
329
  */
145
- listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
330
+ listDeployments(params: {
331
+ functionId: string;
332
+ queries?: string[];
333
+ search?: string;
334
+ total?: boolean;
335
+ }): Promise<Models.DeploymentList>;
336
+ /**
337
+ * Get a list of all the function's code deployments. You can use the query params to filter your results.
338
+ *
339
+ * @param {string} functionId - Function ID.
340
+ * @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: buildSize, sourceSize, totalSize, buildDuration, status, activate, type
341
+ * @param {string} search - Search term to filter your list results. Max length: 256 chars.
342
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
343
+ * @throws {AppwriteException}
344
+ * @returns {Promise<Models.DeploymentList>}
345
+ * @deprecated Use the object parameter style method for a better developer experience.
346
+ */
347
+ listDeployments(functionId: string, queries?: string[], search?: string, total?: boolean): Promise<Models.DeploymentList>;
348
+ /**
349
+ * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
350
+ *
351
+ * This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
352
+ *
353
+ * Use the "command" param to set the entrypoint used to execute your code.
354
+ *
355
+ * @param {string} params.functionId - Function ID.
356
+ * @param {File} params.code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
357
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
358
+ * @param {string} params.entrypoint - Entrypoint File.
359
+ * @param {string} params.commands - Build Commands.
360
+ * @throws {AppwriteException}
361
+ * @returns {Promise<Models.Deployment>}
362
+ */
363
+ createDeployment(params: {
364
+ functionId: string;
365
+ code: File;
366
+ activate: boolean;
367
+ entrypoint?: string;
368
+ commands?: string;
369
+ onProgress?: (progress: UploadProgress) => void;
370
+ }): Promise<Models.Deployment>;
146
371
  /**
147
- * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you&#039;ll need to update the function&#039;s deployment to use your new deployment UID.
372
+ * Create a new function code deployment. Use this endpoint to upload a new version of your code function. To execute your newly uploaded code, you'll need to update the function's deployment to use your new deployment UID.
148
373
  *
149
374
  * This endpoint accepts a tar.gz file compressed with your code. Make sure to include any dependencies your code has within the compressed file. You can learn more about code packaging in the [Appwrite Cloud Functions tutorial](https://appwrite.io/docs/functions).
150
375
  *
151
- * Use the &quot;command&quot; param to set the entrypoint used to execute your code.
376
+ * Use the "command" param to set the entrypoint used to execute your code.
152
377
  *
153
- * @param {string} functionId
154
- * @param {File} code
155
- * @param {boolean} activate
156
- * @param {string} entrypoint
157
- * @param {string} commands
378
+ * @param {string} functionId - Function ID.
379
+ * @param {File} code - Gzip file with your code package. When used with the Appwrite CLI, pass the path to your code directory, and the CLI will automatically package your code. Use a path that is within the current directory.
380
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
381
+ * @param {string} entrypoint - Entrypoint File.
382
+ * @param {string} commands - Build Commands.
158
383
  * @throws {AppwriteException}
159
384
  * @returns {Promise<Models.Deployment>}
385
+ * @deprecated Use the object parameter style method for a better developer experience.
160
386
  */
161
387
  createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
162
388
  /**
163
- * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment&#039;s code will be preserved and used for the new build.
389
+ * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
164
390
  *
165
- * @param {string} functionId
166
- * @param {string} deploymentId
167
- * @param {string} buildId
391
+ * @param {string} params.functionId - Function ID.
392
+ * @param {string} params.deploymentId - Deployment ID.
393
+ * @param {string} params.buildId - Build unique ID.
168
394
  * @throws {AppwriteException}
169
395
  * @returns {Promise<Models.Deployment>}
170
396
  */
397
+ createDuplicateDeployment(params: {
398
+ functionId: string;
399
+ deploymentId: string;
400
+ buildId?: string;
401
+ }): Promise<Models.Deployment>;
402
+ /**
403
+ * Create a new build for an existing function deployment. This endpoint allows you to rebuild a deployment with the updated function configuration, including its entrypoint and build commands if they have been modified. The build process will be queued and executed asynchronously. The original deployment's code will be preserved and used for the new build.
404
+ *
405
+ * @param {string} functionId - Function ID.
406
+ * @param {string} deploymentId - Deployment ID.
407
+ * @param {string} buildId - Build unique ID.
408
+ * @throws {AppwriteException}
409
+ * @returns {Promise<Models.Deployment>}
410
+ * @deprecated Use the object parameter style method for a better developer experience.
411
+ */
171
412
  createDuplicateDeployment(functionId: string, deploymentId: string, buildId?: string): Promise<Models.Deployment>;
172
413
  /**
173
414
  * Create a deployment based on a template.
174
415
  *
175
- * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/server/functions#listTemplates) to find the template details.
416
+ * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.
417
+ *
418
+ * @param {string} params.functionId - Function ID.
419
+ * @param {string} params.repository - Repository name of the template.
420
+ * @param {string} params.owner - The name of the owner of the template.
421
+ * @param {string} params.rootDirectory - Path to function code in the template repo.
422
+ * @param {TemplateReferenceType} params.type - Type for the reference provided. Can be commit, branch, or tag
423
+ * @param {string} params.reference - Reference value, can be a commit hash, branch name, or release tag
424
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
425
+ * @throws {AppwriteException}
426
+ * @returns {Promise<Models.Deployment>}
427
+ */
428
+ createTemplateDeployment(params: {
429
+ functionId: string;
430
+ repository: string;
431
+ owner: string;
432
+ rootDirectory: string;
433
+ type: TemplateReferenceType;
434
+ reference: string;
435
+ activate?: boolean;
436
+ }): Promise<Models.Deployment>;
437
+ /**
438
+ * Create a deployment based on a template.
439
+ *
440
+ * Use this endpoint with combination of [listTemplates](https://appwrite.io/docs/products/functions/templates) to find the template details.
441
+ *
442
+ * @param {string} functionId - Function ID.
443
+ * @param {string} repository - Repository name of the template.
444
+ * @param {string} owner - The name of the owner of the template.
445
+ * @param {string} rootDirectory - Path to function code in the template repo.
446
+ * @param {TemplateReferenceType} type - Type for the reference provided. Can be commit, branch, or tag
447
+ * @param {string} reference - Reference value, can be a commit hash, branch name, or release tag
448
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
449
+ * @throws {AppwriteException}
450
+ * @returns {Promise<Models.Deployment>}
451
+ * @deprecated Use the object parameter style method for a better developer experience.
452
+ */
453
+ createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, type: TemplateReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
454
+ /**
455
+ * Create a deployment when a function is connected to VCS.
456
+ *
457
+ * This endpoint lets you create deployment from a branch, commit, or a tag.
176
458
  *
177
- * @param {string} functionId
178
- * @param {string} repository
179
- * @param {string} owner
180
- * @param {string} rootDirectory
181
- * @param {string} version
182
- * @param {boolean} activate
459
+ * @param {string} params.functionId - Function ID.
460
+ * @param {VCSReferenceType} params.type - Type of reference passed. Allowed values are: branch, commit
461
+ * @param {string} params.reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
462
+ * @param {boolean} params.activate - Automatically activate the deployment when it is finished building.
183
463
  * @throws {AppwriteException}
184
464
  * @returns {Promise<Models.Deployment>}
185
465
  */
186
- createTemplateDeployment(functionId: string, repository: string, owner: string, rootDirectory: string, version: string, activate?: boolean): Promise<Models.Deployment>;
466
+ createVcsDeployment(params: {
467
+ functionId: string;
468
+ type: VCSReferenceType;
469
+ reference: string;
470
+ activate?: boolean;
471
+ }): Promise<Models.Deployment>;
187
472
  /**
188
473
  * Create a deployment when a function is connected to VCS.
189
474
  *
190
475
  * This endpoint lets you create deployment from a branch, commit, or a tag.
191
476
  *
192
- * @param {string} functionId
193
- * @param {VCSDeploymentType} type
194
- * @param {string} reference
195
- * @param {boolean} activate
477
+ * @param {string} functionId - Function ID.
478
+ * @param {VCSReferenceType} type - Type of reference passed. Allowed values are: branch, commit
479
+ * @param {string} reference - VCS reference to create deployment from. Depending on type this can be: branch name, commit hash
480
+ * @param {boolean} activate - Automatically activate the deployment when it is finished building.
196
481
  * @throws {AppwriteException}
197
482
  * @returns {Promise<Models.Deployment>}
483
+ * @deprecated Use the object parameter style method for a better developer experience.
198
484
  */
199
- createVcsDeployment(functionId: string, type: VCSDeploymentType, reference: string, activate?: boolean): Promise<Models.Deployment>;
485
+ createVcsDeployment(functionId: string, type: VCSReferenceType, reference: string, activate?: boolean): Promise<Models.Deployment>;
200
486
  /**
201
487
  * Get a function deployment by its unique ID.
202
488
  *
203
- * @param {string} functionId
204
- * @param {string} deploymentId
489
+ * @param {string} params.functionId - Function ID.
490
+ * @param {string} params.deploymentId - Deployment ID.
205
491
  * @throws {AppwriteException}
206
492
  * @returns {Promise<Models.Deployment>}
207
493
  */
494
+ getDeployment(params: {
495
+ functionId: string;
496
+ deploymentId: string;
497
+ }): Promise<Models.Deployment>;
498
+ /**
499
+ * Get a function deployment by its unique ID.
500
+ *
501
+ * @param {string} functionId - Function ID.
502
+ * @param {string} deploymentId - Deployment ID.
503
+ * @throws {AppwriteException}
504
+ * @returns {Promise<Models.Deployment>}
505
+ * @deprecated Use the object parameter style method for a better developer experience.
506
+ */
208
507
  getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
209
508
  /**
210
509
  * Delete a code deployment by its unique ID.
211
510
  *
212
- * @param {string} functionId
213
- * @param {string} deploymentId
511
+ * @param {string} params.functionId - Function ID.
512
+ * @param {string} params.deploymentId - Deployment ID.
214
513
  * @throws {AppwriteException}
215
514
  * @returns {Promise<{}>}
216
515
  */
516
+ deleteDeployment(params: {
517
+ functionId: string;
518
+ deploymentId: string;
519
+ }): Promise<{}>;
520
+ /**
521
+ * Delete a code deployment by its unique ID.
522
+ *
523
+ * @param {string} functionId - Function ID.
524
+ * @param {string} deploymentId - Deployment ID.
525
+ * @throws {AppwriteException}
526
+ * @returns {Promise<{}>}
527
+ * @deprecated Use the object parameter style method for a better developer experience.
528
+ */
217
529
  deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
218
530
  /**
219
- * Get a function deployment content by its unique ID. The endpoint response return with a &#039;Content-Disposition: attachment&#039; header that tells the browser to start downloading the file to user downloads directory.
531
+ * Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
532
+ *
533
+ * @param {string} params.functionId - Function ID.
534
+ * @param {string} params.deploymentId - Deployment ID.
535
+ * @param {DeploymentDownloadType} params.type - Deployment file to download. Can be: "source", "output".
536
+ * @throws {AppwriteException}
537
+ * @returns {string}
538
+ */
539
+ getDeploymentDownload(params: {
540
+ functionId: string;
541
+ deploymentId: string;
542
+ type?: DeploymentDownloadType;
543
+ }): string;
544
+ /**
545
+ * Get a function deployment content by its unique ID. The endpoint response return with a 'Content-Disposition: attachment' header that tells the browser to start downloading the file to user downloads directory.
220
546
  *
221
- * @param {string} functionId
222
- * @param {string} deploymentId
223
- * @param {DeploymentDownloadType} type
547
+ * @param {string} functionId - Function ID.
548
+ * @param {string} deploymentId - Deployment ID.
549
+ * @param {DeploymentDownloadType} type - Deployment file to download. Can be: "source", "output".
224
550
  * @throws {AppwriteException}
225
551
  * @returns {string}
552
+ * @deprecated Use the object parameter style method for a better developer experience.
226
553
  */
227
554
  getDeploymentDownload(functionId: string, deploymentId: string, type?: DeploymentDownloadType): string;
228
555
  /**
229
- * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn&#039;t started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status &#039;ready&#039;) or failed. The response includes the final build status and details.
556
+ * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
557
+ *
558
+ * @param {string} params.functionId - Function ID.
559
+ * @param {string} params.deploymentId - Deployment ID.
560
+ * @throws {AppwriteException}
561
+ * @returns {Promise<Models.Deployment>}
562
+ */
563
+ updateDeploymentStatus(params: {
564
+ functionId: string;
565
+ deploymentId: string;
566
+ }): Promise<Models.Deployment>;
567
+ /**
568
+ * Cancel an ongoing function deployment build. If the build is already in progress, it will be stopped and marked as canceled. If the build hasn't started yet, it will be marked as canceled without executing. You cannot cancel builds that have already completed (status 'ready') or failed. The response includes the final build status and details.
230
569
  *
231
- * @param {string} functionId
232
- * @param {string} deploymentId
570
+ * @param {string} functionId - Function ID.
571
+ * @param {string} deploymentId - Deployment ID.
233
572
  * @throws {AppwriteException}
234
573
  * @returns {Promise<Models.Deployment>}
574
+ * @deprecated Use the object parameter style method for a better developer experience.
235
575
  */
236
576
  updateDeploymentStatus(functionId: string, deploymentId: string): Promise<Models.Deployment>;
237
577
  /**
238
578
  * Get a list of all the current user function execution logs. You can use the query params to filter your results.
239
579
  *
240
- * @param {string} functionId
241
- * @param {string[]} queries
580
+ * @param {string} params.functionId - Function ID.
581
+ * @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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
582
+ * @param {boolean} params.total - When set to false, the total count returned will be 0 and will not be calculated.
242
583
  * @throws {AppwriteException}
243
584
  * @returns {Promise<Models.ExecutionList>}
244
585
  */
245
- listExecutions(functionId: string, queries?: string[]): Promise<Models.ExecutionList>;
586
+ listExecutions(params: {
587
+ functionId: string;
588
+ queries?: string[];
589
+ total?: boolean;
590
+ }): Promise<Models.ExecutionList>;
591
+ /**
592
+ * Get a list of all the current user function execution logs. You can use the query params to filter your results.
593
+ *
594
+ * @param {string} functionId - Function ID.
595
+ * @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: trigger, status, responseStatusCode, duration, requestMethod, requestPath, deploymentId
596
+ * @param {boolean} total - When set to false, the total count returned will be 0 and will not be calculated.
597
+ * @throws {AppwriteException}
598
+ * @returns {Promise<Models.ExecutionList>}
599
+ * @deprecated Use the object parameter style method for a better developer experience.
600
+ */
601
+ listExecutions(functionId: string, queries?: string[], total?: boolean): Promise<Models.ExecutionList>;
246
602
  /**
247
603
  * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
248
604
  *
249
- * @param {string} functionId
250
- * @param {string} body
251
- * @param {boolean} async
252
- * @param {string} xpath
253
- * @param {ExecutionMethod} method
254
- * @param {object} headers
255
- * @param {string} scheduledAt
605
+ * @param {string} params.functionId - Function ID.
606
+ * @param {string} params.body - HTTP body of execution. Default value is empty string.
607
+ * @param {boolean} params.async - Execute code in the background. Default value is false.
608
+ * @param {string} params.xpath - HTTP path of execution. Path can include query params. Default value is /
609
+ * @param {ExecutionMethod} params.method - HTTP method of execution. Default value is POST.
610
+ * @param {object} params.headers - HTTP headers of execution. Defaults to empty.
611
+ * @param {string} params.scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
256
612
  * @throws {AppwriteException}
257
613
  * @returns {Promise<Models.Execution>}
258
614
  */
615
+ createExecution(params: {
616
+ functionId: string;
617
+ body?: string;
618
+ async?: boolean;
619
+ xpath?: string;
620
+ method?: ExecutionMethod;
621
+ headers?: object;
622
+ scheduledAt?: string;
623
+ }): Promise<Models.Execution>;
624
+ /**
625
+ * Trigger a function execution. The returned object will return you the current execution status. You can ping the `Get Execution` endpoint to get updates on the current execution status. Once this endpoint is called, your function execution process will start asynchronously.
626
+ *
627
+ * @param {string} functionId - Function ID.
628
+ * @param {string} body - HTTP body of execution. Default value is empty string.
629
+ * @param {boolean} async - Execute code in the background. Default value is false.
630
+ * @param {string} xpath - HTTP path of execution. Path can include query params. Default value is /
631
+ * @param {ExecutionMethod} method - HTTP method of execution. Default value is POST.
632
+ * @param {object} headers - HTTP headers of execution. Defaults to empty.
633
+ * @param {string} scheduledAt - Scheduled execution time in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.
634
+ * @throws {AppwriteException}
635
+ * @returns {Promise<Models.Execution>}
636
+ * @deprecated Use the object parameter style method for a better developer experience.
637
+ */
259
638
  createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: ExecutionMethod, headers?: object, scheduledAt?: string): Promise<Models.Execution>;
260
639
  /**
261
640
  * Get a function execution log by its unique ID.
262
641
  *
263
- * @param {string} functionId
264
- * @param {string} executionId
642
+ * @param {string} params.functionId - Function ID.
643
+ * @param {string} params.executionId - Execution ID.
644
+ * @throws {AppwriteException}
645
+ * @returns {Promise<Models.Execution>}
646
+ */
647
+ getExecution(params: {
648
+ functionId: string;
649
+ executionId: string;
650
+ }): Promise<Models.Execution>;
651
+ /**
652
+ * Get a function execution log by its unique ID.
653
+ *
654
+ * @param {string} functionId - Function ID.
655
+ * @param {string} executionId - Execution ID.
265
656
  * @throws {AppwriteException}
266
657
  * @returns {Promise<Models.Execution>}
658
+ * @deprecated Use the object parameter style method for a better developer experience.
267
659
  */
268
660
  getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
269
661
  /**
270
662
  * Delete a function execution by its unique ID.
271
663
  *
272
- * @param {string} functionId
273
- * @param {string} executionId
664
+ * @param {string} params.functionId - Function ID.
665
+ * @param {string} params.executionId - Execution ID.
274
666
  * @throws {AppwriteException}
275
667
  * @returns {Promise<{}>}
276
668
  */
669
+ deleteExecution(params: {
670
+ functionId: string;
671
+ executionId: string;
672
+ }): Promise<{}>;
673
+ /**
674
+ * Delete a function execution by its unique ID.
675
+ *
676
+ * @param {string} functionId - Function ID.
677
+ * @param {string} executionId - Execution ID.
678
+ * @throws {AppwriteException}
679
+ * @returns {Promise<{}>}
680
+ * @deprecated Use the object parameter style method for a better developer experience.
681
+ */
277
682
  deleteExecution(functionId: string, executionId: string): Promise<{}>;
278
683
  /**
279
684
  * Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
280
685
  *
281
- * @param {string} functionId
282
- * @param {FunctionUsageRange} range
686
+ * @param {string} params.functionId - Function ID.
687
+ * @param {UsageRange} params.range - Date range.
283
688
  * @throws {AppwriteException}
284
689
  * @returns {Promise<Models.UsageFunction>}
285
690
  */
286
- getUsage(functionId: string, range?: FunctionUsageRange): Promise<Models.UsageFunction>;
691
+ getUsage(params: {
692
+ functionId: string;
693
+ range?: UsageRange;
694
+ }): Promise<Models.UsageFunction>;
695
+ /**
696
+ * Get usage metrics and statistics for a for a specific function. View statistics including total deployments, builds, executions, storage usage, and compute time. The response includes both current totals and historical data for each metric. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, defaults to 30 days.
697
+ *
698
+ * @param {string} functionId - Function ID.
699
+ * @param {UsageRange} range - Date range.
700
+ * @throws {AppwriteException}
701
+ * @returns {Promise<Models.UsageFunction>}
702
+ * @deprecated Use the object parameter style method for a better developer experience.
703
+ */
704
+ getUsage(functionId: string, range?: UsageRange): Promise<Models.UsageFunction>;
705
+ /**
706
+ * Get a list of all variables of a specific function.
707
+ *
708
+ * @param {string} params.functionId - Function unique ID.
709
+ * @throws {AppwriteException}
710
+ * @returns {Promise<Models.VariableList>}
711
+ */
712
+ listVariables(params: {
713
+ functionId: string;
714
+ }): Promise<Models.VariableList>;
287
715
  /**
288
716
  * Get a list of all variables of a specific function.
289
717
  *
290
- * @param {string} functionId
718
+ * @param {string} functionId - Function unique ID.
291
719
  * @throws {AppwriteException}
292
720
  * @returns {Promise<Models.VariableList>}
721
+ * @deprecated Use the object parameter style method for a better developer experience.
293
722
  */
294
723
  listVariables(functionId: string): Promise<Models.VariableList>;
295
724
  /**
296
725
  * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
297
726
  *
298
- * @param {string} functionId
299
- * @param {string} key
300
- * @param {string} value
301
- * @param {boolean} secret
727
+ * @param {string} params.functionId - Function unique ID.
728
+ * @param {string} params.key - Variable key. Max length: 255 chars.
729
+ * @param {string} params.value - Variable value. Max length: 8192 chars.
730
+ * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
731
+ * @throws {AppwriteException}
732
+ * @returns {Promise<Models.Variable>}
733
+ */
734
+ createVariable(params: {
735
+ functionId: string;
736
+ key: string;
737
+ value: string;
738
+ secret?: boolean;
739
+ }): Promise<Models.Variable>;
740
+ /**
741
+ * Create a new function environment variable. These variables can be accessed in the function at runtime as environment variables.
742
+ *
743
+ * @param {string} functionId - Function unique ID.
744
+ * @param {string} key - Variable key. Max length: 255 chars.
745
+ * @param {string} value - Variable value. Max length: 8192 chars.
746
+ * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
302
747
  * @throws {AppwriteException}
303
748
  * @returns {Promise<Models.Variable>}
749
+ * @deprecated Use the object parameter style method for a better developer experience.
304
750
  */
305
751
  createVariable(functionId: string, key: string, value: string, secret?: boolean): Promise<Models.Variable>;
306
752
  /**
307
753
  * Get a variable by its unique ID.
308
754
  *
309
- * @param {string} functionId
310
- * @param {string} variableId
755
+ * @param {string} params.functionId - Function unique ID.
756
+ * @param {string} params.variableId - Variable unique ID.
311
757
  * @throws {AppwriteException}
312
758
  * @returns {Promise<Models.Variable>}
313
759
  */
760
+ getVariable(params: {
761
+ functionId: string;
762
+ variableId: string;
763
+ }): Promise<Models.Variable>;
764
+ /**
765
+ * Get a variable by its unique ID.
766
+ *
767
+ * @param {string} functionId - Function unique ID.
768
+ * @param {string} variableId - Variable unique ID.
769
+ * @throws {AppwriteException}
770
+ * @returns {Promise<Models.Variable>}
771
+ * @deprecated Use the object parameter style method for a better developer experience.
772
+ */
314
773
  getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
315
774
  /**
316
775
  * Update variable by its unique ID.
317
776
  *
318
- * @param {string} functionId
319
- * @param {string} variableId
320
- * @param {string} key
321
- * @param {string} value
322
- * @param {boolean} secret
777
+ * @param {string} params.functionId - Function unique ID.
778
+ * @param {string} params.variableId - Variable unique ID.
779
+ * @param {string} params.key - Variable key. Max length: 255 chars.
780
+ * @param {string} params.value - Variable value. Max length: 8192 chars.
781
+ * @param {boolean} params.secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
323
782
  * @throws {AppwriteException}
324
783
  * @returns {Promise<Models.Variable>}
325
784
  */
785
+ updateVariable(params: {
786
+ functionId: string;
787
+ variableId: string;
788
+ key: string;
789
+ value?: string;
790
+ secret?: boolean;
791
+ }): Promise<Models.Variable>;
792
+ /**
793
+ * Update variable by its unique ID.
794
+ *
795
+ * @param {string} functionId - Function unique ID.
796
+ * @param {string} variableId - Variable unique ID.
797
+ * @param {string} key - Variable key. Max length: 255 chars.
798
+ * @param {string} value - Variable value. Max length: 8192 chars.
799
+ * @param {boolean} secret - Secret variables can be updated or deleted, but only functions can read them during build and runtime.
800
+ * @throws {AppwriteException}
801
+ * @returns {Promise<Models.Variable>}
802
+ * @deprecated Use the object parameter style method for a better developer experience.
803
+ */
326
804
  updateVariable(functionId: string, variableId: string, key: string, value?: string, secret?: boolean): Promise<Models.Variable>;
327
805
  /**
328
806
  * Delete a variable by its unique ID.
329
807
  *
330
- * @param {string} functionId
331
- * @param {string} variableId
808
+ * @param {string} params.functionId - Function unique ID.
809
+ * @param {string} params.variableId - Variable unique ID.
810
+ * @throws {AppwriteException}
811
+ * @returns {Promise<{}>}
812
+ */
813
+ deleteVariable(params: {
814
+ functionId: string;
815
+ variableId: string;
816
+ }): Promise<{}>;
817
+ /**
818
+ * Delete a variable by its unique ID.
819
+ *
820
+ * @param {string} functionId - Function unique ID.
821
+ * @param {string} variableId - Variable unique ID.
332
822
  * @throws {AppwriteException}
333
823
  * @returns {Promise<{}>}
824
+ * @deprecated Use the object parameter style method for a better developer experience.
334
825
  */
335
826
  deleteVariable(functionId: string, variableId: string): Promise<{}>;
336
827
  }