appwrite-cli 12.0.1 → 13.0.0-rc.2

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 (801) hide show
  1. package/.github/workflows/build-verify.yml +71 -0
  2. package/.github/workflows/npm-publish.yml +41 -22
  3. package/CHANGELOG.md +108 -100
  4. package/LICENSE.md +1 -1
  5. package/README.md +58 -35
  6. package/bun.lock +625 -0
  7. package/dist/bundle.cjs +94853 -0
  8. package/dist/index.d.ts +3 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.js +145 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/lib/client.d.ts +88 -0
  13. package/dist/lib/client.d.ts.map +1 -0
  14. package/dist/lib/client.js +238 -0
  15. package/dist/lib/client.js.map +1 -0
  16. package/dist/lib/commands/generic.d.ts +17 -0
  17. package/dist/lib/commands/generic.d.ts.map +1 -0
  18. package/dist/lib/commands/generic.js +292 -0
  19. package/dist/lib/commands/generic.js.map +1 -0
  20. package/dist/lib/commands/init.d.ts +3 -0
  21. package/dist/lib/commands/init.d.ts.map +1 -0
  22. package/{lib → dist/lib}/commands/init.js +186 -270
  23. package/dist/lib/commands/init.js.map +1 -0
  24. package/dist/lib/commands/pull.d.ts +8 -0
  25. package/dist/lib/commands/pull.d.ts.map +1 -0
  26. package/{lib → dist/lib}/commands/pull.js +159 -280
  27. package/dist/lib/commands/pull.js.map +1 -0
  28. package/dist/lib/commands/push.d.ts +4 -0
  29. package/dist/lib/commands/push.d.ts.map +1 -0
  30. package/dist/lib/commands/push.js +2127 -0
  31. package/dist/lib/commands/push.js.map +1 -0
  32. package/dist/lib/commands/run.d.ts +3 -0
  33. package/dist/lib/commands/run.d.ts.map +1 -0
  34. package/{lib → dist/lib}/commands/run.js +146 -187
  35. package/dist/lib/commands/run.js.map +1 -0
  36. package/dist/lib/commands/services/account.d.ts +3 -0
  37. package/dist/lib/commands/services/account.d.ts.map +1 -0
  38. package/dist/lib/commands/services/account.js +306 -0
  39. package/dist/lib/commands/services/account.js.map +1 -0
  40. package/dist/lib/commands/services/avatars.d.ts +3 -0
  41. package/dist/lib/commands/services/avatars.d.ts.map +1 -0
  42. package/dist/lib/commands/services/avatars.js +118 -0
  43. package/dist/lib/commands/services/avatars.js.map +1 -0
  44. package/dist/lib/commands/services/console.d.ts +3 -0
  45. package/dist/lib/commands/services/console.d.ts.map +1 -0
  46. package/dist/lib/commands/services/console.js +41 -0
  47. package/dist/lib/commands/services/console.js.map +1 -0
  48. package/dist/lib/commands/services/databases.d.ts +3 -0
  49. package/dist/lib/commands/services/databases.d.ts.map +1 -0
  50. package/dist/lib/commands/services/databases.js +612 -0
  51. package/dist/lib/commands/services/databases.js.map +1 -0
  52. package/dist/lib/commands/services/functions.d.ts +3 -0
  53. package/dist/lib/commands/services/functions.d.ts.map +1 -0
  54. package/dist/lib/commands/services/functions.js +258 -0
  55. package/dist/lib/commands/services/functions.js.map +1 -0
  56. package/dist/lib/commands/services/graphql.d.ts +3 -0
  57. package/dist/lib/commands/services/graphql.d.ts.map +1 -0
  58. package/dist/lib/commands/services/graphql.js +28 -0
  59. package/dist/lib/commands/services/graphql.js.map +1 -0
  60. package/dist/lib/commands/services/health.d.ts +3 -0
  61. package/dist/lib/commands/services/health.d.ts.map +1 -0
  62. package/dist/lib/commands/services/health.js +123 -0
  63. package/dist/lib/commands/services/health.js.map +1 -0
  64. package/dist/lib/commands/services/locale.d.ts +3 -0
  65. package/dist/lib/commands/services/locale.d.ts.map +1 -0
  66. package/dist/lib/commands/services/locale.js +52 -0
  67. package/dist/lib/commands/services/locale.js.map +1 -0
  68. package/dist/lib/commands/services/messaging.d.ts +3 -0
  69. package/dist/lib/commands/services/messaging.d.ts.map +1 -0
  70. package/dist/lib/commands/services/messaging.js +505 -0
  71. package/dist/lib/commands/services/messaging.js.map +1 -0
  72. package/dist/lib/commands/services/migrations.d.ts +3 -0
  73. package/dist/lib/commands/services/migrations.d.ts.map +1 -0
  74. package/dist/lib/commands/services/migrations.js +135 -0
  75. package/dist/lib/commands/services/migrations.js.map +1 -0
  76. package/dist/lib/commands/services/project.d.ts +3 -0
  77. package/dist/lib/commands/services/project.d.ts.map +1 -0
  78. package/dist/lib/commands/services/project.js +54 -0
  79. package/dist/lib/commands/services/project.js.map +1 -0
  80. package/dist/lib/commands/services/projects.d.ts +3 -0
  81. package/dist/lib/commands/services/projects.d.ts.map +1 -0
  82. package/dist/lib/commands/services/projects.js +415 -0
  83. package/dist/lib/commands/services/projects.js.map +1 -0
  84. package/dist/lib/commands/services/proxy.d.ts +3 -0
  85. package/dist/lib/commands/services/proxy.d.ts.map +1 -0
  86. package/dist/lib/commands/services/proxy.js +68 -0
  87. package/dist/lib/commands/services/proxy.js.map +1 -0
  88. package/dist/lib/commands/services/sites.d.ts +3 -0
  89. package/dist/lib/commands/services/sites.d.ts.map +1 -0
  90. package/dist/lib/commands/services/sites.js +242 -0
  91. package/dist/lib/commands/services/sites.js.map +1 -0
  92. package/dist/lib/commands/services/storage.d.ts +3 -0
  93. package/dist/lib/commands/services/storage.d.ts.map +1 -0
  94. package/dist/lib/commands/services/storage.js +153 -0
  95. package/dist/lib/commands/services/storage.js.map +1 -0
  96. package/dist/lib/commands/services/tablesdb.d.ts +3 -0
  97. package/dist/lib/commands/services/tablesdb.d.ts.map +1 -0
  98. package/dist/lib/commands/services/tablesdb.js +605 -0
  99. package/dist/lib/commands/services/tablesdb.js.map +1 -0
  100. package/dist/lib/commands/services/teams.d.ts +3 -0
  101. package/dist/lib/commands/services/teams.d.ts.map +1 -0
  102. package/dist/lib/commands/services/teams.js +123 -0
  103. package/dist/lib/commands/services/teams.js.map +1 -0
  104. package/dist/lib/commands/services/tokens.d.ts +3 -0
  105. package/dist/lib/commands/services/tokens.d.ts.map +1 -0
  106. package/dist/lib/commands/services/tokens.js +49 -0
  107. package/dist/lib/commands/services/tokens.js.map +1 -0
  108. package/dist/lib/commands/services/users.d.ts +3 -0
  109. package/dist/lib/commands/services/users.d.ts.map +1 -0
  110. package/dist/lib/commands/services/users.js +312 -0
  111. package/dist/lib/commands/services/users.js.map +1 -0
  112. package/dist/lib/commands/services/vcs.d.ts +3 -0
  113. package/dist/lib/commands/services/vcs.d.ts.map +1 -0
  114. package/dist/lib/commands/services/vcs.js +87 -0
  115. package/dist/lib/commands/services/vcs.js.map +1 -0
  116. package/dist/lib/commands/types.d.ts +3 -0
  117. package/dist/lib/commands/types.d.ts.map +1 -0
  118. package/dist/lib/commands/types.js +151 -0
  119. package/dist/lib/commands/types.js.map +1 -0
  120. package/dist/lib/commands/update.d.ts +3 -0
  121. package/dist/lib/commands/update.d.ts.map +1 -0
  122. package/{lib → dist/lib}/commands/update.js +62 -79
  123. package/dist/lib/commands/update.js.map +1 -0
  124. package/dist/lib/config.d.ts +118 -0
  125. package/dist/lib/config.d.ts.map +1 -0
  126. package/{lib → dist/lib}/config.js +173 -232
  127. package/dist/lib/config.js.map +1 -0
  128. package/dist/lib/emulation/docker.d.ts +7 -0
  129. package/dist/lib/emulation/docker.d.ts.map +1 -0
  130. package/dist/lib/emulation/docker.js +224 -0
  131. package/dist/lib/emulation/docker.js.map +1 -0
  132. package/dist/lib/emulation/utils.d.ts +29 -0
  133. package/dist/lib/emulation/utils.d.ts.map +1 -0
  134. package/{lib → dist/lib}/emulation/utils.js +70 -91
  135. package/dist/lib/emulation/utils.js.map +1 -0
  136. package/dist/lib/id.d.ts +7 -0
  137. package/dist/lib/id.d.ts.map +1 -0
  138. package/{lib → dist/lib}/id.js +5 -8
  139. package/dist/lib/id.js.map +1 -0
  140. package/dist/lib/paginate.d.ts +9 -0
  141. package/dist/lib/paginate.d.ts.map +1 -0
  142. package/{lib → dist/lib}/paginate.js +10 -19
  143. package/dist/lib/paginate.js.map +1 -0
  144. package/dist/lib/parser.d.ts +18 -0
  145. package/dist/lib/parser.d.ts.map +1 -0
  146. package/dist/lib/parser.js +225 -0
  147. package/dist/lib/parser.js.map +1 -0
  148. package/dist/lib/questions.d.ts +59 -0
  149. package/dist/lib/questions.d.ts.map +1 -0
  150. package/{lib → dist/lib}/questions.js +393 -500
  151. package/dist/lib/questions.js.map +1 -0
  152. package/dist/lib/sdks.d.ts +4 -0
  153. package/dist/lib/sdks.d.ts.map +1 -0
  154. package/dist/lib/sdks.js +61 -0
  155. package/dist/lib/sdks.js.map +1 -0
  156. package/dist/lib/services.d.ts +13 -0
  157. package/dist/lib/services.d.ts.map +1 -0
  158. package/dist/lib/services.js +47 -0
  159. package/dist/lib/services.js.map +1 -0
  160. package/dist/lib/spinner.d.ts +28 -0
  161. package/dist/lib/spinner.d.ts.map +1 -0
  162. package/dist/lib/spinner.js +91 -0
  163. package/dist/lib/spinner.js.map +1 -0
  164. package/dist/lib/type-generation/attribute.d.ts +17 -0
  165. package/dist/lib/type-generation/attribute.d.ts.map +1 -0
  166. package/{lib → dist/lib}/type-generation/attribute.js +2 -5
  167. package/dist/lib/type-generation/attribute.js.map +1 -0
  168. package/dist/lib/type-generation/languages/csharp.d.ts +7 -0
  169. package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -0
  170. package/dist/lib/type-generation/languages/csharp.js +180 -0
  171. package/dist/lib/type-generation/languages/csharp.js.map +1 -0
  172. package/dist/lib/type-generation/languages/dart.d.ts +8 -0
  173. package/dist/lib/type-generation/languages/dart.d.ts.map +1 -0
  174. package/dist/lib/type-generation/languages/dart.js +197 -0
  175. package/dist/lib/type-generation/languages/dart.js.map +1 -0
  176. package/dist/lib/type-generation/languages/java.d.ts +7 -0
  177. package/dist/lib/type-generation/languages/java.d.ts.map +1 -0
  178. package/dist/lib/type-generation/languages/java.js +140 -0
  179. package/dist/lib/type-generation/languages/java.js.map +1 -0
  180. package/dist/lib/type-generation/languages/javascript.d.ts +9 -0
  181. package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -0
  182. package/dist/lib/type-generation/languages/javascript.js +109 -0
  183. package/dist/lib/type-generation/languages/javascript.js.map +1 -0
  184. package/dist/lib/type-generation/languages/kotlin.d.ts +7 -0
  185. package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -0
  186. package/dist/lib/type-generation/languages/kotlin.js +95 -0
  187. package/dist/lib/type-generation/languages/kotlin.js.map +1 -0
  188. package/dist/lib/type-generation/languages/language.d.ts +43 -0
  189. package/dist/lib/type-generation/languages/language.d.ts.map +1 -0
  190. package/dist/lib/type-generation/languages/language.js +77 -0
  191. package/dist/lib/type-generation/languages/language.js.map +1 -0
  192. package/dist/lib/type-generation/languages/php.d.ts +7 -0
  193. package/dist/lib/type-generation/languages/php.d.ts.map +1 -0
  194. package/dist/lib/type-generation/languages/php.js +116 -0
  195. package/dist/lib/type-generation/languages/php.js.map +1 -0
  196. package/dist/lib/type-generation/languages/swift.d.ts +7 -0
  197. package/dist/lib/type-generation/languages/swift.d.ts.map +1 -0
  198. package/dist/lib/type-generation/languages/swift.js +179 -0
  199. package/dist/lib/type-generation/languages/swift.js.map +1 -0
  200. package/dist/lib/type-generation/languages/typescript.d.ts +9 -0
  201. package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -0
  202. package/dist/lib/type-generation/languages/typescript.js +115 -0
  203. package/dist/lib/type-generation/languages/typescript.js.map +1 -0
  204. package/dist/lib/types.d.ts +277 -0
  205. package/dist/lib/types.d.ts.map +1 -0
  206. package/dist/lib/types.js +2 -0
  207. package/dist/lib/types.js.map +1 -0
  208. package/dist/lib/utils.d.ts +15 -0
  209. package/dist/lib/utils.d.ts.map +1 -0
  210. package/{lib → dist/lib}/utils.js +125 -167
  211. package/dist/lib/utils.js.map +1 -0
  212. package/dist/lib/validations.d.ts +2 -0
  213. package/dist/lib/validations.d.ts.map +1 -0
  214. package/dist/lib/validations.js +16 -0
  215. package/dist/lib/validations.js.map +1 -0
  216. package/dist/package.json +67 -0
  217. package/dist/scripts/generate-commands.d.ts +2 -0
  218. package/dist/scripts/generate-commands.d.ts.map +1 -0
  219. package/dist/scripts/generate-commands.js +398 -0
  220. package/dist/scripts/generate-commands.js.map +1 -0
  221. package/index.ts +168 -0
  222. package/install.ps1 +2 -5
  223. package/install.sh +1 -2
  224. package/lib/client.ts +292 -0
  225. package/lib/commands/generic.ts +440 -0
  226. package/lib/commands/init.ts +713 -0
  227. package/lib/commands/pull.ts +668 -0
  228. package/lib/commands/push.ts +3183 -0
  229. package/lib/commands/run.ts +416 -0
  230. package/lib/commands/services/account.ts +832 -0
  231. package/lib/commands/services/avatars.ts +400 -0
  232. package/lib/commands/services/console.ts +73 -0
  233. package/lib/commands/services/databases.ts +2080 -0
  234. package/lib/commands/services/functions.ts +855 -0
  235. package/lib/commands/services/graphql.ts +47 -0
  236. package/lib/commands/services/health.ts +322 -0
  237. package/lib/commands/services/locale.ts +99 -0
  238. package/lib/commands/services/messaging.ts +1871 -0
  239. package/lib/commands/services/migrations.ts +421 -0
  240. package/lib/commands/services/project.ts +116 -0
  241. package/lib/commands/services/projects.ts +1317 -0
  242. package/lib/commands/services/proxy.ts +163 -0
  243. package/lib/commands/services/sites.ts +777 -0
  244. package/lib/commands/services/storage.ts +547 -0
  245. package/lib/commands/services/tablesdb.ts +1928 -0
  246. package/lib/commands/services/teams.ts +294 -0
  247. package/lib/commands/services/tokens.ts +106 -0
  248. package/lib/commands/services/users.ts +886 -0
  249. package/lib/commands/services/vcs.ts +268 -0
  250. package/lib/commands/types.ts +220 -0
  251. package/lib/commands/update.ts +255 -0
  252. package/lib/config.ts +969 -0
  253. package/lib/emulation/docker.ts +312 -0
  254. package/lib/emulation/utils.ts +207 -0
  255. package/lib/id.ts +30 -0
  256. package/lib/paginate.ts +77 -0
  257. package/lib/parser.ts +264 -0
  258. package/lib/questions.ts +1167 -0
  259. package/lib/sdks.ts +84 -0
  260. package/lib/services.ts +72 -0
  261. package/lib/spinner.ts +131 -0
  262. package/lib/type-generation/attribute.ts +18 -0
  263. package/lib/type-generation/languages/{csharp.js → csharp.ts} +27 -14
  264. package/lib/type-generation/languages/{dart.js → dart.ts} +61 -46
  265. package/lib/type-generation/languages/{java.js → java.ts} +31 -18
  266. package/lib/type-generation/languages/{javascript.js → javascript.ts} +35 -24
  267. package/lib/type-generation/languages/{kotlin.js → kotlin.ts} +27 -14
  268. package/lib/type-generation/languages/{language.js → language.ts} +45 -43
  269. package/lib/type-generation/languages/{php.js → php.ts} +28 -15
  270. package/lib/type-generation/languages/{swift.js → swift.ts} +27 -14
  271. package/lib/type-generation/languages/{typescript.js → typescript.ts} +43 -26
  272. package/lib/types.ts +304 -0
  273. package/lib/utils.ts +352 -0
  274. package/lib/validations.ts +20 -0
  275. package/package.json +36 -19
  276. package/scoop/appwrite.config.json +19 -29
  277. package/scripts/generate-commands.ts +539 -0
  278. package/tsconfig.json +24 -0
  279. package/.github/workflows/autoclose.yml +0 -11
  280. package/docs/examples/account/create-anonymous-session.md +0 -1
  281. package/docs/examples/account/create-email-password-session.md +0 -3
  282. package/docs/examples/account/create-email-token.md +0 -3
  283. package/docs/examples/account/create-email-verification.md +0 -2
  284. package/docs/examples/account/create-jwt.md +0 -1
  285. package/docs/examples/account/create-magic-url-token.md +0 -3
  286. package/docs/examples/account/create-mfa-authenticator.md +0 -2
  287. package/docs/examples/account/create-mfa-challenge.md +0 -2
  288. package/docs/examples/account/create-mfa-recovery-codes.md +0 -1
  289. package/docs/examples/account/create-o-auth-2-session.md +0 -2
  290. package/docs/examples/account/create-o-auth-2-token.md +0 -2
  291. package/docs/examples/account/create-phone-token.md +0 -3
  292. package/docs/examples/account/create-phone-verification.md +0 -1
  293. package/docs/examples/account/create-push-target.md +0 -3
  294. package/docs/examples/account/create-recovery.md +0 -3
  295. package/docs/examples/account/create-session.md +0 -3
  296. package/docs/examples/account/create-verification.md +0 -2
  297. package/docs/examples/account/create.md +0 -4
  298. package/docs/examples/account/delete-identity.md +0 -2
  299. package/docs/examples/account/delete-mfa-authenticator.md +0 -2
  300. package/docs/examples/account/delete-push-target.md +0 -2
  301. package/docs/examples/account/delete-session.md +0 -2
  302. package/docs/examples/account/delete-sessions.md +0 -1
  303. package/docs/examples/account/delete.md +0 -1
  304. package/docs/examples/account/get-mfa-recovery-codes.md +0 -1
  305. package/docs/examples/account/get-prefs.md +0 -1
  306. package/docs/examples/account/get-session.md +0 -2
  307. package/docs/examples/account/get.md +0 -1
  308. package/docs/examples/account/list-identities.md +0 -1
  309. package/docs/examples/account/list-logs.md +0 -1
  310. package/docs/examples/account/list-mfa-factors.md +0 -1
  311. package/docs/examples/account/list-sessions.md +0 -1
  312. package/docs/examples/account/update-email-verification.md +0 -3
  313. package/docs/examples/account/update-email.md +0 -3
  314. package/docs/examples/account/update-magic-url-session.md +0 -3
  315. package/docs/examples/account/update-mfa-authenticator.md +0 -3
  316. package/docs/examples/account/update-mfa-challenge.md +0 -3
  317. package/docs/examples/account/update-mfa-recovery-codes.md +0 -1
  318. package/docs/examples/account/update-mfa.md +0 -2
  319. package/docs/examples/account/update-name.md +0 -2
  320. package/docs/examples/account/update-password.md +0 -2
  321. package/docs/examples/account/update-phone-session.md +0 -3
  322. package/docs/examples/account/update-phone-verification.md +0 -3
  323. package/docs/examples/account/update-phone.md +0 -3
  324. package/docs/examples/account/update-prefs.md +0 -2
  325. package/docs/examples/account/update-push-target.md +0 -3
  326. package/docs/examples/account/update-recovery.md +0 -4
  327. package/docs/examples/account/update-session.md +0 -2
  328. package/docs/examples/account/update-status.md +0 -1
  329. package/docs/examples/account/update-verification.md +0 -3
  330. package/docs/examples/console/get-resource.md +0 -3
  331. package/docs/examples/console/variables.md +0 -1
  332. package/docs/examples/databases/create-boolean-attribute.md +0 -5
  333. package/docs/examples/databases/create-collection.md +0 -4
  334. package/docs/examples/databases/create-datetime-attribute.md +0 -5
  335. package/docs/examples/databases/create-document.md +0 -5
  336. package/docs/examples/databases/create-documents.md +0 -4
  337. package/docs/examples/databases/create-email-attribute.md +0 -5
  338. package/docs/examples/databases/create-enum-attribute.md +0 -6
  339. package/docs/examples/databases/create-float-attribute.md +0 -5
  340. package/docs/examples/databases/create-index.md +0 -6
  341. package/docs/examples/databases/create-integer-attribute.md +0 -5
  342. package/docs/examples/databases/create-ip-attribute.md +0 -5
  343. package/docs/examples/databases/create-line-attribute.md +0 -5
  344. package/docs/examples/databases/create-operations.md +0 -2
  345. package/docs/examples/databases/create-point-attribute.md +0 -5
  346. package/docs/examples/databases/create-polygon-attribute.md +0 -5
  347. package/docs/examples/databases/create-relationship-attribute.md +0 -5
  348. package/docs/examples/databases/create-string-attribute.md +0 -6
  349. package/docs/examples/databases/create-transaction.md +0 -1
  350. package/docs/examples/databases/create-url-attribute.md +0 -5
  351. package/docs/examples/databases/create.md +0 -3
  352. package/docs/examples/databases/decrement-document-attribute.md +0 -5
  353. package/docs/examples/databases/delete-attribute.md +0 -4
  354. package/docs/examples/databases/delete-collection.md +0 -3
  355. package/docs/examples/databases/delete-document.md +0 -4
  356. package/docs/examples/databases/delete-documents.md +0 -3
  357. package/docs/examples/databases/delete-index.md +0 -4
  358. package/docs/examples/databases/delete-transaction.md +0 -2
  359. package/docs/examples/databases/delete.md +0 -2
  360. package/docs/examples/databases/get-attribute.md +0 -4
  361. package/docs/examples/databases/get-collection-usage.md +0 -3
  362. package/docs/examples/databases/get-collection.md +0 -3
  363. package/docs/examples/databases/get-document.md +0 -4
  364. package/docs/examples/databases/get-index.md +0 -4
  365. package/docs/examples/databases/get-transaction.md +0 -2
  366. package/docs/examples/databases/get-usage.md +0 -2
  367. package/docs/examples/databases/get.md +0 -2
  368. package/docs/examples/databases/increment-document-attribute.md +0 -5
  369. package/docs/examples/databases/list-attributes.md +0 -3
  370. package/docs/examples/databases/list-collection-logs.md +0 -3
  371. package/docs/examples/databases/list-collections.md +0 -2
  372. package/docs/examples/databases/list-document-logs.md +0 -4
  373. package/docs/examples/databases/list-documents.md +0 -3
  374. package/docs/examples/databases/list-indexes.md +0 -3
  375. package/docs/examples/databases/list-logs.md +0 -2
  376. package/docs/examples/databases/list-transactions.md +0 -1
  377. package/docs/examples/databases/list-usage.md +0 -1
  378. package/docs/examples/databases/list.md +0 -1
  379. package/docs/examples/databases/update-boolean-attribute.md +0 -6
  380. package/docs/examples/databases/update-collection.md +0 -4
  381. package/docs/examples/databases/update-datetime-attribute.md +0 -6
  382. package/docs/examples/databases/update-document.md +0 -4
  383. package/docs/examples/databases/update-documents.md +0 -3
  384. package/docs/examples/databases/update-email-attribute.md +0 -6
  385. package/docs/examples/databases/update-enum-attribute.md +0 -7
  386. package/docs/examples/databases/update-float-attribute.md +0 -6
  387. package/docs/examples/databases/update-integer-attribute.md +0 -6
  388. package/docs/examples/databases/update-ip-attribute.md +0 -6
  389. package/docs/examples/databases/update-line-attribute.md +0 -5
  390. package/docs/examples/databases/update-point-attribute.md +0 -5
  391. package/docs/examples/databases/update-polygon-attribute.md +0 -5
  392. package/docs/examples/databases/update-relationship-attribute.md +0 -4
  393. package/docs/examples/databases/update-string-attribute.md +0 -6
  394. package/docs/examples/databases/update-transaction.md +0 -2
  395. package/docs/examples/databases/update-url-attribute.md +0 -6
  396. package/docs/examples/databases/update.md +0 -3
  397. package/docs/examples/databases/upsert-document.md +0 -5
  398. package/docs/examples/databases/upsert-documents.md +0 -4
  399. package/docs/examples/functions/create-deployment.md +0 -4
  400. package/docs/examples/functions/create-duplicate-deployment.md +0 -3
  401. package/docs/examples/functions/create-execution.md +0 -2
  402. package/docs/examples/functions/create-template-deployment.md +0 -7
  403. package/docs/examples/functions/create-variable.md +0 -4
  404. package/docs/examples/functions/create-vcs-deployment.md +0 -4
  405. package/docs/examples/functions/create.md +0 -4
  406. package/docs/examples/functions/delete-deployment.md +0 -3
  407. package/docs/examples/functions/delete-execution.md +0 -3
  408. package/docs/examples/functions/delete-variable.md +0 -3
  409. package/docs/examples/functions/delete.md +0 -2
  410. package/docs/examples/functions/get-deployment-download.md +0 -3
  411. package/docs/examples/functions/get-deployment.md +0 -3
  412. package/docs/examples/functions/get-execution.md +0 -3
  413. package/docs/examples/functions/get-template.md +0 -2
  414. package/docs/examples/functions/get-usage.md +0 -2
  415. package/docs/examples/functions/get-variable.md +0 -3
  416. package/docs/examples/functions/get.md +0 -2
  417. package/docs/examples/functions/list-deployments.md +0 -2
  418. package/docs/examples/functions/list-executions.md +0 -2
  419. package/docs/examples/functions/list-runtimes.md +0 -1
  420. package/docs/examples/functions/list-specifications.md +0 -1
  421. package/docs/examples/functions/list-templates.md +0 -1
  422. package/docs/examples/functions/list-usage.md +0 -1
  423. package/docs/examples/functions/list-variables.md +0 -2
  424. package/docs/examples/functions/list.md +0 -1
  425. package/docs/examples/functions/update-deployment-status.md +0 -3
  426. package/docs/examples/functions/update-function-deployment.md +0 -3
  427. package/docs/examples/functions/update-variable.md +0 -4
  428. package/docs/examples/functions/update.md +0 -3
  429. package/docs/examples/graphql/mutation.md +0 -2
  430. package/docs/examples/graphql/query.md +0 -2
  431. package/docs/examples/health/get-antivirus.md +0 -1
  432. package/docs/examples/health/get-cache.md +0 -1
  433. package/docs/examples/health/get-certificate.md +0 -1
  434. package/docs/examples/health/get-db.md +0 -1
  435. package/docs/examples/health/get-failed-jobs.md +0 -2
  436. package/docs/examples/health/get-pub-sub.md +0 -1
  437. package/docs/examples/health/get-queue-builds.md +0 -1
  438. package/docs/examples/health/get-queue-certificates.md +0 -1
  439. package/docs/examples/health/get-queue-databases.md +0 -1
  440. package/docs/examples/health/get-queue-deletes.md +0 -1
  441. package/docs/examples/health/get-queue-functions.md +0 -1
  442. package/docs/examples/health/get-queue-logs.md +0 -1
  443. package/docs/examples/health/get-queue-mails.md +0 -1
  444. package/docs/examples/health/get-queue-messaging.md +0 -1
  445. package/docs/examples/health/get-queue-migrations.md +0 -1
  446. package/docs/examples/health/get-queue-stats-resources.md +0 -1
  447. package/docs/examples/health/get-queue-usage.md +0 -1
  448. package/docs/examples/health/get-queue-webhooks.md +0 -1
  449. package/docs/examples/health/get-storage-local.md +0 -1
  450. package/docs/examples/health/get-storage.md +0 -1
  451. package/docs/examples/health/get-time.md +0 -1
  452. package/docs/examples/health/get.md +0 -1
  453. package/docs/examples/locale/get.md +0 -1
  454. package/docs/examples/locale/list-codes.md +0 -1
  455. package/docs/examples/locale/list-continents.md +0 -1
  456. package/docs/examples/locale/list-countries-eu.md +0 -1
  457. package/docs/examples/locale/list-countries-phones.md +0 -1
  458. package/docs/examples/locale/list-countries.md +0 -1
  459. package/docs/examples/locale/list-currencies.md +0 -1
  460. package/docs/examples/locale/list-languages.md +0 -1
  461. package/docs/examples/messaging/create-apns-provider.md +0 -3
  462. package/docs/examples/messaging/create-email.md +0 -4
  463. package/docs/examples/messaging/create-fcm-provider.md +0 -3
  464. package/docs/examples/messaging/create-mailgun-provider.md +0 -3
  465. package/docs/examples/messaging/create-msg-91-provider.md +0 -3
  466. package/docs/examples/messaging/create-push.md +0 -2
  467. package/docs/examples/messaging/create-resend-provider.md +0 -3
  468. package/docs/examples/messaging/create-sendgrid-provider.md +0 -3
  469. package/docs/examples/messaging/create-sms.md +0 -3
  470. package/docs/examples/messaging/create-smtp-provider.md +0 -4
  471. package/docs/examples/messaging/create-subscriber.md +0 -4
  472. package/docs/examples/messaging/create-telesign-provider.md +0 -3
  473. package/docs/examples/messaging/create-textmagic-provider.md +0 -3
  474. package/docs/examples/messaging/create-topic.md +0 -3
  475. package/docs/examples/messaging/create-twilio-provider.md +0 -3
  476. package/docs/examples/messaging/create-vonage-provider.md +0 -3
  477. package/docs/examples/messaging/delete-provider.md +0 -2
  478. package/docs/examples/messaging/delete-subscriber.md +0 -3
  479. package/docs/examples/messaging/delete-topic.md +0 -2
  480. package/docs/examples/messaging/delete.md +0 -2
  481. package/docs/examples/messaging/get-message.md +0 -2
  482. package/docs/examples/messaging/get-provider.md +0 -2
  483. package/docs/examples/messaging/get-subscriber.md +0 -3
  484. package/docs/examples/messaging/get-topic.md +0 -2
  485. package/docs/examples/messaging/list-message-logs.md +0 -2
  486. package/docs/examples/messaging/list-messages.md +0 -1
  487. package/docs/examples/messaging/list-provider-logs.md +0 -2
  488. package/docs/examples/messaging/list-providers.md +0 -1
  489. package/docs/examples/messaging/list-subscriber-logs.md +0 -2
  490. package/docs/examples/messaging/list-subscribers.md +0 -2
  491. package/docs/examples/messaging/list-targets.md +0 -2
  492. package/docs/examples/messaging/list-topic-logs.md +0 -2
  493. package/docs/examples/messaging/list-topics.md +0 -1
  494. package/docs/examples/messaging/update-apns-provider.md +0 -2
  495. package/docs/examples/messaging/update-email.md +0 -2
  496. package/docs/examples/messaging/update-fcm-provider.md +0 -2
  497. package/docs/examples/messaging/update-mailgun-provider.md +0 -2
  498. package/docs/examples/messaging/update-msg-91-provider.md +0 -2
  499. package/docs/examples/messaging/update-push.md +0 -2
  500. package/docs/examples/messaging/update-resend-provider.md +0 -2
  501. package/docs/examples/messaging/update-sendgrid-provider.md +0 -2
  502. package/docs/examples/messaging/update-sms.md +0 -2
  503. package/docs/examples/messaging/update-smtp-provider.md +0 -2
  504. package/docs/examples/messaging/update-telesign-provider.md +0 -2
  505. package/docs/examples/messaging/update-textmagic-provider.md +0 -2
  506. package/docs/examples/messaging/update-topic.md +0 -2
  507. package/docs/examples/messaging/update-twilio-provider.md +0 -2
  508. package/docs/examples/messaging/update-vonage-provider.md +0 -2
  509. package/docs/examples/migrations/create-appwrite-migration.md +0 -5
  510. package/docs/examples/migrations/create-csv-export.md +0 -3
  511. package/docs/examples/migrations/create-csv-import.md +0 -4
  512. package/docs/examples/migrations/create-firebase-migration.md +0 -3
  513. package/docs/examples/migrations/create-n-host-migration.md +0 -8
  514. package/docs/examples/migrations/create-supabase-migration.md +0 -7
  515. package/docs/examples/migrations/delete.md +0 -2
  516. package/docs/examples/migrations/get-appwrite-report.md +0 -5
  517. package/docs/examples/migrations/get-firebase-report.md +0 -3
  518. package/docs/examples/migrations/get-n-host-report.md +0 -8
  519. package/docs/examples/migrations/get-supabase-report.md +0 -7
  520. package/docs/examples/migrations/get.md +0 -2
  521. package/docs/examples/migrations/list.md +0 -1
  522. package/docs/examples/migrations/retry.md +0 -2
  523. package/docs/examples/project/create-variable.md +0 -3
  524. package/docs/examples/project/delete-variable.md +0 -2
  525. package/docs/examples/project/get-usage.md +0 -3
  526. package/docs/examples/project/get-variable.md +0 -2
  527. package/docs/examples/project/list-variables.md +0 -1
  528. package/docs/examples/project/update-variable.md +0 -3
  529. package/docs/examples/projects/create-dev-key.md +0 -4
  530. package/docs/examples/projects/create-jwt.md +0 -3
  531. package/docs/examples/projects/create-key.md +0 -4
  532. package/docs/examples/projects/create-platform.md +0 -4
  533. package/docs/examples/projects/create-smtp-test.md +0 -6
  534. package/docs/examples/projects/create-webhook.md +0 -6
  535. package/docs/examples/projects/create.md +0 -4
  536. package/docs/examples/projects/delete-dev-key.md +0 -3
  537. package/docs/examples/projects/delete-email-template.md +0 -4
  538. package/docs/examples/projects/delete-key.md +0 -3
  539. package/docs/examples/projects/delete-platform.md +0 -3
  540. package/docs/examples/projects/delete-sms-template.md +0 -4
  541. package/docs/examples/projects/delete-webhook.md +0 -3
  542. package/docs/examples/projects/delete.md +0 -2
  543. package/docs/examples/projects/get-dev-key.md +0 -3
  544. package/docs/examples/projects/get-email-template.md +0 -4
  545. package/docs/examples/projects/get-key.md +0 -3
  546. package/docs/examples/projects/get-platform.md +0 -3
  547. package/docs/examples/projects/get-sms-template.md +0 -4
  548. package/docs/examples/projects/get-webhook.md +0 -3
  549. package/docs/examples/projects/get.md +0 -2
  550. package/docs/examples/projects/list-dev-keys.md +0 -2
  551. package/docs/examples/projects/list-keys.md +0 -2
  552. package/docs/examples/projects/list-platforms.md +0 -2
  553. package/docs/examples/projects/list-webhooks.md +0 -2
  554. package/docs/examples/projects/list.md +0 -1
  555. package/docs/examples/projects/update-api-status-all.md +0 -3
  556. package/docs/examples/projects/update-api-status.md +0 -4
  557. package/docs/examples/projects/update-auth-duration.md +0 -3
  558. package/docs/examples/projects/update-auth-limit.md +0 -3
  559. package/docs/examples/projects/update-auth-password-dictionary.md +0 -3
  560. package/docs/examples/projects/update-auth-password-history.md +0 -3
  561. package/docs/examples/projects/update-auth-sessions-limit.md +0 -3
  562. package/docs/examples/projects/update-auth-status.md +0 -4
  563. package/docs/examples/projects/update-dev-key.md +0 -5
  564. package/docs/examples/projects/update-email-template.md +0 -6
  565. package/docs/examples/projects/update-key.md +0 -5
  566. package/docs/examples/projects/update-memberships-privacy.md +0 -5
  567. package/docs/examples/projects/update-mock-numbers.md +0 -3
  568. package/docs/examples/projects/update-o-auth-2.md +0 -3
  569. package/docs/examples/projects/update-personal-data-check.md +0 -3
  570. package/docs/examples/projects/update-platform.md +0 -4
  571. package/docs/examples/projects/update-service-status-all.md +0 -3
  572. package/docs/examples/projects/update-service-status.md +0 -4
  573. package/docs/examples/projects/update-session-alerts.md +0 -3
  574. package/docs/examples/projects/update-session-invalidation.md +0 -3
  575. package/docs/examples/projects/update-sms-template.md +0 -5
  576. package/docs/examples/projects/update-smtp.md +0 -3
  577. package/docs/examples/projects/update-team.md +0 -3
  578. package/docs/examples/projects/update-webhook-signature.md +0 -3
  579. package/docs/examples/projects/update-webhook.md +0 -7
  580. package/docs/examples/projects/update.md +0 -3
  581. package/docs/examples/proxy/create-api-rule.md +0 -2
  582. package/docs/examples/proxy/create-function-rule.md +0 -3
  583. package/docs/examples/proxy/create-redirect-rule.md +0 -6
  584. package/docs/examples/proxy/create-site-rule.md +0 -3
  585. package/docs/examples/proxy/delete-rule.md +0 -2
  586. package/docs/examples/proxy/get-rule.md +0 -2
  587. package/docs/examples/proxy/list-rules.md +0 -1
  588. package/docs/examples/proxy/update-rule-verification.md +0 -2
  589. package/docs/examples/sites/create-deployment.md +0 -4
  590. package/docs/examples/sites/create-duplicate-deployment.md +0 -3
  591. package/docs/examples/sites/create-template-deployment.md +0 -7
  592. package/docs/examples/sites/create-variable.md +0 -4
  593. package/docs/examples/sites/create-vcs-deployment.md +0 -4
  594. package/docs/examples/sites/create.md +0 -5
  595. package/docs/examples/sites/delete-deployment.md +0 -3
  596. package/docs/examples/sites/delete-log.md +0 -3
  597. package/docs/examples/sites/delete-variable.md +0 -3
  598. package/docs/examples/sites/delete.md +0 -2
  599. package/docs/examples/sites/get-deployment-download.md +0 -3
  600. package/docs/examples/sites/get-deployment.md +0 -3
  601. package/docs/examples/sites/get-log.md +0 -3
  602. package/docs/examples/sites/get-template.md +0 -2
  603. package/docs/examples/sites/get-usage.md +0 -2
  604. package/docs/examples/sites/get-variable.md +0 -3
  605. package/docs/examples/sites/get.md +0 -2
  606. package/docs/examples/sites/list-deployments.md +0 -2
  607. package/docs/examples/sites/list-frameworks.md +0 -1
  608. package/docs/examples/sites/list-logs.md +0 -2
  609. package/docs/examples/sites/list-specifications.md +0 -1
  610. package/docs/examples/sites/list-templates.md +0 -1
  611. package/docs/examples/sites/list-usage.md +0 -1
  612. package/docs/examples/sites/list-variables.md +0 -2
  613. package/docs/examples/sites/list.md +0 -1
  614. package/docs/examples/sites/update-deployment-status.md +0 -3
  615. package/docs/examples/sites/update-site-deployment.md +0 -3
  616. package/docs/examples/sites/update-variable.md +0 -4
  617. package/docs/examples/sites/update.md +0 -4
  618. package/docs/examples/storage/create-bucket.md +0 -3
  619. package/docs/examples/storage/create-file.md +0 -4
  620. package/docs/examples/storage/delete-bucket.md +0 -2
  621. package/docs/examples/storage/delete-file.md +0 -3
  622. package/docs/examples/storage/get-bucket-usage.md +0 -2
  623. package/docs/examples/storage/get-bucket.md +0 -2
  624. package/docs/examples/storage/get-file-download.md +0 -3
  625. package/docs/examples/storage/get-file-preview.md +0 -3
  626. package/docs/examples/storage/get-file-view.md +0 -3
  627. package/docs/examples/storage/get-file.md +0 -3
  628. package/docs/examples/storage/get-usage.md +0 -1
  629. package/docs/examples/storage/list-buckets.md +0 -1
  630. package/docs/examples/storage/list-files.md +0 -2
  631. package/docs/examples/storage/update-bucket.md +0 -3
  632. package/docs/examples/storage/update-file.md +0 -3
  633. package/docs/examples/tablesdb/create-boolean-column.md +0 -5
  634. package/docs/examples/tablesdb/create-datetime-column.md +0 -5
  635. package/docs/examples/tablesdb/create-email-column.md +0 -5
  636. package/docs/examples/tablesdb/create-enum-column.md +0 -6
  637. package/docs/examples/tablesdb/create-float-column.md +0 -5
  638. package/docs/examples/tablesdb/create-index.md +0 -6
  639. package/docs/examples/tablesdb/create-integer-column.md +0 -5
  640. package/docs/examples/tablesdb/create-ip-column.md +0 -5
  641. package/docs/examples/tablesdb/create-line-column.md +0 -5
  642. package/docs/examples/tablesdb/create-operations.md +0 -2
  643. package/docs/examples/tablesdb/create-point-column.md +0 -5
  644. package/docs/examples/tablesdb/create-polygon-column.md +0 -5
  645. package/docs/examples/tablesdb/create-relationship-column.md +0 -5
  646. package/docs/examples/tablesdb/create-row.md +0 -5
  647. package/docs/examples/tablesdb/create-rows.md +0 -4
  648. package/docs/examples/tablesdb/create-string-column.md +0 -6
  649. package/docs/examples/tablesdb/create-table.md +0 -4
  650. package/docs/examples/tablesdb/create-transaction.md +0 -1
  651. package/docs/examples/tablesdb/create-url-column.md +0 -5
  652. package/docs/examples/tablesdb/create.md +0 -3
  653. package/docs/examples/tablesdb/decrement-row-column.md +0 -5
  654. package/docs/examples/tablesdb/delete-column.md +0 -4
  655. package/docs/examples/tablesdb/delete-index.md +0 -4
  656. package/docs/examples/tablesdb/delete-row.md +0 -4
  657. package/docs/examples/tablesdb/delete-rows.md +0 -3
  658. package/docs/examples/tablesdb/delete-table.md +0 -3
  659. package/docs/examples/tablesdb/delete-transaction.md +0 -2
  660. package/docs/examples/tablesdb/delete.md +0 -2
  661. package/docs/examples/tablesdb/get-column.md +0 -4
  662. package/docs/examples/tablesdb/get-index.md +0 -4
  663. package/docs/examples/tablesdb/get-row.md +0 -4
  664. package/docs/examples/tablesdb/get-table-usage.md +0 -3
  665. package/docs/examples/tablesdb/get-table.md +0 -3
  666. package/docs/examples/tablesdb/get-transaction.md +0 -2
  667. package/docs/examples/tablesdb/get-usage.md +0 -2
  668. package/docs/examples/tablesdb/get.md +0 -2
  669. package/docs/examples/tablesdb/increment-row-column.md +0 -5
  670. package/docs/examples/tablesdb/list-columns.md +0 -3
  671. package/docs/examples/tablesdb/list-indexes.md +0 -3
  672. package/docs/examples/tablesdb/list-row-logs.md +0 -4
  673. package/docs/examples/tablesdb/list-rows.md +0 -3
  674. package/docs/examples/tablesdb/list-table-logs.md +0 -3
  675. package/docs/examples/tablesdb/list-tables.md +0 -2
  676. package/docs/examples/tablesdb/list-transactions.md +0 -1
  677. package/docs/examples/tablesdb/list-usage.md +0 -1
  678. package/docs/examples/tablesdb/list.md +0 -1
  679. package/docs/examples/tablesdb/update-boolean-column.md +0 -6
  680. package/docs/examples/tablesdb/update-datetime-column.md +0 -6
  681. package/docs/examples/tablesdb/update-email-column.md +0 -6
  682. package/docs/examples/tablesdb/update-enum-column.md +0 -7
  683. package/docs/examples/tablesdb/update-float-column.md +0 -6
  684. package/docs/examples/tablesdb/update-integer-column.md +0 -6
  685. package/docs/examples/tablesdb/update-ip-column.md +0 -6
  686. package/docs/examples/tablesdb/update-line-column.md +0 -5
  687. package/docs/examples/tablesdb/update-point-column.md +0 -5
  688. package/docs/examples/tablesdb/update-polygon-column.md +0 -5
  689. package/docs/examples/tablesdb/update-relationship-column.md +0 -4
  690. package/docs/examples/tablesdb/update-row.md +0 -4
  691. package/docs/examples/tablesdb/update-rows.md +0 -3
  692. package/docs/examples/tablesdb/update-string-column.md +0 -6
  693. package/docs/examples/tablesdb/update-table.md +0 -4
  694. package/docs/examples/tablesdb/update-transaction.md +0 -2
  695. package/docs/examples/tablesdb/update-url-column.md +0 -6
  696. package/docs/examples/tablesdb/update.md +0 -3
  697. package/docs/examples/tablesdb/upsert-row.md +0 -4
  698. package/docs/examples/tablesdb/upsert-rows.md +0 -4
  699. package/docs/examples/teams/create-membership.md +0 -3
  700. package/docs/examples/teams/create.md +0 -3
  701. package/docs/examples/teams/delete-membership.md +0 -3
  702. package/docs/examples/teams/delete.md +0 -2
  703. package/docs/examples/teams/get-membership.md +0 -3
  704. package/docs/examples/teams/get-prefs.md +0 -2
  705. package/docs/examples/teams/get.md +0 -2
  706. package/docs/examples/teams/list-logs.md +0 -2
  707. package/docs/examples/teams/list-memberships.md +0 -2
  708. package/docs/examples/teams/list.md +0 -1
  709. package/docs/examples/teams/update-membership-status.md +0 -5
  710. package/docs/examples/teams/update-membership.md +0 -4
  711. package/docs/examples/teams/update-name.md +0 -3
  712. package/docs/examples/teams/update-prefs.md +0 -3
  713. package/docs/examples/tokens/create-file-token.md +0 -3
  714. package/docs/examples/tokens/delete.md +0 -2
  715. package/docs/examples/tokens/get.md +0 -2
  716. package/docs/examples/tokens/list.md +0 -3
  717. package/docs/examples/tokens/update.md +0 -2
  718. package/docs/examples/users/create-argon-2-user.md +0 -4
  719. package/docs/examples/users/create-bcrypt-user.md +0 -4
  720. package/docs/examples/users/create-jwt.md +0 -2
  721. package/docs/examples/users/create-md-5-user.md +0 -4
  722. package/docs/examples/users/create-mfa-recovery-codes.md +0 -2
  723. package/docs/examples/users/create-ph-pass-user.md +0 -4
  724. package/docs/examples/users/create-scrypt-modified-user.md +0 -7
  725. package/docs/examples/users/create-scrypt-user.md +0 -9
  726. package/docs/examples/users/create-session.md +0 -2
  727. package/docs/examples/users/create-sha-user.md +0 -4
  728. package/docs/examples/users/create-target.md +0 -5
  729. package/docs/examples/users/create-token.md +0 -2
  730. package/docs/examples/users/create.md +0 -2
  731. package/docs/examples/users/delete-identity.md +0 -2
  732. package/docs/examples/users/delete-mfa-authenticator.md +0 -3
  733. package/docs/examples/users/delete-session.md +0 -3
  734. package/docs/examples/users/delete-sessions.md +0 -2
  735. package/docs/examples/users/delete-target.md +0 -3
  736. package/docs/examples/users/delete.md +0 -2
  737. package/docs/examples/users/get-mfa-recovery-codes.md +0 -2
  738. package/docs/examples/users/get-prefs.md +0 -2
  739. package/docs/examples/users/get-target.md +0 -3
  740. package/docs/examples/users/get-usage.md +0 -1
  741. package/docs/examples/users/get.md +0 -2
  742. package/docs/examples/users/list-identities.md +0 -1
  743. package/docs/examples/users/list-logs.md +0 -2
  744. package/docs/examples/users/list-memberships.md +0 -2
  745. package/docs/examples/users/list-mfa-factors.md +0 -2
  746. package/docs/examples/users/list-sessions.md +0 -2
  747. package/docs/examples/users/list-targets.md +0 -2
  748. package/docs/examples/users/list.md +0 -1
  749. package/docs/examples/users/update-email-verification.md +0 -3
  750. package/docs/examples/users/update-email.md +0 -3
  751. package/docs/examples/users/update-labels.md +0 -3
  752. package/docs/examples/users/update-mfa-recovery-codes.md +0 -2
  753. package/docs/examples/users/update-mfa.md +0 -3
  754. package/docs/examples/users/update-name.md +0 -3
  755. package/docs/examples/users/update-password.md +0 -3
  756. package/docs/examples/users/update-phone-verification.md +0 -3
  757. package/docs/examples/users/update-phone.md +0 -3
  758. package/docs/examples/users/update-prefs.md +0 -3
  759. package/docs/examples/users/update-status.md +0 -3
  760. package/docs/examples/users/update-target.md +0 -3
  761. package/docs/examples/vcs/create-repository-detection.md +0 -4
  762. package/docs/examples/vcs/create-repository.md +0 -4
  763. package/docs/examples/vcs/delete-installation.md +0 -2
  764. package/docs/examples/vcs/get-installation.md +0 -2
  765. package/docs/examples/vcs/get-repository-contents.md +0 -3
  766. package/docs/examples/vcs/get-repository.md +0 -3
  767. package/docs/examples/vcs/list-installations.md +0 -1
  768. package/docs/examples/vcs/list-repositories.md +0 -3
  769. package/docs/examples/vcs/list-repository-branches.md +0 -3
  770. package/docs/examples/vcs/update-external-deployments.md +0 -4
  771. package/index.js +0 -147
  772. package/lib/client.js +0 -254
  773. package/lib/commands/account.js +0 -2121
  774. package/lib/commands/console.js +0 -127
  775. package/lib/commands/databases.js +0 -3590
  776. package/lib/commands/functions.js +0 -1732
  777. package/lib/commands/generic.js +0 -330
  778. package/lib/commands/graphql.js +0 -126
  779. package/lib/commands/health.js +0 -869
  780. package/lib/commands/locale.js +0 -316
  781. package/lib/commands/messaging.js +0 -3116
  782. package/lib/commands/migrations.js +0 -830
  783. package/lib/commands/organizations.js +0 -48
  784. package/lib/commands/project.js +0 -302
  785. package/lib/commands/projects.js +0 -2626
  786. package/lib/commands/proxy.js +0 -403
  787. package/lib/commands/push.js +0 -2570
  788. package/lib/commands/sites.js +0 -1654
  789. package/lib/commands/storage.js +0 -995
  790. package/lib/commands/tables-db.js +0 -3569
  791. package/lib/commands/teams.js +0 -683
  792. package/lib/commands/tokens.js +0 -261
  793. package/lib/commands/types.js +0 -191
  794. package/lib/commands/users.js +0 -2022
  795. package/lib/commands/vcs.js +0 -484
  796. package/lib/emulation/docker.js +0 -264
  797. package/lib/exception.js +0 -9
  798. package/lib/parser.js +0 -250
  799. package/lib/sdks.js +0 -60
  800. package/lib/spinner.js +0 -104
  801. package/lib/validations.js +0 -17
@@ -1,3116 +0,0 @@
1
- const fs = require('fs');
2
- const pathLib = require('path');
3
- const tar = require("tar");
4
- const ignore = require("ignore");
5
- const { promisify } = require('util');
6
- const libClient = require('../client.js');
7
- const { getAllFiles, showConsoleLink } = require('../utils.js');
8
- const { Command } = require('commander');
9
- const { sdkForProject, sdkForConsole } = require('../sdks')
10
- const { parse, actionRunner, parseInteger, parseBool, commandDescriptions, success, log, warn } = require('../parser')
11
- const { localConfig, globalConfig } = require("../config");
12
- const { File } = require('undici');
13
- const { ReadableStream } = require('stream/web');
14
-
15
- /**
16
- * @param {fs.ReadStream} readStream
17
- * @returns {ReadableStream}
18
- */
19
- function convertReadStreamToReadableStream(readStream) {
20
- return new ReadableStream({
21
- start(controller) {
22
- readStream.on("data", (chunk) => {
23
- controller.enqueue(chunk);
24
- });
25
- readStream.on("end", () => {
26
- controller.close();
27
- });
28
- readStream.on("error", (err) => {
29
- controller.error(err);
30
- });
31
- },
32
- cancel() {
33
- readStream.destroy();
34
- },
35
- });
36
- }
37
-
38
- const messaging = new Command("messaging").description(commandDescriptions['messaging'] ?? '').configureHelp({
39
- helpWidth: process.stdout.columns || 80
40
- })
41
-
42
- /**
43
- * @typedef {Object} MessagingListMessagesRequestParams
44
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType
45
- * @property {string} search Search term to filter your list results. Max length: 256 chars.
46
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
47
- * @property {boolean} overrideForCli
48
- * @property {boolean} parseOutput
49
- * @property {libClient | undefined} sdk
50
- */
51
-
52
- /**
53
- * @param {MessagingListMessagesRequestParams} params
54
- */
55
- const messagingListMessages = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
56
- let client = !sdk ? await sdkForProject() :
57
- sdk;
58
- let apiPath = '/messaging/messages';
59
- let payload = {};
60
- if (typeof queries !== 'undefined') {
61
- payload['queries'] = queries;
62
- }
63
- if (typeof search !== 'undefined') {
64
- payload['search'] = search;
65
- }
66
- if (typeof total !== 'undefined') {
67
- payload['total'] = total;
68
- }
69
-
70
- let response = undefined;
71
-
72
- response = await client.call('get', apiPath, {
73
- }, payload);
74
-
75
- if (parseOutput) {
76
- if(console) {
77
- showConsoleLink('messaging', 'listMessages');
78
- } else {
79
- parse(response)
80
- }
81
- }
82
-
83
- return response;
84
-
85
- }
86
- /**
87
- * @typedef {Object} MessagingCreateEmailRequestParams
88
- * @property {string} messageId Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
89
- * @property {string} subject Email Subject.
90
- * @property {string} content Email Content.
91
- * @property {string[]} topics List of Topic IDs.
92
- * @property {string[]} users List of User IDs.
93
- * @property {string[]} targets List of Targets IDs.
94
- * @property {string[]} cc Array of target IDs to be added as CC.
95
- * @property {string[]} bcc Array of target IDs to be added as BCC.
96
- * @property {string[]} attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
97
- * @property {boolean} draft Is message a draft
98
- * @property {boolean} html Is content of type HTML
99
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
100
- * @property {boolean} overrideForCli
101
- * @property {boolean} parseOutput
102
- * @property {libClient | undefined} sdk
103
- */
104
-
105
- /**
106
- * @param {MessagingCreateEmailRequestParams} params
107
- */
108
- const messagingCreateEmail = async ({messageId,subject,content,topics,users,targets,cc,bcc,attachments,draft,html,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
109
- let client = !sdk ? await sdkForProject() :
110
- sdk;
111
- let apiPath = '/messaging/messages/email';
112
- let payload = {};
113
- if (typeof messageId !== 'undefined') {
114
- payload['messageId'] = messageId;
115
- }
116
- if (typeof subject !== 'undefined') {
117
- payload['subject'] = subject;
118
- }
119
- if (typeof content !== 'undefined') {
120
- payload['content'] = content;
121
- }
122
- topics = topics === true ? [] : topics;
123
- if (typeof topics !== 'undefined') {
124
- payload['topics'] = topics;
125
- }
126
- users = users === true ? [] : users;
127
- if (typeof users !== 'undefined') {
128
- payload['users'] = users;
129
- }
130
- targets = targets === true ? [] : targets;
131
- if (typeof targets !== 'undefined') {
132
- payload['targets'] = targets;
133
- }
134
- cc = cc === true ? [] : cc;
135
- if (typeof cc !== 'undefined') {
136
- payload['cc'] = cc;
137
- }
138
- bcc = bcc === true ? [] : bcc;
139
- if (typeof bcc !== 'undefined') {
140
- payload['bcc'] = bcc;
141
- }
142
- attachments = attachments === true ? [] : attachments;
143
- if (typeof attachments !== 'undefined') {
144
- payload['attachments'] = attachments;
145
- }
146
- if (typeof draft !== 'undefined') {
147
- payload['draft'] = draft;
148
- }
149
- if (typeof html !== 'undefined') {
150
- payload['html'] = html;
151
- }
152
- if (typeof scheduledAt !== 'undefined') {
153
- payload['scheduledAt'] = scheduledAt;
154
- }
155
-
156
- let response = undefined;
157
-
158
- response = await client.call('post', apiPath, {
159
- 'content-type': 'application/json',
160
- }, payload);
161
-
162
- if (parseOutput) {
163
- parse(response)
164
- }
165
-
166
- return response;
167
-
168
- }
169
- /**
170
- * @typedef {Object} MessagingUpdateEmailRequestParams
171
- * @property {string} messageId Message ID.
172
- * @property {string[]} topics List of Topic IDs.
173
- * @property {string[]} users List of User IDs.
174
- * @property {string[]} targets List of Targets IDs.
175
- * @property {string} subject Email Subject.
176
- * @property {string} content Email Content.
177
- * @property {boolean} draft Is message a draft
178
- * @property {boolean} html Is content of type HTML
179
- * @property {string[]} cc Array of target IDs to be added as CC.
180
- * @property {string[]} bcc Array of target IDs to be added as BCC.
181
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
182
- * @property {string[]} attachments Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.
183
- * @property {boolean} overrideForCli
184
- * @property {boolean} parseOutput
185
- * @property {libClient | undefined} sdk
186
- */
187
-
188
- /**
189
- * @param {MessagingUpdateEmailRequestParams} params
190
- */
191
- const messagingUpdateEmail = async ({messageId,topics,users,targets,subject,content,draft,html,cc,bcc,scheduledAt,attachments,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
192
- let client = !sdk ? await sdkForProject() :
193
- sdk;
194
- let apiPath = '/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);
195
- let payload = {};
196
- topics = topics === true ? [] : topics;
197
- if (typeof topics !== 'undefined') {
198
- payload['topics'] = topics;
199
- }
200
- users = users === true ? [] : users;
201
- if (typeof users !== 'undefined') {
202
- payload['users'] = users;
203
- }
204
- targets = targets === true ? [] : targets;
205
- if (typeof targets !== 'undefined') {
206
- payload['targets'] = targets;
207
- }
208
- if (typeof subject !== 'undefined') {
209
- payload['subject'] = subject;
210
- }
211
- if (typeof content !== 'undefined') {
212
- payload['content'] = content;
213
- }
214
- if (typeof draft !== 'undefined') {
215
- payload['draft'] = draft;
216
- }
217
- if (typeof html !== 'undefined') {
218
- payload['html'] = html;
219
- }
220
- cc = cc === true ? [] : cc;
221
- if (typeof cc !== 'undefined') {
222
- payload['cc'] = cc;
223
- }
224
- bcc = bcc === true ? [] : bcc;
225
- if (typeof bcc !== 'undefined') {
226
- payload['bcc'] = bcc;
227
- }
228
- if (typeof scheduledAt !== 'undefined') {
229
- payload['scheduledAt'] = scheduledAt;
230
- }
231
- attachments = attachments === true ? [] : attachments;
232
- if (typeof attachments !== 'undefined') {
233
- payload['attachments'] = attachments;
234
- }
235
-
236
- let response = undefined;
237
-
238
- response = await client.call('patch', apiPath, {
239
- 'content-type': 'application/json',
240
- }, payload);
241
-
242
- if (parseOutput) {
243
- parse(response)
244
- }
245
-
246
- return response;
247
-
248
- }
249
- /**
250
- * @typedef {Object} MessagingCreatePushRequestParams
251
- * @property {string} messageId Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
252
- * @property {string} title Title for push notification.
253
- * @property {string} body Body for push notification.
254
- * @property {string[]} topics List of Topic IDs.
255
- * @property {string[]} users List of User IDs.
256
- * @property {string[]} targets List of Targets IDs.
257
- * @property {object} data Additional key-value pair data for push notification.
258
- * @property {string} action Action for push notification.
259
- * @property {string} image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
260
- * @property {string} icon Icon for push notification. Available only for Android and Web Platform.
261
- * @property {string} sound Sound for push notification. Available only for Android and iOS Platform.
262
- * @property {string} color Color for push notification. Available only for Android Platform.
263
- * @property {string} tag Tag for push notification. Available only for Android Platform.
264
- * @property {number} badge Badge for push notification. Available only for iOS Platform.
265
- * @property {boolean} draft Is message a draft
266
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
267
- * @property {boolean} contentAvailable If set to true, the notification will be delivered in the background. Available only for iOS Platform.
268
- * @property {boolean} critical If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
269
- * @property {MessagePriority} priority Set the notification priority. "normal" will consider device state and may not deliver notifications immediately. "high" will always attempt to immediately deliver the notification.
270
- * @property {boolean} overrideForCli
271
- * @property {boolean} parseOutput
272
- * @property {libClient | undefined} sdk
273
- */
274
-
275
- /**
276
- * @param {MessagingCreatePushRequestParams} params
277
- */
278
- const messagingCreatePush = async ({messageId,title,body,topics,users,targets,data,action,image,icon,sound,color,tag,badge,draft,scheduledAt,contentAvailable,critical,priority,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
279
- let client = !sdk ? await sdkForProject() :
280
- sdk;
281
- let apiPath = '/messaging/messages/push';
282
- let payload = {};
283
- if (typeof messageId !== 'undefined') {
284
- payload['messageId'] = messageId;
285
- }
286
- if (typeof title !== 'undefined') {
287
- payload['title'] = title;
288
- }
289
- if (typeof body !== 'undefined') {
290
- payload['body'] = body;
291
- }
292
- topics = topics === true ? [] : topics;
293
- if (typeof topics !== 'undefined') {
294
- payload['topics'] = topics;
295
- }
296
- users = users === true ? [] : users;
297
- if (typeof users !== 'undefined') {
298
- payload['users'] = users;
299
- }
300
- targets = targets === true ? [] : targets;
301
- if (typeof targets !== 'undefined') {
302
- payload['targets'] = targets;
303
- }
304
- if (typeof data !== 'undefined') {
305
- payload['data'] = JSON.parse(data);
306
- }
307
- if (typeof action !== 'undefined') {
308
- payload['action'] = action;
309
- }
310
- if (typeof image !== 'undefined') {
311
- payload['image'] = image;
312
- }
313
- if (typeof icon !== 'undefined') {
314
- payload['icon'] = icon;
315
- }
316
- if (typeof sound !== 'undefined') {
317
- payload['sound'] = sound;
318
- }
319
- if (typeof color !== 'undefined') {
320
- payload['color'] = color;
321
- }
322
- if (typeof tag !== 'undefined') {
323
- payload['tag'] = tag;
324
- }
325
- if (typeof badge !== 'undefined') {
326
- payload['badge'] = badge;
327
- }
328
- if (typeof draft !== 'undefined') {
329
- payload['draft'] = draft;
330
- }
331
- if (typeof scheduledAt !== 'undefined') {
332
- payload['scheduledAt'] = scheduledAt;
333
- }
334
- if (typeof contentAvailable !== 'undefined') {
335
- payload['contentAvailable'] = contentAvailable;
336
- }
337
- if (typeof critical !== 'undefined') {
338
- payload['critical'] = critical;
339
- }
340
- if (typeof priority !== 'undefined') {
341
- payload['priority'] = priority;
342
- }
343
-
344
- let response = undefined;
345
-
346
- response = await client.call('post', apiPath, {
347
- 'content-type': 'application/json',
348
- }, payload);
349
-
350
- if (parseOutput) {
351
- parse(response)
352
- }
353
-
354
- return response;
355
-
356
- }
357
- /**
358
- * @typedef {Object} MessagingUpdatePushRequestParams
359
- * @property {string} messageId Message ID.
360
- * @property {string[]} topics List of Topic IDs.
361
- * @property {string[]} users List of User IDs.
362
- * @property {string[]} targets List of Targets IDs.
363
- * @property {string} title Title for push notification.
364
- * @property {string} body Body for push notification.
365
- * @property {object} data Additional Data for push notification.
366
- * @property {string} action Action for push notification.
367
- * @property {string} image Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.
368
- * @property {string} icon Icon for push notification. Available only for Android and Web platforms.
369
- * @property {string} sound Sound for push notification. Available only for Android and iOS platforms.
370
- * @property {string} color Color for push notification. Available only for Android platforms.
371
- * @property {string} tag Tag for push notification. Available only for Android platforms.
372
- * @property {number} badge Badge for push notification. Available only for iOS platforms.
373
- * @property {boolean} draft Is message a draft
374
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
375
- * @property {boolean} contentAvailable If set to true, the notification will be delivered in the background. Available only for iOS Platform.
376
- * @property {boolean} critical If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.
377
- * @property {MessagePriority} priority Set the notification priority. "normal" will consider device battery state and may send notifications later. "high" will always attempt to immediately deliver the notification.
378
- * @property {boolean} overrideForCli
379
- * @property {boolean} parseOutput
380
- * @property {libClient | undefined} sdk
381
- */
382
-
383
- /**
384
- * @param {MessagingUpdatePushRequestParams} params
385
- */
386
- const messagingUpdatePush = async ({messageId,topics,users,targets,title,body,data,action,image,icon,sound,color,tag,badge,draft,scheduledAt,contentAvailable,critical,priority,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
387
- let client = !sdk ? await sdkForProject() :
388
- sdk;
389
- let apiPath = '/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);
390
- let payload = {};
391
- topics = topics === true ? [] : topics;
392
- if (typeof topics !== 'undefined') {
393
- payload['topics'] = topics;
394
- }
395
- users = users === true ? [] : users;
396
- if (typeof users !== 'undefined') {
397
- payload['users'] = users;
398
- }
399
- targets = targets === true ? [] : targets;
400
- if (typeof targets !== 'undefined') {
401
- payload['targets'] = targets;
402
- }
403
- if (typeof title !== 'undefined') {
404
- payload['title'] = title;
405
- }
406
- if (typeof body !== 'undefined') {
407
- payload['body'] = body;
408
- }
409
- if (typeof data !== 'undefined') {
410
- payload['data'] = JSON.parse(data);
411
- }
412
- if (typeof action !== 'undefined') {
413
- payload['action'] = action;
414
- }
415
- if (typeof image !== 'undefined') {
416
- payload['image'] = image;
417
- }
418
- if (typeof icon !== 'undefined') {
419
- payload['icon'] = icon;
420
- }
421
- if (typeof sound !== 'undefined') {
422
- payload['sound'] = sound;
423
- }
424
- if (typeof color !== 'undefined') {
425
- payload['color'] = color;
426
- }
427
- if (typeof tag !== 'undefined') {
428
- payload['tag'] = tag;
429
- }
430
- if (typeof badge !== 'undefined') {
431
- payload['badge'] = badge;
432
- }
433
- if (typeof draft !== 'undefined') {
434
- payload['draft'] = draft;
435
- }
436
- if (typeof scheduledAt !== 'undefined') {
437
- payload['scheduledAt'] = scheduledAt;
438
- }
439
- if (typeof contentAvailable !== 'undefined') {
440
- payload['contentAvailable'] = contentAvailable;
441
- }
442
- if (typeof critical !== 'undefined') {
443
- payload['critical'] = critical;
444
- }
445
- if (typeof priority !== 'undefined') {
446
- payload['priority'] = priority;
447
- }
448
-
449
- let response = undefined;
450
-
451
- response = await client.call('patch', apiPath, {
452
- 'content-type': 'application/json',
453
- }, payload);
454
-
455
- if (parseOutput) {
456
- parse(response)
457
- }
458
-
459
- return response;
460
-
461
- }
462
- /**
463
- * @typedef {Object} MessagingCreateSMSRequestParams
464
- * @property {string} messageId Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
465
- * @property {string} content SMS Content.
466
- * @property {string[]} topics List of Topic IDs.
467
- * @property {string[]} users List of User IDs.
468
- * @property {string[]} targets List of Targets IDs.
469
- * @property {boolean} draft Is message a draft
470
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
471
- * @property {boolean} overrideForCli
472
- * @property {boolean} parseOutput
473
- * @property {libClient | undefined} sdk
474
- */
475
-
476
- /**
477
- * @param {MessagingCreateSMSRequestParams} params
478
- */
479
- const messagingCreateSMS = async ({messageId,content,topics,users,targets,draft,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
480
- let client = !sdk ? await sdkForProject() :
481
- sdk;
482
- let apiPath = '/messaging/messages/sms';
483
- let payload = {};
484
- if (typeof messageId !== 'undefined') {
485
- payload['messageId'] = messageId;
486
- }
487
- if (typeof content !== 'undefined') {
488
- payload['content'] = content;
489
- }
490
- topics = topics === true ? [] : topics;
491
- if (typeof topics !== 'undefined') {
492
- payload['topics'] = topics;
493
- }
494
- users = users === true ? [] : users;
495
- if (typeof users !== 'undefined') {
496
- payload['users'] = users;
497
- }
498
- targets = targets === true ? [] : targets;
499
- if (typeof targets !== 'undefined') {
500
- payload['targets'] = targets;
501
- }
502
- if (typeof draft !== 'undefined') {
503
- payload['draft'] = draft;
504
- }
505
- if (typeof scheduledAt !== 'undefined') {
506
- payload['scheduledAt'] = scheduledAt;
507
- }
508
-
509
- let response = undefined;
510
-
511
- response = await client.call('post', apiPath, {
512
- 'content-type': 'application/json',
513
- }, payload);
514
-
515
- if (parseOutput) {
516
- parse(response)
517
- }
518
-
519
- return response;
520
-
521
- }
522
- /**
523
- * @typedef {Object} MessagingUpdateSMSRequestParams
524
- * @property {string} messageId Message ID.
525
- * @property {string[]} topics List of Topic IDs.
526
- * @property {string[]} users List of User IDs.
527
- * @property {string[]} targets List of Targets IDs.
528
- * @property {string} content Email Content.
529
- * @property {boolean} draft Is message a draft
530
- * @property {string} scheduledAt Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.
531
- * @property {boolean} overrideForCli
532
- * @property {boolean} parseOutput
533
- * @property {libClient | undefined} sdk
534
- */
535
-
536
- /**
537
- * @param {MessagingUpdateSMSRequestParams} params
538
- */
539
- const messagingUpdateSMS = async ({messageId,topics,users,targets,content,draft,scheduledAt,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
540
- let client = !sdk ? await sdkForProject() :
541
- sdk;
542
- let apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);
543
- let payload = {};
544
- topics = topics === true ? [] : topics;
545
- if (typeof topics !== 'undefined') {
546
- payload['topics'] = topics;
547
- }
548
- users = users === true ? [] : users;
549
- if (typeof users !== 'undefined') {
550
- payload['users'] = users;
551
- }
552
- targets = targets === true ? [] : targets;
553
- if (typeof targets !== 'undefined') {
554
- payload['targets'] = targets;
555
- }
556
- if (typeof content !== 'undefined') {
557
- payload['content'] = content;
558
- }
559
- if (typeof draft !== 'undefined') {
560
- payload['draft'] = draft;
561
- }
562
- if (typeof scheduledAt !== 'undefined') {
563
- payload['scheduledAt'] = scheduledAt;
564
- }
565
-
566
- let response = undefined;
567
-
568
- response = await client.call('patch', apiPath, {
569
- 'content-type': 'application/json',
570
- }, payload);
571
-
572
- if (parseOutput) {
573
- parse(response)
574
- }
575
-
576
- return response;
577
-
578
- }
579
- /**
580
- * @typedef {Object} MessagingGetMessageRequestParams
581
- * @property {string} messageId Message ID.
582
- * @property {boolean} overrideForCli
583
- * @property {boolean} parseOutput
584
- * @property {libClient | undefined} sdk
585
- */
586
-
587
- /**
588
- * @param {MessagingGetMessageRequestParams} params
589
- */
590
- const messagingGetMessage = async ({messageId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
591
- let client = !sdk ? await sdkForProject() :
592
- sdk;
593
- let apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
594
- let payload = {};
595
-
596
- let response = undefined;
597
-
598
- response = await client.call('get', apiPath, {
599
- }, payload);
600
-
601
- if (parseOutput) {
602
- if(console) {
603
- showConsoleLink('messaging', 'getMessage', messageId);
604
- } else {
605
- parse(response)
606
- }
607
- }
608
-
609
- return response;
610
-
611
- }
612
- /**
613
- * @typedef {Object} MessagingDeleteRequestParams
614
- * @property {string} messageId Message ID.
615
- * @property {boolean} overrideForCli
616
- * @property {boolean} parseOutput
617
- * @property {libClient | undefined} sdk
618
- */
619
-
620
- /**
621
- * @param {MessagingDeleteRequestParams} params
622
- */
623
- const messagingDelete = async ({messageId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
624
- let client = !sdk ? await sdkForProject() :
625
- sdk;
626
- let apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
627
- let payload = {};
628
-
629
- let response = undefined;
630
-
631
- response = await client.call('delete', apiPath, {
632
- 'content-type': 'application/json',
633
- }, payload);
634
-
635
- if (parseOutput) {
636
- parse(response)
637
- }
638
-
639
- return response;
640
-
641
- }
642
- /**
643
- * @typedef {Object} MessagingListMessageLogsRequestParams
644
- * @property {string} messageId Message ID.
645
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
646
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
647
- * @property {boolean} overrideForCli
648
- * @property {boolean} parseOutput
649
- * @property {libClient | undefined} sdk
650
- */
651
-
652
- /**
653
- * @param {MessagingListMessageLogsRequestParams} params
654
- */
655
- const messagingListMessageLogs = async ({messageId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
656
- let client = !sdk ? await sdkForProject() :
657
- sdk;
658
- let apiPath = '/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);
659
- let payload = {};
660
- if (typeof queries !== 'undefined') {
661
- payload['queries'] = queries;
662
- }
663
- if (typeof total !== 'undefined') {
664
- payload['total'] = total;
665
- }
666
-
667
- let response = undefined;
668
-
669
- response = await client.call('get', apiPath, {
670
- }, payload);
671
-
672
- if (parseOutput) {
673
- if(console) {
674
- showConsoleLink('messaging', 'listMessageLogs', messageId);
675
- } else {
676
- parse(response)
677
- }
678
- }
679
-
680
- return response;
681
-
682
- }
683
- /**
684
- * @typedef {Object} MessagingListTargetsRequestParams
685
- * @property {string} messageId Message ID.
686
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType
687
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
688
- * @property {boolean} overrideForCli
689
- * @property {boolean} parseOutput
690
- * @property {libClient | undefined} sdk
691
- */
692
-
693
- /**
694
- * @param {MessagingListTargetsRequestParams} params
695
- */
696
- const messagingListTargets = async ({messageId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
697
- let client = !sdk ? await sdkForProject() :
698
- sdk;
699
- let apiPath = '/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
700
- let payload = {};
701
- if (typeof queries !== 'undefined') {
702
- payload['queries'] = queries;
703
- }
704
- if (typeof total !== 'undefined') {
705
- payload['total'] = total;
706
- }
707
-
708
- let response = undefined;
709
-
710
- response = await client.call('get', apiPath, {
711
- }, payload);
712
-
713
- if (parseOutput) {
714
- parse(response)
715
- }
716
-
717
- return response;
718
-
719
- }
720
- /**
721
- * @typedef {Object} MessagingListProvidersRequestParams
722
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
723
- * @property {string} search Search term to filter your list results. Max length: 256 chars.
724
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
725
- * @property {boolean} overrideForCli
726
- * @property {boolean} parseOutput
727
- * @property {libClient | undefined} sdk
728
- */
729
-
730
- /**
731
- * @param {MessagingListProvidersRequestParams} params
732
- */
733
- const messagingListProviders = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
734
- let client = !sdk ? await sdkForProject() :
735
- sdk;
736
- let apiPath = '/messaging/providers';
737
- let payload = {};
738
- if (typeof queries !== 'undefined') {
739
- payload['queries'] = queries;
740
- }
741
- if (typeof search !== 'undefined') {
742
- payload['search'] = search;
743
- }
744
- if (typeof total !== 'undefined') {
745
- payload['total'] = total;
746
- }
747
-
748
- let response = undefined;
749
-
750
- response = await client.call('get', apiPath, {
751
- }, payload);
752
-
753
- if (parseOutput) {
754
- if(console) {
755
- showConsoleLink('messaging', 'listProviders');
756
- } else {
757
- parse(response)
758
- }
759
- }
760
-
761
- return response;
762
-
763
- }
764
- /**
765
- * @typedef {Object} MessagingCreateAPNSProviderRequestParams
766
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
767
- * @property {string} name Provider name.
768
- * @property {string} authKey APNS authentication key.
769
- * @property {string} authKeyId APNS authentication key ID.
770
- * @property {string} teamId APNS team ID.
771
- * @property {string} bundleId APNS bundle ID.
772
- * @property {boolean} sandbox Use APNS sandbox environment.
773
- * @property {boolean} enabled Set as enabled.
774
- * @property {boolean} overrideForCli
775
- * @property {boolean} parseOutput
776
- * @property {libClient | undefined} sdk
777
- */
778
-
779
- /**
780
- * @param {MessagingCreateAPNSProviderRequestParams} params
781
- */
782
- const messagingCreateAPNSProvider = async ({providerId,name,authKey,authKeyId,teamId,bundleId,sandbox,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
783
- let client = !sdk ? await sdkForProject() :
784
- sdk;
785
- let apiPath = '/messaging/providers/apns';
786
- let payload = {};
787
- if (typeof providerId !== 'undefined') {
788
- payload['providerId'] = providerId;
789
- }
790
- if (typeof name !== 'undefined') {
791
- payload['name'] = name;
792
- }
793
- if (typeof authKey !== 'undefined') {
794
- payload['authKey'] = authKey;
795
- }
796
- if (typeof authKeyId !== 'undefined') {
797
- payload['authKeyId'] = authKeyId;
798
- }
799
- if (typeof teamId !== 'undefined') {
800
- payload['teamId'] = teamId;
801
- }
802
- if (typeof bundleId !== 'undefined') {
803
- payload['bundleId'] = bundleId;
804
- }
805
- if (typeof sandbox !== 'undefined') {
806
- payload['sandbox'] = sandbox;
807
- }
808
- if (typeof enabled !== 'undefined') {
809
- payload['enabled'] = enabled;
810
- }
811
-
812
- let response = undefined;
813
-
814
- response = await client.call('post', apiPath, {
815
- 'content-type': 'application/json',
816
- }, payload);
817
-
818
- if (parseOutput) {
819
- parse(response)
820
- }
821
-
822
- return response;
823
-
824
- }
825
- /**
826
- * @typedef {Object} MessagingUpdateAPNSProviderRequestParams
827
- * @property {string} providerId Provider ID.
828
- * @property {string} name Provider name.
829
- * @property {boolean} enabled Set as enabled.
830
- * @property {string} authKey APNS authentication key.
831
- * @property {string} authKeyId APNS authentication key ID.
832
- * @property {string} teamId APNS team ID.
833
- * @property {string} bundleId APNS bundle ID.
834
- * @property {boolean} sandbox Use APNS sandbox environment.
835
- * @property {boolean} overrideForCli
836
- * @property {boolean} parseOutput
837
- * @property {libClient | undefined} sdk
838
- */
839
-
840
- /**
841
- * @param {MessagingUpdateAPNSProviderRequestParams} params
842
- */
843
- const messagingUpdateAPNSProvider = async ({providerId,name,enabled,authKey,authKeyId,teamId,bundleId,sandbox,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
844
- let client = !sdk ? await sdkForProject() :
845
- sdk;
846
- let apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);
847
- let payload = {};
848
- if (typeof name !== 'undefined') {
849
- payload['name'] = name;
850
- }
851
- if (typeof enabled !== 'undefined') {
852
- payload['enabled'] = enabled;
853
- }
854
- if (typeof authKey !== 'undefined') {
855
- payload['authKey'] = authKey;
856
- }
857
- if (typeof authKeyId !== 'undefined') {
858
- payload['authKeyId'] = authKeyId;
859
- }
860
- if (typeof teamId !== 'undefined') {
861
- payload['teamId'] = teamId;
862
- }
863
- if (typeof bundleId !== 'undefined') {
864
- payload['bundleId'] = bundleId;
865
- }
866
- if (typeof sandbox !== 'undefined') {
867
- payload['sandbox'] = sandbox;
868
- }
869
-
870
- let response = undefined;
871
-
872
- response = await client.call('patch', apiPath, {
873
- 'content-type': 'application/json',
874
- }, payload);
875
-
876
- if (parseOutput) {
877
- parse(response)
878
- }
879
-
880
- return response;
881
-
882
- }
883
- /**
884
- * @typedef {Object} MessagingCreateFCMProviderRequestParams
885
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
886
- * @property {string} name Provider name.
887
- * @property {object} serviceAccountJSON FCM service account JSON.
888
- * @property {boolean} enabled Set as enabled.
889
- * @property {boolean} overrideForCli
890
- * @property {boolean} parseOutput
891
- * @property {libClient | undefined} sdk
892
- */
893
-
894
- /**
895
- * @param {MessagingCreateFCMProviderRequestParams} params
896
- */
897
- const messagingCreateFCMProvider = async ({providerId,name,serviceAccountJSON,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
898
- let client = !sdk ? await sdkForProject() :
899
- sdk;
900
- let apiPath = '/messaging/providers/fcm';
901
- let payload = {};
902
- if (typeof providerId !== 'undefined') {
903
- payload['providerId'] = providerId;
904
- }
905
- if (typeof name !== 'undefined') {
906
- payload['name'] = name;
907
- }
908
- if (typeof serviceAccountJSON !== 'undefined') {
909
- payload['serviceAccountJSON'] = JSON.parse(serviceAccountJSON);
910
- }
911
- if (typeof enabled !== 'undefined') {
912
- payload['enabled'] = enabled;
913
- }
914
-
915
- let response = undefined;
916
-
917
- response = await client.call('post', apiPath, {
918
- 'content-type': 'application/json',
919
- }, payload);
920
-
921
- if (parseOutput) {
922
- parse(response)
923
- }
924
-
925
- return response;
926
-
927
- }
928
- /**
929
- * @typedef {Object} MessagingUpdateFCMProviderRequestParams
930
- * @property {string} providerId Provider ID.
931
- * @property {string} name Provider name.
932
- * @property {boolean} enabled Set as enabled.
933
- * @property {object} serviceAccountJSON FCM service account JSON.
934
- * @property {boolean} overrideForCli
935
- * @property {boolean} parseOutput
936
- * @property {libClient | undefined} sdk
937
- */
938
-
939
- /**
940
- * @param {MessagingUpdateFCMProviderRequestParams} params
941
- */
942
- const messagingUpdateFCMProvider = async ({providerId,name,enabled,serviceAccountJSON,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
943
- let client = !sdk ? await sdkForProject() :
944
- sdk;
945
- let apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);
946
- let payload = {};
947
- if (typeof name !== 'undefined') {
948
- payload['name'] = name;
949
- }
950
- if (typeof enabled !== 'undefined') {
951
- payload['enabled'] = enabled;
952
- }
953
- if (typeof serviceAccountJSON !== 'undefined') {
954
- payload['serviceAccountJSON'] = JSON.parse(serviceAccountJSON);
955
- }
956
-
957
- let response = undefined;
958
-
959
- response = await client.call('patch', apiPath, {
960
- 'content-type': 'application/json',
961
- }, payload);
962
-
963
- if (parseOutput) {
964
- parse(response)
965
- }
966
-
967
- return response;
968
-
969
- }
970
- /**
971
- * @typedef {Object} MessagingCreateMailgunProviderRequestParams
972
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
973
- * @property {string} name Provider name.
974
- * @property {string} apiKey Mailgun API Key.
975
- * @property {string} domain Mailgun Domain.
976
- * @property {boolean} isEuRegion Set as EU region.
977
- * @property {string} fromName Sender Name.
978
- * @property {string} fromEmail Sender email address.
979
- * @property {string} replyToName Name set in the reply to field for the mail. Default value is sender name. Reply to name must have reply to email as well.
980
- * @property {string} replyToEmail Email set in the reply to field for the mail. Default value is sender email. Reply to email must have reply to name as well.
981
- * @property {boolean} enabled Set as enabled.
982
- * @property {boolean} overrideForCli
983
- * @property {boolean} parseOutput
984
- * @property {libClient | undefined} sdk
985
- */
986
-
987
- /**
988
- * @param {MessagingCreateMailgunProviderRequestParams} params
989
- */
990
- const messagingCreateMailgunProvider = async ({providerId,name,apiKey,domain,isEuRegion,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
991
- let client = !sdk ? await sdkForProject() :
992
- sdk;
993
- let apiPath = '/messaging/providers/mailgun';
994
- let payload = {};
995
- if (typeof providerId !== 'undefined') {
996
- payload['providerId'] = providerId;
997
- }
998
- if (typeof name !== 'undefined') {
999
- payload['name'] = name;
1000
- }
1001
- if (typeof apiKey !== 'undefined') {
1002
- payload['apiKey'] = apiKey;
1003
- }
1004
- if (typeof domain !== 'undefined') {
1005
- payload['domain'] = domain;
1006
- }
1007
- if (typeof isEuRegion !== 'undefined') {
1008
- payload['isEuRegion'] = isEuRegion;
1009
- }
1010
- if (typeof fromName !== 'undefined') {
1011
- payload['fromName'] = fromName;
1012
- }
1013
- if (typeof fromEmail !== 'undefined') {
1014
- payload['fromEmail'] = fromEmail;
1015
- }
1016
- if (typeof replyToName !== 'undefined') {
1017
- payload['replyToName'] = replyToName;
1018
- }
1019
- if (typeof replyToEmail !== 'undefined') {
1020
- payload['replyToEmail'] = replyToEmail;
1021
- }
1022
- if (typeof enabled !== 'undefined') {
1023
- payload['enabled'] = enabled;
1024
- }
1025
-
1026
- let response = undefined;
1027
-
1028
- response = await client.call('post', apiPath, {
1029
- 'content-type': 'application/json',
1030
- }, payload);
1031
-
1032
- if (parseOutput) {
1033
- parse(response)
1034
- }
1035
-
1036
- return response;
1037
-
1038
- }
1039
- /**
1040
- * @typedef {Object} MessagingUpdateMailgunProviderRequestParams
1041
- * @property {string} providerId Provider ID.
1042
- * @property {string} name Provider name.
1043
- * @property {string} apiKey Mailgun API Key.
1044
- * @property {string} domain Mailgun Domain.
1045
- * @property {boolean} isEuRegion Set as EU region.
1046
- * @property {boolean} enabled Set as enabled.
1047
- * @property {string} fromName Sender Name.
1048
- * @property {string} fromEmail Sender email address.
1049
- * @property {string} replyToName Name set in the reply to field for the mail. Default value is sender name.
1050
- * @property {string} replyToEmail Email set in the reply to field for the mail. Default value is sender email.
1051
- * @property {boolean} overrideForCli
1052
- * @property {boolean} parseOutput
1053
- * @property {libClient | undefined} sdk
1054
- */
1055
-
1056
- /**
1057
- * @param {MessagingUpdateMailgunProviderRequestParams} params
1058
- */
1059
- const messagingUpdateMailgunProvider = async ({providerId,name,apiKey,domain,isEuRegion,enabled,fromName,fromEmail,replyToName,replyToEmail,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1060
- let client = !sdk ? await sdkForProject() :
1061
- sdk;
1062
- let apiPath = '/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);
1063
- let payload = {};
1064
- if (typeof name !== 'undefined') {
1065
- payload['name'] = name;
1066
- }
1067
- if (typeof apiKey !== 'undefined') {
1068
- payload['apiKey'] = apiKey;
1069
- }
1070
- if (typeof domain !== 'undefined') {
1071
- payload['domain'] = domain;
1072
- }
1073
- if (typeof isEuRegion !== 'undefined') {
1074
- payload['isEuRegion'] = isEuRegion;
1075
- }
1076
- if (typeof enabled !== 'undefined') {
1077
- payload['enabled'] = enabled;
1078
- }
1079
- if (typeof fromName !== 'undefined') {
1080
- payload['fromName'] = fromName;
1081
- }
1082
- if (typeof fromEmail !== 'undefined') {
1083
- payload['fromEmail'] = fromEmail;
1084
- }
1085
- if (typeof replyToName !== 'undefined') {
1086
- payload['replyToName'] = replyToName;
1087
- }
1088
- if (typeof replyToEmail !== 'undefined') {
1089
- payload['replyToEmail'] = replyToEmail;
1090
- }
1091
-
1092
- let response = undefined;
1093
-
1094
- response = await client.call('patch', apiPath, {
1095
- 'content-type': 'application/json',
1096
- }, payload);
1097
-
1098
- if (parseOutput) {
1099
- parse(response)
1100
- }
1101
-
1102
- return response;
1103
-
1104
- }
1105
- /**
1106
- * @typedef {Object} MessagingCreateMsg91ProviderRequestParams
1107
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1108
- * @property {string} name Provider name.
1109
- * @property {string} templateId Msg91 template ID
1110
- * @property {string} senderId Msg91 sender ID.
1111
- * @property {string} authKey Msg91 auth key.
1112
- * @property {boolean} enabled Set as enabled.
1113
- * @property {boolean} overrideForCli
1114
- * @property {boolean} parseOutput
1115
- * @property {libClient | undefined} sdk
1116
- */
1117
-
1118
- /**
1119
- * @param {MessagingCreateMsg91ProviderRequestParams} params
1120
- */
1121
- const messagingCreateMsg91Provider = async ({providerId,name,templateId,senderId,authKey,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1122
- let client = !sdk ? await sdkForProject() :
1123
- sdk;
1124
- let apiPath = '/messaging/providers/msg91';
1125
- let payload = {};
1126
- if (typeof providerId !== 'undefined') {
1127
- payload['providerId'] = providerId;
1128
- }
1129
- if (typeof name !== 'undefined') {
1130
- payload['name'] = name;
1131
- }
1132
- if (typeof templateId !== 'undefined') {
1133
- payload['templateId'] = templateId;
1134
- }
1135
- if (typeof senderId !== 'undefined') {
1136
- payload['senderId'] = senderId;
1137
- }
1138
- if (typeof authKey !== 'undefined') {
1139
- payload['authKey'] = authKey;
1140
- }
1141
- if (typeof enabled !== 'undefined') {
1142
- payload['enabled'] = enabled;
1143
- }
1144
-
1145
- let response = undefined;
1146
-
1147
- response = await client.call('post', apiPath, {
1148
- 'content-type': 'application/json',
1149
- }, payload);
1150
-
1151
- if (parseOutput) {
1152
- parse(response)
1153
- }
1154
-
1155
- return response;
1156
-
1157
- }
1158
- /**
1159
- * @typedef {Object} MessagingUpdateMsg91ProviderRequestParams
1160
- * @property {string} providerId Provider ID.
1161
- * @property {string} name Provider name.
1162
- * @property {boolean} enabled Set as enabled.
1163
- * @property {string} templateId Msg91 template ID.
1164
- * @property {string} senderId Msg91 sender ID.
1165
- * @property {string} authKey Msg91 auth key.
1166
- * @property {boolean} overrideForCli
1167
- * @property {boolean} parseOutput
1168
- * @property {libClient | undefined} sdk
1169
- */
1170
-
1171
- /**
1172
- * @param {MessagingUpdateMsg91ProviderRequestParams} params
1173
- */
1174
- const messagingUpdateMsg91Provider = async ({providerId,name,enabled,templateId,senderId,authKey,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1175
- let client = !sdk ? await sdkForProject() :
1176
- sdk;
1177
- let apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
1178
- let payload = {};
1179
- if (typeof name !== 'undefined') {
1180
- payload['name'] = name;
1181
- }
1182
- if (typeof enabled !== 'undefined') {
1183
- payload['enabled'] = enabled;
1184
- }
1185
- if (typeof templateId !== 'undefined') {
1186
- payload['templateId'] = templateId;
1187
- }
1188
- if (typeof senderId !== 'undefined') {
1189
- payload['senderId'] = senderId;
1190
- }
1191
- if (typeof authKey !== 'undefined') {
1192
- payload['authKey'] = authKey;
1193
- }
1194
-
1195
- let response = undefined;
1196
-
1197
- response = await client.call('patch', apiPath, {
1198
- 'content-type': 'application/json',
1199
- }, payload);
1200
-
1201
- if (parseOutput) {
1202
- parse(response)
1203
- }
1204
-
1205
- return response;
1206
-
1207
- }
1208
- /**
1209
- * @typedef {Object} MessagingCreateResendProviderRequestParams
1210
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1211
- * @property {string} name Provider name.
1212
- * @property {string} apiKey Resend API key.
1213
- * @property {string} fromName Sender Name.
1214
- * @property {string} fromEmail Sender email address.
1215
- * @property {string} replyToName Name set in the reply to field for the mail. Default value is sender name.
1216
- * @property {string} replyToEmail Email set in the reply to field for the mail. Default value is sender email.
1217
- * @property {boolean} enabled Set as enabled.
1218
- * @property {boolean} overrideForCli
1219
- * @property {boolean} parseOutput
1220
- * @property {libClient | undefined} sdk
1221
- */
1222
-
1223
- /**
1224
- * @param {MessagingCreateResendProviderRequestParams} params
1225
- */
1226
- const messagingCreateResendProvider = async ({providerId,name,apiKey,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1227
- let client = !sdk ? await sdkForProject() :
1228
- sdk;
1229
- let apiPath = '/messaging/providers/resend';
1230
- let payload = {};
1231
- if (typeof providerId !== 'undefined') {
1232
- payload['providerId'] = providerId;
1233
- }
1234
- if (typeof name !== 'undefined') {
1235
- payload['name'] = name;
1236
- }
1237
- if (typeof apiKey !== 'undefined') {
1238
- payload['apiKey'] = apiKey;
1239
- }
1240
- if (typeof fromName !== 'undefined') {
1241
- payload['fromName'] = fromName;
1242
- }
1243
- if (typeof fromEmail !== 'undefined') {
1244
- payload['fromEmail'] = fromEmail;
1245
- }
1246
- if (typeof replyToName !== 'undefined') {
1247
- payload['replyToName'] = replyToName;
1248
- }
1249
- if (typeof replyToEmail !== 'undefined') {
1250
- payload['replyToEmail'] = replyToEmail;
1251
- }
1252
- if (typeof enabled !== 'undefined') {
1253
- payload['enabled'] = enabled;
1254
- }
1255
-
1256
- let response = undefined;
1257
-
1258
- response = await client.call('post', apiPath, {
1259
- 'content-type': 'application/json',
1260
- }, payload);
1261
-
1262
- if (parseOutput) {
1263
- parse(response)
1264
- }
1265
-
1266
- return response;
1267
-
1268
- }
1269
- /**
1270
- * @typedef {Object} MessagingUpdateResendProviderRequestParams
1271
- * @property {string} providerId Provider ID.
1272
- * @property {string} name Provider name.
1273
- * @property {boolean} enabled Set as enabled.
1274
- * @property {string} apiKey Resend API key.
1275
- * @property {string} fromName Sender Name.
1276
- * @property {string} fromEmail Sender email address.
1277
- * @property {string} replyToName Name set in the Reply To field for the mail. Default value is Sender Name.
1278
- * @property {string} replyToEmail Email set in the Reply To field for the mail. Default value is Sender Email.
1279
- * @property {boolean} overrideForCli
1280
- * @property {boolean} parseOutput
1281
- * @property {libClient | undefined} sdk
1282
- */
1283
-
1284
- /**
1285
- * @param {MessagingUpdateResendProviderRequestParams} params
1286
- */
1287
- const messagingUpdateResendProvider = async ({providerId,name,enabled,apiKey,fromName,fromEmail,replyToName,replyToEmail,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1288
- let client = !sdk ? await sdkForProject() :
1289
- sdk;
1290
- let apiPath = '/messaging/providers/resend/{providerId}'.replace('{providerId}', providerId);
1291
- let payload = {};
1292
- if (typeof name !== 'undefined') {
1293
- payload['name'] = name;
1294
- }
1295
- if (typeof enabled !== 'undefined') {
1296
- payload['enabled'] = enabled;
1297
- }
1298
- if (typeof apiKey !== 'undefined') {
1299
- payload['apiKey'] = apiKey;
1300
- }
1301
- if (typeof fromName !== 'undefined') {
1302
- payload['fromName'] = fromName;
1303
- }
1304
- if (typeof fromEmail !== 'undefined') {
1305
- payload['fromEmail'] = fromEmail;
1306
- }
1307
- if (typeof replyToName !== 'undefined') {
1308
- payload['replyToName'] = replyToName;
1309
- }
1310
- if (typeof replyToEmail !== 'undefined') {
1311
- payload['replyToEmail'] = replyToEmail;
1312
- }
1313
-
1314
- let response = undefined;
1315
-
1316
- response = await client.call('patch', apiPath, {
1317
- 'content-type': 'application/json',
1318
- }, payload);
1319
-
1320
- if (parseOutput) {
1321
- parse(response)
1322
- }
1323
-
1324
- return response;
1325
-
1326
- }
1327
- /**
1328
- * @typedef {Object} MessagingCreateSendgridProviderRequestParams
1329
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1330
- * @property {string} name Provider name.
1331
- * @property {string} apiKey Sendgrid API key.
1332
- * @property {string} fromName Sender Name.
1333
- * @property {string} fromEmail Sender email address.
1334
- * @property {string} replyToName Name set in the reply to field for the mail. Default value is sender name.
1335
- * @property {string} replyToEmail Email set in the reply to field for the mail. Default value is sender email.
1336
- * @property {boolean} enabled Set as enabled.
1337
- * @property {boolean} overrideForCli
1338
- * @property {boolean} parseOutput
1339
- * @property {libClient | undefined} sdk
1340
- */
1341
-
1342
- /**
1343
- * @param {MessagingCreateSendgridProviderRequestParams} params
1344
- */
1345
- const messagingCreateSendgridProvider = async ({providerId,name,apiKey,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1346
- let client = !sdk ? await sdkForProject() :
1347
- sdk;
1348
- let apiPath = '/messaging/providers/sendgrid';
1349
- let payload = {};
1350
- if (typeof providerId !== 'undefined') {
1351
- payload['providerId'] = providerId;
1352
- }
1353
- if (typeof name !== 'undefined') {
1354
- payload['name'] = name;
1355
- }
1356
- if (typeof apiKey !== 'undefined') {
1357
- payload['apiKey'] = apiKey;
1358
- }
1359
- if (typeof fromName !== 'undefined') {
1360
- payload['fromName'] = fromName;
1361
- }
1362
- if (typeof fromEmail !== 'undefined') {
1363
- payload['fromEmail'] = fromEmail;
1364
- }
1365
- if (typeof replyToName !== 'undefined') {
1366
- payload['replyToName'] = replyToName;
1367
- }
1368
- if (typeof replyToEmail !== 'undefined') {
1369
- payload['replyToEmail'] = replyToEmail;
1370
- }
1371
- if (typeof enabled !== 'undefined') {
1372
- payload['enabled'] = enabled;
1373
- }
1374
-
1375
- let response = undefined;
1376
-
1377
- response = await client.call('post', apiPath, {
1378
- 'content-type': 'application/json',
1379
- }, payload);
1380
-
1381
- if (parseOutput) {
1382
- parse(response)
1383
- }
1384
-
1385
- return response;
1386
-
1387
- }
1388
- /**
1389
- * @typedef {Object} MessagingUpdateSendgridProviderRequestParams
1390
- * @property {string} providerId Provider ID.
1391
- * @property {string} name Provider name.
1392
- * @property {boolean} enabled Set as enabled.
1393
- * @property {string} apiKey Sendgrid API key.
1394
- * @property {string} fromName Sender Name.
1395
- * @property {string} fromEmail Sender email address.
1396
- * @property {string} replyToName Name set in the Reply To field for the mail. Default value is Sender Name.
1397
- * @property {string} replyToEmail Email set in the Reply To field for the mail. Default value is Sender Email.
1398
- * @property {boolean} overrideForCli
1399
- * @property {boolean} parseOutput
1400
- * @property {libClient | undefined} sdk
1401
- */
1402
-
1403
- /**
1404
- * @param {MessagingUpdateSendgridProviderRequestParams} params
1405
- */
1406
- const messagingUpdateSendgridProvider = async ({providerId,name,enabled,apiKey,fromName,fromEmail,replyToName,replyToEmail,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1407
- let client = !sdk ? await sdkForProject() :
1408
- sdk;
1409
- let apiPath = '/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);
1410
- let payload = {};
1411
- if (typeof name !== 'undefined') {
1412
- payload['name'] = name;
1413
- }
1414
- if (typeof enabled !== 'undefined') {
1415
- payload['enabled'] = enabled;
1416
- }
1417
- if (typeof apiKey !== 'undefined') {
1418
- payload['apiKey'] = apiKey;
1419
- }
1420
- if (typeof fromName !== 'undefined') {
1421
- payload['fromName'] = fromName;
1422
- }
1423
- if (typeof fromEmail !== 'undefined') {
1424
- payload['fromEmail'] = fromEmail;
1425
- }
1426
- if (typeof replyToName !== 'undefined') {
1427
- payload['replyToName'] = replyToName;
1428
- }
1429
- if (typeof replyToEmail !== 'undefined') {
1430
- payload['replyToEmail'] = replyToEmail;
1431
- }
1432
-
1433
- let response = undefined;
1434
-
1435
- response = await client.call('patch', apiPath, {
1436
- 'content-type': 'application/json',
1437
- }, payload);
1438
-
1439
- if (parseOutput) {
1440
- parse(response)
1441
- }
1442
-
1443
- return response;
1444
-
1445
- }
1446
- /**
1447
- * @typedef {Object} MessagingCreateSMTPProviderRequestParams
1448
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1449
- * @property {string} name Provider name.
1450
- * @property {string} host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.
1451
- * @property {number} port The default SMTP server port.
1452
- * @property {string} username Authentication username.
1453
- * @property {string} password Authentication password.
1454
- * @property {SmtpEncryption} encryption Encryption type. Can be omitted, 'ssl', or 'tls'
1455
- * @property {boolean} autoTLS Enable SMTP AutoTLS feature.
1456
- * @property {string} mailer The value to use for the X-Mailer header.
1457
- * @property {string} fromName Sender Name.
1458
- * @property {string} fromEmail Sender email address.
1459
- * @property {string} replyToName Name set in the reply to field for the mail. Default value is sender name.
1460
- * @property {string} replyToEmail Email set in the reply to field for the mail. Default value is sender email.
1461
- * @property {boolean} enabled Set as enabled.
1462
- * @property {boolean} overrideForCli
1463
- * @property {boolean} parseOutput
1464
- * @property {libClient | undefined} sdk
1465
- */
1466
-
1467
- /**
1468
- * @param {MessagingCreateSMTPProviderRequestParams} params
1469
- */
1470
- const messagingCreateSMTPProvider = async ({providerId,name,host,port,username,password,encryption,autoTLS,mailer,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1471
- let client = !sdk ? await sdkForProject() :
1472
- sdk;
1473
- let apiPath = '/messaging/providers/smtp';
1474
- let payload = {};
1475
- if (typeof providerId !== 'undefined') {
1476
- payload['providerId'] = providerId;
1477
- }
1478
- if (typeof name !== 'undefined') {
1479
- payload['name'] = name;
1480
- }
1481
- if (typeof host !== 'undefined') {
1482
- payload['host'] = host;
1483
- }
1484
- if (typeof port !== 'undefined') {
1485
- payload['port'] = port;
1486
- }
1487
- if (typeof username !== 'undefined') {
1488
- payload['username'] = username;
1489
- }
1490
- if (typeof password !== 'undefined') {
1491
- payload['password'] = password;
1492
- }
1493
- if (typeof encryption !== 'undefined') {
1494
- payload['encryption'] = encryption;
1495
- }
1496
- if (typeof autoTLS !== 'undefined') {
1497
- payload['autoTLS'] = autoTLS;
1498
- }
1499
- if (typeof mailer !== 'undefined') {
1500
- payload['mailer'] = mailer;
1501
- }
1502
- if (typeof fromName !== 'undefined') {
1503
- payload['fromName'] = fromName;
1504
- }
1505
- if (typeof fromEmail !== 'undefined') {
1506
- payload['fromEmail'] = fromEmail;
1507
- }
1508
- if (typeof replyToName !== 'undefined') {
1509
- payload['replyToName'] = replyToName;
1510
- }
1511
- if (typeof replyToEmail !== 'undefined') {
1512
- payload['replyToEmail'] = replyToEmail;
1513
- }
1514
- if (typeof enabled !== 'undefined') {
1515
- payload['enabled'] = enabled;
1516
- }
1517
-
1518
- let response = undefined;
1519
-
1520
- response = await client.call('post', apiPath, {
1521
- 'content-type': 'application/json',
1522
- }, payload);
1523
-
1524
- if (parseOutput) {
1525
- parse(response)
1526
- }
1527
-
1528
- return response;
1529
-
1530
- }
1531
- /**
1532
- * @typedef {Object} MessagingUpdateSMTPProviderRequestParams
1533
- * @property {string} providerId Provider ID.
1534
- * @property {string} name Provider name.
1535
- * @property {string} host SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.
1536
- * @property {number} port SMTP port.
1537
- * @property {string} username Authentication username.
1538
- * @property {string} password Authentication password.
1539
- * @property {SmtpEncryption} encryption Encryption type. Can be 'ssl' or 'tls'
1540
- * @property {boolean} autoTLS Enable SMTP AutoTLS feature.
1541
- * @property {string} mailer The value to use for the X-Mailer header.
1542
- * @property {string} fromName Sender Name.
1543
- * @property {string} fromEmail Sender email address.
1544
- * @property {string} replyToName Name set in the Reply To field for the mail. Default value is Sender Name.
1545
- * @property {string} replyToEmail Email set in the Reply To field for the mail. Default value is Sender Email.
1546
- * @property {boolean} enabled Set as enabled.
1547
- * @property {boolean} overrideForCli
1548
- * @property {boolean} parseOutput
1549
- * @property {libClient | undefined} sdk
1550
- */
1551
-
1552
- /**
1553
- * @param {MessagingUpdateSMTPProviderRequestParams} params
1554
- */
1555
- const messagingUpdateSMTPProvider = async ({providerId,name,host,port,username,password,encryption,autoTLS,mailer,fromName,fromEmail,replyToName,replyToEmail,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1556
- let client = !sdk ? await sdkForProject() :
1557
- sdk;
1558
- let apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
1559
- let payload = {};
1560
- if (typeof name !== 'undefined') {
1561
- payload['name'] = name;
1562
- }
1563
- if (typeof host !== 'undefined') {
1564
- payload['host'] = host;
1565
- }
1566
- if (typeof port !== 'undefined') {
1567
- payload['port'] = port;
1568
- }
1569
- if (typeof username !== 'undefined') {
1570
- payload['username'] = username;
1571
- }
1572
- if (typeof password !== 'undefined') {
1573
- payload['password'] = password;
1574
- }
1575
- if (typeof encryption !== 'undefined') {
1576
- payload['encryption'] = encryption;
1577
- }
1578
- if (typeof autoTLS !== 'undefined') {
1579
- payload['autoTLS'] = autoTLS;
1580
- }
1581
- if (typeof mailer !== 'undefined') {
1582
- payload['mailer'] = mailer;
1583
- }
1584
- if (typeof fromName !== 'undefined') {
1585
- payload['fromName'] = fromName;
1586
- }
1587
- if (typeof fromEmail !== 'undefined') {
1588
- payload['fromEmail'] = fromEmail;
1589
- }
1590
- if (typeof replyToName !== 'undefined') {
1591
- payload['replyToName'] = replyToName;
1592
- }
1593
- if (typeof replyToEmail !== 'undefined') {
1594
- payload['replyToEmail'] = replyToEmail;
1595
- }
1596
- if (typeof enabled !== 'undefined') {
1597
- payload['enabled'] = enabled;
1598
- }
1599
-
1600
- let response = undefined;
1601
-
1602
- response = await client.call('patch', apiPath, {
1603
- 'content-type': 'application/json',
1604
- }, payload);
1605
-
1606
- if (parseOutput) {
1607
- parse(response)
1608
- }
1609
-
1610
- return response;
1611
-
1612
- }
1613
- /**
1614
- * @typedef {Object} MessagingCreateTelesignProviderRequestParams
1615
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1616
- * @property {string} name Provider name.
1617
- * @property {string} from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1618
- * @property {string} customerId Telesign customer ID.
1619
- * @property {string} apiKey Telesign API key.
1620
- * @property {boolean} enabled Set as enabled.
1621
- * @property {boolean} overrideForCli
1622
- * @property {boolean} parseOutput
1623
- * @property {libClient | undefined} sdk
1624
- */
1625
-
1626
- /**
1627
- * @param {MessagingCreateTelesignProviderRequestParams} params
1628
- */
1629
- const messagingCreateTelesignProvider = async ({providerId,name,from,customerId,apiKey,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1630
- let client = !sdk ? await sdkForProject() :
1631
- sdk;
1632
- let apiPath = '/messaging/providers/telesign';
1633
- let payload = {};
1634
- if (typeof providerId !== 'undefined') {
1635
- payload['providerId'] = providerId;
1636
- }
1637
- if (typeof name !== 'undefined') {
1638
- payload['name'] = name;
1639
- }
1640
- if (typeof from !== 'undefined') {
1641
- payload['from'] = from;
1642
- }
1643
- if (typeof customerId !== 'undefined') {
1644
- payload['customerId'] = customerId;
1645
- }
1646
- if (typeof apiKey !== 'undefined') {
1647
- payload['apiKey'] = apiKey;
1648
- }
1649
- if (typeof enabled !== 'undefined') {
1650
- payload['enabled'] = enabled;
1651
- }
1652
-
1653
- let response = undefined;
1654
-
1655
- response = await client.call('post', apiPath, {
1656
- 'content-type': 'application/json',
1657
- }, payload);
1658
-
1659
- if (parseOutput) {
1660
- parse(response)
1661
- }
1662
-
1663
- return response;
1664
-
1665
- }
1666
- /**
1667
- * @typedef {Object} MessagingUpdateTelesignProviderRequestParams
1668
- * @property {string} providerId Provider ID.
1669
- * @property {string} name Provider name.
1670
- * @property {boolean} enabled Set as enabled.
1671
- * @property {string} customerId Telesign customer ID.
1672
- * @property {string} apiKey Telesign API key.
1673
- * @property {string} from Sender number.
1674
- * @property {boolean} overrideForCli
1675
- * @property {boolean} parseOutput
1676
- * @property {libClient | undefined} sdk
1677
- */
1678
-
1679
- /**
1680
- * @param {MessagingUpdateTelesignProviderRequestParams} params
1681
- */
1682
- const messagingUpdateTelesignProvider = async ({providerId,name,enabled,customerId,apiKey,from,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1683
- let client = !sdk ? await sdkForProject() :
1684
- sdk;
1685
- let apiPath = '/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);
1686
- let payload = {};
1687
- if (typeof name !== 'undefined') {
1688
- payload['name'] = name;
1689
- }
1690
- if (typeof enabled !== 'undefined') {
1691
- payload['enabled'] = enabled;
1692
- }
1693
- if (typeof customerId !== 'undefined') {
1694
- payload['customerId'] = customerId;
1695
- }
1696
- if (typeof apiKey !== 'undefined') {
1697
- payload['apiKey'] = apiKey;
1698
- }
1699
- if (typeof from !== 'undefined') {
1700
- payload['from'] = from;
1701
- }
1702
-
1703
- let response = undefined;
1704
-
1705
- response = await client.call('patch', apiPath, {
1706
- 'content-type': 'application/json',
1707
- }, payload);
1708
-
1709
- if (parseOutput) {
1710
- parse(response)
1711
- }
1712
-
1713
- return response;
1714
-
1715
- }
1716
- /**
1717
- * @typedef {Object} MessagingCreateTextmagicProviderRequestParams
1718
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1719
- * @property {string} name Provider name.
1720
- * @property {string} from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1721
- * @property {string} username Textmagic username.
1722
- * @property {string} apiKey Textmagic apiKey.
1723
- * @property {boolean} enabled Set as enabled.
1724
- * @property {boolean} overrideForCli
1725
- * @property {boolean} parseOutput
1726
- * @property {libClient | undefined} sdk
1727
- */
1728
-
1729
- /**
1730
- * @param {MessagingCreateTextmagicProviderRequestParams} params
1731
- */
1732
- const messagingCreateTextmagicProvider = async ({providerId,name,from,username,apiKey,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1733
- let client = !sdk ? await sdkForProject() :
1734
- sdk;
1735
- let apiPath = '/messaging/providers/textmagic';
1736
- let payload = {};
1737
- if (typeof providerId !== 'undefined') {
1738
- payload['providerId'] = providerId;
1739
- }
1740
- if (typeof name !== 'undefined') {
1741
- payload['name'] = name;
1742
- }
1743
- if (typeof from !== 'undefined') {
1744
- payload['from'] = from;
1745
- }
1746
- if (typeof username !== 'undefined') {
1747
- payload['username'] = username;
1748
- }
1749
- if (typeof apiKey !== 'undefined') {
1750
- payload['apiKey'] = apiKey;
1751
- }
1752
- if (typeof enabled !== 'undefined') {
1753
- payload['enabled'] = enabled;
1754
- }
1755
-
1756
- let response = undefined;
1757
-
1758
- response = await client.call('post', apiPath, {
1759
- 'content-type': 'application/json',
1760
- }, payload);
1761
-
1762
- if (parseOutput) {
1763
- parse(response)
1764
- }
1765
-
1766
- return response;
1767
-
1768
- }
1769
- /**
1770
- * @typedef {Object} MessagingUpdateTextmagicProviderRequestParams
1771
- * @property {string} providerId Provider ID.
1772
- * @property {string} name Provider name.
1773
- * @property {boolean} enabled Set as enabled.
1774
- * @property {string} username Textmagic username.
1775
- * @property {string} apiKey Textmagic apiKey.
1776
- * @property {string} from Sender number.
1777
- * @property {boolean} overrideForCli
1778
- * @property {boolean} parseOutput
1779
- * @property {libClient | undefined} sdk
1780
- */
1781
-
1782
- /**
1783
- * @param {MessagingUpdateTextmagicProviderRequestParams} params
1784
- */
1785
- const messagingUpdateTextmagicProvider = async ({providerId,name,enabled,username,apiKey,from,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1786
- let client = !sdk ? await sdkForProject() :
1787
- sdk;
1788
- let apiPath = '/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);
1789
- let payload = {};
1790
- if (typeof name !== 'undefined') {
1791
- payload['name'] = name;
1792
- }
1793
- if (typeof enabled !== 'undefined') {
1794
- payload['enabled'] = enabled;
1795
- }
1796
- if (typeof username !== 'undefined') {
1797
- payload['username'] = username;
1798
- }
1799
- if (typeof apiKey !== 'undefined') {
1800
- payload['apiKey'] = apiKey;
1801
- }
1802
- if (typeof from !== 'undefined') {
1803
- payload['from'] = from;
1804
- }
1805
-
1806
- let response = undefined;
1807
-
1808
- response = await client.call('patch', apiPath, {
1809
- 'content-type': 'application/json',
1810
- }, payload);
1811
-
1812
- if (parseOutput) {
1813
- parse(response)
1814
- }
1815
-
1816
- return response;
1817
-
1818
- }
1819
- /**
1820
- * @typedef {Object} MessagingCreateTwilioProviderRequestParams
1821
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1822
- * @property {string} name Provider name.
1823
- * @property {string} from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1824
- * @property {string} accountSid Twilio account secret ID.
1825
- * @property {string} authToken Twilio authentication token.
1826
- * @property {boolean} enabled Set as enabled.
1827
- * @property {boolean} overrideForCli
1828
- * @property {boolean} parseOutput
1829
- * @property {libClient | undefined} sdk
1830
- */
1831
-
1832
- /**
1833
- * @param {MessagingCreateTwilioProviderRequestParams} params
1834
- */
1835
- const messagingCreateTwilioProvider = async ({providerId,name,from,accountSid,authToken,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1836
- let client = !sdk ? await sdkForProject() :
1837
- sdk;
1838
- let apiPath = '/messaging/providers/twilio';
1839
- let payload = {};
1840
- if (typeof providerId !== 'undefined') {
1841
- payload['providerId'] = providerId;
1842
- }
1843
- if (typeof name !== 'undefined') {
1844
- payload['name'] = name;
1845
- }
1846
- if (typeof from !== 'undefined') {
1847
- payload['from'] = from;
1848
- }
1849
- if (typeof accountSid !== 'undefined') {
1850
- payload['accountSid'] = accountSid;
1851
- }
1852
- if (typeof authToken !== 'undefined') {
1853
- payload['authToken'] = authToken;
1854
- }
1855
- if (typeof enabled !== 'undefined') {
1856
- payload['enabled'] = enabled;
1857
- }
1858
-
1859
- let response = undefined;
1860
-
1861
- response = await client.call('post', apiPath, {
1862
- 'content-type': 'application/json',
1863
- }, payload);
1864
-
1865
- if (parseOutput) {
1866
- parse(response)
1867
- }
1868
-
1869
- return response;
1870
-
1871
- }
1872
- /**
1873
- * @typedef {Object} MessagingUpdateTwilioProviderRequestParams
1874
- * @property {string} providerId Provider ID.
1875
- * @property {string} name Provider name.
1876
- * @property {boolean} enabled Set as enabled.
1877
- * @property {string} accountSid Twilio account secret ID.
1878
- * @property {string} authToken Twilio authentication token.
1879
- * @property {string} from Sender number.
1880
- * @property {boolean} overrideForCli
1881
- * @property {boolean} parseOutput
1882
- * @property {libClient | undefined} sdk
1883
- */
1884
-
1885
- /**
1886
- * @param {MessagingUpdateTwilioProviderRequestParams} params
1887
- */
1888
- const messagingUpdateTwilioProvider = async ({providerId,name,enabled,accountSid,authToken,from,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1889
- let client = !sdk ? await sdkForProject() :
1890
- sdk;
1891
- let apiPath = '/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);
1892
- let payload = {};
1893
- if (typeof name !== 'undefined') {
1894
- payload['name'] = name;
1895
- }
1896
- if (typeof enabled !== 'undefined') {
1897
- payload['enabled'] = enabled;
1898
- }
1899
- if (typeof accountSid !== 'undefined') {
1900
- payload['accountSid'] = accountSid;
1901
- }
1902
- if (typeof authToken !== 'undefined') {
1903
- payload['authToken'] = authToken;
1904
- }
1905
- if (typeof from !== 'undefined') {
1906
- payload['from'] = from;
1907
- }
1908
-
1909
- let response = undefined;
1910
-
1911
- response = await client.call('patch', apiPath, {
1912
- 'content-type': 'application/json',
1913
- }, payload);
1914
-
1915
- if (parseOutput) {
1916
- parse(response)
1917
- }
1918
-
1919
- return response;
1920
-
1921
- }
1922
- /**
1923
- * @typedef {Object} MessagingCreateVonageProviderRequestParams
1924
- * @property {string} providerId Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.
1925
- * @property {string} name Provider name.
1926
- * @property {string} from Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.
1927
- * @property {string} apiKey Vonage API key.
1928
- * @property {string} apiSecret Vonage API secret.
1929
- * @property {boolean} enabled Set as enabled.
1930
- * @property {boolean} overrideForCli
1931
- * @property {boolean} parseOutput
1932
- * @property {libClient | undefined} sdk
1933
- */
1934
-
1935
- /**
1936
- * @param {MessagingCreateVonageProviderRequestParams} params
1937
- */
1938
- const messagingCreateVonageProvider = async ({providerId,name,from,apiKey,apiSecret,enabled,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1939
- let client = !sdk ? await sdkForProject() :
1940
- sdk;
1941
- let apiPath = '/messaging/providers/vonage';
1942
- let payload = {};
1943
- if (typeof providerId !== 'undefined') {
1944
- payload['providerId'] = providerId;
1945
- }
1946
- if (typeof name !== 'undefined') {
1947
- payload['name'] = name;
1948
- }
1949
- if (typeof from !== 'undefined') {
1950
- payload['from'] = from;
1951
- }
1952
- if (typeof apiKey !== 'undefined') {
1953
- payload['apiKey'] = apiKey;
1954
- }
1955
- if (typeof apiSecret !== 'undefined') {
1956
- payload['apiSecret'] = apiSecret;
1957
- }
1958
- if (typeof enabled !== 'undefined') {
1959
- payload['enabled'] = enabled;
1960
- }
1961
-
1962
- let response = undefined;
1963
-
1964
- response = await client.call('post', apiPath, {
1965
- 'content-type': 'application/json',
1966
- }, payload);
1967
-
1968
- if (parseOutput) {
1969
- parse(response)
1970
- }
1971
-
1972
- return response;
1973
-
1974
- }
1975
- /**
1976
- * @typedef {Object} MessagingUpdateVonageProviderRequestParams
1977
- * @property {string} providerId Provider ID.
1978
- * @property {string} name Provider name.
1979
- * @property {boolean} enabled Set as enabled.
1980
- * @property {string} apiKey Vonage API key.
1981
- * @property {string} apiSecret Vonage API secret.
1982
- * @property {string} from Sender number.
1983
- * @property {boolean} overrideForCli
1984
- * @property {boolean} parseOutput
1985
- * @property {libClient | undefined} sdk
1986
- */
1987
-
1988
- /**
1989
- * @param {MessagingUpdateVonageProviderRequestParams} params
1990
- */
1991
- const messagingUpdateVonageProvider = async ({providerId,name,enabled,apiKey,apiSecret,from,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
1992
- let client = !sdk ? await sdkForProject() :
1993
- sdk;
1994
- let apiPath = '/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);
1995
- let payload = {};
1996
- if (typeof name !== 'undefined') {
1997
- payload['name'] = name;
1998
- }
1999
- if (typeof enabled !== 'undefined') {
2000
- payload['enabled'] = enabled;
2001
- }
2002
- if (typeof apiKey !== 'undefined') {
2003
- payload['apiKey'] = apiKey;
2004
- }
2005
- if (typeof apiSecret !== 'undefined') {
2006
- payload['apiSecret'] = apiSecret;
2007
- }
2008
- if (typeof from !== 'undefined') {
2009
- payload['from'] = from;
2010
- }
2011
-
2012
- let response = undefined;
2013
-
2014
- response = await client.call('patch', apiPath, {
2015
- 'content-type': 'application/json',
2016
- }, payload);
2017
-
2018
- if (parseOutput) {
2019
- parse(response)
2020
- }
2021
-
2022
- return response;
2023
-
2024
- }
2025
- /**
2026
- * @typedef {Object} MessagingGetProviderRequestParams
2027
- * @property {string} providerId Provider ID.
2028
- * @property {boolean} overrideForCli
2029
- * @property {boolean} parseOutput
2030
- * @property {libClient | undefined} sdk
2031
- */
2032
-
2033
- /**
2034
- * @param {MessagingGetProviderRequestParams} params
2035
- */
2036
- const messagingGetProvider = async ({providerId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
2037
- let client = !sdk ? await sdkForProject() :
2038
- sdk;
2039
- let apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
2040
- let payload = {};
2041
-
2042
- let response = undefined;
2043
-
2044
- response = await client.call('get', apiPath, {
2045
- }, payload);
2046
-
2047
- if (parseOutput) {
2048
- if(console) {
2049
- showConsoleLink('messaging', 'getProvider', providerId);
2050
- } else {
2051
- parse(response)
2052
- }
2053
- }
2054
-
2055
- return response;
2056
-
2057
- }
2058
- /**
2059
- * @typedef {Object} MessagingDeleteProviderRequestParams
2060
- * @property {string} providerId Provider ID.
2061
- * @property {boolean} overrideForCli
2062
- * @property {boolean} parseOutput
2063
- * @property {libClient | undefined} sdk
2064
- */
2065
-
2066
- /**
2067
- * @param {MessagingDeleteProviderRequestParams} params
2068
- */
2069
- const messagingDeleteProvider = async ({providerId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2070
- let client = !sdk ? await sdkForProject() :
2071
- sdk;
2072
- let apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
2073
- let payload = {};
2074
-
2075
- let response = undefined;
2076
-
2077
- response = await client.call('delete', apiPath, {
2078
- 'content-type': 'application/json',
2079
- }, payload);
2080
-
2081
- if (parseOutput) {
2082
- parse(response)
2083
- }
2084
-
2085
- return response;
2086
-
2087
- }
2088
- /**
2089
- * @typedef {Object} MessagingListProviderLogsRequestParams
2090
- * @property {string} providerId Provider ID.
2091
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
2092
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
2093
- * @property {boolean} overrideForCli
2094
- * @property {boolean} parseOutput
2095
- * @property {libClient | undefined} sdk
2096
- */
2097
-
2098
- /**
2099
- * @param {MessagingListProviderLogsRequestParams} params
2100
- */
2101
- const messagingListProviderLogs = async ({providerId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2102
- let client = !sdk ? await sdkForProject() :
2103
- sdk;
2104
- let apiPath = '/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);
2105
- let payload = {};
2106
- if (typeof queries !== 'undefined') {
2107
- payload['queries'] = queries;
2108
- }
2109
- if (typeof total !== 'undefined') {
2110
- payload['total'] = total;
2111
- }
2112
-
2113
- let response = undefined;
2114
-
2115
- response = await client.call('get', apiPath, {
2116
- }, payload);
2117
-
2118
- if (parseOutput) {
2119
- parse(response)
2120
- }
2121
-
2122
- return response;
2123
-
2124
- }
2125
- /**
2126
- * @typedef {Object} MessagingListSubscriberLogsRequestParams
2127
- * @property {string} subscriberId Subscriber ID.
2128
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
2129
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
2130
- * @property {boolean} overrideForCli
2131
- * @property {boolean} parseOutput
2132
- * @property {libClient | undefined} sdk
2133
- */
2134
-
2135
- /**
2136
- * @param {MessagingListSubscriberLogsRequestParams} params
2137
- */
2138
- const messagingListSubscriberLogs = async ({subscriberId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2139
- let client = !sdk ? await sdkForProject() :
2140
- sdk;
2141
- let apiPath = '/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);
2142
- let payload = {};
2143
- if (typeof queries !== 'undefined') {
2144
- payload['queries'] = queries;
2145
- }
2146
- if (typeof total !== 'undefined') {
2147
- payload['total'] = total;
2148
- }
2149
-
2150
- let response = undefined;
2151
-
2152
- response = await client.call('get', apiPath, {
2153
- }, payload);
2154
-
2155
- if (parseOutput) {
2156
- parse(response)
2157
- }
2158
-
2159
- return response;
2160
-
2161
- }
2162
- /**
2163
- * @typedef {Object} MessagingListTopicsRequestParams
2164
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal
2165
- * @property {string} search Search term to filter your list results. Max length: 256 chars.
2166
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
2167
- * @property {boolean} overrideForCli
2168
- * @property {boolean} parseOutput
2169
- * @property {libClient | undefined} sdk
2170
- */
2171
-
2172
- /**
2173
- * @param {MessagingListTopicsRequestParams} params
2174
- */
2175
- const messagingListTopics = async ({queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
2176
- let client = !sdk ? await sdkForProject() :
2177
- sdk;
2178
- let apiPath = '/messaging/topics';
2179
- let payload = {};
2180
- if (typeof queries !== 'undefined') {
2181
- payload['queries'] = queries;
2182
- }
2183
- if (typeof search !== 'undefined') {
2184
- payload['search'] = search;
2185
- }
2186
- if (typeof total !== 'undefined') {
2187
- payload['total'] = total;
2188
- }
2189
-
2190
- let response = undefined;
2191
-
2192
- response = await client.call('get', apiPath, {
2193
- }, payload);
2194
-
2195
- if (parseOutput) {
2196
- if(console) {
2197
- showConsoleLink('messaging', 'listTopics');
2198
- } else {
2199
- parse(response)
2200
- }
2201
- }
2202
-
2203
- return response;
2204
-
2205
- }
2206
- /**
2207
- * @typedef {Object} MessagingCreateTopicRequestParams
2208
- * @property {string} topicId Topic ID. Choose a custom Topic ID or a new Topic ID.
2209
- * @property {string} name Topic Name.
2210
- * @property {string[]} subscribe An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
2211
- * @property {boolean} overrideForCli
2212
- * @property {boolean} parseOutput
2213
- * @property {libClient | undefined} sdk
2214
- */
2215
-
2216
- /**
2217
- * @param {MessagingCreateTopicRequestParams} params
2218
- */
2219
- const messagingCreateTopic = async ({topicId,name,subscribe,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2220
- let client = !sdk ? await sdkForProject() :
2221
- sdk;
2222
- let apiPath = '/messaging/topics';
2223
- let payload = {};
2224
- if (typeof topicId !== 'undefined') {
2225
- payload['topicId'] = topicId;
2226
- }
2227
- if (typeof name !== 'undefined') {
2228
- payload['name'] = name;
2229
- }
2230
- subscribe = subscribe === true ? [] : subscribe;
2231
- if (typeof subscribe !== 'undefined') {
2232
- payload['subscribe'] = subscribe;
2233
- }
2234
-
2235
- let response = undefined;
2236
-
2237
- response = await client.call('post', apiPath, {
2238
- 'content-type': 'application/json',
2239
- }, payload);
2240
-
2241
- if (parseOutput) {
2242
- parse(response)
2243
- }
2244
-
2245
- return response;
2246
-
2247
- }
2248
- /**
2249
- * @typedef {Object} MessagingGetTopicRequestParams
2250
- * @property {string} topicId Topic ID.
2251
- * @property {boolean} overrideForCli
2252
- * @property {boolean} parseOutput
2253
- * @property {libClient | undefined} sdk
2254
- */
2255
-
2256
- /**
2257
- * @param {MessagingGetTopicRequestParams} params
2258
- */
2259
- const messagingGetTopic = async ({topicId,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
2260
- let client = !sdk ? await sdkForProject() :
2261
- sdk;
2262
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
2263
- let payload = {};
2264
-
2265
- let response = undefined;
2266
-
2267
- response = await client.call('get', apiPath, {
2268
- }, payload);
2269
-
2270
- if (parseOutput) {
2271
- if(console) {
2272
- showConsoleLink('messaging', 'getTopic', topicId);
2273
- } else {
2274
- parse(response)
2275
- }
2276
- }
2277
-
2278
- return response;
2279
-
2280
- }
2281
- /**
2282
- * @typedef {Object} MessagingUpdateTopicRequestParams
2283
- * @property {string} topicId Topic ID.
2284
- * @property {string} name Topic Name.
2285
- * @property {string[]} subscribe An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.
2286
- * @property {boolean} overrideForCli
2287
- * @property {boolean} parseOutput
2288
- * @property {libClient | undefined} sdk
2289
- */
2290
-
2291
- /**
2292
- * @param {MessagingUpdateTopicRequestParams} params
2293
- */
2294
- const messagingUpdateTopic = async ({topicId,name,subscribe,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2295
- let client = !sdk ? await sdkForProject() :
2296
- sdk;
2297
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
2298
- let payload = {};
2299
- if (typeof name !== 'undefined') {
2300
- payload['name'] = name;
2301
- }
2302
- subscribe = subscribe === true ? [] : subscribe;
2303
- if (typeof subscribe !== 'undefined') {
2304
- payload['subscribe'] = subscribe;
2305
- }
2306
-
2307
- let response = undefined;
2308
-
2309
- response = await client.call('patch', apiPath, {
2310
- 'content-type': 'application/json',
2311
- }, payload);
2312
-
2313
- if (parseOutput) {
2314
- parse(response)
2315
- }
2316
-
2317
- return response;
2318
-
2319
- }
2320
- /**
2321
- * @typedef {Object} MessagingDeleteTopicRequestParams
2322
- * @property {string} topicId Topic ID.
2323
- * @property {boolean} overrideForCli
2324
- * @property {boolean} parseOutput
2325
- * @property {libClient | undefined} sdk
2326
- */
2327
-
2328
- /**
2329
- * @param {MessagingDeleteTopicRequestParams} params
2330
- */
2331
- const messagingDeleteTopic = async ({topicId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2332
- let client = !sdk ? await sdkForProject() :
2333
- sdk;
2334
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
2335
- let payload = {};
2336
-
2337
- let response = undefined;
2338
-
2339
- response = await client.call('delete', apiPath, {
2340
- 'content-type': 'application/json',
2341
- }, payload);
2342
-
2343
- if (parseOutput) {
2344
- parse(response)
2345
- }
2346
-
2347
- return response;
2348
-
2349
- }
2350
- /**
2351
- * @typedef {Object} MessagingListTopicLogsRequestParams
2352
- * @property {string} topicId Topic ID.
2353
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset
2354
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
2355
- * @property {boolean} overrideForCli
2356
- * @property {boolean} parseOutput
2357
- * @property {libClient | undefined} sdk
2358
- */
2359
-
2360
- /**
2361
- * @param {MessagingListTopicLogsRequestParams} params
2362
- */
2363
- const messagingListTopicLogs = async ({topicId,queries,total,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2364
- let client = !sdk ? await sdkForProject() :
2365
- sdk;
2366
- let apiPath = '/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);
2367
- let payload = {};
2368
- if (typeof queries !== 'undefined') {
2369
- payload['queries'] = queries;
2370
- }
2371
- if (typeof total !== 'undefined') {
2372
- payload['total'] = total;
2373
- }
2374
-
2375
- let response = undefined;
2376
-
2377
- response = await client.call('get', apiPath, {
2378
- }, payload);
2379
-
2380
- if (parseOutput) {
2381
- parse(response)
2382
- }
2383
-
2384
- return response;
2385
-
2386
- }
2387
- /**
2388
- * @typedef {Object} MessagingListSubscribersRequestParams
2389
- * @property {string} topicId Topic ID. The topic ID subscribed to.
2390
- * @property {string[]} queries Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled
2391
- * @property {string} search Search term to filter your list results. Max length: 256 chars.
2392
- * @property {boolean} total When set to false, the total count returned will be 0 and will not be calculated.
2393
- * @property {boolean} overrideForCli
2394
- * @property {boolean} parseOutput
2395
- * @property {libClient | undefined} sdk
2396
- */
2397
-
2398
- /**
2399
- * @param {MessagingListSubscribersRequestParams} params
2400
- */
2401
- const messagingListSubscribers = async ({topicId,queries,search,total,parseOutput = true, overrideForCli = false, sdk = undefined, console}) => {
2402
- let client = !sdk ? await sdkForProject() :
2403
- sdk;
2404
- let apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
2405
- let payload = {};
2406
- if (typeof queries !== 'undefined') {
2407
- payload['queries'] = queries;
2408
- }
2409
- if (typeof search !== 'undefined') {
2410
- payload['search'] = search;
2411
- }
2412
- if (typeof total !== 'undefined') {
2413
- payload['total'] = total;
2414
- }
2415
-
2416
- let response = undefined;
2417
-
2418
- response = await client.call('get', apiPath, {
2419
- }, payload);
2420
-
2421
- if (parseOutput) {
2422
- if(console) {
2423
- showConsoleLink('messaging', 'listSubscribers', topicId);
2424
- } else {
2425
- parse(response)
2426
- }
2427
- }
2428
-
2429
- return response;
2430
-
2431
- }
2432
- /**
2433
- * @typedef {Object} MessagingCreateSubscriberRequestParams
2434
- * @property {string} topicId Topic ID. The topic ID to subscribe to.
2435
- * @property {string} subscriberId Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.
2436
- * @property {string} targetId Target ID. The target ID to link to the specified Topic ID.
2437
- * @property {boolean} overrideForCli
2438
- * @property {boolean} parseOutput
2439
- * @property {libClient | undefined} sdk
2440
- */
2441
-
2442
- /**
2443
- * @param {MessagingCreateSubscriberRequestParams} params
2444
- */
2445
- const messagingCreateSubscriber = async ({topicId,subscriberId,targetId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2446
- let client = !sdk ? await sdkForProject() :
2447
- sdk;
2448
- let apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
2449
- let payload = {};
2450
- if (typeof subscriberId !== 'undefined') {
2451
- payload['subscriberId'] = subscriberId;
2452
- }
2453
- if (typeof targetId !== 'undefined') {
2454
- payload['targetId'] = targetId;
2455
- }
2456
-
2457
- let response = undefined;
2458
-
2459
- response = await client.call('post', apiPath, {
2460
- 'content-type': 'application/json',
2461
- }, payload);
2462
-
2463
- if (parseOutput) {
2464
- parse(response)
2465
- }
2466
-
2467
- return response;
2468
-
2469
- }
2470
- /**
2471
- * @typedef {Object} MessagingGetSubscriberRequestParams
2472
- * @property {string} topicId Topic ID. The topic ID subscribed to.
2473
- * @property {string} subscriberId Subscriber ID.
2474
- * @property {boolean} overrideForCli
2475
- * @property {boolean} parseOutput
2476
- * @property {libClient | undefined} sdk
2477
- */
2478
-
2479
- /**
2480
- * @param {MessagingGetSubscriberRequestParams} params
2481
- */
2482
- const messagingGetSubscriber = async ({topicId,subscriberId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2483
- let client = !sdk ? await sdkForProject() :
2484
- sdk;
2485
- let apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
2486
- let payload = {};
2487
-
2488
- let response = undefined;
2489
-
2490
- response = await client.call('get', apiPath, {
2491
- }, payload);
2492
-
2493
- if (parseOutput) {
2494
- parse(response)
2495
- }
2496
-
2497
- return response;
2498
-
2499
- }
2500
- /**
2501
- * @typedef {Object} MessagingDeleteSubscriberRequestParams
2502
- * @property {string} topicId Topic ID. The topic ID subscribed to.
2503
- * @property {string} subscriberId Subscriber ID.
2504
- * @property {boolean} overrideForCli
2505
- * @property {boolean} parseOutput
2506
- * @property {libClient | undefined} sdk
2507
- */
2508
-
2509
- /**
2510
- * @param {MessagingDeleteSubscriberRequestParams} params
2511
- */
2512
- const messagingDeleteSubscriber = async ({topicId,subscriberId,parseOutput = true, overrideForCli = false, sdk = undefined}) => {
2513
- let client = !sdk ? await sdkForProject() :
2514
- sdk;
2515
- let apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
2516
- let payload = {};
2517
-
2518
- let response = undefined;
2519
-
2520
- response = await client.call('delete', apiPath, {
2521
- 'content-type': 'application/json',
2522
- }, payload);
2523
-
2524
- if (parseOutput) {
2525
- parse(response)
2526
- }
2527
-
2528
- return response;
2529
-
2530
- }
2531
- messaging
2532
- .command(`list-messages`)
2533
- .description(`Get a list of all messages from the current Appwrite project.`)
2534
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: scheduledAt, deliveredAt, deliveredTotal, status, description, providerType`)
2535
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
2536
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2537
- .option(`--console`, `Get the resource console url`)
2538
- .action(actionRunner(messagingListMessages))
2539
-
2540
- messaging
2541
- .command(`create-email`)
2542
- .description(`Create a new email message.`)
2543
- .requiredOption(`--message-id <message-id>`, `Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2544
- .requiredOption(`--subject <subject>`, `Email Subject.`)
2545
- .requiredOption(`--content <content>`, `Email Content.`)
2546
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2547
- .option(`--users [users...]`, `List of User IDs.`)
2548
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2549
- .option(`--cc [cc...]`, `Array of target IDs to be added as CC.`)
2550
- .option(`--bcc [bcc...]`, `Array of target IDs to be added as BCC.`)
2551
- .option(`--attachments [attachments...]`, `Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.`)
2552
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2553
- .option(`--html [value]`, `Is content of type HTML`, (value) => value === undefined ? true : parseBool(value))
2554
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2555
- .action(actionRunner(messagingCreateEmail))
2556
-
2557
- messaging
2558
- .command(`update-email`)
2559
- .description(`Update an email message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
2560
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2561
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2562
- .option(`--users [users...]`, `List of User IDs.`)
2563
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2564
- .option(`--subject <subject>`, `Email Subject.`)
2565
- .option(`--content <content>`, `Email Content.`)
2566
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2567
- .option(`--html [value]`, `Is content of type HTML`, (value) => value === undefined ? true : parseBool(value))
2568
- .option(`--cc [cc...]`, `Array of target IDs to be added as CC.`)
2569
- .option(`--bcc [bcc...]`, `Array of target IDs to be added as BCC.`)
2570
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2571
- .option(`--attachments [attachments...]`, `Array of compound ID strings of bucket IDs and file IDs to be attached to the email. They should be formatted as <BUCKET_ID>:<FILE_ID>.`)
2572
- .action(actionRunner(messagingUpdateEmail))
2573
-
2574
- messaging
2575
- .command(`create-push`)
2576
- .description(`Create a new push notification.`)
2577
- .requiredOption(`--message-id <message-id>`, `Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2578
- .option(`--title <title>`, `Title for push notification.`)
2579
- .option(`--body <body>`, `Body for push notification.`)
2580
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2581
- .option(`--users [users...]`, `List of User IDs.`)
2582
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2583
- .option(`--data <data>`, `Additional key-value pair data for push notification.`)
2584
- .option(`--action <action>`, `Action for push notification.`)
2585
- .option(`--image <image>`, `Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.`)
2586
- .option(`--icon <icon>`, `Icon for push notification. Available only for Android and Web Platform.`)
2587
- .option(`--sound <sound>`, `Sound for push notification. Available only for Android and iOS Platform.`)
2588
- .option(`--color <color>`, `Color for push notification. Available only for Android Platform.`)
2589
- .option(`--tag <tag>`, `Tag for push notification. Available only for Android Platform.`)
2590
- .option(`--badge <badge>`, `Badge for push notification. Available only for iOS Platform.`, parseInteger)
2591
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2592
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2593
- .option(`--content-available [value]`, `If set to true, the notification will be delivered in the background. Available only for iOS Platform.`, (value) => value === undefined ? true : parseBool(value))
2594
- .option(`--critical [value]`, `If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.`, (value) => value === undefined ? true : parseBool(value))
2595
- .option(`--priority <priority>`, `Set the notification priority. "normal" will consider device state and may not deliver notifications immediately. "high" will always attempt to immediately deliver the notification.`)
2596
- .action(actionRunner(messagingCreatePush))
2597
-
2598
- messaging
2599
- .command(`update-push`)
2600
- .description(`Update a push notification by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
2601
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2602
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2603
- .option(`--users [users...]`, `List of User IDs.`)
2604
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2605
- .option(`--title <title>`, `Title for push notification.`)
2606
- .option(`--body <body>`, `Body for push notification.`)
2607
- .option(`--data <data>`, `Additional Data for push notification.`)
2608
- .option(`--action <action>`, `Action for push notification.`)
2609
- .option(`--image <image>`, `Image for push notification. Must be a compound bucket ID to file ID of a jpeg, png, or bmp image in Appwrite Storage. It should be formatted as <BUCKET_ID>:<FILE_ID>.`)
2610
- .option(`--icon <icon>`, `Icon for push notification. Available only for Android and Web platforms.`)
2611
- .option(`--sound <sound>`, `Sound for push notification. Available only for Android and iOS platforms.`)
2612
- .option(`--color <color>`, `Color for push notification. Available only for Android platforms.`)
2613
- .option(`--tag <tag>`, `Tag for push notification. Available only for Android platforms.`)
2614
- .option(`--badge <badge>`, `Badge for push notification. Available only for iOS platforms.`, parseInteger)
2615
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2616
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2617
- .option(`--content-available [value]`, `If set to true, the notification will be delivered in the background. Available only for iOS Platform.`, (value) => value === undefined ? true : parseBool(value))
2618
- .option(`--critical [value]`, `If set to true, the notification will be marked as critical. This requires the app to have the critical notification entitlement. Available only for iOS Platform.`, (value) => value === undefined ? true : parseBool(value))
2619
- .option(`--priority <priority>`, `Set the notification priority. "normal" will consider device battery state and may send notifications later. "high" will always attempt to immediately deliver the notification.`)
2620
- .action(actionRunner(messagingUpdatePush))
2621
-
2622
- messaging
2623
- .command(`create-sms`)
2624
- .description(`Create a new SMS message.`)
2625
- .requiredOption(`--message-id <message-id>`, `Message ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2626
- .requiredOption(`--content <content>`, `SMS Content.`)
2627
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2628
- .option(`--users [users...]`, `List of User IDs.`)
2629
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2630
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2631
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2632
- .action(actionRunner(messagingCreateSMS))
2633
-
2634
- messaging
2635
- .command(`update-sms`)
2636
- .description(`Update an SMS message by its unique ID. This endpoint only works on messages that are in draft status. Messages that are already processing, sent, or failed cannot be updated. `)
2637
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2638
- .option(`--topics [topics...]`, `List of Topic IDs.`)
2639
- .option(`--users [users...]`, `List of User IDs.`)
2640
- .option(`--targets [targets...]`, `List of Targets IDs.`)
2641
- .option(`--content <content>`, `Email Content.`)
2642
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : parseBool(value))
2643
- .option(`--scheduled-at <scheduled-at>`, `Scheduled delivery time for message in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format. DateTime value must be in future.`)
2644
- .action(actionRunner(messagingUpdateSMS))
2645
-
2646
- messaging
2647
- .command(`get-message`)
2648
- .description(`Get a message by its unique ID. `)
2649
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2650
- .option(`--console`, `Get the resource console url`)
2651
- .action(actionRunner(messagingGetMessage))
2652
-
2653
- messaging
2654
- .command(`delete`)
2655
- .description(`Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.`)
2656
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2657
- .action(actionRunner(messagingDelete))
2658
-
2659
- messaging
2660
- .command(`list-message-logs`)
2661
- .description(`Get the message activity logs listed by its unique ID.`)
2662
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2663
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
2664
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2665
- .option(`--console`, `Get the resource console url`)
2666
- .action(actionRunner(messagingListMessageLogs))
2667
-
2668
- messaging
2669
- .command(`list-targets`)
2670
- .description(`Get a list of the targets associated with a message.`)
2671
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
2672
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: userId, providerId, identifier, providerType`)
2673
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2674
- .action(actionRunner(messagingListTargets))
2675
-
2676
- messaging
2677
- .command(`list-providers`)
2678
- .description(`Get a list of all providers from the current Appwrite project.`)
2679
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled`)
2680
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
2681
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2682
- .option(`--console`, `Get the resource console url`)
2683
- .action(actionRunner(messagingListProviders))
2684
-
2685
- messaging
2686
- .command(`create-apns-provider`)
2687
- .description(`Create a new Apple Push Notification service provider.`)
2688
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2689
- .requiredOption(`--name <name>`, `Provider name.`)
2690
- .option(`--auth-key <auth-key>`, `APNS authentication key.`)
2691
- .option(`--auth-key-id <auth-key-id>`, `APNS authentication key ID.`)
2692
- .option(`--team-id <team-id>`, `APNS team ID.`)
2693
- .option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
2694
- .option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : parseBool(value))
2695
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2696
- .action(actionRunner(messagingCreateAPNSProvider))
2697
-
2698
- messaging
2699
- .command(`update-apns-provider`)
2700
- .description(`Update a Apple Push Notification service provider by its unique ID.`)
2701
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2702
- .option(`--name <name>`, `Provider name.`)
2703
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2704
- .option(`--auth-key <auth-key>`, `APNS authentication key.`)
2705
- .option(`--auth-key-id <auth-key-id>`, `APNS authentication key ID.`)
2706
- .option(`--team-id <team-id>`, `APNS team ID.`)
2707
- .option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
2708
- .option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : parseBool(value))
2709
- .action(actionRunner(messagingUpdateAPNSProvider))
2710
-
2711
- messaging
2712
- .command(`create-fcm-provider`)
2713
- .description(`Create a new Firebase Cloud Messaging provider.`)
2714
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2715
- .requiredOption(`--name <name>`, `Provider name.`)
2716
- .option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
2717
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2718
- .action(actionRunner(messagingCreateFCMProvider))
2719
-
2720
- messaging
2721
- .command(`update-fcm-provider`)
2722
- .description(`Update a Firebase Cloud Messaging provider by its unique ID.`)
2723
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2724
- .option(`--name <name>`, `Provider name.`)
2725
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2726
- .option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
2727
- .action(actionRunner(messagingUpdateFCMProvider))
2728
-
2729
- messaging
2730
- .command(`create-mailgun-provider`)
2731
- .description(`Create a new Mailgun provider.`)
2732
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2733
- .requiredOption(`--name <name>`, `Provider name.`)
2734
- .option(`--api-key <api-key>`, `Mailgun API Key.`)
2735
- .option(`--domain <domain>`, `Mailgun Domain.`)
2736
- .option(`--is-eu-region [value]`, `Set as EU region.`, (value) => value === undefined ? true : parseBool(value))
2737
- .option(`--from-name <from-name>`, `Sender Name.`)
2738
- .option(`--from-email <from-email>`, `Sender email address.`)
2739
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name. Reply to name must have reply to email as well.`)
2740
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email. Reply to email must have reply to name as well.`)
2741
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2742
- .action(actionRunner(messagingCreateMailgunProvider))
2743
-
2744
- messaging
2745
- .command(`update-mailgun-provider`)
2746
- .description(`Update a Mailgun provider by its unique ID.`)
2747
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2748
- .option(`--name <name>`, `Provider name.`)
2749
- .option(`--api-key <api-key>`, `Mailgun API Key.`)
2750
- .option(`--domain <domain>`, `Mailgun Domain.`)
2751
- .option(`--is-eu-region [value]`, `Set as EU region.`, (value) => value === undefined ? true : parseBool(value))
2752
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2753
- .option(`--from-name <from-name>`, `Sender Name.`)
2754
- .option(`--from-email <from-email>`, `Sender email address.`)
2755
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
2756
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
2757
- .action(actionRunner(messagingUpdateMailgunProvider))
2758
-
2759
- messaging
2760
- .command(`create-msg-91-provider`)
2761
- .description(`Create a new MSG91 provider.`)
2762
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2763
- .requiredOption(`--name <name>`, `Provider name.`)
2764
- .option(`--template-id <template-id>`, `Msg91 template ID`)
2765
- .option(`--sender-id <sender-id>`, `Msg91 sender ID.`)
2766
- .option(`--auth-key <auth-key>`, `Msg91 auth key.`)
2767
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2768
- .action(actionRunner(messagingCreateMsg91Provider))
2769
-
2770
- messaging
2771
- .command(`update-msg-91-provider`)
2772
- .description(`Update a MSG91 provider by its unique ID.`)
2773
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2774
- .option(`--name <name>`, `Provider name.`)
2775
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2776
- .option(`--template-id <template-id>`, `Msg91 template ID.`)
2777
- .option(`--sender-id <sender-id>`, `Msg91 sender ID.`)
2778
- .option(`--auth-key <auth-key>`, `Msg91 auth key.`)
2779
- .action(actionRunner(messagingUpdateMsg91Provider))
2780
-
2781
- messaging
2782
- .command(`create-resend-provider`)
2783
- .description(`Create a new Resend provider.`)
2784
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2785
- .requiredOption(`--name <name>`, `Provider name.`)
2786
- .option(`--api-key <api-key>`, `Resend API key.`)
2787
- .option(`--from-name <from-name>`, `Sender Name.`)
2788
- .option(`--from-email <from-email>`, `Sender email address.`)
2789
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
2790
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
2791
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2792
- .action(actionRunner(messagingCreateResendProvider))
2793
-
2794
- messaging
2795
- .command(`update-resend-provider`)
2796
- .description(`Update a Resend provider by its unique ID.`)
2797
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2798
- .option(`--name <name>`, `Provider name.`)
2799
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2800
- .option(`--api-key <api-key>`, `Resend API key.`)
2801
- .option(`--from-name <from-name>`, `Sender Name.`)
2802
- .option(`--from-email <from-email>`, `Sender email address.`)
2803
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
2804
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
2805
- .action(actionRunner(messagingUpdateResendProvider))
2806
-
2807
- messaging
2808
- .command(`create-sendgrid-provider`)
2809
- .description(`Create a new Sendgrid provider.`)
2810
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2811
- .requiredOption(`--name <name>`, `Provider name.`)
2812
- .option(`--api-key <api-key>`, `Sendgrid API key.`)
2813
- .option(`--from-name <from-name>`, `Sender Name.`)
2814
- .option(`--from-email <from-email>`, `Sender email address.`)
2815
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
2816
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
2817
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2818
- .action(actionRunner(messagingCreateSendgridProvider))
2819
-
2820
- messaging
2821
- .command(`update-sendgrid-provider`)
2822
- .description(`Update a Sendgrid provider by its unique ID.`)
2823
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2824
- .option(`--name <name>`, `Provider name.`)
2825
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2826
- .option(`--api-key <api-key>`, `Sendgrid API key.`)
2827
- .option(`--from-name <from-name>`, `Sender Name.`)
2828
- .option(`--from-email <from-email>`, `Sender email address.`)
2829
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
2830
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
2831
- .action(actionRunner(messagingUpdateSendgridProvider))
2832
-
2833
- messaging
2834
- .command(`create-smtp-provider`)
2835
- .description(`Create a new SMTP provider.`)
2836
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2837
- .requiredOption(`--name <name>`, `Provider name.`)
2838
- .requiredOption(`--host <host>`, `SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.`)
2839
- .option(`--port <port>`, `The default SMTP server port.`, parseInteger)
2840
- .option(`--username <username>`, `Authentication username.`)
2841
- .option(`--password <password>`, `Authentication password.`)
2842
- .option(`--encryption <encryption>`, `Encryption type. Can be omitted, 'ssl', or 'tls'`)
2843
- .option(`--auto-tls [value]`, `Enable SMTP AutoTLS feature.`, (value) => value === undefined ? true : parseBool(value))
2844
- .option(`--mailer <mailer>`, `The value to use for the X-Mailer header.`)
2845
- .option(`--from-name <from-name>`, `Sender Name.`)
2846
- .option(`--from-email <from-email>`, `Sender email address.`)
2847
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
2848
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
2849
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2850
- .action(actionRunner(messagingCreateSMTPProvider))
2851
-
2852
- messaging
2853
- .command(`update-smtp-provider`)
2854
- .description(`Update a SMTP provider by its unique ID.`)
2855
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2856
- .option(`--name <name>`, `Provider name.`)
2857
- .option(`--host <host>`, `SMTP hosts. Either a single hostname or multiple semicolon-delimited hostnames. You can also specify a different port for each host such as 'smtp1.example.com:25;smtp2.example.com'. You can also specify encryption type, for example: 'tls://smtp1.example.com:587;ssl://smtp2.example.com:465"'. Hosts will be tried in order.`)
2858
- .option(`--port <port>`, `SMTP port.`, parseInteger)
2859
- .option(`--username <username>`, `Authentication username.`)
2860
- .option(`--password <password>`, `Authentication password.`)
2861
- .option(`--encryption <encryption>`, `Encryption type. Can be 'ssl' or 'tls'`)
2862
- .option(`--auto-tls [value]`, `Enable SMTP AutoTLS feature.`, (value) => value === undefined ? true : parseBool(value))
2863
- .option(`--mailer <mailer>`, `The value to use for the X-Mailer header.`)
2864
- .option(`--from-name <from-name>`, `Sender Name.`)
2865
- .option(`--from-email <from-email>`, `Sender email address.`)
2866
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
2867
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
2868
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2869
- .action(actionRunner(messagingUpdateSMTPProvider))
2870
-
2871
- messaging
2872
- .command(`create-telesign-provider`)
2873
- .description(`Create a new Telesign provider.`)
2874
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2875
- .requiredOption(`--name <name>`, `Provider name.`)
2876
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
2877
- .option(`--customer-id <customer-id>`, `Telesign customer ID.`)
2878
- .option(`--api-key <api-key>`, `Telesign API key.`)
2879
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2880
- .action(actionRunner(messagingCreateTelesignProvider))
2881
-
2882
- messaging
2883
- .command(`update-telesign-provider`)
2884
- .description(`Update a Telesign provider by its unique ID.`)
2885
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2886
- .option(`--name <name>`, `Provider name.`)
2887
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2888
- .option(`--customer-id <customer-id>`, `Telesign customer ID.`)
2889
- .option(`--api-key <api-key>`, `Telesign API key.`)
2890
- .option(`--from <from>`, `Sender number.`)
2891
- .action(actionRunner(messagingUpdateTelesignProvider))
2892
-
2893
- messaging
2894
- .command(`create-textmagic-provider`)
2895
- .description(`Create a new Textmagic provider.`)
2896
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2897
- .requiredOption(`--name <name>`, `Provider name.`)
2898
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
2899
- .option(`--username <username>`, `Textmagic username.`)
2900
- .option(`--api-key <api-key>`, `Textmagic apiKey.`)
2901
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2902
- .action(actionRunner(messagingCreateTextmagicProvider))
2903
-
2904
- messaging
2905
- .command(`update-textmagic-provider`)
2906
- .description(`Update a Textmagic provider by its unique ID.`)
2907
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2908
- .option(`--name <name>`, `Provider name.`)
2909
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2910
- .option(`--username <username>`, `Textmagic username.`)
2911
- .option(`--api-key <api-key>`, `Textmagic apiKey.`)
2912
- .option(`--from <from>`, `Sender number.`)
2913
- .action(actionRunner(messagingUpdateTextmagicProvider))
2914
-
2915
- messaging
2916
- .command(`create-twilio-provider`)
2917
- .description(`Create a new Twilio provider.`)
2918
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2919
- .requiredOption(`--name <name>`, `Provider name.`)
2920
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
2921
- .option(`--account-sid <account-sid>`, `Twilio account secret ID.`)
2922
- .option(`--auth-token <auth-token>`, `Twilio authentication token.`)
2923
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2924
- .action(actionRunner(messagingCreateTwilioProvider))
2925
-
2926
- messaging
2927
- .command(`update-twilio-provider`)
2928
- .description(`Update a Twilio provider by its unique ID.`)
2929
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2930
- .option(`--name <name>`, `Provider name.`)
2931
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2932
- .option(`--account-sid <account-sid>`, `Twilio account secret ID.`)
2933
- .option(`--auth-token <auth-token>`, `Twilio authentication token.`)
2934
- .option(`--from <from>`, `Sender number.`)
2935
- .action(actionRunner(messagingUpdateTwilioProvider))
2936
-
2937
- messaging
2938
- .command(`create-vonage-provider`)
2939
- .description(`Create a new Vonage provider.`)
2940
- .requiredOption(`--provider-id <provider-id>`, `Provider ID. Choose a custom ID or generate a random ID with 'ID.unique()'. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can't start with a special char. Max length is 36 chars.`)
2941
- .requiredOption(`--name <name>`, `Provider name.`)
2942
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
2943
- .option(`--api-key <api-key>`, `Vonage API key.`)
2944
- .option(`--api-secret <api-secret>`, `Vonage API secret.`)
2945
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2946
- .action(actionRunner(messagingCreateVonageProvider))
2947
-
2948
- messaging
2949
- .command(`update-vonage-provider`)
2950
- .description(`Update a Vonage provider by its unique ID.`)
2951
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2952
- .option(`--name <name>`, `Provider name.`)
2953
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : parseBool(value))
2954
- .option(`--api-key <api-key>`, `Vonage API key.`)
2955
- .option(`--api-secret <api-secret>`, `Vonage API secret.`)
2956
- .option(`--from <from>`, `Sender number.`)
2957
- .action(actionRunner(messagingUpdateVonageProvider))
2958
-
2959
- messaging
2960
- .command(`get-provider`)
2961
- .description(`Get a provider by its unique ID. `)
2962
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2963
- .option(`--console`, `Get the resource console url`)
2964
- .action(actionRunner(messagingGetProvider))
2965
-
2966
- messaging
2967
- .command(`delete-provider`)
2968
- .description(`Delete a provider by its unique ID.`)
2969
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2970
- .action(actionRunner(messagingDeleteProvider))
2971
-
2972
- messaging
2973
- .command(`list-provider-logs`)
2974
- .description(`Get the provider activity logs listed by its unique ID.`)
2975
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
2976
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
2977
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2978
- .action(actionRunner(messagingListProviderLogs))
2979
-
2980
- messaging
2981
- .command(`list-subscriber-logs`)
2982
- .description(`Get the subscriber activity logs listed by its unique ID.`)
2983
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
2984
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
2985
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2986
- .action(actionRunner(messagingListSubscriberLogs))
2987
-
2988
- messaging
2989
- .command(`list-topics`)
2990
- .description(`Get a list of all topics from the current Appwrite project.`)
2991
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, description, emailTotal, smsTotal, pushTotal`)
2992
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
2993
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
2994
- .option(`--console`, `Get the resource console url`)
2995
- .action(actionRunner(messagingListTopics))
2996
-
2997
- messaging
2998
- .command(`create-topic`)
2999
- .description(`Create a new topic.`)
3000
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. Choose a custom Topic ID or a new Topic ID.`)
3001
- .requiredOption(`--name <name>`, `Topic Name.`)
3002
- .option(`--subscribe [subscribe...]`, `An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.`)
3003
- .action(actionRunner(messagingCreateTopic))
3004
-
3005
- messaging
3006
- .command(`get-topic`)
3007
- .description(`Get a topic by its unique ID. `)
3008
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
3009
- .option(`--console`, `Get the resource console url`)
3010
- .action(actionRunner(messagingGetTopic))
3011
-
3012
- messaging
3013
- .command(`update-topic`)
3014
- .description(`Update a topic by its unique ID. `)
3015
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
3016
- .option(`--name <name>`, `Topic Name.`)
3017
- .option(`--subscribe [subscribe...]`, `An array of role strings with subscribe permission. By default all users are granted with any subscribe permission. [learn more about roles](https://appwrite.io/docs/permissions#permission-roles). Maximum of 100 roles are allowed, each 64 characters long.`)
3018
- .action(actionRunner(messagingUpdateTopic))
3019
-
3020
- messaging
3021
- .command(`delete-topic`)
3022
- .description(`Delete a topic by its unique ID.`)
3023
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
3024
- .action(actionRunner(messagingDeleteTopic))
3025
-
3026
- messaging
3027
- .command(`list-topic-logs`)
3028
- .description(`Get the topic activity logs listed by its unique ID.`)
3029
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
3030
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Only supported methods are limit and offset`)
3031
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
3032
- .action(actionRunner(messagingListTopicLogs))
3033
-
3034
- messaging
3035
- .command(`list-subscribers`)
3036
- .description(`Get a list of all subscribers from the current Appwrite project.`)
3037
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
3038
- .option(`--queries [queries...]`, `Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, provider, type, enabled`)
3039
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
3040
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : parseBool(value))
3041
- .option(`--console`, `Get the resource console url`)
3042
- .action(actionRunner(messagingListSubscribers))
3043
-
3044
- messaging
3045
- .command(`create-subscriber`)
3046
- .description(`Create a new subscriber.`)
3047
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID to subscribe to.`)
3048
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.`)
3049
- .requiredOption(`--target-id <target-id>`, `Target ID. The target ID to link to the specified Topic ID.`)
3050
- .action(actionRunner(messagingCreateSubscriber))
3051
-
3052
- messaging
3053
- .command(`get-subscriber`)
3054
- .description(`Get a subscriber by its unique ID. `)
3055
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
3056
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
3057
- .action(actionRunner(messagingGetSubscriber))
3058
-
3059
- messaging
3060
- .command(`delete-subscriber`)
3061
- .description(`Delete a subscriber by its unique ID.`)
3062
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
3063
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
3064
- .action(actionRunner(messagingDeleteSubscriber))
3065
-
3066
- module.exports = {
3067
- messaging,
3068
- messagingListMessages,
3069
- messagingCreateEmail,
3070
- messagingUpdateEmail,
3071
- messagingCreatePush,
3072
- messagingUpdatePush,
3073
- messagingCreateSMS,
3074
- messagingUpdateSMS,
3075
- messagingGetMessage,
3076
- messagingDelete,
3077
- messagingListMessageLogs,
3078
- messagingListTargets,
3079
- messagingListProviders,
3080
- messagingCreateAPNSProvider,
3081
- messagingUpdateAPNSProvider,
3082
- messagingCreateFCMProvider,
3083
- messagingUpdateFCMProvider,
3084
- messagingCreateMailgunProvider,
3085
- messagingUpdateMailgunProvider,
3086
- messagingCreateMsg91Provider,
3087
- messagingUpdateMsg91Provider,
3088
- messagingCreateResendProvider,
3089
- messagingUpdateResendProvider,
3090
- messagingCreateSendgridProvider,
3091
- messagingUpdateSendgridProvider,
3092
- messagingCreateSMTPProvider,
3093
- messagingUpdateSMTPProvider,
3094
- messagingCreateTelesignProvider,
3095
- messagingUpdateTelesignProvider,
3096
- messagingCreateTextmagicProvider,
3097
- messagingUpdateTextmagicProvider,
3098
- messagingCreateTwilioProvider,
3099
- messagingUpdateTwilioProvider,
3100
- messagingCreateVonageProvider,
3101
- messagingUpdateVonageProvider,
3102
- messagingGetProvider,
3103
- messagingDeleteProvider,
3104
- messagingListProviderLogs,
3105
- messagingListSubscriberLogs,
3106
- messagingListTopics,
3107
- messagingCreateTopic,
3108
- messagingGetTopic,
3109
- messagingUpdateTopic,
3110
- messagingDeleteTopic,
3111
- messagingListTopicLogs,
3112
- messagingListSubscribers,
3113
- messagingCreateSubscriber,
3114
- messagingGetSubscriber,
3115
- messagingDeleteSubscriber
3116
- };