appwrite-cli 8.2.2 → 9.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 (529) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +5 -5
  3. package/docs/examples/account/create-anonymous-session.md +1 -1
  4. package/docs/examples/account/create-email-password-session.md +3 -3
  5. package/docs/examples/account/create-email-token.md +3 -4
  6. package/docs/examples/account/create-jwt.md +1 -0
  7. package/docs/examples/account/create-magic-url-token.md +3 -0
  8. package/docs/examples/account/create-mfa-authenticator.md +2 -2
  9. package/docs/examples/account/create-mfa-challenge.md +2 -2
  10. package/docs/examples/account/create-mfa-recovery-codes.md +1 -1
  11. package/docs/examples/account/create-o-auth-2-session.md +2 -0
  12. package/docs/examples/account/create-o-auth-2-token.md +2 -0
  13. package/docs/examples/account/create-phone-token.md +3 -3
  14. package/docs/examples/account/create-phone-verification.md +1 -1
  15. package/docs/examples/account/create-push-target.md +3 -4
  16. package/docs/examples/account/create-recovery.md +3 -3
  17. package/docs/examples/account/create-session.md +3 -3
  18. package/docs/examples/account/create-verification.md +2 -2
  19. package/docs/examples/account/create.md +3 -4
  20. package/docs/examples/account/delete-identity.md +2 -2
  21. package/docs/examples/account/delete-mfa-authenticator.md +2 -2
  22. package/docs/examples/account/delete-push-target.md +2 -2
  23. package/docs/examples/account/delete-session.md +2 -2
  24. package/docs/examples/account/delete-sessions.md +1 -1
  25. package/docs/examples/account/get-mfa-recovery-codes.md +1 -1
  26. package/docs/examples/account/get-prefs.md +1 -1
  27. package/docs/examples/account/get-session.md +2 -2
  28. package/docs/examples/account/list-identities.md +1 -2
  29. package/docs/examples/account/list-logs.md +1 -2
  30. package/docs/examples/account/list-mfa-factors.md +1 -1
  31. package/docs/examples/account/list-sessions.md +1 -1
  32. package/docs/examples/account/update-email.md +3 -3
  33. package/docs/examples/account/update-magic-url-session.md +3 -0
  34. package/docs/examples/account/update-mfa-authenticator.md +3 -3
  35. package/docs/examples/account/update-mfa-challenge.md +3 -3
  36. package/docs/examples/account/update-mfa-recovery-codes.md +1 -1
  37. package/docs/examples/account/update-mfa.md +2 -0
  38. package/docs/examples/account/update-name.md +2 -2
  39. package/docs/examples/account/update-password.md +2 -3
  40. package/docs/examples/account/update-phone-session.md +3 -3
  41. package/docs/examples/account/update-phone-verification.md +3 -3
  42. package/docs/examples/account/update-phone.md +3 -3
  43. package/docs/examples/account/update-prefs.md +2 -2
  44. package/docs/examples/account/update-push-target.md +3 -3
  45. package/docs/examples/account/update-recovery.md +4 -4
  46. package/docs/examples/account/update-session.md +2 -2
  47. package/docs/examples/account/update-status.md +1 -1
  48. package/docs/examples/account/update-verification.md +3 -3
  49. package/docs/examples/avatars/get-browser.md +2 -5
  50. package/docs/examples/avatars/get-credit-card.md +2 -5
  51. package/docs/examples/avatars/get-favicon.md +2 -2
  52. package/docs/examples/avatars/get-flag.md +2 -5
  53. package/docs/examples/avatars/get-image.md +2 -4
  54. package/docs/examples/avatars/get-initials.md +1 -5
  55. package/docs/examples/avatars/get-qr.md +2 -0
  56. package/docs/examples/console/get-resource.md +3 -3
  57. package/docs/examples/databases/create-boolean-attribute.md +5 -7
  58. package/docs/examples/databases/create-collection.md +4 -7
  59. package/docs/examples/databases/create-datetime-attribute.md +5 -7
  60. package/docs/examples/databases/create-document.md +5 -6
  61. package/docs/examples/databases/create-documents.md +4 -4
  62. package/docs/examples/databases/create-email-attribute.md +5 -7
  63. package/docs/examples/databases/create-enum-attribute.md +6 -8
  64. package/docs/examples/databases/create-float-attribute.md +5 -9
  65. package/docs/examples/databases/create-index.md +6 -8
  66. package/docs/examples/databases/create-integer-attribute.md +5 -9
  67. package/docs/examples/databases/create-ip-attribute.md +5 -7
  68. package/docs/examples/databases/create-relationship-attribute.md +5 -9
  69. package/docs/examples/databases/create-string-attribute.md +6 -9
  70. package/docs/examples/databases/create-url-attribute.md +5 -7
  71. package/docs/examples/databases/create.md +2 -3
  72. package/docs/examples/databases/decrement-document-attribute.md +5 -0
  73. package/docs/examples/databases/delete-attribute.md +4 -4
  74. package/docs/examples/databases/delete-collection.md +3 -3
  75. package/docs/examples/databases/delete-document.md +4 -4
  76. package/docs/examples/databases/delete-documents.md +3 -4
  77. package/docs/examples/databases/delete-index.md +4 -4
  78. package/docs/examples/databases/delete.md +1 -1
  79. package/docs/examples/databases/get-attribute.md +4 -4
  80. package/docs/examples/databases/get-collection-usage.md +3 -4
  81. package/docs/examples/databases/get-collection.md +3 -3
  82. package/docs/examples/databases/get-document.md +4 -5
  83. package/docs/examples/databases/get-index.md +4 -4
  84. package/docs/examples/databases/get-usage.md +2 -2
  85. package/docs/examples/databases/get.md +1 -1
  86. package/docs/examples/databases/increment-document-attribute.md +5 -0
  87. package/docs/examples/databases/list-attributes.md +3 -4
  88. package/docs/examples/databases/list-collection-logs.md +3 -4
  89. package/docs/examples/databases/list-collections.md +2 -4
  90. package/docs/examples/databases/list-document-logs.md +4 -5
  91. package/docs/examples/databases/list-documents.md +3 -4
  92. package/docs/examples/databases/list-indexes.md +3 -4
  93. package/docs/examples/databases/list-logs.md +2 -3
  94. package/docs/examples/databases/list-usage.md +1 -0
  95. package/docs/examples/databases/list.md +1 -3
  96. package/docs/examples/databases/update-boolean-attribute.md +6 -7
  97. package/docs/examples/databases/update-collection.md +4 -7
  98. package/docs/examples/databases/update-datetime-attribute.md +6 -7
  99. package/docs/examples/databases/update-document.md +4 -6
  100. package/docs/examples/databases/update-documents.md +3 -5
  101. package/docs/examples/databases/update-email-attribute.md +6 -7
  102. package/docs/examples/databases/update-enum-attribute.md +7 -8
  103. package/docs/examples/databases/update-float-attribute.md +6 -9
  104. package/docs/examples/databases/update-integer-attribute.md +6 -9
  105. package/docs/examples/databases/update-ip-attribute.md +6 -7
  106. package/docs/examples/databases/update-relationship-attribute.md +4 -6
  107. package/docs/examples/databases/update-string-attribute.md +6 -8
  108. package/docs/examples/databases/update-url-attribute.md +6 -7
  109. package/docs/examples/databases/update.md +2 -3
  110. package/docs/examples/databases/upsert-document.md +5 -6
  111. package/docs/examples/databases/upsert-documents.md +4 -4
  112. package/docs/examples/functions/create-deployment.md +4 -6
  113. package/docs/examples/functions/create-duplicate-deployment.md +3 -4
  114. package/docs/examples/functions/create-execution.md +2 -8
  115. package/docs/examples/functions/create-template-deployment.md +6 -7
  116. package/docs/examples/functions/create-variable.md +4 -5
  117. package/docs/examples/functions/create-vcs-deployment.md +4 -5
  118. package/docs/examples/functions/create.md +3 -18
  119. package/docs/examples/functions/delete-deployment.md +3 -3
  120. package/docs/examples/functions/delete-execution.md +3 -3
  121. package/docs/examples/functions/delete-variable.md +3 -3
  122. package/docs/examples/functions/delete.md +1 -1
  123. package/docs/examples/functions/get-deployment-download.md +3 -4
  124. package/docs/examples/functions/get-deployment.md +3 -3
  125. package/docs/examples/functions/get-execution.md +3 -3
  126. package/docs/examples/functions/get-template.md +2 -2
  127. package/docs/examples/functions/get-usage.md +2 -3
  128. package/docs/examples/functions/get-variable.md +3 -3
  129. package/docs/examples/functions/get.md +1 -1
  130. package/docs/examples/functions/list-deployments.md +2 -4
  131. package/docs/examples/functions/list-executions.md +2 -3
  132. package/docs/examples/functions/list-runtimes.md +1 -1
  133. package/docs/examples/functions/list-specifications.md +1 -1
  134. package/docs/examples/functions/list-templates.md +1 -5
  135. package/docs/examples/functions/list-usage.md +1 -2
  136. package/docs/examples/functions/list-variables.md +2 -2
  137. package/docs/examples/functions/list.md +1 -3
  138. package/docs/examples/functions/update-deployment-status.md +3 -3
  139. package/docs/examples/functions/update-function-deployment.md +3 -3
  140. package/docs/examples/functions/update-variable.md +4 -6
  141. package/docs/examples/functions/update.md +2 -18
  142. package/docs/examples/graphql/mutation.md +1 -1
  143. package/docs/examples/graphql/query.md +1 -1
  144. package/docs/examples/health/get-antivirus.md +1 -1
  145. package/docs/examples/health/get-cache.md +1 -1
  146. package/docs/examples/health/get-certificate.md +1 -2
  147. package/docs/examples/health/get-db.md +1 -0
  148. package/docs/examples/health/get-failed-jobs.md +2 -3
  149. package/docs/examples/health/get-pub-sub.md +1 -1
  150. package/docs/examples/health/get-queue-builds.md +1 -2
  151. package/docs/examples/health/get-queue-certificates.md +1 -2
  152. package/docs/examples/health/get-queue-databases.md +1 -3
  153. package/docs/examples/health/get-queue-deletes.md +1 -2
  154. package/docs/examples/health/get-queue-functions.md +1 -2
  155. package/docs/examples/health/get-queue-logs.md +1 -2
  156. package/docs/examples/health/get-queue-mails.md +1 -2
  157. package/docs/examples/health/get-queue-messaging.md +1 -2
  158. package/docs/examples/health/get-queue-migrations.md +1 -2
  159. package/docs/examples/health/get-queue-stats-resources.md +1 -2
  160. package/docs/examples/health/get-queue-usage.md +1 -2
  161. package/docs/examples/health/get-queue-webhooks.md +1 -2
  162. package/docs/examples/health/get-storage-local.md +1 -1
  163. package/docs/examples/health/get-storage.md +1 -1
  164. package/docs/examples/health/get-time.md +1 -1
  165. package/docs/examples/locale/list-codes.md +1 -1
  166. package/docs/examples/locale/list-continents.md +1 -1
  167. package/docs/examples/locale/list-countries-eu.md +1 -0
  168. package/docs/examples/locale/list-countries-phones.md +1 -1
  169. package/docs/examples/locale/list-countries.md +1 -1
  170. package/docs/examples/locale/list-currencies.md +1 -1
  171. package/docs/examples/locale/list-languages.md +1 -1
  172. package/docs/examples/messaging/create-apns-provider.md +3 -9
  173. package/docs/examples/messaging/create-email.md +4 -13
  174. package/docs/examples/messaging/create-fcm-provider.md +3 -5
  175. package/docs/examples/messaging/create-mailgun-provider.md +3 -11
  176. package/docs/examples/messaging/create-msg-91-provider.md +3 -0
  177. package/docs/examples/messaging/create-push.md +2 -20
  178. package/docs/examples/messaging/create-sendgrid-provider.md +3 -9
  179. package/docs/examples/messaging/create-sms.md +3 -8
  180. package/docs/examples/messaging/create-smtp-provider.md +4 -15
  181. package/docs/examples/messaging/create-subscriber.md +4 -4
  182. package/docs/examples/messaging/create-telesign-provider.md +3 -7
  183. package/docs/examples/messaging/create-textmagic-provider.md +3 -7
  184. package/docs/examples/messaging/create-topic.md +3 -4
  185. package/docs/examples/messaging/create-twilio-provider.md +3 -7
  186. package/docs/examples/messaging/create-vonage-provider.md +3 -7
  187. package/docs/examples/messaging/delete-provider.md +2 -2
  188. package/docs/examples/messaging/delete-subscriber.md +3 -3
  189. package/docs/examples/messaging/delete-topic.md +2 -2
  190. package/docs/examples/messaging/delete.md +1 -1
  191. package/docs/examples/messaging/get-message.md +2 -2
  192. package/docs/examples/messaging/get-provider.md +2 -2
  193. package/docs/examples/messaging/get-subscriber.md +3 -3
  194. package/docs/examples/messaging/get-topic.md +2 -2
  195. package/docs/examples/messaging/list-message-logs.md +2 -3
  196. package/docs/examples/messaging/list-messages.md +1 -3
  197. package/docs/examples/messaging/list-provider-logs.md +2 -3
  198. package/docs/examples/messaging/list-providers.md +1 -3
  199. package/docs/examples/messaging/list-subscriber-logs.md +2 -3
  200. package/docs/examples/messaging/list-subscribers.md +2 -4
  201. package/docs/examples/messaging/list-targets.md +2 -3
  202. package/docs/examples/messaging/list-topic-logs.md +2 -3
  203. package/docs/examples/messaging/list-topics.md +1 -3
  204. package/docs/examples/messaging/update-apns-provider.md +2 -9
  205. package/docs/examples/messaging/update-email.md +2 -13
  206. package/docs/examples/messaging/update-fcm-provider.md +2 -5
  207. package/docs/examples/messaging/update-mailgun-provider.md +2 -11
  208. package/docs/examples/messaging/update-msg-91-provider.md +2 -0
  209. package/docs/examples/messaging/update-push.md +2 -20
  210. package/docs/examples/messaging/update-sendgrid-provider.md +2 -9
  211. package/docs/examples/messaging/update-sms.md +2 -8
  212. package/docs/examples/messaging/update-smtp-provider.md +2 -15
  213. package/docs/examples/messaging/update-telesign-provider.md +2 -7
  214. package/docs/examples/messaging/update-textmagic-provider.md +2 -7
  215. package/docs/examples/messaging/update-topic.md +2 -4
  216. package/docs/examples/messaging/update-twilio-provider.md +2 -7
  217. package/docs/examples/messaging/update-vonage-provider.md +2 -7
  218. package/docs/examples/migrations/create-appwrite-migration.md +5 -5
  219. package/docs/examples/migrations/create-csv-migration.md +4 -4
  220. package/docs/examples/migrations/create-firebase-migration.md +3 -3
  221. package/docs/examples/migrations/create-n-host-migration.md +8 -9
  222. package/docs/examples/migrations/create-supabase-migration.md +7 -8
  223. package/docs/examples/migrations/delete.md +1 -1
  224. package/docs/examples/migrations/get-appwrite-report.md +5 -5
  225. package/docs/examples/migrations/get-firebase-report.md +3 -3
  226. package/docs/examples/migrations/get-n-host-report.md +8 -9
  227. package/docs/examples/migrations/get-supabase-report.md +7 -8
  228. package/docs/examples/migrations/get.md +1 -1
  229. package/docs/examples/migrations/list.md +1 -3
  230. package/docs/examples/migrations/retry.md +1 -1
  231. package/docs/examples/project/create-variable.md +3 -4
  232. package/docs/examples/project/delete-variable.md +2 -2
  233. package/docs/examples/project/get-usage.md +3 -4
  234. package/docs/examples/project/get-variable.md +2 -2
  235. package/docs/examples/project/list-variables.md +1 -1
  236. package/docs/examples/project/update-variable.md +3 -5
  237. package/docs/examples/projects/create-dev-key.md +4 -4
  238. package/docs/examples/projects/create-jwt.md +3 -0
  239. package/docs/examples/projects/create-key.md +4 -5
  240. package/docs/examples/projects/create-platform.md +4 -7
  241. package/docs/examples/projects/create-smtp-test.md +6 -11
  242. package/docs/examples/projects/create-webhook.md +6 -9
  243. package/docs/examples/projects/create.md +3 -13
  244. package/docs/examples/projects/delete-dev-key.md +3 -3
  245. package/docs/examples/projects/delete-email-template.md +4 -4
  246. package/docs/examples/projects/delete-key.md +3 -3
  247. package/docs/examples/projects/delete-platform.md +3 -3
  248. package/docs/examples/projects/delete-sms-template.md +4 -4
  249. package/docs/examples/projects/delete-webhook.md +3 -3
  250. package/docs/examples/projects/delete.md +1 -1
  251. package/docs/examples/projects/get-dev-key.md +3 -3
  252. package/docs/examples/projects/get-email-template.md +4 -4
  253. package/docs/examples/projects/get-key.md +3 -3
  254. package/docs/examples/projects/get-platform.md +3 -3
  255. package/docs/examples/projects/get-sms-template.md +4 -4
  256. package/docs/examples/projects/get-webhook.md +3 -3
  257. package/docs/examples/projects/get.md +1 -1
  258. package/docs/examples/projects/list-dev-keys.md +2 -3
  259. package/docs/examples/projects/list-keys.md +2 -2
  260. package/docs/examples/projects/list-platforms.md +2 -2
  261. package/docs/examples/projects/list-webhooks.md +2 -2
  262. package/docs/examples/projects/list.md +1 -3
  263. package/docs/examples/projects/update-api-status-all.md +3 -3
  264. package/docs/examples/projects/update-api-status.md +4 -4
  265. package/docs/examples/projects/update-auth-duration.md +3 -3
  266. package/docs/examples/projects/update-auth-limit.md +3 -3
  267. package/docs/examples/projects/update-auth-password-dictionary.md +3 -3
  268. package/docs/examples/projects/update-auth-password-history.md +3 -3
  269. package/docs/examples/projects/update-auth-sessions-limit.md +3 -3
  270. package/docs/examples/projects/update-auth-status.md +4 -4
  271. package/docs/examples/projects/update-dev-key.md +5 -5
  272. package/docs/examples/projects/update-email-template.md +6 -9
  273. package/docs/examples/projects/update-key.md +5 -6
  274. package/docs/examples/projects/update-memberships-privacy.md +5 -5
  275. package/docs/examples/projects/update-mock-numbers.md +3 -3
  276. package/docs/examples/projects/update-o-auth-2.md +3 -0
  277. package/docs/examples/projects/update-personal-data-check.md +3 -3
  278. package/docs/examples/projects/update-platform.md +4 -7
  279. package/docs/examples/projects/update-service-status-all.md +3 -3
  280. package/docs/examples/projects/update-service-status.md +4 -4
  281. package/docs/examples/projects/update-session-alerts.md +3 -3
  282. package/docs/examples/projects/update-session-invalidation.md +3 -0
  283. package/docs/examples/projects/update-sms-template.md +5 -5
  284. package/docs/examples/projects/update-smtp.md +3 -11
  285. package/docs/examples/projects/update-team.md +3 -3
  286. package/docs/examples/projects/update-webhook-signature.md +3 -3
  287. package/docs/examples/projects/update-webhook.md +7 -10
  288. package/docs/examples/projects/update.md +2 -11
  289. package/docs/examples/proxy/create-api-rule.md +2 -0
  290. package/docs/examples/proxy/create-function-rule.md +3 -4
  291. package/docs/examples/proxy/create-redirect-rule.md +6 -6
  292. package/docs/examples/proxy/create-site-rule.md +3 -4
  293. package/docs/examples/proxy/delete-rule.md +2 -2
  294. package/docs/examples/proxy/get-rule.md +2 -2
  295. package/docs/examples/proxy/list-rules.md +1 -3
  296. package/docs/examples/proxy/update-rule-verification.md +2 -2
  297. package/docs/examples/sites/create-deployment.md +4 -7
  298. package/docs/examples/sites/create-duplicate-deployment.md +3 -3
  299. package/docs/examples/sites/create-template-deployment.md +6 -7
  300. package/docs/examples/sites/create-variable.md +4 -5
  301. package/docs/examples/sites/create-vcs-deployment.md +4 -5
  302. package/docs/examples/sites/create.md +4 -18
  303. package/docs/examples/sites/delete-deployment.md +3 -3
  304. package/docs/examples/sites/delete-log.md +3 -3
  305. package/docs/examples/sites/delete-variable.md +3 -3
  306. package/docs/examples/sites/delete.md +1 -1
  307. package/docs/examples/sites/get-deployment-download.md +3 -4
  308. package/docs/examples/sites/get-deployment.md +3 -3
  309. package/docs/examples/sites/get-log.md +3 -3
  310. package/docs/examples/sites/get-template.md +2 -2
  311. package/docs/examples/sites/get-usage.md +2 -3
  312. package/docs/examples/sites/get-variable.md +3 -3
  313. package/docs/examples/sites/get.md +1 -1
  314. package/docs/examples/sites/list-deployments.md +2 -4
  315. package/docs/examples/sites/list-frameworks.md +1 -1
  316. package/docs/examples/sites/list-logs.md +2 -3
  317. package/docs/examples/sites/list-specifications.md +1 -1
  318. package/docs/examples/sites/list-templates.md +1 -5
  319. package/docs/examples/sites/list-usage.md +1 -2
  320. package/docs/examples/sites/list-variables.md +2 -2
  321. package/docs/examples/sites/list.md +1 -3
  322. package/docs/examples/sites/update-deployment-status.md +3 -3
  323. package/docs/examples/sites/update-site-deployment.md +3 -3
  324. package/docs/examples/sites/update-variable.md +4 -6
  325. package/docs/examples/sites/update.md +3 -18
  326. package/docs/examples/storage/create-bucket.md +3 -11
  327. package/docs/examples/storage/create-file.md +4 -5
  328. package/docs/examples/storage/delete-bucket.md +2 -2
  329. package/docs/examples/storage/delete-file.md +3 -3
  330. package/docs/examples/storage/get-bucket-usage.md +2 -3
  331. package/docs/examples/storage/get-bucket.md +2 -2
  332. package/docs/examples/storage/get-file-download.md +3 -4
  333. package/docs/examples/storage/get-file-preview.md +3 -15
  334. package/docs/examples/storage/get-file-view.md +3 -4
  335. package/docs/examples/storage/get-file.md +3 -3
  336. package/docs/examples/storage/get-usage.md +1 -2
  337. package/docs/examples/storage/list-buckets.md +1 -3
  338. package/docs/examples/storage/list-files.md +2 -4
  339. package/docs/examples/storage/update-bucket.md +3 -11
  340. package/docs/examples/storage/update-file.md +3 -5
  341. package/docs/examples/tablesdb/create-boolean-column.md +5 -0
  342. package/docs/examples/tablesdb/create-datetime-column.md +5 -0
  343. package/docs/examples/tablesdb/create-email-column.md +5 -0
  344. package/docs/examples/tablesdb/create-enum-column.md +6 -0
  345. package/docs/examples/tablesdb/create-float-column.md +5 -0
  346. package/docs/examples/tablesdb/create-index.md +6 -0
  347. package/docs/examples/tablesdb/create-integer-column.md +5 -0
  348. package/docs/examples/tablesdb/create-ip-column.md +5 -0
  349. package/docs/examples/tablesdb/create-relationship-column.md +5 -0
  350. package/docs/examples/tablesdb/create-row.md +5 -0
  351. package/docs/examples/tablesdb/create-rows.md +4 -0
  352. package/docs/examples/tablesdb/create-string-column.md +6 -0
  353. package/docs/examples/tablesdb/create-table.md +4 -0
  354. package/docs/examples/tablesdb/create-url-column.md +5 -0
  355. package/docs/examples/tablesdb/create.md +3 -0
  356. package/docs/examples/tablesdb/decrement-row-column.md +5 -0
  357. package/docs/examples/tablesdb/delete-column.md +4 -0
  358. package/docs/examples/tablesdb/delete-index.md +4 -0
  359. package/docs/examples/tablesdb/delete-row.md +4 -0
  360. package/docs/examples/tablesdb/delete-rows.md +3 -0
  361. package/docs/examples/tablesdb/delete-table.md +3 -0
  362. package/docs/examples/tablesdb/delete.md +2 -0
  363. package/docs/examples/tablesdb/get-column.md +4 -0
  364. package/docs/examples/tablesdb/get-index.md +4 -0
  365. package/docs/examples/tablesdb/get-row.md +4 -0
  366. package/docs/examples/tablesdb/get-table-usage.md +3 -0
  367. package/docs/examples/tablesdb/get-table.md +3 -0
  368. package/docs/examples/tablesdb/get-usage.md +2 -0
  369. package/docs/examples/tablesdb/get.md +2 -0
  370. package/docs/examples/tablesdb/increment-row-column.md +5 -0
  371. package/docs/examples/tablesdb/list-columns.md +3 -0
  372. package/docs/examples/tablesdb/list-indexes.md +3 -0
  373. package/docs/examples/tablesdb/list-row-logs.md +4 -0
  374. package/docs/examples/tablesdb/list-rows.md +3 -0
  375. package/docs/examples/tablesdb/list-table-logs.md +3 -0
  376. package/docs/examples/tablesdb/list-tables.md +2 -0
  377. package/docs/examples/tablesdb/list-usage.md +1 -0
  378. package/docs/examples/tablesdb/list.md +1 -0
  379. package/docs/examples/tablesdb/update-boolean-column.md +6 -0
  380. package/docs/examples/tablesdb/update-datetime-column.md +6 -0
  381. package/docs/examples/tablesdb/update-email-column.md +6 -0
  382. package/docs/examples/tablesdb/update-enum-column.md +7 -0
  383. package/docs/examples/tablesdb/update-float-column.md +6 -0
  384. package/docs/examples/tablesdb/update-integer-column.md +6 -0
  385. package/docs/examples/tablesdb/update-ip-column.md +6 -0
  386. package/docs/examples/tablesdb/update-relationship-column.md +4 -0
  387. package/docs/examples/tablesdb/update-row.md +4 -0
  388. package/docs/examples/tablesdb/update-rows.md +3 -0
  389. package/docs/examples/tablesdb/update-string-column.md +6 -0
  390. package/docs/examples/tablesdb/update-table.md +4 -0
  391. package/docs/examples/tablesdb/update-url-column.md +6 -0
  392. package/docs/examples/tablesdb/update.md +3 -0
  393. package/docs/examples/tablesdb/upsert-row.md +4 -0
  394. package/docs/examples/tablesdb/upsert-rows.md +4 -0
  395. package/docs/examples/teams/create-membership.md +3 -8
  396. package/docs/examples/teams/create.md +2 -3
  397. package/docs/examples/teams/delete-membership.md +3 -3
  398. package/docs/examples/teams/delete.md +1 -1
  399. package/docs/examples/teams/get-membership.md +3 -3
  400. package/docs/examples/teams/get-prefs.md +2 -2
  401. package/docs/examples/teams/get.md +1 -1
  402. package/docs/examples/teams/list-logs.md +2 -3
  403. package/docs/examples/teams/list-memberships.md +2 -4
  404. package/docs/examples/teams/list.md +1 -3
  405. package/docs/examples/teams/update-membership-status.md +5 -5
  406. package/docs/examples/teams/update-membership.md +4 -4
  407. package/docs/examples/teams/update-name.md +3 -3
  408. package/docs/examples/teams/update-prefs.md +3 -3
  409. package/docs/examples/tokens/create-file-token.md +3 -4
  410. package/docs/examples/tokens/delete.md +1 -1
  411. package/docs/examples/tokens/get.md +1 -1
  412. package/docs/examples/tokens/list.md +2 -3
  413. package/docs/examples/tokens/update.md +1 -2
  414. package/docs/examples/users/create-argon-2-user.md +4 -0
  415. package/docs/examples/users/create-bcrypt-user.md +4 -5
  416. package/docs/examples/users/create-jwt.md +2 -0
  417. package/docs/examples/users/create-md-5-user.md +4 -0
  418. package/docs/examples/users/create-mfa-recovery-codes.md +2 -2
  419. package/docs/examples/users/create-ph-pass-user.md +4 -0
  420. package/docs/examples/users/create-scrypt-modified-user.md +7 -8
  421. package/docs/examples/users/create-scrypt-user.md +9 -10
  422. package/docs/examples/users/create-session.md +2 -2
  423. package/docs/examples/users/create-sha-user.md +4 -0
  424. package/docs/examples/users/create-target.md +5 -7
  425. package/docs/examples/users/create-token.md +2 -4
  426. package/docs/examples/users/create.md +1 -5
  427. package/docs/examples/users/delete-identity.md +2 -2
  428. package/docs/examples/users/delete-mfa-authenticator.md +3 -3
  429. package/docs/examples/users/delete-session.md +3 -3
  430. package/docs/examples/users/delete-sessions.md +2 -2
  431. package/docs/examples/users/delete-target.md +3 -3
  432. package/docs/examples/users/delete.md +1 -1
  433. package/docs/examples/users/get-mfa-recovery-codes.md +2 -2
  434. package/docs/examples/users/get-prefs.md +2 -2
  435. package/docs/examples/users/get-target.md +3 -3
  436. package/docs/examples/users/get-usage.md +1 -2
  437. package/docs/examples/users/get.md +1 -1
  438. package/docs/examples/users/list-identities.md +1 -3
  439. package/docs/examples/users/list-logs.md +2 -3
  440. package/docs/examples/users/list-memberships.md +2 -4
  441. package/docs/examples/users/list-mfa-factors.md +2 -2
  442. package/docs/examples/users/list-sessions.md +2 -2
  443. package/docs/examples/users/list-targets.md +2 -3
  444. package/docs/examples/users/list.md +1 -3
  445. package/docs/examples/users/update-email-verification.md +3 -3
  446. package/docs/examples/users/update-email.md +3 -3
  447. package/docs/examples/users/update-labels.md +3 -3
  448. package/docs/examples/users/update-mfa-recovery-codes.md +2 -2
  449. package/docs/examples/users/update-mfa.md +3 -3
  450. package/docs/examples/users/update-name.md +3 -3
  451. package/docs/examples/users/update-password.md +3 -3
  452. package/docs/examples/users/update-phone-verification.md +3 -3
  453. package/docs/examples/users/update-phone.md +3 -3
  454. package/docs/examples/users/update-prefs.md +3 -3
  455. package/docs/examples/users/update-status.md +3 -3
  456. package/docs/examples/users/update-target.md +3 -6
  457. package/docs/examples/vcs/create-repository-detection.md +4 -5
  458. package/docs/examples/vcs/create-repository.md +4 -4
  459. package/docs/examples/vcs/delete-installation.md +2 -2
  460. package/docs/examples/vcs/get-installation.md +2 -2
  461. package/docs/examples/vcs/get-repository-contents.md +3 -5
  462. package/docs/examples/vcs/get-repository.md +3 -3
  463. package/docs/examples/vcs/list-installations.md +1 -3
  464. package/docs/examples/vcs/list-repositories.md +3 -4
  465. package/docs/examples/vcs/list-repository-branches.md +3 -3
  466. package/docs/examples/vcs/update-external-deployments.md +4 -4
  467. package/index.js +40 -0
  468. package/install.ps1 +2 -2
  469. package/install.sh +1 -1
  470. package/lib/client.js +3 -8
  471. package/lib/commands/account.js +55 -103
  472. package/lib/commands/avatars.js +1 -8
  473. package/lib/commands/console.js +1 -3
  474. package/lib/commands/databases.js +279 -226
  475. package/lib/commands/functions.js +3 -33
  476. package/lib/commands/graphql.js +1 -3
  477. package/lib/commands/health.js +1 -23
  478. package/lib/commands/init.js +1 -1
  479. package/lib/commands/locale.js +1 -9
  480. package/lib/commands/messaging.js +41 -87
  481. package/lib/commands/migrations.js +7 -15
  482. package/lib/commands/project.js +1 -7
  483. package/lib/commands/projects.js +77 -86
  484. package/lib/commands/proxy.js +1 -9
  485. package/lib/commands/pull.js +62 -1
  486. package/lib/commands/push.js +163 -8
  487. package/lib/commands/run.js +1 -1
  488. package/lib/commands/sites.js +3 -32
  489. package/lib/commands/storage.js +3 -18
  490. package/lib/commands/tables-db.js +2896 -0
  491. package/lib/commands/teams.js +1 -15
  492. package/lib/commands/tokens.js +1 -6
  493. package/lib/commands/types.js +7 -9
  494. package/lib/commands/update.js +218 -0
  495. package/lib/commands/users.js +34 -77
  496. package/lib/commands/vcs.js +2 -12
  497. package/lib/config.js +99 -14
  498. package/lib/parser.js +2 -1
  499. package/lib/questions.js +32 -7
  500. package/lib/type-generation/languages/dart.js +13 -13
  501. package/lib/type-generation/languages/java.js +13 -13
  502. package/lib/type-generation/languages/javascript.js +14 -14
  503. package/lib/type-generation/languages/kotlin.js +11 -10
  504. package/lib/type-generation/languages/php.js +15 -14
  505. package/lib/type-generation/languages/swift.js +13 -13
  506. package/lib/type-generation/languages/typescript.js +8 -8
  507. package/lib/utils.js +39 -2
  508. package/package.json +1 -1
  509. package/scoop/{appwrite.json → appwrite.config.json} +3 -3
  510. package/docs/examples/account/create-j-w-t.md +0 -1
  511. package/docs/examples/account/create-magic-u-r-l-token.md +0 -5
  512. package/docs/examples/account/create-o-auth2session.md +0 -5
  513. package/docs/examples/account/create-o-auth2token.md +0 -5
  514. package/docs/examples/account/update-m-f-a.md +0 -2
  515. package/docs/examples/account/update-magic-u-r-l-session.md +0 -3
  516. package/docs/examples/avatars/get-q-r.md +0 -5
  517. package/docs/examples/databases/get-database-usage.md +0 -3
  518. package/docs/examples/health/get-d-b.md +0 -1
  519. package/docs/examples/locale/list-countries-e-u.md +0 -1
  520. package/docs/examples/messaging/create-msg91provider.md +0 -7
  521. package/docs/examples/messaging/update-msg91provider.md +0 -7
  522. package/docs/examples/projects/create-j-w-t.md +0 -4
  523. package/docs/examples/projects/update-o-auth2.md +0 -6
  524. package/docs/examples/proxy/create-a-p-i-rule.md +0 -2
  525. package/docs/examples/users/create-argon2user.md +0 -5
  526. package/docs/examples/users/create-j-w-t.md +0 -4
  527. package/docs/examples/users/create-m-d5user.md +0 -5
  528. package/docs/examples/users/create-p-h-pass-user.md +0 -5
  529. package/docs/examples/users/create-s-h-a-user.md +0 -6
@@ -7,7 +7,7 @@ const libClient = require('../client.js');
7
7
  const { getAllFiles, showConsoleLink } = require('../utils.js');
8
8
  const { Command } = require('commander');
9
9
  const { sdkForProject, sdkForConsole } = require('../sdks')
10
- const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log } = require('../parser')
10
+ const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
11
11
  const { localConfig, globalConfig } = require("../config");
12
12
  const { File } = require('undici');
13
13
  const { ReadableStream } = require('stream/web');
@@ -79,7 +79,6 @@ const projectsList = async ({queries,search,parseOutput = true, overrideForCli =
79
79
  return response;
80
80
 
81
81
  }
82
-
83
82
  /**
84
83
  * @typedef {Object} ProjectsCreateRequestParams
85
84
  * @property {string} projectId Unique Id. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, and hyphen. Can't start with a special char. Max length is 36 chars.
@@ -161,7 +160,6 @@ const projectsCreate = async ({projectId,name,teamId,region,description,logo,url
161
160
  return response;
162
161
 
163
162
  }
164
-
165
163
  /**
166
164
  * @typedef {Object} ProjectsGetRequestParams
167
165
  * @property {string} projectId Project unique ID.
@@ -195,7 +193,6 @@ const projectsGet = async ({projectId,parseOutput = true, overrideForCli = false
195
193
  return response;
196
194
 
197
195
  }
198
-
199
196
  /**
200
197
  * @typedef {Object} ProjectsUpdateRequestParams
201
198
  * @property {string} projectId Project unique ID.
@@ -266,7 +263,6 @@ const projectsUpdate = async ({projectId,name,description,logo,url,legalName,leg
266
263
  return response;
267
264
 
268
265
  }
269
-
270
266
  /**
271
267
  * @typedef {Object} ProjectsDeleteRequestParams
272
268
  * @property {string} projectId Project unique ID.
@@ -297,9 +293,8 @@ const projectsDelete = async ({projectId,parseOutput = true, overrideForCli = fa
297
293
  return response;
298
294
 
299
295
  }
300
-
301
296
  /**
302
- * @typedef {Object} ProjectsUpdateApiStatusRequestParams
297
+ * @typedef {Object} ProjectsUpdateAPIStatusRequestParams
303
298
  * @property {string} projectId Project unique ID.
304
299
  * @property {Api} api API name.
305
300
  * @property {boolean} status API status.
@@ -309,9 +304,9 @@ const projectsDelete = async ({projectId,parseOutput = true, overrideForCli = fa
309
304
  */
310
305
 
311
306
  /**
312
- * @param {ProjectsUpdateApiStatusRequestParams} params
307
+ * @param {ProjectsUpdateAPIStatusRequestParams} params
313
308
  */
314
- const projectsUpdateApiStatus = async ({projectId,api,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
309
+ const projectsUpdateAPIStatus = async ({projectId,api,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
315
310
  let client = !sdk ? await sdkForConsole() :
316
311
  sdk;
317
312
  let apiPath = '/projects/{projectId}/api'.replace('{projectId}', projectId);
@@ -336,9 +331,8 @@ const projectsUpdateApiStatus = async ({projectId,api,status,parseOutput = true,
336
331
  return response;
337
332
 
338
333
  }
339
-
340
334
  /**
341
- * @typedef {Object} ProjectsUpdateApiStatusAllRequestParams
335
+ * @typedef {Object} ProjectsUpdateAPIStatusAllRequestParams
342
336
  * @property {string} projectId Project unique ID.
343
337
  * @property {boolean} status API status.
344
338
  * @property {boolean} overrideForCli
@@ -347,9 +341,9 @@ const projectsUpdateApiStatus = async ({projectId,api,status,parseOutput = true,
347
341
  */
348
342
 
349
343
  /**
350
- * @param {ProjectsUpdateApiStatusAllRequestParams} params
344
+ * @param {ProjectsUpdateAPIStatusAllRequestParams} params
351
345
  */
352
- const projectsUpdateApiStatusAll = async ({projectId,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
346
+ const projectsUpdateAPIStatusAll = async ({projectId,status,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
353
347
  let client = !sdk ? await sdkForConsole() :
354
348
  sdk;
355
349
  let apiPath = '/projects/{projectId}/api/all'.replace('{projectId}', projectId);
@@ -371,7 +365,6 @@ const projectsUpdateApiStatusAll = async ({projectId,status,parseOutput = true,
371
365
  return response;
372
366
 
373
367
  }
374
-
375
368
  /**
376
369
  * @typedef {Object} ProjectsUpdateAuthDurationRequestParams
377
370
  * @property {string} projectId Project unique ID.
@@ -406,7 +399,6 @@ const projectsUpdateAuthDuration = async ({projectId,duration,parseOutput = true
406
399
  return response;
407
400
 
408
401
  }
409
-
410
402
  /**
411
403
  * @typedef {Object} ProjectsUpdateAuthLimitRequestParams
412
404
  * @property {string} projectId Project unique ID.
@@ -441,7 +433,6 @@ const projectsUpdateAuthLimit = async ({projectId,limit,parseOutput = true, over
441
433
  return response;
442
434
 
443
435
  }
444
-
445
436
  /**
446
437
  * @typedef {Object} ProjectsUpdateAuthSessionsLimitRequestParams
447
438
  * @property {string} projectId Project unique ID.
@@ -476,7 +467,6 @@ const projectsUpdateAuthSessionsLimit = async ({projectId,limit,parseOutput = tr
476
467
  return response;
477
468
 
478
469
  }
479
-
480
470
  /**
481
471
  * @typedef {Object} ProjectsUpdateMembershipsPrivacyRequestParams
482
472
  * @property {string} projectId Project unique ID.
@@ -519,7 +509,6 @@ const projectsUpdateMembershipsPrivacy = async ({projectId,userName,userEmail,mf
519
509
  return response;
520
510
 
521
511
  }
522
-
523
512
  /**
524
513
  * @typedef {Object} ProjectsUpdateMockNumbersRequestParams
525
514
  * @property {string} projectId Project unique ID.
@@ -555,7 +544,6 @@ const projectsUpdateMockNumbers = async ({projectId,numbers,parseOutput = true,
555
544
  return response;
556
545
 
557
546
  }
558
-
559
547
  /**
560
548
  * @typedef {Object} ProjectsUpdateAuthPasswordDictionaryRequestParams
561
549
  * @property {string} projectId Project unique ID.
@@ -590,7 +578,6 @@ const projectsUpdateAuthPasswordDictionary = async ({projectId,enabled,parseOutp
590
578
  return response;
591
579
 
592
580
  }
593
-
594
581
  /**
595
582
  * @typedef {Object} ProjectsUpdateAuthPasswordHistoryRequestParams
596
583
  * @property {string} projectId Project unique ID.
@@ -625,7 +612,6 @@ const projectsUpdateAuthPasswordHistory = async ({projectId,limit,parseOutput =
625
612
  return response;
626
613
 
627
614
  }
628
-
629
615
  /**
630
616
  * @typedef {Object} ProjectsUpdatePersonalDataCheckRequestParams
631
617
  * @property {string} projectId Project unique ID.
@@ -660,7 +646,6 @@ const projectsUpdatePersonalDataCheck = async ({projectId,enabled,parseOutput =
660
646
  return response;
661
647
 
662
648
  }
663
-
664
649
  /**
665
650
  * @typedef {Object} ProjectsUpdateSessionAlertsRequestParams
666
651
  * @property {string} projectId Project unique ID.
@@ -695,7 +680,40 @@ const projectsUpdateSessionAlerts = async ({projectId,alerts,parseOutput = true,
695
680
  return response;
696
681
 
697
682
  }
683
+ /**
684
+ * @typedef {Object} ProjectsUpdateSessionInvalidationRequestParams
685
+ * @property {string} projectId Project unique ID.
686
+ * @property {boolean} enabled Update authentication session invalidation status. Use this endpoint to enable or disable session invalidation on password change
687
+ * @property {boolean} overrideForCli
688
+ * @property {boolean} parseOutput
689
+ * @property {libClient | undefined} sdk
690
+ */
698
691
 
692
+ /**
693
+ * @param {ProjectsUpdateSessionInvalidationRequestParams} params
694
+ */
695
+ const projectsUpdateSessionInvalidation = async ({projectId,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
696
+ let client = !sdk ? await sdkForConsole() :
697
+ sdk;
698
+ let apiPath = '/projects/{projectId}/auth/session-invalidation'.replace('{projectId}', projectId);
699
+ let payload = {};
700
+ if (typeof enabled !== 'undefined') {
701
+ payload['enabled'] = enabled;
702
+ }
703
+
704
+ let response = undefined;
705
+
706
+ response = await client.call('patch', apiPath, {
707
+ 'content-type': 'application/json',
708
+ }, payload);
709
+
710
+ if (parseOutput) {
711
+ parse(response)
712
+ }
713
+
714
+ return response;
715
+
716
+ }
699
717
  /**
700
718
  * @typedef {Object} ProjectsUpdateAuthStatusRequestParams
701
719
  * @property {string} projectId Project unique ID.
@@ -731,7 +749,6 @@ const projectsUpdateAuthStatus = async ({projectId,method,status,parseOutput = t
731
749
  return response;
732
750
 
733
751
  }
734
-
735
752
  /**
736
753
  * @typedef {Object} ProjectsListDevKeysRequestParams
737
754
  * @property {string} projectId Project unique ID.
@@ -769,7 +786,6 @@ const projectsListDevKeys = async ({projectId,queries,parseOutput = true, overri
769
786
  return response;
770
787
 
771
788
  }
772
-
773
789
  /**
774
790
  * @typedef {Object} ProjectsCreateDevKeyRequestParams
775
791
  * @property {string} projectId Project unique ID.
@@ -808,7 +824,6 @@ const projectsCreateDevKey = async ({projectId,name,expire,parseOutput = true, o
808
824
  return response;
809
825
 
810
826
  }
811
-
812
827
  /**
813
828
  * @typedef {Object} ProjectsGetDevKeyRequestParams
814
829
  * @property {string} projectId Project unique ID.
@@ -843,7 +858,6 @@ const projectsGetDevKey = async ({projectId,keyId,parseOutput = true, overrideFo
843
858
  return response;
844
859
 
845
860
  }
846
-
847
861
  /**
848
862
  * @typedef {Object} ProjectsUpdateDevKeyRequestParams
849
863
  * @property {string} projectId Project unique ID.
@@ -883,7 +897,6 @@ const projectsUpdateDevKey = async ({projectId,keyId,name,expire,parseOutput = t
883
897
  return response;
884
898
 
885
899
  }
886
-
887
900
  /**
888
901
  * @typedef {Object} ProjectsDeleteDevKeyRequestParams
889
902
  * @property {string} projectId Project unique ID.
@@ -915,7 +928,6 @@ const projectsDeleteDevKey = async ({projectId,keyId,parseOutput = true, overrid
915
928
  return response;
916
929
 
917
930
  }
918
-
919
931
  /**
920
932
  * @typedef {Object} ProjectsCreateJWTRequestParams
921
933
  * @property {string} projectId Project unique ID.
@@ -955,7 +967,6 @@ const projectsCreateJWT = async ({projectId,scopes,duration,parseOutput = true,
955
967
  return response;
956
968
 
957
969
  }
958
-
959
970
  /**
960
971
  * @typedef {Object} ProjectsListKeysRequestParams
961
972
  * @property {string} projectId Project unique ID.
@@ -989,7 +1000,6 @@ const projectsListKeys = async ({projectId,parseOutput = true, overrideForCli =
989
1000
  return response;
990
1001
 
991
1002
  }
992
-
993
1003
  /**
994
1004
  * @typedef {Object} ProjectsCreateKeyRequestParams
995
1005
  * @property {string} projectId Project unique ID.
@@ -1033,7 +1043,6 @@ const projectsCreateKey = async ({projectId,name,scopes,expire,parseOutput = tru
1033
1043
  return response;
1034
1044
 
1035
1045
  }
1036
-
1037
1046
  /**
1038
1047
  * @typedef {Object} ProjectsGetKeyRequestParams
1039
1048
  * @property {string} projectId Project unique ID.
@@ -1068,7 +1077,6 @@ const projectsGetKey = async ({projectId,keyId,parseOutput = true, overrideForCl
1068
1077
  return response;
1069
1078
 
1070
1079
  }
1071
-
1072
1080
  /**
1073
1081
  * @typedef {Object} ProjectsUpdateKeyRequestParams
1074
1082
  * @property {string} projectId Project unique ID.
@@ -1113,7 +1121,6 @@ const projectsUpdateKey = async ({projectId,keyId,name,scopes,expire,parseOutput
1113
1121
  return response;
1114
1122
 
1115
1123
  }
1116
-
1117
1124
  /**
1118
1125
  * @typedef {Object} ProjectsDeleteKeyRequestParams
1119
1126
  * @property {string} projectId Project unique ID.
@@ -1145,7 +1152,6 @@ const projectsDeleteKey = async ({projectId,keyId,parseOutput = true, overrideFo
1145
1152
  return response;
1146
1153
 
1147
1154
  }
1148
-
1149
1155
  /**
1150
1156
  * @typedef {Object} ProjectsUpdateOAuth2RequestParams
1151
1157
  * @property {string} projectId Project unique ID.
@@ -1192,7 +1198,6 @@ const projectsUpdateOAuth2 = async ({projectId,provider,appId,secret,enabled,par
1192
1198
  return response;
1193
1199
 
1194
1200
  }
1195
-
1196
1201
  /**
1197
1202
  * @typedef {Object} ProjectsListPlatformsRequestParams
1198
1203
  * @property {string} projectId Project unique ID.
@@ -1226,7 +1231,6 @@ const projectsListPlatforms = async ({projectId,parseOutput = true, overrideForC
1226
1231
  return response;
1227
1232
 
1228
1233
  }
1229
-
1230
1234
  /**
1231
1235
  * @typedef {Object} ProjectsCreatePlatformRequestParams
1232
1236
  * @property {string} projectId Project unique ID.
@@ -1277,7 +1281,6 @@ const projectsCreatePlatform = async ({projectId,type,name,key,store,hostname,pa
1277
1281
  return response;
1278
1282
 
1279
1283
  }
1280
-
1281
1284
  /**
1282
1285
  * @typedef {Object} ProjectsGetPlatformRequestParams
1283
1286
  * @property {string} projectId Project unique ID.
@@ -1312,7 +1315,6 @@ const projectsGetPlatform = async ({projectId,platformId,parseOutput = true, ove
1312
1315
  return response;
1313
1316
 
1314
1317
  }
1315
-
1316
1318
  /**
1317
1319
  * @typedef {Object} ProjectsUpdatePlatformRequestParams
1318
1320
  * @property {string} projectId Project unique ID.
@@ -1360,7 +1362,6 @@ const projectsUpdatePlatform = async ({projectId,platformId,name,key,store,hostn
1360
1362
  return response;
1361
1363
 
1362
1364
  }
1363
-
1364
1365
  /**
1365
1366
  * @typedef {Object} ProjectsDeletePlatformRequestParams
1366
1367
  * @property {string} projectId Project unique ID.
@@ -1392,7 +1393,6 @@ const projectsDeletePlatform = async ({projectId,platformId,parseOutput = true,
1392
1393
  return response;
1393
1394
 
1394
1395
  }
1395
-
1396
1396
  /**
1397
1397
  * @typedef {Object} ProjectsUpdateServiceStatusRequestParams
1398
1398
  * @property {string} projectId Project unique ID.
@@ -1431,7 +1431,6 @@ const projectsUpdateServiceStatus = async ({projectId,service,status,parseOutput
1431
1431
  return response;
1432
1432
 
1433
1433
  }
1434
-
1435
1434
  /**
1436
1435
  * @typedef {Object} ProjectsUpdateServiceStatusAllRequestParams
1437
1436
  * @property {string} projectId Project unique ID.
@@ -1466,9 +1465,8 @@ const projectsUpdateServiceStatusAll = async ({projectId,status,parseOutput = tr
1466
1465
  return response;
1467
1466
 
1468
1467
  }
1469
-
1470
1468
  /**
1471
- * @typedef {Object} ProjectsUpdateSmtpRequestParams
1469
+ * @typedef {Object} ProjectsUpdateSMTPRequestParams
1472
1470
  * @property {string} projectId Project unique ID.
1473
1471
  * @property {boolean} enabled Enable custom SMTP service
1474
1472
  * @property {string} senderName Name of the email sender
@@ -1485,9 +1483,9 @@ const projectsUpdateServiceStatusAll = async ({projectId,status,parseOutput = tr
1485
1483
  */
1486
1484
 
1487
1485
  /**
1488
- * @param {ProjectsUpdateSmtpRequestParams} params
1486
+ * @param {ProjectsUpdateSMTPRequestParams} params
1489
1487
  */
1490
- const projectsUpdateSmtp = async ({projectId,enabled,senderName,senderEmail,replyTo,host,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1488
+ const projectsUpdateSMTP = async ({projectId,enabled,senderName,senderEmail,replyTo,host,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1491
1489
  let client = !sdk ? await sdkForConsole() :
1492
1490
  sdk;
1493
1491
  let apiPath = '/projects/{projectId}/smtp'.replace('{projectId}', projectId);
@@ -1533,9 +1531,8 @@ const projectsUpdateSmtp = async ({projectId,enabled,senderName,senderEmail,repl
1533
1531
  return response;
1534
1532
 
1535
1533
  }
1536
-
1537
1534
  /**
1538
- * @typedef {Object} ProjectsCreateSmtpTestRequestParams
1535
+ * @typedef {Object} ProjectsCreateSMTPTestRequestParams
1539
1536
  * @property {string} projectId Project unique ID.
1540
1537
  * @property {string[]} emails Array of emails to send test email to. Maximum of 10 emails are allowed.
1541
1538
  * @property {string} senderName Name of the email sender
@@ -1552,9 +1549,9 @@ const projectsUpdateSmtp = async ({projectId,enabled,senderName,senderEmail,repl
1552
1549
  */
1553
1550
 
1554
1551
  /**
1555
- * @param {ProjectsCreateSmtpTestRequestParams} params
1552
+ * @param {ProjectsCreateSMTPTestRequestParams} params
1556
1553
  */
1557
- const projectsCreateSmtpTest = async ({projectId,emails,senderName,senderEmail,host,replyTo,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1554
+ const projectsCreateSMTPTest = async ({projectId,emails,senderName,senderEmail,host,replyTo,port,username,password,secure,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1558
1555
  let client = !sdk ? await sdkForConsole() :
1559
1556
  sdk;
1560
1557
  let apiPath = '/projects/{projectId}/smtp/tests'.replace('{projectId}', projectId);
@@ -1601,7 +1598,6 @@ const projectsCreateSmtpTest = async ({projectId,emails,senderName,senderEmail,h
1601
1598
  return response;
1602
1599
 
1603
1600
  }
1604
-
1605
1601
  /**
1606
1602
  * @typedef {Object} ProjectsUpdateTeamRequestParams
1607
1603
  * @property {string} projectId Project unique ID.
@@ -1636,7 +1632,6 @@ const projectsUpdateTeam = async ({projectId,teamId,parseOutput = true, override
1636
1632
  return response;
1637
1633
 
1638
1634
  }
1639
-
1640
1635
  /**
1641
1636
  * @typedef {Object} ProjectsGetEmailTemplateRequestParams
1642
1637
  * @property {string} projectId Project unique ID.
@@ -1668,7 +1663,6 @@ const projectsGetEmailTemplate = async ({projectId,type,locale,parseOutput = tru
1668
1663
  return response;
1669
1664
 
1670
1665
  }
1671
-
1672
1666
  /**
1673
1667
  * @typedef {Object} ProjectsUpdateEmailTemplateRequestParams
1674
1668
  * @property {string} projectId Project unique ID.
@@ -1721,7 +1715,6 @@ const projectsUpdateEmailTemplate = async ({projectId,type,locale,subject,messag
1721
1715
  return response;
1722
1716
 
1723
1717
  }
1724
-
1725
1718
  /**
1726
1719
  * @typedef {Object} ProjectsDeleteEmailTemplateRequestParams
1727
1720
  * @property {string} projectId Project unique ID.
@@ -1754,9 +1747,8 @@ const projectsDeleteEmailTemplate = async ({projectId,type,locale,parseOutput =
1754
1747
  return response;
1755
1748
 
1756
1749
  }
1757
-
1758
1750
  /**
1759
- * @typedef {Object} ProjectsGetSmsTemplateRequestParams
1751
+ * @typedef {Object} ProjectsGetSMSTemplateRequestParams
1760
1752
  * @property {string} projectId Project unique ID.
1761
1753
  * @property {SmsTemplateType} type Template type
1762
1754
  * @property {SmsTemplateLocale} locale Template locale
@@ -1766,9 +1758,9 @@ const projectsDeleteEmailTemplate = async ({projectId,type,locale,parseOutput =
1766
1758
  */
1767
1759
 
1768
1760
  /**
1769
- * @param {ProjectsGetSmsTemplateRequestParams} params
1761
+ * @param {ProjectsGetSMSTemplateRequestParams} params
1770
1762
  */
1771
- const projectsGetSmsTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1763
+ const projectsGetSMSTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1772
1764
  let client = !sdk ? await sdkForConsole() :
1773
1765
  sdk;
1774
1766
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
@@ -1786,9 +1778,8 @@ const projectsGetSmsTemplate = async ({projectId,type,locale,parseOutput = true,
1786
1778
  return response;
1787
1779
 
1788
1780
  }
1789
-
1790
1781
  /**
1791
- * @typedef {Object} ProjectsUpdateSmsTemplateRequestParams
1782
+ * @typedef {Object} ProjectsUpdateSMSTemplateRequestParams
1792
1783
  * @property {string} projectId Project unique ID.
1793
1784
  * @property {SmsTemplateType} type Template type
1794
1785
  * @property {SmsTemplateLocale} locale Template locale
@@ -1799,9 +1790,9 @@ const projectsGetSmsTemplate = async ({projectId,type,locale,parseOutput = true,
1799
1790
  */
1800
1791
 
1801
1792
  /**
1802
- * @param {ProjectsUpdateSmsTemplateRequestParams} params
1793
+ * @param {ProjectsUpdateSMSTemplateRequestParams} params
1803
1794
  */
1804
- const projectsUpdateSmsTemplate = async ({projectId,type,locale,message,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1795
+ const projectsUpdateSMSTemplate = async ({projectId,type,locale,message,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1805
1796
  let client = !sdk ? await sdkForConsole() :
1806
1797
  sdk;
1807
1798
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
@@ -1823,9 +1814,8 @@ const projectsUpdateSmsTemplate = async ({projectId,type,locale,message,parseOut
1823
1814
  return response;
1824
1815
 
1825
1816
  }
1826
-
1827
1817
  /**
1828
- * @typedef {Object} ProjectsDeleteSmsTemplateRequestParams
1818
+ * @typedef {Object} ProjectsDeleteSMSTemplateRequestParams
1829
1819
  * @property {string} projectId Project unique ID.
1830
1820
  * @property {SmsTemplateType} type Template type
1831
1821
  * @property {SmsTemplateLocale} locale Template locale
@@ -1835,9 +1825,9 @@ const projectsUpdateSmsTemplate = async ({projectId,type,locale,message,parseOut
1835
1825
  */
1836
1826
 
1837
1827
  /**
1838
- * @param {ProjectsDeleteSmsTemplateRequestParams} params
1828
+ * @param {ProjectsDeleteSMSTemplateRequestParams} params
1839
1829
  */
1840
- const projectsDeleteSmsTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1830
+ const projectsDeleteSMSTemplate = async ({projectId,type,locale,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1841
1831
  let client = !sdk ? await sdkForConsole() :
1842
1832
  sdk;
1843
1833
  let apiPath = '/projects/{projectId}/templates/sms/{type}/{locale}'.replace('{projectId}', projectId).replace('{type}', type).replace('{locale}', locale);
@@ -1856,7 +1846,6 @@ const projectsDeleteSmsTemplate = async ({projectId,type,locale,parseOutput = tr
1856
1846
  return response;
1857
1847
 
1858
1848
  }
1859
-
1860
1849
  /**
1861
1850
  * @typedef {Object} ProjectsListWebhooksRequestParams
1862
1851
  * @property {string} projectId Project unique ID.
@@ -1890,7 +1879,6 @@ const projectsListWebhooks = async ({projectId,parseOutput = true, overrideForCl
1890
1879
  return response;
1891
1880
 
1892
1881
  }
1893
-
1894
1882
  /**
1895
1883
  * @typedef {Object} ProjectsCreateWebhookRequestParams
1896
1884
  * @property {string} projectId Project unique ID.
@@ -1950,7 +1938,6 @@ const projectsCreateWebhook = async ({projectId,name,events,url,security,enabled
1950
1938
  return response;
1951
1939
 
1952
1940
  }
1953
-
1954
1941
  /**
1955
1942
  * @typedef {Object} ProjectsGetWebhookRequestParams
1956
1943
  * @property {string} projectId Project unique ID.
@@ -1985,7 +1972,6 @@ const projectsGetWebhook = async ({projectId,webhookId,parseOutput = true, overr
1985
1972
  return response;
1986
1973
 
1987
1974
  }
1988
-
1989
1975
  /**
1990
1976
  * @typedef {Object} ProjectsUpdateWebhookRequestParams
1991
1977
  * @property {string} projectId Project unique ID.
@@ -2046,7 +2032,6 @@ const projectsUpdateWebhook = async ({projectId,webhookId,name,events,url,securi
2046
2032
  return response;
2047
2033
 
2048
2034
  }
2049
-
2050
2035
  /**
2051
2036
  * @typedef {Object} ProjectsDeleteWebhookRequestParams
2052
2037
  * @property {string} projectId Project unique ID.
@@ -2078,7 +2063,6 @@ const projectsDeleteWebhook = async ({projectId,webhookId,parseOutput = true, ov
2078
2063
  return response;
2079
2064
 
2080
2065
  }
2081
-
2082
2066
  /**
2083
2067
  * @typedef {Object} ProjectsUpdateWebhookSignatureRequestParams
2084
2068
  * @property {string} projectId Project unique ID.
@@ -2110,7 +2094,6 @@ const projectsUpdateWebhookSignature = async ({projectId,webhookId,parseOutput =
2110
2094
  return response;
2111
2095
 
2112
2096
  }
2113
-
2114
2097
  projects
2115
2098
  .command(`list`)
2116
2099
  .description(`Get a list of all projects. You can use the query params to filter your results. `)
@@ -2172,14 +2155,14 @@ projects
2172
2155
  .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2173
2156
  .requiredOption(`--api <api>`, `API name.`)
2174
2157
  .requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
2175
- .action(actionRunner(projectsUpdateApiStatus))
2158
+ .action(actionRunner(projectsUpdateAPIStatus))
2176
2159
 
2177
2160
  projects
2178
2161
  .command(`update-api-status-all`)
2179
2162
  .description(`Update the status of all API types. Use this endpoint to enable or disable API types such as REST, GraphQL and Realtime all at once.`)
2180
2163
  .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2181
2164
  .requiredOption(`--status [value]`, `API status.`, (value) => value === undefined ? true : parseBool(value))
2182
- .action(actionRunner(projectsUpdateApiStatusAll))
2165
+ .action(actionRunner(projectsUpdateAPIStatusAll))
2183
2166
 
2184
2167
  projects
2185
2168
  .command(`update-auth-duration`)
@@ -2246,6 +2229,13 @@ projects
2246
2229
  .requiredOption(`--alerts [value]`, `Set to true to enable session emails.`, (value) => value === undefined ? true : parseBool(value))
2247
2230
  .action(actionRunner(projectsUpdateSessionAlerts))
2248
2231
 
2232
+ projects
2233
+ .command(`update-session-invalidation`)
2234
+ .description(`Invalidate all existing sessions. An optional auth security setting for projects, and enabled by default for console project.`)
2235
+ .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2236
+ .requiredOption(`--enabled [value]`, `Update authentication session invalidation status. Use this endpoint to enable or disable session invalidation on password change`, (value) => value === undefined ? true : parseBool(value))
2237
+ .action(actionRunner(projectsUpdateSessionInvalidation))
2238
+
2249
2239
  projects
2250
2240
  .command(`update-auth-status`)
2251
2241
  .description(`Update the status of a specific authentication method. Use this endpoint to enable or disable different authentication methods such as email, magic urls or sms in your project. `)
@@ -2425,7 +2415,7 @@ projects
2425
2415
  .option(`--username <username>`, `SMTP server username`)
2426
2416
  .option(`--password <password>`, `SMTP server password`)
2427
2417
  .option(`--secure <secure>`, `Does SMTP server use secure connection`)
2428
- .action(actionRunner(projectsUpdateSmtp))
2418
+ .action(actionRunner(projectsUpdateSMTP))
2429
2419
 
2430
2420
  projects
2431
2421
  .command(`create-smtp-test`)
@@ -2440,7 +2430,7 @@ projects
2440
2430
  .option(`--username <username>`, `SMTP server username`)
2441
2431
  .option(`--password <password>`, `SMTP server password`)
2442
2432
  .option(`--secure <secure>`, `Does SMTP server use secure connection`)
2443
- .action(actionRunner(projectsCreateSmtpTest))
2433
+ .action(actionRunner(projectsCreateSMTPTest))
2444
2434
 
2445
2435
  projects
2446
2436
  .command(`update-team`)
@@ -2484,7 +2474,7 @@ projects
2484
2474
  .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2485
2475
  .requiredOption(`--type <type>`, `Template type`)
2486
2476
  .requiredOption(`--locale <locale>`, `Template locale`)
2487
- .action(actionRunner(projectsGetSmsTemplate))
2477
+ .action(actionRunner(projectsGetSMSTemplate))
2488
2478
 
2489
2479
  projects
2490
2480
  .command(`update-sms-template`)
@@ -2493,7 +2483,7 @@ projects
2493
2483
  .requiredOption(`--type <type>`, `Template type`)
2494
2484
  .requiredOption(`--locale <locale>`, `Template locale`)
2495
2485
  .requiredOption(`--message <message>`, `Template message`)
2496
- .action(actionRunner(projectsUpdateSmsTemplate))
2486
+ .action(actionRunner(projectsUpdateSMSTemplate))
2497
2487
 
2498
2488
  projects
2499
2489
  .command(`delete-sms-template`)
@@ -2501,7 +2491,7 @@ projects
2501
2491
  .requiredOption(`--project-id <project-id>`, `Project unique ID.`)
2502
2492
  .requiredOption(`--type <type>`, `Template type`)
2503
2493
  .requiredOption(`--locale <locale>`, `Template locale`)
2504
- .action(actionRunner(projectsDeleteSmsTemplate))
2494
+ .action(actionRunner(projectsDeleteSMSTemplate))
2505
2495
 
2506
2496
  projects
2507
2497
  .command(`list-webhooks`)
@@ -2566,8 +2556,8 @@ module.exports = {
2566
2556
  projectsGet,
2567
2557
  projectsUpdate,
2568
2558
  projectsDelete,
2569
- projectsUpdateApiStatus,
2570
- projectsUpdateApiStatusAll,
2559
+ projectsUpdateAPIStatus,
2560
+ projectsUpdateAPIStatusAll,
2571
2561
  projectsUpdateAuthDuration,
2572
2562
  projectsUpdateAuthLimit,
2573
2563
  projectsUpdateAuthSessionsLimit,
@@ -2577,6 +2567,7 @@ module.exports = {
2577
2567
  projectsUpdateAuthPasswordHistory,
2578
2568
  projectsUpdatePersonalDataCheck,
2579
2569
  projectsUpdateSessionAlerts,
2570
+ projectsUpdateSessionInvalidation,
2580
2571
  projectsUpdateAuthStatus,
2581
2572
  projectsListDevKeys,
2582
2573
  projectsCreateDevKey,
@@ -2597,15 +2588,15 @@ module.exports = {
2597
2588
  projectsDeletePlatform,
2598
2589
  projectsUpdateServiceStatus,
2599
2590
  projectsUpdateServiceStatusAll,
2600
- projectsUpdateSmtp,
2601
- projectsCreateSmtpTest,
2591
+ projectsUpdateSMTP,
2592
+ projectsCreateSMTPTest,
2602
2593
  projectsUpdateTeam,
2603
2594
  projectsGetEmailTemplate,
2604
2595
  projectsUpdateEmailTemplate,
2605
2596
  projectsDeleteEmailTemplate,
2606
- projectsGetSmsTemplate,
2607
- projectsUpdateSmsTemplate,
2608
- projectsDeleteSmsTemplate,
2597
+ projectsGetSMSTemplate,
2598
+ projectsUpdateSMSTemplate,
2599
+ projectsDeleteSMSTemplate,
2609
2600
  projectsListWebhooks,
2610
2601
  projectsCreateWebhook,
2611
2602
  projectsGetWebhook,