@appwrite.io/console 0.2.0 → 0.4.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 (322) hide show
  1. package/README.md +3 -3
  2. package/dist/cjs/sdk.js +3353 -1497
  3. package/dist/cjs/sdk.js.map +1 -1
  4. package/dist/esm/sdk.js +3350 -1498
  5. package/dist/esm/sdk.js.map +1 -1
  6. package/dist/iife/sdk.js +3353 -1497
  7. package/docs/examples/account/create-anonymous-session.md +1 -1
  8. package/docs/examples/account/create-email-session.md +1 -1
  9. package/docs/examples/account/create-j-w-t.md +1 -1
  10. package/docs/examples/account/create-magic-u-r-l-session.md +1 -1
  11. package/docs/examples/account/create-o-auth2session.md +1 -1
  12. package/docs/examples/account/create-phone-session.md +1 -1
  13. package/docs/examples/account/create-phone-verification.md +1 -1
  14. package/docs/examples/account/create-recovery.md +1 -1
  15. package/docs/examples/account/create-verification.md +1 -1
  16. package/docs/examples/account/create.md +1 -1
  17. package/docs/examples/account/{create-with-invite-code.md → delete-identity.md} +2 -2
  18. package/docs/examples/account/delete-session.md +1 -1
  19. package/docs/examples/account/delete-sessions.md +1 -1
  20. package/docs/examples/account/get-prefs.md +1 -1
  21. package/docs/examples/account/get-session.md +1 -1
  22. package/docs/examples/account/get.md +1 -1
  23. package/docs/examples/account/list-identities.md +18 -0
  24. package/docs/examples/account/list-logs.md +1 -1
  25. package/docs/examples/account/list-sessions.md +1 -1
  26. package/docs/examples/account/update-email.md +1 -1
  27. package/docs/examples/account/update-magic-u-r-l-session.md +1 -1
  28. package/docs/examples/account/update-name.md +1 -1
  29. package/docs/examples/account/update-password.md +1 -1
  30. package/docs/examples/account/update-phone-session.md +1 -1
  31. package/docs/examples/account/update-phone-verification.md +1 -1
  32. package/docs/examples/account/update-phone.md +1 -1
  33. package/docs/examples/account/update-prefs.md +1 -1
  34. package/docs/examples/account/update-recovery.md +1 -1
  35. package/docs/examples/account/update-session.md +1 -1
  36. package/docs/examples/account/update-status.md +1 -1
  37. package/docs/examples/account/update-verification.md +1 -1
  38. package/docs/examples/assistant/chat.md +18 -0
  39. package/docs/examples/avatars/get-browser.md +1 -1
  40. package/docs/examples/avatars/get-credit-card.md +1 -1
  41. package/docs/examples/avatars/get-favicon.md +1 -1
  42. package/docs/examples/avatars/get-flag.md +1 -1
  43. package/docs/examples/avatars/get-image.md +1 -1
  44. package/docs/examples/avatars/get-initials.md +1 -1
  45. package/docs/examples/avatars/get-q-r.md +1 -1
  46. package/docs/examples/console/variables.md +1 -1
  47. package/docs/examples/databases/create-boolean-attribute.md +1 -1
  48. package/docs/examples/databases/create-collection.md +1 -1
  49. package/docs/examples/databases/create-datetime-attribute.md +1 -1
  50. package/docs/examples/databases/create-document.md +1 -1
  51. package/docs/examples/databases/create-email-attribute.md +1 -1
  52. package/docs/examples/databases/create-enum-attribute.md +1 -1
  53. package/docs/examples/databases/create-float-attribute.md +1 -1
  54. package/docs/examples/databases/create-index.md +1 -1
  55. package/docs/examples/databases/create-integer-attribute.md +1 -1
  56. package/docs/examples/databases/create-ip-attribute.md +1 -1
  57. package/docs/examples/databases/create-relationship-attribute.md +1 -1
  58. package/docs/examples/databases/create-string-attribute.md +1 -1
  59. package/docs/examples/databases/create-url-attribute.md +1 -1
  60. package/docs/examples/databases/create.md +1 -1
  61. package/docs/examples/databases/delete-attribute.md +1 -1
  62. package/docs/examples/databases/delete-collection.md +1 -1
  63. package/docs/examples/databases/delete-document.md +1 -1
  64. package/docs/examples/databases/delete-index.md +1 -1
  65. package/docs/examples/databases/delete.md +1 -1
  66. package/docs/examples/databases/get-attribute.md +1 -1
  67. package/docs/examples/databases/get-collection-usage.md +1 -1
  68. package/docs/examples/databases/get-collection.md +1 -1
  69. package/docs/examples/databases/get-database-usage.md +1 -1
  70. package/docs/examples/databases/get-document.md +1 -1
  71. package/docs/examples/databases/get-index.md +1 -1
  72. package/docs/examples/databases/get-usage.md +1 -1
  73. package/docs/examples/databases/get.md +1 -1
  74. package/docs/examples/databases/list-attributes.md +1 -1
  75. package/docs/examples/databases/list-collection-logs.md +1 -1
  76. package/docs/examples/databases/list-collections.md +1 -1
  77. package/docs/examples/databases/list-document-logs.md +1 -1
  78. package/docs/examples/databases/list-documents.md +1 -1
  79. package/docs/examples/databases/list-indexes.md +1 -1
  80. package/docs/examples/databases/list-logs.md +1 -1
  81. package/docs/examples/databases/list.md +1 -1
  82. package/docs/examples/databases/update-boolean-attribute.md +1 -1
  83. package/docs/examples/databases/update-collection.md +1 -1
  84. package/docs/examples/databases/update-datetime-attribute.md +1 -1
  85. package/docs/examples/databases/update-document.md +1 -1
  86. package/docs/examples/databases/update-email-attribute.md +1 -1
  87. package/docs/examples/databases/update-enum-attribute.md +1 -1
  88. package/docs/examples/databases/update-float-attribute.md +1 -1
  89. package/docs/examples/databases/update-integer-attribute.md +1 -1
  90. package/docs/examples/databases/update-ip-attribute.md +1 -1
  91. package/docs/examples/databases/update-relationship-attribute.md +1 -1
  92. package/docs/examples/databases/update-string-attribute.md +1 -1
  93. package/docs/examples/databases/update-url-attribute.md +1 -1
  94. package/docs/examples/databases/update.md +1 -1
  95. package/docs/examples/functions/create-build.md +1 -1
  96. package/docs/examples/functions/create-deployment.md +2 -2
  97. package/docs/examples/functions/create-execution.md +1 -1
  98. package/docs/examples/functions/create-variable.md +1 -1
  99. package/docs/examples/functions/create.md +2 -2
  100. package/docs/examples/functions/delete-deployment.md +1 -1
  101. package/docs/examples/functions/delete-variable.md +1 -1
  102. package/docs/examples/functions/delete.md +1 -1
  103. package/docs/examples/functions/download-deployment.md +14 -0
  104. package/docs/examples/functions/get-deployment.md +1 -1
  105. package/docs/examples/functions/get-execution.md +1 -1
  106. package/docs/examples/functions/get-function-usage.md +1 -1
  107. package/docs/examples/functions/get-usage.md +1 -1
  108. package/docs/examples/functions/get-variable.md +1 -1
  109. package/docs/examples/functions/get.md +1 -1
  110. package/docs/examples/functions/list-deployments.md +1 -1
  111. package/docs/examples/functions/list-executions.md +1 -1
  112. package/docs/examples/functions/list-runtimes.md +1 -1
  113. package/docs/examples/functions/list-variables.md +1 -1
  114. package/docs/examples/functions/list.md +1 -1
  115. package/docs/examples/functions/update-deployment.md +1 -1
  116. package/docs/examples/functions/update-variable.md +1 -1
  117. package/docs/examples/functions/update.md +1 -1
  118. package/docs/examples/graphql/mutation.md +1 -1
  119. package/docs/examples/graphql/query.md +1 -1
  120. package/docs/examples/health/get-antivirus.md +1 -1
  121. package/docs/examples/health/get-cache.md +1 -1
  122. package/docs/examples/health/get-d-b.md +1 -1
  123. package/docs/examples/health/get-pub-sub.md +1 -1
  124. package/docs/examples/health/get-queue-builds.md +18 -0
  125. package/docs/examples/health/get-queue-certificates.md +1 -1
  126. package/docs/examples/health/get-queue-databases.md +18 -0
  127. package/docs/examples/health/get-queue-deletes.md +18 -0
  128. package/docs/examples/health/get-queue-functions.md +1 -1
  129. package/docs/examples/health/get-queue-logs.md +1 -1
  130. package/docs/examples/health/get-queue-mails.md +18 -0
  131. package/docs/examples/health/get-queue-messaging.md +18 -0
  132. package/docs/examples/health/get-queue-migrations.md +18 -0
  133. package/docs/examples/health/get-queue-webhooks.md +1 -1
  134. package/docs/examples/health/get-queue.md +1 -1
  135. package/docs/examples/health/get-storage-local.md +1 -1
  136. package/docs/examples/health/get-time.md +1 -1
  137. package/docs/examples/health/get.md +1 -1
  138. package/docs/examples/locale/get.md +1 -1
  139. package/docs/examples/locale/list-codes.md +18 -0
  140. package/docs/examples/locale/list-continents.md +1 -1
  141. package/docs/examples/locale/list-countries-e-u.md +1 -1
  142. package/docs/examples/locale/list-countries-phones.md +1 -1
  143. package/docs/examples/locale/list-countries.md +1 -1
  144. package/docs/examples/locale/list-currencies.md +1 -1
  145. package/docs/examples/locale/list-languages.md +1 -1
  146. package/docs/examples/migrations/create-appwrite-migration.md +18 -0
  147. package/docs/examples/migrations/create-firebase-migration.md +18 -0
  148. package/docs/examples/migrations/create-firebase-o-auth-migration.md +18 -0
  149. package/docs/examples/migrations/create-n-host-migration.md +18 -0
  150. package/docs/examples/migrations/create-supabase-migration.md +18 -0
  151. package/docs/examples/migrations/delete-firebase-auth.md +18 -0
  152. package/docs/examples/migrations/delete.md +18 -0
  153. package/docs/examples/migrations/get-appwrite-report.md +18 -0
  154. package/docs/examples/migrations/get-firebase-report-o-auth.md +18 -0
  155. package/docs/examples/migrations/get-firebase-report.md +18 -0
  156. package/docs/examples/migrations/get-n-host-report.md +18 -0
  157. package/docs/examples/migrations/get-supabase-report.md +18 -0
  158. package/docs/examples/migrations/get.md +18 -0
  159. package/docs/examples/migrations/list-firebase-projects.md +18 -0
  160. package/docs/examples/migrations/list.md +18 -0
  161. package/docs/examples/migrations/retry.md +18 -0
  162. package/docs/examples/project/create-variable.md +18 -0
  163. package/docs/examples/project/delete-variable.md +18 -0
  164. package/docs/examples/project/get-usage.md +2 -2
  165. package/docs/examples/project/get-variable.md +18 -0
  166. package/docs/examples/project/list-variables.md +18 -0
  167. package/docs/examples/project/update-variable.md +18 -0
  168. package/docs/examples/projects/create-key.md +1 -1
  169. package/docs/examples/projects/create-platform.md +1 -1
  170. package/docs/examples/projects/create-webhook.md +1 -1
  171. package/docs/examples/projects/create.md +2 -2
  172. package/docs/examples/projects/delete-email-template.md +18 -0
  173. package/docs/examples/projects/delete-key.md +1 -1
  174. package/docs/examples/projects/delete-platform.md +1 -1
  175. package/docs/examples/projects/delete-sms-template.md +18 -0
  176. package/docs/examples/projects/delete-webhook.md +1 -1
  177. package/docs/examples/projects/delete.md +2 -2
  178. package/docs/examples/projects/get-email-template.md +18 -0
  179. package/docs/examples/projects/get-key.md +1 -1
  180. package/docs/examples/projects/get-platform.md +1 -1
  181. package/docs/examples/projects/get-sms-template.md +18 -0
  182. package/docs/examples/projects/get-webhook.md +1 -1
  183. package/docs/examples/projects/get.md +1 -1
  184. package/docs/examples/projects/list-keys.md +1 -1
  185. package/docs/examples/projects/list-platforms.md +1 -1
  186. package/docs/examples/projects/list-webhooks.md +1 -1
  187. package/docs/examples/projects/list.md +1 -1
  188. package/docs/examples/projects/update-auth-duration.md +1 -1
  189. package/docs/examples/projects/update-auth-limit.md +1 -1
  190. package/docs/examples/projects/update-auth-password-dictionary.md +1 -1
  191. package/docs/examples/projects/update-auth-password-history.md +1 -1
  192. package/docs/examples/projects/update-auth-sessions-limit.md +1 -1
  193. package/docs/examples/projects/update-auth-status.md +1 -1
  194. package/docs/examples/projects/update-email-template.md +18 -0
  195. package/docs/examples/projects/update-key.md +1 -1
  196. package/docs/examples/projects/update-o-auth2.md +1 -1
  197. package/docs/examples/projects/{delete-domain.md → update-personal-data-check.md} +2 -2
  198. package/docs/examples/projects/update-platform.md +1 -1
  199. package/docs/examples/projects/{create-domain.md → update-service-status-all.md} +2 -2
  200. package/docs/examples/projects/update-service-status.md +1 -1
  201. package/docs/examples/projects/update-sms-template.md +18 -0
  202. package/docs/examples/projects/{get-domain.md → update-smtp-configuration.md} +2 -2
  203. package/docs/examples/projects/{list-domains.md → update-team.md} +2 -2
  204. package/docs/examples/projects/update-webhook-signature.md +1 -1
  205. package/docs/examples/projects/update-webhook.md +1 -1
  206. package/docs/examples/projects/update.md +1 -1
  207. package/docs/examples/proxy/create-rule.md +18 -0
  208. package/docs/examples/proxy/delete-rule.md +18 -0
  209. package/docs/examples/proxy/get-rule.md +18 -0
  210. package/docs/examples/proxy/list-rules.md +18 -0
  211. package/docs/examples/proxy/update-rule-verification.md +18 -0
  212. package/docs/examples/storage/create-bucket.md +1 -1
  213. package/docs/examples/storage/create-file.md +1 -1
  214. package/docs/examples/storage/delete-bucket.md +1 -1
  215. package/docs/examples/storage/delete-file.md +1 -1
  216. package/docs/examples/storage/get-bucket-usage.md +1 -1
  217. package/docs/examples/storage/get-bucket.md +1 -1
  218. package/docs/examples/storage/get-file-download.md +1 -1
  219. package/docs/examples/storage/get-file-preview.md +1 -1
  220. package/docs/examples/storage/get-file-view.md +1 -1
  221. package/docs/examples/storage/get-file.md +1 -1
  222. package/docs/examples/storage/get-usage.md +1 -1
  223. package/docs/examples/storage/list-buckets.md +1 -1
  224. package/docs/examples/storage/list-files.md +1 -1
  225. package/docs/examples/storage/update-bucket.md +1 -1
  226. package/docs/examples/storage/update-file.md +1 -1
  227. package/docs/examples/teams/create-membership.md +2 -2
  228. package/docs/examples/teams/create.md +1 -1
  229. package/docs/examples/teams/delete-membership.md +1 -1
  230. package/docs/examples/teams/delete.md +1 -1
  231. package/docs/examples/teams/get-membership.md +1 -1
  232. package/docs/examples/teams/get-prefs.md +1 -1
  233. package/docs/examples/teams/get.md +1 -1
  234. package/docs/examples/teams/list-logs.md +1 -1
  235. package/docs/examples/teams/list-memberships.md +1 -1
  236. package/docs/examples/teams/list.md +1 -1
  237. package/docs/examples/teams/update-membership-status.md +1 -1
  238. package/docs/examples/teams/{update-membership-roles.md → update-membership.md} +2 -2
  239. package/docs/examples/teams/update-name.md +1 -1
  240. package/docs/examples/teams/update-prefs.md +1 -1
  241. package/docs/examples/users/create-argon2user.md +1 -1
  242. package/docs/examples/users/create-bcrypt-user.md +1 -1
  243. package/docs/examples/users/create-m-d5user.md +1 -1
  244. package/docs/examples/users/create-p-h-pass-user.md +1 -1
  245. package/docs/examples/users/create-s-h-a-user.md +1 -1
  246. package/docs/examples/users/create-scrypt-modified-user.md +1 -1
  247. package/docs/examples/users/create-scrypt-user.md +1 -1
  248. package/docs/examples/users/create.md +1 -1
  249. package/docs/examples/users/delete-identity.md +18 -0
  250. package/docs/examples/users/delete-session.md +1 -1
  251. package/docs/examples/users/delete-sessions.md +1 -1
  252. package/docs/examples/users/delete.md +1 -1
  253. package/docs/examples/users/get-prefs.md +1 -1
  254. package/docs/examples/users/get-usage.md +1 -1
  255. package/docs/examples/users/get.md +1 -1
  256. package/docs/examples/users/list-identities.md +18 -0
  257. package/docs/examples/users/list-logs.md +1 -1
  258. package/docs/examples/users/list-memberships.md +1 -1
  259. package/docs/examples/users/list-sessions.md +1 -1
  260. package/docs/examples/users/list.md +1 -1
  261. package/docs/examples/users/update-email-verification.md +1 -1
  262. package/docs/examples/users/update-email.md +1 -1
  263. package/docs/examples/users/update-labels.md +18 -0
  264. package/docs/examples/users/update-name.md +1 -1
  265. package/docs/examples/users/update-password.md +1 -1
  266. package/docs/examples/users/update-phone-verification.md +1 -1
  267. package/docs/examples/users/update-phone.md +1 -1
  268. package/docs/examples/users/update-prefs.md +1 -1
  269. package/docs/examples/users/update-status.md +1 -1
  270. package/docs/examples/vcs/create-repository-detection.md +18 -0
  271. package/docs/examples/vcs/create-repository.md +18 -0
  272. package/docs/examples/vcs/delete-installation.md +18 -0
  273. package/docs/examples/vcs/get-installation.md +18 -0
  274. package/docs/examples/vcs/get-repository.md +18 -0
  275. package/docs/examples/vcs/list-installations.md +18 -0
  276. package/docs/examples/vcs/list-repositories.md +18 -0
  277. package/docs/examples/vcs/list-repository-branches.md +18 -0
  278. package/docs/examples/vcs/update-external-deployments.md +18 -0
  279. package/package.json +3 -2
  280. package/src/client.ts +2 -2
  281. package/src/index.ts +4 -0
  282. package/src/models.ts +863 -233
  283. package/src/query.ts +1 -1
  284. package/src/role.ts +72 -6
  285. package/src/services/account.ts +1052 -1055
  286. package/src/services/assistant.ts +38 -0
  287. package/src/services/avatars.ts +338 -337
  288. package/src/services/console.ts +16 -16
  289. package/src/services/databases.ts +2170 -2140
  290. package/src/services/functions.ts +804 -657
  291. package/src/services/graphql.ts +47 -47
  292. package/src/services/health.ts +373 -204
  293. package/src/services/locale.ts +156 -137
  294. package/src/services/migrations.ts +707 -0
  295. package/src/services/project.ts +178 -20
  296. package/src/services/projects.ts +1511 -1256
  297. package/src/services/proxy.ts +150 -0
  298. package/src/services/storage.ts +572 -577
  299. package/src/services/teams.ts +498 -501
  300. package/src/services/users.ts +1091 -1001
  301. package/src/services/vcs.ts +272 -0
  302. package/types/index.d.ts +4 -0
  303. package/types/models.d.ts +863 -233
  304. package/types/role.d.ts +62 -0
  305. package/types/services/account.d.ts +116 -104
  306. package/types/services/assistant.d.ts +14 -0
  307. package/types/services/avatars.d.ts +18 -17
  308. package/types/services/console.d.ts +2 -2
  309. package/types/services/databases.d.ts +111 -105
  310. package/types/services/functions.d.ts +95 -55
  311. package/types/services/graphql.d.ts +4 -4
  312. package/types/services/health.d.ts +97 -26
  313. package/types/services/locale.d.ts +24 -14
  314. package/types/services/migrations.d.ts +185 -0
  315. package/types/services/project.d.ts +60 -3
  316. package/types/services/projects.d.ts +174 -104
  317. package/types/services/proxy.d.ts +59 -0
  318. package/types/services/storage.d.ts +29 -28
  319. package/types/services/teams.d.ts +36 -35
  320. package/types/services/users.d.ts +105 -66
  321. package/types/services/vcs.d.ts +97 -0
  322. package/docs/examples/projects/update-domain-verification.md +0 -18
@@ -5,7 +5,7 @@ import type { UploadProgress } from '../client';
5
5
  export declare class Functions extends Service {
6
6
  constructor(client: Client);
7
7
  /**
8
- * List Functions
8
+ * List functions
9
9
  *
10
10
  * Get a list of all the project's functions. You can use the query params to
11
11
  * filter your results.
@@ -14,14 +14,15 @@ export declare class Functions extends Service {
14
14
  * @param {string} search
15
15
  * @throws {AppwriteException}
16
16
  * @returns {Promise}
17
- */
17
+ */
18
18
  list(queries?: string[], search?: string): Promise<Models.FunctionList>;
19
19
  /**
20
- * Create Function
20
+ * Create function
21
21
  *
22
22
  * Create a new function. You can pass a list of
23
- * [permissions](/docs/permissions) to allow different project users or team
24
- * with access to execute the function using the client API.
23
+ * [permissions](https://appwrite.io/docs/permissions) to allow different
24
+ * project users or team with access to execute the function using the client
25
+ * API.
25
26
  *
26
27
  * @param {string} functionId
27
28
  * @param {string} name
@@ -31,10 +32,22 @@ export declare class Functions extends Service {
31
32
  * @param {string} schedule
32
33
  * @param {number} timeout
33
34
  * @param {boolean} enabled
35
+ * @param {boolean} logging
36
+ * @param {string} entrypoint
37
+ * @param {string} commands
38
+ * @param {string} installationId
39
+ * @param {string} providerRepositoryId
40
+ * @param {string} providerBranch
41
+ * @param {boolean} providerSilentMode
42
+ * @param {string} providerRootDirectory
43
+ * @param {string} templateRepository
44
+ * @param {string} templateOwner
45
+ * @param {string} templateRootDirectory
46
+ * @param {string} templateBranch
34
47
  * @throws {AppwriteException}
35
48
  * @returns {Promise}
36
- */
37
- create(functionId: string, name: string, runtime: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
49
+ */
50
+ create(functionId: string, name: string, runtime: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string, templateRepository?: string, templateOwner?: string, templateRootDirectory?: string, templateBranch?: string): Promise<Models.Function>;
38
51
  /**
39
52
  * List runtimes
40
53
  *
@@ -42,55 +55,64 @@ export declare class Functions extends Service {
42
55
  *
43
56
  * @throws {AppwriteException}
44
57
  * @returns {Promise}
45
- */
58
+ */
46
59
  listRuntimes(): Promise<Models.RuntimeList>;
47
60
  /**
48
- * Get Functions Usage
61
+ * Get functions usage
49
62
  *
50
63
  *
51
64
  * @param {string} range
52
65
  * @throws {AppwriteException}
53
66
  * @returns {Promise}
54
- */
67
+ */
55
68
  getUsage(range?: string): Promise<Models.UsageFunctions>;
56
69
  /**
57
- * Get Function
70
+ * Get function
58
71
  *
59
72
  * Get a function by its unique ID.
60
73
  *
61
74
  * @param {string} functionId
62
75
  * @throws {AppwriteException}
63
76
  * @returns {Promise}
64
- */
77
+ */
65
78
  get(functionId: string): Promise<Models.Function>;
66
79
  /**
67
- * Update Function
80
+ * Update function
68
81
  *
69
82
  * Update function by its unique ID.
70
83
  *
71
84
  * @param {string} functionId
72
85
  * @param {string} name
86
+ * @param {string} runtime
73
87
  * @param {string[]} execute
74
88
  * @param {string[]} events
75
89
  * @param {string} schedule
76
90
  * @param {number} timeout
77
91
  * @param {boolean} enabled
92
+ * @param {boolean} logging
93
+ * @param {string} entrypoint
94
+ * @param {string} commands
95
+ * @param {string} installationId
96
+ * @param {string} providerRepositoryId
97
+ * @param {string} providerBranch
98
+ * @param {boolean} providerSilentMode
99
+ * @param {string} providerRootDirectory
78
100
  * @throws {AppwriteException}
79
101
  * @returns {Promise}
80
- */
81
- update(functionId: string, name: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean): Promise<Models.Function>;
102
+ */
103
+ update(functionId: string, name: string, runtime?: string, execute?: string[], events?: string[], schedule?: string, timeout?: number, enabled?: boolean, logging?: boolean, entrypoint?: string, commands?: string, installationId?: string, providerRepositoryId?: string, providerBranch?: string, providerSilentMode?: boolean, providerRootDirectory?: string): Promise<Models.Function>;
82
104
  /**
83
- * Delete Function
105
+ * Delete function
84
106
  *
85
107
  * Delete a function by its unique ID.
86
108
  *
87
109
  * @param {string} functionId
88
110
  * @throws {AppwriteException}
89
111
  * @returns {Promise}
90
- */
112
+ */
91
113
  delete(functionId: string): Promise<{}>;
92
114
  /**
93
- * List Deployments
115
+ * List deployments
94
116
  *
95
117
  * Get a list of all the project's code deployments. You can use the query
96
118
  * params to filter your results.
@@ -100,10 +122,10 @@ export declare class Functions extends Service {
100
122
  * @param {string} search
101
123
  * @throws {AppwriteException}
102
124
  * @returns {Promise}
103
- */
125
+ */
104
126
  listDeployments(functionId: string, queries?: string[], search?: string): Promise<Models.DeploymentList>;
105
127
  /**
106
- * Create Deployment
128
+ * Create deployment
107
129
  *
108
130
  * Create a new function code deployment. Use this endpoint to upload a new
109
131
  * version of your code function. To execute your newly uploaded code, you'll
@@ -112,20 +134,21 @@ export declare class Functions extends Service {
112
134
  * This endpoint accepts a tar.gz file compressed with your code. Make sure to
113
135
  * include any dependencies your code has within the compressed file. You can
114
136
  * learn more about code packaging in the [Appwrite Cloud Functions
115
- * tutorial](/docs/functions).
137
+ * tutorial](https://appwrite.io/docs/functions).
116
138
  *
117
- * Use the "command" param to set the entry point used to execute your code.
139
+ * Use the "command" param to set the entrypoint used to execute your code.
118
140
  *
119
141
  * @param {string} functionId
120
- * @param {string} entrypoint
121
142
  * @param {File} code
122
143
  * @param {boolean} activate
144
+ * @param {string} entrypoint
145
+ * @param {string} commands
123
146
  * @throws {AppwriteException}
124
147
  * @returns {Promise}
125
- */
126
- createDeployment(functionId: string, entrypoint: string, code: File, activate: boolean, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
148
+ */
149
+ createDeployment(functionId: string, code: File, activate: boolean, entrypoint?: string, commands?: string, onProgress?: (progress: UploadProgress) => void): Promise<Models.Deployment>;
127
150
  /**
128
- * Get Deployment
151
+ * Get deployment
129
152
  *
130
153
  * Get a code deployment by its unique ID.
131
154
  *
@@ -133,10 +156,10 @@ export declare class Functions extends Service {
133
156
  * @param {string} deploymentId
134
157
  * @throws {AppwriteException}
135
158
  * @returns {Promise}
136
- */
159
+ */
137
160
  getDeployment(functionId: string, deploymentId: string): Promise<Models.Deployment>;
138
161
  /**
139
- * Update Function Deployment
162
+ * Update function deployment
140
163
  *
141
164
  * Update the function code deployment ID using the unique function ID. Use
142
165
  * this endpoint to switch the code deployment that should be executed by the
@@ -146,10 +169,10 @@ export declare class Functions extends Service {
146
169
  * @param {string} deploymentId
147
170
  * @throws {AppwriteException}
148
171
  * @returns {Promise}
149
- */
172
+ */
150
173
  updateDeployment(functionId: string, deploymentId: string): Promise<Models.Function>;
151
174
  /**
152
- * Delete Deployment
175
+ * Delete deployment
153
176
  *
154
177
  * Delete a code deployment by its unique ID.
155
178
  *
@@ -157,21 +180,35 @@ export declare class Functions extends Service {
157
180
  * @param {string} deploymentId
158
181
  * @throws {AppwriteException}
159
182
  * @returns {Promise}
160
- */
183
+ */
161
184
  deleteDeployment(functionId: string, deploymentId: string): Promise<{}>;
162
185
  /**
163
- * Create Build
186
+ * Create build
164
187
  *
188
+ * Create a new build for an Appwrite Function deployment. This endpoint can
189
+ * be used to retry a failed build.
165
190
  *
166
191
  * @param {string} functionId
167
192
  * @param {string} deploymentId
168
193
  * @param {string} buildId
169
194
  * @throws {AppwriteException}
170
195
  * @returns {Promise}
171
- */
196
+ */
172
197
  createBuild(functionId: string, deploymentId: string, buildId: string): Promise<{}>;
173
198
  /**
174
- * List Executions
199
+ * Download Deployment
200
+ *
201
+ * Get a Deployment's contents by its unique ID. This endpoint supports range
202
+ * requests for partial or streaming file download.
203
+ *
204
+ * @param {string} functionId
205
+ * @param {string} deploymentId
206
+ * @throws {AppwriteException}
207
+ * @returns {URL}
208
+ */
209
+ downloadDeployment(functionId: string, deploymentId: string): URL;
210
+ /**
211
+ * List executions
175
212
  *
176
213
  * Get a list of all the current user function execution logs. You can use the
177
214
  * query params to filter your results.
@@ -181,10 +218,10 @@ export declare class Functions extends Service {
181
218
  * @param {string} search
182
219
  * @throws {AppwriteException}
183
220
  * @returns {Promise}
184
- */
221
+ */
185
222
  listExecutions(functionId: string, queries?: string[], search?: string): Promise<Models.ExecutionList>;
186
223
  /**
187
- * Create Execution
224
+ * Create execution
188
225
  *
189
226
  * Trigger a function execution. The returned object will return you the
190
227
  * current execution status. You can ping the `Get Execution` endpoint to get
@@ -192,14 +229,17 @@ export declare class Functions extends Service {
192
229
  * function execution process will start asynchronously.
193
230
  *
194
231
  * @param {string} functionId
195
- * @param {string} data
232
+ * @param {string} body
196
233
  * @param {boolean} async
234
+ * @param {string} xpath
235
+ * @param {string} method
236
+ * @param {object} headers
197
237
  * @throws {AppwriteException}
198
238
  * @returns {Promise}
199
- */
200
- createExecution(functionId: string, data?: string, async?: boolean): Promise<Models.Execution>;
239
+ */
240
+ createExecution(functionId: string, body?: string, async?: boolean, xpath?: string, method?: string, headers?: object): Promise<Models.Execution>;
201
241
  /**
202
- * Get Execution
242
+ * Get execution
203
243
  *
204
244
  * Get a function execution log by its unique ID.
205
245
  *
@@ -207,43 +247,43 @@ export declare class Functions extends Service {
207
247
  * @param {string} executionId
208
248
  * @throws {AppwriteException}
209
249
  * @returns {Promise}
210
- */
250
+ */
211
251
  getExecution(functionId: string, executionId: string): Promise<Models.Execution>;
212
252
  /**
213
- * Get Function Usage
253
+ * Get function usage
214
254
  *
215
255
  *
216
256
  * @param {string} functionId
217
257
  * @param {string} range
218
258
  * @throws {AppwriteException}
219
259
  * @returns {Promise}
220
- */
260
+ */
221
261
  getFunctionUsage(functionId: string, range?: string): Promise<Models.UsageFunctions>;
222
262
  /**
223
- * List Variables
263
+ * List variables
224
264
  *
225
265
  * Get a list of all variables of a specific function.
226
266
  *
227
267
  * @param {string} functionId
228
268
  * @throws {AppwriteException}
229
269
  * @returns {Promise}
230
- */
270
+ */
231
271
  listVariables(functionId: string): Promise<Models.VariableList>;
232
272
  /**
233
- * Create Variable
273
+ * Create variable
234
274
  *
235
- * Create a new function variable. These variables can be accessed within
236
- * function in the `env` object under the request variable.
275
+ * Create a new function environment variable. These variables can be accessed
276
+ * in the function at runtime as environment variables.
237
277
  *
238
278
  * @param {string} functionId
239
279
  * @param {string} key
240
280
  * @param {string} value
241
281
  * @throws {AppwriteException}
242
282
  * @returns {Promise}
243
- */
283
+ */
244
284
  createVariable(functionId: string, key: string, value: string): Promise<Models.Variable>;
245
285
  /**
246
- * Get Variable
286
+ * Get variable
247
287
  *
248
288
  * Get a variable by its unique ID.
249
289
  *
@@ -251,10 +291,10 @@ export declare class Functions extends Service {
251
291
  * @param {string} variableId
252
292
  * @throws {AppwriteException}
253
293
  * @returns {Promise}
254
- */
294
+ */
255
295
  getVariable(functionId: string, variableId: string): Promise<Models.Variable>;
256
296
  /**
257
- * Update Variable
297
+ * Update variable
258
298
  *
259
299
  * Update variable by its unique ID.
260
300
  *
@@ -264,10 +304,10 @@ export declare class Functions extends Service {
264
304
  * @param {string} value
265
305
  * @throws {AppwriteException}
266
306
  * @returns {Promise}
267
- */
307
+ */
268
308
  updateVariable(functionId: string, variableId: string, key: string, value?: string): Promise<Models.Variable>;
269
309
  /**
270
- * Delete Variable
310
+ * Delete variable
271
311
  *
272
312
  * Delete a variable by its unique ID.
273
313
  *
@@ -275,6 +315,6 @@ export declare class Functions extends Service {
275
315
  * @param {string} variableId
276
316
  * @throws {AppwriteException}
277
317
  * @returns {Promise}
278
- */
318
+ */
279
319
  deleteVariable(functionId: string, variableId: string): Promise<{}>;
280
320
  }
@@ -3,23 +3,23 @@ import { Client } from '../client';
3
3
  export declare class Graphql extends Service {
4
4
  constructor(client: Client);
5
5
  /**
6
- * GraphQL Endpoint
6
+ * GraphQL endpoint
7
7
  *
8
8
  * Execute a GraphQL mutation.
9
9
  *
10
10
  * @param {object} query
11
11
  * @throws {AppwriteException}
12
12
  * @returns {Promise}
13
- */
13
+ */
14
14
  query(query: object): Promise<{}>;
15
15
  /**
16
- * GraphQL Endpoint
16
+ * GraphQL endpoint
17
17
  *
18
18
  * Execute a GraphQL mutation.
19
19
  *
20
20
  * @param {object} query
21
21
  * @throws {AppwriteException}
22
22
  * @returns {Promise}
23
- */
23
+ */
24
24
  mutation(query: object): Promise<{}>;
25
25
  }
@@ -10,26 +10,26 @@ export declare class Health extends Service {
10
10
  *
11
11
  * @throws {AppwriteException}
12
12
  * @returns {Promise}
13
- */
13
+ */
14
14
  get(): Promise<Models.HealthStatus>;
15
15
  /**
16
- * Get Antivirus
16
+ * Get antivirus
17
17
  *
18
18
  * Check the Appwrite Antivirus server is up and connection is successful.
19
19
  *
20
20
  * @throws {AppwriteException}
21
21
  * @returns {Promise}
22
- */
22
+ */
23
23
  getAntivirus(): Promise<Models.HealthAntivirus>;
24
24
  /**
25
- * Get Cache
25
+ * Get cache
26
26
  *
27
27
  * Check the Appwrite in-memory cache servers are up and connection is
28
28
  * successful.
29
29
  *
30
30
  * @throws {AppwriteException}
31
31
  * @returns {Promise}
32
- */
32
+ */
33
33
  getCache(): Promise<Models.HealthStatus>;
34
34
  /**
35
35
  * Get DB
@@ -38,77 +38,148 @@ export declare class Health extends Service {
38
38
  *
39
39
  * @throws {AppwriteException}
40
40
  * @returns {Promise}
41
- */
41
+ */
42
42
  getDB(): Promise<Models.HealthStatus>;
43
43
  /**
44
- * Get PubSub
44
+ * Get pubsub
45
45
  *
46
46
  * Check the Appwrite pub-sub servers are up and connection is successful.
47
47
  *
48
48
  * @throws {AppwriteException}
49
49
  * @returns {Promise}
50
- */
50
+ */
51
51
  getPubSub(): Promise<Models.HealthStatus>;
52
52
  /**
53
- * Get Queue
53
+ * Get queue
54
54
  *
55
55
  * Check the Appwrite queue messaging servers are up and connection is
56
56
  * successful.
57
57
  *
58
58
  * @throws {AppwriteException}
59
59
  * @returns {Promise}
60
- */
60
+ */
61
61
  getQueue(): Promise<Models.HealthStatus>;
62
62
  /**
63
- * Get Certificates Queue
63
+ * Get builds queue
64
+ *
65
+ * Get the number of builds that are waiting to be processed in the Appwrite
66
+ * internal queue server.
67
+ *
68
+ * @param {number} threshold
69
+ * @throws {AppwriteException}
70
+ * @returns {Promise}
71
+ */
72
+ getQueueBuilds(threshold?: number): Promise<Models.HealthQueue>;
73
+ /**
74
+ * Get certificates queue
64
75
  *
65
76
  * Get the number of certificates that are waiting to be issued against
66
77
  * [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue
67
78
  * server.
68
79
  *
80
+ * @param {number} threshold
69
81
  * @throws {AppwriteException}
70
82
  * @returns {Promise}
71
- */
72
- getQueueCertificates(): Promise<Models.HealthQueue>;
83
+ */
84
+ getQueueCertificates(threshold?: number): Promise<Models.HealthQueue>;
73
85
  /**
74
- * Get Functions Queue
86
+ * Get databases queue
75
87
  *
88
+ * Get the number of database changes that are waiting to be processed in the
89
+ * Appwrite internal queue server.
76
90
  *
91
+ * @param {string} name
92
+ * @param {number} threshold
77
93
  * @throws {AppwriteException}
78
94
  * @returns {Promise}
79
- */
80
- getQueueFunctions(): Promise<Models.HealthQueue>;
95
+ */
96
+ getQueueDatabases(name?: string, threshold?: number): Promise<Models.HealthQueue>;
81
97
  /**
82
- * Get Logs Queue
98
+ * Get deletes queue
99
+ *
100
+ * Get the number of background destructive changes that are waiting to be
101
+ * processed in the Appwrite internal queue server.
102
+ *
103
+ * @param {number} threshold
104
+ * @throws {AppwriteException}
105
+ * @returns {Promise}
106
+ */
107
+ getQueueDeletes(threshold?: number): Promise<Models.HealthQueue>;
108
+ /**
109
+ * Get functions queue
110
+ *
111
+ *
112
+ * @param {number} threshold
113
+ * @throws {AppwriteException}
114
+ * @returns {Promise}
115
+ */
116
+ getQueueFunctions(threshold?: number): Promise<Models.HealthQueue>;
117
+ /**
118
+ * Get logs queue
83
119
  *
84
120
  * Get the number of logs that are waiting to be processed in the Appwrite
85
121
  * internal queue server.
86
122
  *
123
+ * @param {number} threshold
124
+ * @throws {AppwriteException}
125
+ * @returns {Promise}
126
+ */
127
+ getQueueLogs(threshold?: number): Promise<Models.HealthQueue>;
128
+ /**
129
+ * Get mails queue
130
+ *
131
+ * Get the number of mails that are waiting to be processed in the Appwrite
132
+ * internal queue server.
133
+ *
134
+ * @param {number} threshold
135
+ * @throws {AppwriteException}
136
+ * @returns {Promise}
137
+ */
138
+ getQueueMails(threshold?: number): Promise<Models.HealthQueue>;
139
+ /**
140
+ * Get messaging queue
141
+ *
142
+ * Get the number of messages that are waiting to be processed in the Appwrite
143
+ * internal queue server.
144
+ *
145
+ * @param {number} threshold
146
+ * @throws {AppwriteException}
147
+ * @returns {Promise}
148
+ */
149
+ getQueueMessaging(threshold?: number): Promise<Models.HealthQueue>;
150
+ /**
151
+ * Get migrations queue
152
+ *
153
+ * Get the number of migrations that are waiting to be processed in the
154
+ * Appwrite internal queue server.
155
+ *
156
+ * @param {number} threshold
87
157
  * @throws {AppwriteException}
88
158
  * @returns {Promise}
89
- */
90
- getQueueLogs(): Promise<Models.HealthQueue>;
159
+ */
160
+ getQueueMigrations(threshold?: number): Promise<Models.HealthQueue>;
91
161
  /**
92
- * Get Webhooks Queue
162
+ * Get webhooks queue
93
163
  *
94
164
  * Get the number of webhooks that are waiting to be processed in the Appwrite
95
165
  * internal queue server.
96
166
  *
167
+ * @param {number} threshold
97
168
  * @throws {AppwriteException}
98
169
  * @returns {Promise}
99
- */
100
- getQueueWebhooks(): Promise<Models.HealthQueue>;
170
+ */
171
+ getQueueWebhooks(threshold?: number): Promise<Models.HealthQueue>;
101
172
  /**
102
- * Get Local Storage
173
+ * Get local storage
103
174
  *
104
175
  * Check the Appwrite local storage device is up and connection is successful.
105
176
  *
106
177
  * @throws {AppwriteException}
107
178
  * @returns {Promise}
108
- */
179
+ */
109
180
  getStorageLocal(): Promise<Models.HealthStatus>;
110
181
  /**
111
- * Get Time
182
+ * Get time
112
183
  *
113
184
  * Check the Appwrite server time is synced with Google remote NTP server. We
114
185
  * use this technology to smoothly handle leap seconds with no disruptive
@@ -120,6 +191,6 @@ export declare class Health extends Service {
120
191
  *
121
192
  * @throws {AppwriteException}
122
193
  * @returns {Promise}
123
- */
194
+ */
124
195
  getTime(): Promise<Models.HealthTime>;
125
196
  }
@@ -4,7 +4,7 @@ import type { Models } from '../models';
4
4
  export declare class Locale extends Service {
5
5
  constructor(client: Client);
6
6
  /**
7
- * Get User Locale
7
+ * Get user locale
8
8
  *
9
9
  * Get the current user location based on IP. Returns an object with user
10
10
  * country code, country name, continent name, continent code, ip address and
@@ -15,50 +15,60 @@ export declare class Locale extends Service {
15
15
  *
16
16
  * @throws {AppwriteException}
17
17
  * @returns {Promise}
18
- */
18
+ */
19
19
  get(): Promise<Models.Locale>;
20
20
  /**
21
- * List Continents
21
+ * List Locale Codes
22
+ *
23
+ * List of all locale codes in [ISO
24
+ * 639-1](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
25
+ *
26
+ * @throws {AppwriteException}
27
+ * @returns {Promise}
28
+ */
29
+ listCodes(): Promise<Models.LocaleCodeList>;
30
+ /**
31
+ * List continents
22
32
  *
23
33
  * List of all continents. You can use the locale header to get the data in a
24
34
  * supported language.
25
35
  *
26
36
  * @throws {AppwriteException}
27
37
  * @returns {Promise}
28
- */
38
+ */
29
39
  listContinents(): Promise<Models.ContinentList>;
30
40
  /**
31
- * List Countries
41
+ * List countries
32
42
  *
33
43
  * List of all countries. You can use the locale header to get the data in a
34
44
  * supported language.
35
45
  *
36
46
  * @throws {AppwriteException}
37
47
  * @returns {Promise}
38
- */
48
+ */
39
49
  listCountries(): Promise<Models.CountryList>;
40
50
  /**
41
- * List EU Countries
51
+ * List EU countries
42
52
  *
43
53
  * List of all countries that are currently members of the EU. You can use the
44
54
  * locale header to get the data in a supported language.
45
55
  *
46
56
  * @throws {AppwriteException}
47
57
  * @returns {Promise}
48
- */
58
+ */
49
59
  listCountriesEU(): Promise<Models.CountryList>;
50
60
  /**
51
- * List Countries Phone Codes
61
+ * List countries phone codes
52
62
  *
53
63
  * List of all countries phone codes. You can use the locale header to get the
54
64
  * data in a supported language.
55
65
  *
56
66
  * @throws {AppwriteException}
57
67
  * @returns {Promise}
58
- */
68
+ */
59
69
  listCountriesPhones(): Promise<Models.PhoneList>;
60
70
  /**
61
- * List Currencies
71
+ * List currencies
62
72
  *
63
73
  * List of all currencies, including currency symbol, name, plural, and
64
74
  * decimal digits for all major and minor currencies. You can use the locale
@@ -66,16 +76,16 @@ export declare class Locale extends Service {
66
76
  *
67
77
  * @throws {AppwriteException}
68
78
  * @returns {Promise}
69
- */
79
+ */
70
80
  listCurrencies(): Promise<Models.CurrencyList>;
71
81
  /**
72
- * List Languages
82
+ * List languages
73
83
  *
74
84
  * List of all languages classified by ISO 639-1 including 2-letter code, name
75
85
  * in English, and name in the respective language.
76
86
  *
77
87
  * @throws {AppwriteException}
78
88
  * @returns {Promise}
79
- */
89
+ */
80
90
  listLanguages(): Promise<Models.LanguageList>;
81
91
  }