appwrite-cli 13.0.0-rc.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 (868) hide show
  1. package/.github/workflows/build-verify.yml +71 -0
  2. package/.github/workflows/npm-publish.yml +41 -22
  3. package/CHANGELOG.md +106 -102
  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.js +99 -99
  9. package/dist/index.js.map +1 -1
  10. package/dist/lib/client.d.ts +2 -3
  11. package/dist/lib/client.d.ts.map +1 -1
  12. package/dist/lib/client.js +56 -45
  13. package/dist/lib/client.js.map +1 -1
  14. package/dist/lib/commands/generic.d.ts +2 -2
  15. package/dist/lib/commands/generic.d.ts.map +1 -1
  16. package/dist/lib/commands/generic.js +170 -157
  17. package/dist/lib/commands/generic.js.map +1 -1
  18. package/dist/lib/commands/init.d.ts +1 -1
  19. package/dist/lib/commands/init.d.ts.map +1 -1
  20. package/dist/lib/commands/init.js +197 -189
  21. package/dist/lib/commands/init.js.map +1 -1
  22. package/dist/lib/commands/pull.d.ts +2 -2
  23. package/dist/lib/commands/pull.d.ts.map +1 -1
  24. package/dist/lib/commands/pull.js +215 -244
  25. package/dist/lib/commands/pull.js.map +1 -1
  26. package/dist/lib/commands/push.d.ts.map +1 -1
  27. package/dist/lib/commands/push.js +814 -841
  28. package/dist/lib/commands/push.js.map +1 -1
  29. package/dist/lib/commands/run.d.ts +1 -1
  30. package/dist/lib/commands/run.d.ts.map +1 -1
  31. package/dist/lib/commands/run.js +129 -127
  32. package/dist/lib/commands/run.js.map +1 -1
  33. package/dist/lib/commands/services/account.d.ts +3 -0
  34. package/dist/lib/commands/services/account.d.ts.map +1 -0
  35. package/dist/lib/commands/services/account.js +306 -0
  36. package/dist/lib/commands/services/account.js.map +1 -0
  37. package/dist/lib/commands/services/avatars.d.ts +3 -0
  38. package/dist/lib/commands/services/avatars.d.ts.map +1 -0
  39. package/dist/lib/commands/services/avatars.js +118 -0
  40. package/dist/lib/commands/services/avatars.js.map +1 -0
  41. package/dist/lib/commands/services/console.d.ts +3 -0
  42. package/dist/lib/commands/services/console.d.ts.map +1 -0
  43. package/dist/lib/commands/services/console.js +41 -0
  44. package/dist/lib/commands/services/console.js.map +1 -0
  45. package/dist/lib/commands/services/databases.d.ts +3 -0
  46. package/dist/lib/commands/services/databases.d.ts.map +1 -0
  47. package/dist/lib/commands/services/databases.js +612 -0
  48. package/dist/lib/commands/services/databases.js.map +1 -0
  49. package/dist/lib/commands/services/functions.d.ts +3 -0
  50. package/dist/lib/commands/services/functions.d.ts.map +1 -0
  51. package/dist/lib/commands/services/functions.js +258 -0
  52. package/dist/lib/commands/services/functions.js.map +1 -0
  53. package/dist/lib/commands/services/graphql.d.ts +3 -0
  54. package/dist/lib/commands/services/graphql.d.ts.map +1 -0
  55. package/dist/lib/commands/services/graphql.js +28 -0
  56. package/dist/lib/commands/services/graphql.js.map +1 -0
  57. package/dist/lib/commands/services/health.d.ts +3 -0
  58. package/dist/lib/commands/services/health.d.ts.map +1 -0
  59. package/dist/lib/commands/services/health.js +123 -0
  60. package/dist/lib/commands/services/health.js.map +1 -0
  61. package/dist/lib/commands/services/locale.d.ts +3 -0
  62. package/dist/lib/commands/services/locale.d.ts.map +1 -0
  63. package/dist/lib/commands/services/locale.js +52 -0
  64. package/dist/lib/commands/services/locale.js.map +1 -0
  65. package/dist/lib/commands/services/messaging.d.ts +3 -0
  66. package/dist/lib/commands/services/messaging.d.ts.map +1 -0
  67. package/dist/lib/commands/services/messaging.js +505 -0
  68. package/dist/lib/commands/services/messaging.js.map +1 -0
  69. package/dist/lib/commands/services/migrations.d.ts +3 -0
  70. package/dist/lib/commands/services/migrations.d.ts.map +1 -0
  71. package/dist/lib/commands/services/migrations.js +135 -0
  72. package/dist/lib/commands/services/migrations.js.map +1 -0
  73. package/dist/lib/commands/services/project.d.ts +3 -0
  74. package/dist/lib/commands/services/project.d.ts.map +1 -0
  75. package/dist/lib/commands/services/project.js +54 -0
  76. package/dist/lib/commands/services/project.js.map +1 -0
  77. package/dist/lib/commands/services/projects.d.ts +3 -0
  78. package/dist/lib/commands/services/projects.d.ts.map +1 -0
  79. package/dist/lib/commands/services/projects.js +415 -0
  80. package/dist/lib/commands/services/projects.js.map +1 -0
  81. package/dist/lib/commands/services/proxy.d.ts +3 -0
  82. package/dist/lib/commands/services/proxy.d.ts.map +1 -0
  83. package/dist/lib/commands/services/proxy.js +68 -0
  84. package/dist/lib/commands/services/proxy.js.map +1 -0
  85. package/dist/lib/commands/services/sites.d.ts +3 -0
  86. package/dist/lib/commands/services/sites.d.ts.map +1 -0
  87. package/dist/lib/commands/services/sites.js +242 -0
  88. package/dist/lib/commands/services/sites.js.map +1 -0
  89. package/dist/lib/commands/services/storage.d.ts +3 -0
  90. package/dist/lib/commands/services/storage.d.ts.map +1 -0
  91. package/dist/lib/commands/services/storage.js +153 -0
  92. package/dist/lib/commands/services/storage.js.map +1 -0
  93. package/dist/lib/commands/services/tablesdb.d.ts +3 -0
  94. package/dist/lib/commands/services/tablesdb.d.ts.map +1 -0
  95. package/dist/lib/commands/services/tablesdb.js +605 -0
  96. package/dist/lib/commands/services/tablesdb.js.map +1 -0
  97. package/dist/lib/commands/services/teams.d.ts +3 -0
  98. package/dist/lib/commands/services/teams.d.ts.map +1 -0
  99. package/dist/lib/commands/services/teams.js +123 -0
  100. package/dist/lib/commands/services/teams.js.map +1 -0
  101. package/dist/lib/commands/services/tokens.d.ts +3 -0
  102. package/dist/lib/commands/services/tokens.d.ts.map +1 -0
  103. package/dist/lib/commands/services/tokens.js +49 -0
  104. package/dist/lib/commands/services/tokens.js.map +1 -0
  105. package/dist/lib/commands/services/users.d.ts +3 -0
  106. package/dist/lib/commands/services/users.d.ts.map +1 -0
  107. package/dist/lib/commands/services/users.js +312 -0
  108. package/dist/lib/commands/services/users.js.map +1 -0
  109. package/dist/lib/commands/services/vcs.d.ts +3 -0
  110. package/dist/lib/commands/services/vcs.d.ts.map +1 -0
  111. package/dist/lib/commands/services/vcs.js +87 -0
  112. package/dist/lib/commands/services/vcs.js.map +1 -0
  113. package/dist/lib/commands/types.d.ts +1 -1
  114. package/dist/lib/commands/types.d.ts.map +1 -1
  115. package/dist/lib/commands/types.js +53 -57
  116. package/dist/lib/commands/types.js.map +1 -1
  117. package/dist/lib/commands/update.d.ts +1 -1
  118. package/dist/lib/commands/update.d.ts.map +1 -1
  119. package/dist/lib/commands/update.js +65 -66
  120. package/dist/lib/commands/update.js.map +1 -1
  121. package/dist/lib/config.d.ts +39 -39
  122. package/dist/lib/config.d.ts.map +1 -1
  123. package/dist/lib/config.js +264 -202
  124. package/dist/lib/config.js.map +1 -1
  125. package/dist/lib/emulation/docker.d.ts +1 -9
  126. package/dist/lib/emulation/docker.d.ts.map +1 -1
  127. package/dist/lib/emulation/docker.js +111 -107
  128. package/dist/lib/emulation/docker.js.map +1 -1
  129. package/dist/lib/emulation/utils.d.ts +1 -1
  130. package/dist/lib/emulation/utils.d.ts.map +1 -1
  131. package/dist/lib/emulation/utils.js +55 -58
  132. package/dist/lib/emulation/utils.js.map +1 -1
  133. package/dist/lib/id.d.ts +1 -1
  134. package/dist/lib/id.d.ts.map +1 -1
  135. package/dist/lib/id.js +13 -18
  136. package/dist/lib/id.js.map +1 -1
  137. package/dist/lib/paginate.d.ts +3 -4
  138. package/dist/lib/paginate.d.ts.map +1 -1
  139. package/dist/lib/paginate.js +7 -10
  140. package/dist/lib/paginate.js.map +1 -1
  141. package/dist/lib/parser.d.ts +1 -1
  142. package/dist/lib/parser.d.ts.map +1 -1
  143. package/dist/lib/parser.js +84 -96
  144. package/dist/lib/parser.js.map +1 -1
  145. package/dist/lib/questions.d.ts +1 -1
  146. package/dist/lib/questions.d.ts.map +1 -1
  147. package/dist/lib/questions.js +364 -368
  148. package/dist/lib/questions.js.map +1 -1
  149. package/dist/lib/sdks.d.ts +1 -1
  150. package/dist/lib/sdks.d.ts.map +1 -1
  151. package/dist/lib/sdks.js +40 -30
  152. package/dist/lib/sdks.js.map +1 -1
  153. package/dist/lib/services.d.ts +13 -0
  154. package/dist/lib/services.d.ts.map +1 -0
  155. package/dist/lib/services.js +47 -0
  156. package/dist/lib/services.js.map +1 -0
  157. package/dist/lib/spinner.d.ts +1 -1
  158. package/dist/lib/spinner.d.ts.map +1 -1
  159. package/dist/lib/spinner.js +25 -27
  160. package/dist/lib/spinner.js.map +1 -1
  161. package/dist/lib/type-generation/attribute.d.ts +1 -1
  162. package/dist/lib/type-generation/attribute.d.ts.map +1 -1
  163. package/dist/lib/type-generation/attribute.js +14 -17
  164. package/dist/lib/type-generation/attribute.js.map +1 -1
  165. package/dist/lib/type-generation/languages/csharp.d.ts +1 -1
  166. package/dist/lib/type-generation/languages/csharp.d.ts.map +1 -1
  167. package/dist/lib/type-generation/languages/csharp.js +34 -34
  168. package/dist/lib/type-generation/languages/csharp.js.map +1 -1
  169. package/dist/lib/type-generation/languages/dart.d.ts +1 -1
  170. package/dist/lib/type-generation/languages/dart.d.ts.map +1 -1
  171. package/dist/lib/type-generation/languages/dart.js +57 -57
  172. package/dist/lib/type-generation/languages/dart.js.map +1 -1
  173. package/dist/lib/type-generation/languages/java.d.ts +1 -1
  174. package/dist/lib/type-generation/languages/java.d.ts.map +1 -1
  175. package/dist/lib/type-generation/languages/java.js +35 -35
  176. package/dist/lib/type-generation/languages/java.js.map +1 -1
  177. package/dist/lib/type-generation/languages/javascript.d.ts +1 -1
  178. package/dist/lib/type-generation/languages/javascript.d.ts.map +1 -1
  179. package/dist/lib/type-generation/languages/javascript.js +45 -44
  180. package/dist/lib/type-generation/languages/javascript.js.map +1 -1
  181. package/dist/lib/type-generation/languages/kotlin.d.ts +1 -1
  182. package/dist/lib/type-generation/languages/kotlin.d.ts.map +1 -1
  183. package/dist/lib/type-generation/languages/kotlin.js +35 -35
  184. package/dist/lib/type-generation/languages/kotlin.js.map +1 -1
  185. package/dist/lib/type-generation/languages/language.d.ts.map +1 -1
  186. package/dist/lib/type-generation/languages/language.js +32 -37
  187. package/dist/lib/type-generation/languages/language.js.map +1 -1
  188. package/dist/lib/type-generation/languages/php.d.ts +1 -1
  189. package/dist/lib/type-generation/languages/php.d.ts.map +1 -1
  190. package/dist/lib/type-generation/languages/php.js +34 -34
  191. package/dist/lib/type-generation/languages/php.js.map +1 -1
  192. package/dist/lib/type-generation/languages/swift.d.ts +1 -1
  193. package/dist/lib/type-generation/languages/swift.d.ts.map +1 -1
  194. package/dist/lib/type-generation/languages/swift.js +35 -35
  195. package/dist/lib/type-generation/languages/swift.js.map +1 -1
  196. package/dist/lib/type-generation/languages/typescript.d.ts +1 -1
  197. package/dist/lib/type-generation/languages/typescript.d.ts.map +1 -1
  198. package/dist/lib/type-generation/languages/typescript.js +49 -46
  199. package/dist/lib/type-generation/languages/typescript.js.map +1 -1
  200. package/dist/lib/types.d.ts +189 -45
  201. package/dist/lib/types.d.ts.map +1 -1
  202. package/dist/lib/types.js +1 -2
  203. package/dist/lib/utils.d.ts.map +1 -1
  204. package/dist/lib/utils.js +102 -98
  205. package/dist/lib/utils.js.map +1 -1
  206. package/dist/lib/validations.d.ts.map +1 -1
  207. package/dist/lib/validations.js +2 -6
  208. package/dist/lib/validations.js.map +1 -1
  209. package/dist/package.json +67 -0
  210. package/dist/scripts/generate-commands.d.ts +2 -0
  211. package/dist/scripts/generate-commands.d.ts.map +1 -0
  212. package/dist/scripts/generate-commands.js +398 -0
  213. package/dist/scripts/generate-commands.js.map +1 -0
  214. package/index.ts +146 -130
  215. package/install.ps1 +2 -2
  216. package/install.sh +1 -1
  217. package/lib/client.ts +253 -220
  218. package/lib/commands/generic.ts +371 -269
  219. package/lib/commands/init.ts +620 -519
  220. package/lib/commands/pull.ts +581 -470
  221. package/lib/commands/push.ts +2838 -2269
  222. package/lib/commands/run.ts +382 -302
  223. package/lib/commands/services/account.ts +832 -0
  224. package/lib/commands/services/avatars.ts +400 -0
  225. package/lib/commands/services/console.ts +73 -0
  226. package/lib/commands/services/databases.ts +2080 -0
  227. package/lib/commands/services/functions.ts +855 -0
  228. package/lib/commands/services/graphql.ts +47 -0
  229. package/lib/commands/services/health.ts +322 -0
  230. package/lib/commands/services/locale.ts +99 -0
  231. package/lib/commands/services/messaging.ts +1871 -0
  232. package/lib/commands/services/migrations.ts +421 -0
  233. package/lib/commands/services/project.ts +116 -0
  234. package/lib/commands/services/projects.ts +1317 -0
  235. package/lib/commands/services/proxy.ts +163 -0
  236. package/lib/commands/services/sites.ts +777 -0
  237. package/lib/commands/services/storage.ts +547 -0
  238. package/lib/commands/services/tablesdb.ts +1928 -0
  239. package/lib/commands/services/teams.ts +294 -0
  240. package/lib/commands/services/tokens.ts +106 -0
  241. package/lib/commands/services/users.ts +886 -0
  242. package/lib/commands/services/vcs.ts +268 -0
  243. package/lib/commands/types.ts +144 -117
  244. package/lib/commands/update.ts +198 -159
  245. package/lib/config.ts +815 -700
  246. package/lib/emulation/docker.ts +291 -244
  247. package/lib/emulation/utils.ts +188 -174
  248. package/lib/id.ts +23 -23
  249. package/lib/paginate.ts +69 -55
  250. package/lib/parser.ts +215 -189
  251. package/lib/questions.ts +1025 -948
  252. package/lib/sdks.ts +80 -51
  253. package/lib/services.ts +72 -0
  254. package/lib/spinner.ts +112 -99
  255. package/lib/type-generation/attribute.ts +15 -14
  256. package/lib/type-generation/languages/csharp.ts +71 -60
  257. package/lib/type-generation/languages/dart.ts +106 -93
  258. package/lib/type-generation/languages/java.ts +69 -58
  259. package/lib/type-generation/languages/javascript.ts +84 -73
  260. package/lib/type-generation/languages/kotlin.ts +71 -60
  261. package/lib/type-generation/languages/language.ts +103 -95
  262. package/lib/type-generation/languages/php.ts +67 -56
  263. package/lib/type-generation/languages/swift.ts +71 -60
  264. package/lib/type-generation/languages/typescript.ts +93 -76
  265. package/lib/types.ts +261 -107
  266. package/lib/utils.ts +263 -233
  267. package/lib/validations.ts +17 -14
  268. package/package.json +27 -19
  269. package/scoop/appwrite.config.json +19 -29
  270. package/scripts/generate-commands.ts +539 -0
  271. package/tsconfig.json +7 -13
  272. package/.github/workflows/autoclose.yml +0 -11
  273. package/dist/lib/commands/account.d.ts +0 -379
  274. package/dist/lib/commands/account.d.ts.map +0 -1
  275. package/dist/lib/commands/account.js +0 -1228
  276. package/dist/lib/commands/account.js.map +0 -1
  277. package/dist/lib/commands/console.d.ts +0 -20
  278. package/dist/lib/commands/console.d.ts.map +0 -1
  279. package/dist/lib/commands/console.js +0 -78
  280. package/dist/lib/commands/console.js.map +0 -1
  281. package/dist/lib/commands/databases.d.ts +0 -732
  282. package/dist/lib/commands/databases.d.ts.map +0 -1
  283. package/dist/lib/commands/databases.js +0 -2196
  284. package/dist/lib/commands/databases.js.map +0 -1
  285. package/dist/lib/commands/functions.d.ts +0 -310
  286. package/dist/lib/commands/functions.d.ts.map +0 -1
  287. package/dist/lib/commands/functions.js +0 -1100
  288. package/dist/lib/commands/functions.js.map +0 -1
  289. package/dist/lib/commands/graphql.d.ts +0 -19
  290. package/dist/lib/commands/graphql.d.ts.map +0 -1
  291. package/dist/lib/commands/graphql.js +0 -77
  292. package/dist/lib/commands/graphql.js.map +0 -1
  293. package/dist/lib/commands/health.d.ts +0 -153
  294. package/dist/lib/commands/health.d.ts.map +0 -1
  295. package/dist/lib/commands/health.js +0 -464
  296. package/dist/lib/commands/health.js.map +0 -1
  297. package/dist/lib/commands/locale.d.ts +0 -53
  298. package/dist/lib/commands/locale.d.ts.map +0 -1
  299. package/dist/lib/commands/locale.js +0 -165
  300. package/dist/lib/commands/locale.js.map +0 -1
  301. package/dist/lib/commands/messaging.d.ts +0 -588
  302. package/dist/lib/commands/messaging.d.ts.map +0 -1
  303. package/dist/lib/commands/messaging.js +0 -2042
  304. package/dist/lib/commands/messaging.js.map +0 -1
  305. package/dist/lib/commands/migrations.d.ts +0 -150
  306. package/dist/lib/commands/migrations.d.ts.map +0 -1
  307. package/dist/lib/commands/migrations.js +0 -524
  308. package/dist/lib/commands/migrations.js.map +0 -1
  309. package/dist/lib/commands/organizations.d.ts +0 -11
  310. package/dist/lib/commands/organizations.d.ts.map +0 -1
  311. package/dist/lib/commands/organizations.js +0 -31
  312. package/dist/lib/commands/organizations.js.map +0 -1
  313. package/dist/lib/commands/project.d.ts +0 -53
  314. package/dist/lib/commands/project.d.ts.map +0 -1
  315. package/dist/lib/commands/project.js +0 -176
  316. package/dist/lib/commands/project.js.map +0 -1
  317. package/dist/lib/commands/projects.d.ts +0 -516
  318. package/dist/lib/commands/projects.d.ts.map +0 -1
  319. package/dist/lib/commands/projects.js +0 -1590
  320. package/dist/lib/commands/projects.js.map +0 -1
  321. package/dist/lib/commands/proxy.d.ts +0 -71
  322. package/dist/lib/commands/proxy.d.ts.map +0 -1
  323. package/dist/lib/commands/proxy.js +0 -240
  324. package/dist/lib/commands/proxy.js.map +0 -1
  325. package/dist/lib/commands/sites.d.ts +0 -296
  326. package/dist/lib/commands/sites.d.ts.map +0 -1
  327. package/dist/lib/commands/sites.js +0 -1046
  328. package/dist/lib/commands/sites.js.map +0 -1
  329. package/dist/lib/commands/storage.d.ts +0 -170
  330. package/dist/lib/commands/storage.d.ts.map +0 -1
  331. package/dist/lib/commands/storage.js +0 -651
  332. package/dist/lib/commands/storage.js.map +0 -1
  333. package/dist/lib/commands/tables-db.d.ts +0 -728
  334. package/dist/lib/commands/tables-db.d.ts.map +0 -1
  335. package/dist/lib/commands/tables-db.js +0 -2198
  336. package/dist/lib/commands/tables-db.js.map +0 -1
  337. package/dist/lib/commands/teams.d.ts +0 -129
  338. package/dist/lib/commands/teams.d.ts.map +0 -1
  339. package/dist/lib/commands/teams.js +0 -403
  340. package/dist/lib/commands/teams.js.map +0 -1
  341. package/dist/lib/commands/tokens.d.ts +0 -48
  342. package/dist/lib/commands/tokens.d.ts.map +0 -1
  343. package/dist/lib/commands/tokens.js +0 -156
  344. package/dist/lib/commands/tokens.js.map +0 -1
  345. package/dist/lib/commands/users.d.ts +0 -382
  346. package/dist/lib/commands/users.d.ts.map +0 -1
  347. package/dist/lib/commands/users.js +0 -1195
  348. package/dist/lib/commands/users.js.map +0 -1
  349. package/dist/lib/commands/vcs.d.ts +0 -92
  350. package/dist/lib/commands/vcs.d.ts.map +0 -1
  351. package/dist/lib/commands/vcs.js +0 -276
  352. package/dist/lib/commands/vcs.js.map +0 -1
  353. package/dist/lib/exception.d.ts +0 -8
  354. package/dist/lib/exception.d.ts.map +0 -1
  355. package/dist/lib/exception.js +0 -16
  356. package/dist/lib/exception.js.map +0 -1
  357. package/docs/examples/account/create-anonymous-session.md +0 -1
  358. package/docs/examples/account/create-email-password-session.md +0 -3
  359. package/docs/examples/account/create-email-token.md +0 -3
  360. package/docs/examples/account/create-email-verification.md +0 -2
  361. package/docs/examples/account/create-jwt.md +0 -1
  362. package/docs/examples/account/create-magic-url-token.md +0 -3
  363. package/docs/examples/account/create-mfa-authenticator.md +0 -2
  364. package/docs/examples/account/create-mfa-challenge.md +0 -2
  365. package/docs/examples/account/create-mfa-recovery-codes.md +0 -1
  366. package/docs/examples/account/create-o-auth-2-session.md +0 -2
  367. package/docs/examples/account/create-o-auth-2-token.md +0 -2
  368. package/docs/examples/account/create-phone-token.md +0 -3
  369. package/docs/examples/account/create-phone-verification.md +0 -1
  370. package/docs/examples/account/create-push-target.md +0 -3
  371. package/docs/examples/account/create-recovery.md +0 -3
  372. package/docs/examples/account/create-session.md +0 -3
  373. package/docs/examples/account/create-verification.md +0 -2
  374. package/docs/examples/account/create.md +0 -4
  375. package/docs/examples/account/delete-identity.md +0 -2
  376. package/docs/examples/account/delete-mfa-authenticator.md +0 -2
  377. package/docs/examples/account/delete-push-target.md +0 -2
  378. package/docs/examples/account/delete-session.md +0 -2
  379. package/docs/examples/account/delete-sessions.md +0 -1
  380. package/docs/examples/account/delete.md +0 -1
  381. package/docs/examples/account/get-mfa-recovery-codes.md +0 -1
  382. package/docs/examples/account/get-prefs.md +0 -1
  383. package/docs/examples/account/get-session.md +0 -2
  384. package/docs/examples/account/get.md +0 -1
  385. package/docs/examples/account/list-identities.md +0 -1
  386. package/docs/examples/account/list-logs.md +0 -1
  387. package/docs/examples/account/list-mfa-factors.md +0 -1
  388. package/docs/examples/account/list-sessions.md +0 -1
  389. package/docs/examples/account/update-email-verification.md +0 -3
  390. package/docs/examples/account/update-email.md +0 -3
  391. package/docs/examples/account/update-magic-url-session.md +0 -3
  392. package/docs/examples/account/update-mfa-authenticator.md +0 -3
  393. package/docs/examples/account/update-mfa-challenge.md +0 -3
  394. package/docs/examples/account/update-mfa-recovery-codes.md +0 -1
  395. package/docs/examples/account/update-mfa.md +0 -2
  396. package/docs/examples/account/update-name.md +0 -2
  397. package/docs/examples/account/update-password.md +0 -2
  398. package/docs/examples/account/update-phone-session.md +0 -3
  399. package/docs/examples/account/update-phone-verification.md +0 -3
  400. package/docs/examples/account/update-phone.md +0 -3
  401. package/docs/examples/account/update-prefs.md +0 -2
  402. package/docs/examples/account/update-push-target.md +0 -3
  403. package/docs/examples/account/update-recovery.md +0 -4
  404. package/docs/examples/account/update-session.md +0 -2
  405. package/docs/examples/account/update-status.md +0 -1
  406. package/docs/examples/account/update-verification.md +0 -3
  407. package/docs/examples/console/get-resource.md +0 -3
  408. package/docs/examples/console/variables.md +0 -1
  409. package/docs/examples/databases/create-boolean-attribute.md +0 -5
  410. package/docs/examples/databases/create-collection.md +0 -4
  411. package/docs/examples/databases/create-datetime-attribute.md +0 -5
  412. package/docs/examples/databases/create-document.md +0 -5
  413. package/docs/examples/databases/create-documents.md +0 -4
  414. package/docs/examples/databases/create-email-attribute.md +0 -5
  415. package/docs/examples/databases/create-enum-attribute.md +0 -6
  416. package/docs/examples/databases/create-float-attribute.md +0 -5
  417. package/docs/examples/databases/create-index.md +0 -6
  418. package/docs/examples/databases/create-integer-attribute.md +0 -5
  419. package/docs/examples/databases/create-ip-attribute.md +0 -5
  420. package/docs/examples/databases/create-line-attribute.md +0 -5
  421. package/docs/examples/databases/create-operations.md +0 -2
  422. package/docs/examples/databases/create-point-attribute.md +0 -5
  423. package/docs/examples/databases/create-polygon-attribute.md +0 -5
  424. package/docs/examples/databases/create-relationship-attribute.md +0 -5
  425. package/docs/examples/databases/create-string-attribute.md +0 -6
  426. package/docs/examples/databases/create-transaction.md +0 -1
  427. package/docs/examples/databases/create-url-attribute.md +0 -5
  428. package/docs/examples/databases/create.md +0 -3
  429. package/docs/examples/databases/decrement-document-attribute.md +0 -5
  430. package/docs/examples/databases/delete-attribute.md +0 -4
  431. package/docs/examples/databases/delete-collection.md +0 -3
  432. package/docs/examples/databases/delete-document.md +0 -4
  433. package/docs/examples/databases/delete-documents.md +0 -3
  434. package/docs/examples/databases/delete-index.md +0 -4
  435. package/docs/examples/databases/delete-transaction.md +0 -2
  436. package/docs/examples/databases/delete.md +0 -2
  437. package/docs/examples/databases/get-attribute.md +0 -4
  438. package/docs/examples/databases/get-collection-usage.md +0 -3
  439. package/docs/examples/databases/get-collection.md +0 -3
  440. package/docs/examples/databases/get-document.md +0 -4
  441. package/docs/examples/databases/get-index.md +0 -4
  442. package/docs/examples/databases/get-transaction.md +0 -2
  443. package/docs/examples/databases/get-usage.md +0 -2
  444. package/docs/examples/databases/get.md +0 -2
  445. package/docs/examples/databases/increment-document-attribute.md +0 -5
  446. package/docs/examples/databases/list-attributes.md +0 -3
  447. package/docs/examples/databases/list-collection-logs.md +0 -3
  448. package/docs/examples/databases/list-collections.md +0 -2
  449. package/docs/examples/databases/list-document-logs.md +0 -4
  450. package/docs/examples/databases/list-documents.md +0 -3
  451. package/docs/examples/databases/list-indexes.md +0 -3
  452. package/docs/examples/databases/list-logs.md +0 -2
  453. package/docs/examples/databases/list-transactions.md +0 -1
  454. package/docs/examples/databases/list-usage.md +0 -1
  455. package/docs/examples/databases/list.md +0 -1
  456. package/docs/examples/databases/update-boolean-attribute.md +0 -6
  457. package/docs/examples/databases/update-collection.md +0 -4
  458. package/docs/examples/databases/update-datetime-attribute.md +0 -6
  459. package/docs/examples/databases/update-document.md +0 -4
  460. package/docs/examples/databases/update-documents.md +0 -3
  461. package/docs/examples/databases/update-email-attribute.md +0 -6
  462. package/docs/examples/databases/update-enum-attribute.md +0 -7
  463. package/docs/examples/databases/update-float-attribute.md +0 -6
  464. package/docs/examples/databases/update-integer-attribute.md +0 -6
  465. package/docs/examples/databases/update-ip-attribute.md +0 -6
  466. package/docs/examples/databases/update-line-attribute.md +0 -5
  467. package/docs/examples/databases/update-point-attribute.md +0 -5
  468. package/docs/examples/databases/update-polygon-attribute.md +0 -5
  469. package/docs/examples/databases/update-relationship-attribute.md +0 -4
  470. package/docs/examples/databases/update-string-attribute.md +0 -6
  471. package/docs/examples/databases/update-transaction.md +0 -2
  472. package/docs/examples/databases/update-url-attribute.md +0 -6
  473. package/docs/examples/databases/update.md +0 -3
  474. package/docs/examples/databases/upsert-document.md +0 -4
  475. package/docs/examples/databases/upsert-documents.md +0 -4
  476. package/docs/examples/functions/create-deployment.md +0 -4
  477. package/docs/examples/functions/create-duplicate-deployment.md +0 -3
  478. package/docs/examples/functions/create-execution.md +0 -2
  479. package/docs/examples/functions/create-template-deployment.md +0 -7
  480. package/docs/examples/functions/create-variable.md +0 -4
  481. package/docs/examples/functions/create-vcs-deployment.md +0 -4
  482. package/docs/examples/functions/create.md +0 -4
  483. package/docs/examples/functions/delete-deployment.md +0 -3
  484. package/docs/examples/functions/delete-execution.md +0 -3
  485. package/docs/examples/functions/delete-variable.md +0 -3
  486. package/docs/examples/functions/delete.md +0 -2
  487. package/docs/examples/functions/get-deployment-download.md +0 -3
  488. package/docs/examples/functions/get-deployment.md +0 -3
  489. package/docs/examples/functions/get-execution.md +0 -3
  490. package/docs/examples/functions/get-template.md +0 -2
  491. package/docs/examples/functions/get-usage.md +0 -2
  492. package/docs/examples/functions/get-variable.md +0 -3
  493. package/docs/examples/functions/get.md +0 -2
  494. package/docs/examples/functions/list-deployments.md +0 -2
  495. package/docs/examples/functions/list-executions.md +0 -2
  496. package/docs/examples/functions/list-runtimes.md +0 -1
  497. package/docs/examples/functions/list-specifications.md +0 -1
  498. package/docs/examples/functions/list-templates.md +0 -1
  499. package/docs/examples/functions/list-usage.md +0 -1
  500. package/docs/examples/functions/list-variables.md +0 -2
  501. package/docs/examples/functions/list.md +0 -1
  502. package/docs/examples/functions/update-deployment-status.md +0 -3
  503. package/docs/examples/functions/update-function-deployment.md +0 -3
  504. package/docs/examples/functions/update-variable.md +0 -4
  505. package/docs/examples/functions/update.md +0 -3
  506. package/docs/examples/graphql/mutation.md +0 -2
  507. package/docs/examples/graphql/query.md +0 -2
  508. package/docs/examples/health/get-antivirus.md +0 -1
  509. package/docs/examples/health/get-cache.md +0 -1
  510. package/docs/examples/health/get-certificate.md +0 -1
  511. package/docs/examples/health/get-db.md +0 -1
  512. package/docs/examples/health/get-failed-jobs.md +0 -2
  513. package/docs/examples/health/get-pub-sub.md +0 -1
  514. package/docs/examples/health/get-queue-builds.md +0 -1
  515. package/docs/examples/health/get-queue-certificates.md +0 -1
  516. package/docs/examples/health/get-queue-databases.md +0 -1
  517. package/docs/examples/health/get-queue-deletes.md +0 -1
  518. package/docs/examples/health/get-queue-functions.md +0 -1
  519. package/docs/examples/health/get-queue-logs.md +0 -1
  520. package/docs/examples/health/get-queue-mails.md +0 -1
  521. package/docs/examples/health/get-queue-messaging.md +0 -1
  522. package/docs/examples/health/get-queue-migrations.md +0 -1
  523. package/docs/examples/health/get-queue-stats-resources.md +0 -1
  524. package/docs/examples/health/get-queue-usage.md +0 -1
  525. package/docs/examples/health/get-queue-webhooks.md +0 -1
  526. package/docs/examples/health/get-storage-local.md +0 -1
  527. package/docs/examples/health/get-storage.md +0 -1
  528. package/docs/examples/health/get-time.md +0 -1
  529. package/docs/examples/health/get.md +0 -1
  530. package/docs/examples/locale/get.md +0 -1
  531. package/docs/examples/locale/list-codes.md +0 -1
  532. package/docs/examples/locale/list-continents.md +0 -1
  533. package/docs/examples/locale/list-countries-eu.md +0 -1
  534. package/docs/examples/locale/list-countries-phones.md +0 -1
  535. package/docs/examples/locale/list-countries.md +0 -1
  536. package/docs/examples/locale/list-currencies.md +0 -1
  537. package/docs/examples/locale/list-languages.md +0 -1
  538. package/docs/examples/messaging/create-apns-provider.md +0 -3
  539. package/docs/examples/messaging/create-email.md +0 -4
  540. package/docs/examples/messaging/create-fcm-provider.md +0 -3
  541. package/docs/examples/messaging/create-mailgun-provider.md +0 -3
  542. package/docs/examples/messaging/create-msg-91-provider.md +0 -3
  543. package/docs/examples/messaging/create-push.md +0 -2
  544. package/docs/examples/messaging/create-resend-provider.md +0 -3
  545. package/docs/examples/messaging/create-sendgrid-provider.md +0 -3
  546. package/docs/examples/messaging/create-sms.md +0 -3
  547. package/docs/examples/messaging/create-smtp-provider.md +0 -4
  548. package/docs/examples/messaging/create-subscriber.md +0 -4
  549. package/docs/examples/messaging/create-telesign-provider.md +0 -3
  550. package/docs/examples/messaging/create-textmagic-provider.md +0 -3
  551. package/docs/examples/messaging/create-topic.md +0 -3
  552. package/docs/examples/messaging/create-twilio-provider.md +0 -3
  553. package/docs/examples/messaging/create-vonage-provider.md +0 -3
  554. package/docs/examples/messaging/delete-provider.md +0 -2
  555. package/docs/examples/messaging/delete-subscriber.md +0 -3
  556. package/docs/examples/messaging/delete-topic.md +0 -2
  557. package/docs/examples/messaging/delete.md +0 -2
  558. package/docs/examples/messaging/get-message.md +0 -2
  559. package/docs/examples/messaging/get-provider.md +0 -2
  560. package/docs/examples/messaging/get-subscriber.md +0 -3
  561. package/docs/examples/messaging/get-topic.md +0 -2
  562. package/docs/examples/messaging/list-message-logs.md +0 -2
  563. package/docs/examples/messaging/list-messages.md +0 -1
  564. package/docs/examples/messaging/list-provider-logs.md +0 -2
  565. package/docs/examples/messaging/list-providers.md +0 -1
  566. package/docs/examples/messaging/list-subscriber-logs.md +0 -2
  567. package/docs/examples/messaging/list-subscribers.md +0 -2
  568. package/docs/examples/messaging/list-targets.md +0 -2
  569. package/docs/examples/messaging/list-topic-logs.md +0 -2
  570. package/docs/examples/messaging/list-topics.md +0 -1
  571. package/docs/examples/messaging/update-apns-provider.md +0 -2
  572. package/docs/examples/messaging/update-email.md +0 -2
  573. package/docs/examples/messaging/update-fcm-provider.md +0 -2
  574. package/docs/examples/messaging/update-mailgun-provider.md +0 -2
  575. package/docs/examples/messaging/update-msg-91-provider.md +0 -2
  576. package/docs/examples/messaging/update-push.md +0 -2
  577. package/docs/examples/messaging/update-resend-provider.md +0 -2
  578. package/docs/examples/messaging/update-sendgrid-provider.md +0 -2
  579. package/docs/examples/messaging/update-sms.md +0 -2
  580. package/docs/examples/messaging/update-smtp-provider.md +0 -2
  581. package/docs/examples/messaging/update-telesign-provider.md +0 -2
  582. package/docs/examples/messaging/update-textmagic-provider.md +0 -2
  583. package/docs/examples/messaging/update-topic.md +0 -2
  584. package/docs/examples/messaging/update-twilio-provider.md +0 -2
  585. package/docs/examples/messaging/update-vonage-provider.md +0 -2
  586. package/docs/examples/migrations/create-appwrite-migration.md +0 -5
  587. package/docs/examples/migrations/create-csv-export.md +0 -3
  588. package/docs/examples/migrations/create-csv-import.md +0 -4
  589. package/docs/examples/migrations/create-firebase-migration.md +0 -3
  590. package/docs/examples/migrations/create-n-host-migration.md +0 -8
  591. package/docs/examples/migrations/create-supabase-migration.md +0 -7
  592. package/docs/examples/migrations/delete.md +0 -2
  593. package/docs/examples/migrations/get-appwrite-report.md +0 -5
  594. package/docs/examples/migrations/get-firebase-report.md +0 -3
  595. package/docs/examples/migrations/get-n-host-report.md +0 -8
  596. package/docs/examples/migrations/get-supabase-report.md +0 -7
  597. package/docs/examples/migrations/get.md +0 -2
  598. package/docs/examples/migrations/list.md +0 -1
  599. package/docs/examples/migrations/retry.md +0 -2
  600. package/docs/examples/project/create-variable.md +0 -3
  601. package/docs/examples/project/delete-variable.md +0 -2
  602. package/docs/examples/project/get-usage.md +0 -3
  603. package/docs/examples/project/get-variable.md +0 -2
  604. package/docs/examples/project/list-variables.md +0 -1
  605. package/docs/examples/project/update-variable.md +0 -3
  606. package/docs/examples/projects/create-dev-key.md +0 -4
  607. package/docs/examples/projects/create-jwt.md +0 -3
  608. package/docs/examples/projects/create-key.md +0 -4
  609. package/docs/examples/projects/create-platform.md +0 -4
  610. package/docs/examples/projects/create-smtp-test.md +0 -6
  611. package/docs/examples/projects/create-webhook.md +0 -6
  612. package/docs/examples/projects/create.md +0 -4
  613. package/docs/examples/projects/delete-dev-key.md +0 -3
  614. package/docs/examples/projects/delete-email-template.md +0 -4
  615. package/docs/examples/projects/delete-key.md +0 -3
  616. package/docs/examples/projects/delete-platform.md +0 -3
  617. package/docs/examples/projects/delete-sms-template.md +0 -4
  618. package/docs/examples/projects/delete-webhook.md +0 -3
  619. package/docs/examples/projects/delete.md +0 -2
  620. package/docs/examples/projects/get-dev-key.md +0 -3
  621. package/docs/examples/projects/get-email-template.md +0 -4
  622. package/docs/examples/projects/get-key.md +0 -3
  623. package/docs/examples/projects/get-platform.md +0 -3
  624. package/docs/examples/projects/get-sms-template.md +0 -4
  625. package/docs/examples/projects/get-webhook.md +0 -3
  626. package/docs/examples/projects/get.md +0 -2
  627. package/docs/examples/projects/list-dev-keys.md +0 -2
  628. package/docs/examples/projects/list-keys.md +0 -2
  629. package/docs/examples/projects/list-platforms.md +0 -2
  630. package/docs/examples/projects/list-webhooks.md +0 -2
  631. package/docs/examples/projects/list.md +0 -1
  632. package/docs/examples/projects/update-api-status-all.md +0 -3
  633. package/docs/examples/projects/update-api-status.md +0 -4
  634. package/docs/examples/projects/update-auth-duration.md +0 -3
  635. package/docs/examples/projects/update-auth-limit.md +0 -3
  636. package/docs/examples/projects/update-auth-password-dictionary.md +0 -3
  637. package/docs/examples/projects/update-auth-password-history.md +0 -3
  638. package/docs/examples/projects/update-auth-sessions-limit.md +0 -3
  639. package/docs/examples/projects/update-auth-status.md +0 -4
  640. package/docs/examples/projects/update-dev-key.md +0 -5
  641. package/docs/examples/projects/update-email-template.md +0 -6
  642. package/docs/examples/projects/update-key.md +0 -5
  643. package/docs/examples/projects/update-memberships-privacy.md +0 -5
  644. package/docs/examples/projects/update-mock-numbers.md +0 -3
  645. package/docs/examples/projects/update-o-auth-2.md +0 -3
  646. package/docs/examples/projects/update-personal-data-check.md +0 -3
  647. package/docs/examples/projects/update-platform.md +0 -4
  648. package/docs/examples/projects/update-service-status-all.md +0 -3
  649. package/docs/examples/projects/update-service-status.md +0 -4
  650. package/docs/examples/projects/update-session-alerts.md +0 -3
  651. package/docs/examples/projects/update-session-invalidation.md +0 -3
  652. package/docs/examples/projects/update-sms-template.md +0 -5
  653. package/docs/examples/projects/update-smtp.md +0 -3
  654. package/docs/examples/projects/update-team.md +0 -3
  655. package/docs/examples/projects/update-webhook-signature.md +0 -3
  656. package/docs/examples/projects/update-webhook.md +0 -7
  657. package/docs/examples/projects/update.md +0 -3
  658. package/docs/examples/proxy/create-api-rule.md +0 -2
  659. package/docs/examples/proxy/create-function-rule.md +0 -3
  660. package/docs/examples/proxy/create-redirect-rule.md +0 -6
  661. package/docs/examples/proxy/create-site-rule.md +0 -3
  662. package/docs/examples/proxy/delete-rule.md +0 -2
  663. package/docs/examples/proxy/get-rule.md +0 -2
  664. package/docs/examples/proxy/list-rules.md +0 -1
  665. package/docs/examples/proxy/update-rule-verification.md +0 -2
  666. package/docs/examples/sites/create-deployment.md +0 -4
  667. package/docs/examples/sites/create-duplicate-deployment.md +0 -3
  668. package/docs/examples/sites/create-template-deployment.md +0 -7
  669. package/docs/examples/sites/create-variable.md +0 -4
  670. package/docs/examples/sites/create-vcs-deployment.md +0 -4
  671. package/docs/examples/sites/create.md +0 -5
  672. package/docs/examples/sites/delete-deployment.md +0 -3
  673. package/docs/examples/sites/delete-log.md +0 -3
  674. package/docs/examples/sites/delete-variable.md +0 -3
  675. package/docs/examples/sites/delete.md +0 -2
  676. package/docs/examples/sites/get-deployment-download.md +0 -3
  677. package/docs/examples/sites/get-deployment.md +0 -3
  678. package/docs/examples/sites/get-log.md +0 -3
  679. package/docs/examples/sites/get-template.md +0 -2
  680. package/docs/examples/sites/get-usage.md +0 -2
  681. package/docs/examples/sites/get-variable.md +0 -3
  682. package/docs/examples/sites/get.md +0 -2
  683. package/docs/examples/sites/list-deployments.md +0 -2
  684. package/docs/examples/sites/list-frameworks.md +0 -1
  685. package/docs/examples/sites/list-logs.md +0 -2
  686. package/docs/examples/sites/list-specifications.md +0 -1
  687. package/docs/examples/sites/list-templates.md +0 -1
  688. package/docs/examples/sites/list-usage.md +0 -1
  689. package/docs/examples/sites/list-variables.md +0 -2
  690. package/docs/examples/sites/list.md +0 -1
  691. package/docs/examples/sites/update-deployment-status.md +0 -3
  692. package/docs/examples/sites/update-site-deployment.md +0 -3
  693. package/docs/examples/sites/update-variable.md +0 -4
  694. package/docs/examples/sites/update.md +0 -4
  695. package/docs/examples/storage/create-bucket.md +0 -3
  696. package/docs/examples/storage/create-file.md +0 -4
  697. package/docs/examples/storage/delete-bucket.md +0 -2
  698. package/docs/examples/storage/delete-file.md +0 -3
  699. package/docs/examples/storage/get-bucket-usage.md +0 -2
  700. package/docs/examples/storage/get-bucket.md +0 -2
  701. package/docs/examples/storage/get-file-download.md +0 -3
  702. package/docs/examples/storage/get-file-preview.md +0 -3
  703. package/docs/examples/storage/get-file-view.md +0 -3
  704. package/docs/examples/storage/get-file.md +0 -3
  705. package/docs/examples/storage/get-usage.md +0 -1
  706. package/docs/examples/storage/list-buckets.md +0 -1
  707. package/docs/examples/storage/list-files.md +0 -2
  708. package/docs/examples/storage/update-bucket.md +0 -3
  709. package/docs/examples/storage/update-file.md +0 -3
  710. package/docs/examples/tablesdb/create-boolean-column.md +0 -5
  711. package/docs/examples/tablesdb/create-datetime-column.md +0 -5
  712. package/docs/examples/tablesdb/create-email-column.md +0 -5
  713. package/docs/examples/tablesdb/create-enum-column.md +0 -6
  714. package/docs/examples/tablesdb/create-float-column.md +0 -5
  715. package/docs/examples/tablesdb/create-index.md +0 -6
  716. package/docs/examples/tablesdb/create-integer-column.md +0 -5
  717. package/docs/examples/tablesdb/create-ip-column.md +0 -5
  718. package/docs/examples/tablesdb/create-line-column.md +0 -5
  719. package/docs/examples/tablesdb/create-operations.md +0 -2
  720. package/docs/examples/tablesdb/create-point-column.md +0 -5
  721. package/docs/examples/tablesdb/create-polygon-column.md +0 -5
  722. package/docs/examples/tablesdb/create-relationship-column.md +0 -5
  723. package/docs/examples/tablesdb/create-row.md +0 -5
  724. package/docs/examples/tablesdb/create-rows.md +0 -4
  725. package/docs/examples/tablesdb/create-string-column.md +0 -6
  726. package/docs/examples/tablesdb/create-table.md +0 -4
  727. package/docs/examples/tablesdb/create-transaction.md +0 -1
  728. package/docs/examples/tablesdb/create-url-column.md +0 -5
  729. package/docs/examples/tablesdb/create.md +0 -3
  730. package/docs/examples/tablesdb/decrement-row-column.md +0 -5
  731. package/docs/examples/tablesdb/delete-column.md +0 -4
  732. package/docs/examples/tablesdb/delete-index.md +0 -4
  733. package/docs/examples/tablesdb/delete-row.md +0 -4
  734. package/docs/examples/tablesdb/delete-rows.md +0 -3
  735. package/docs/examples/tablesdb/delete-table.md +0 -3
  736. package/docs/examples/tablesdb/delete-transaction.md +0 -2
  737. package/docs/examples/tablesdb/delete.md +0 -2
  738. package/docs/examples/tablesdb/get-column.md +0 -4
  739. package/docs/examples/tablesdb/get-index.md +0 -4
  740. package/docs/examples/tablesdb/get-row.md +0 -4
  741. package/docs/examples/tablesdb/get-table-usage.md +0 -3
  742. package/docs/examples/tablesdb/get-table.md +0 -3
  743. package/docs/examples/tablesdb/get-transaction.md +0 -2
  744. package/docs/examples/tablesdb/get-usage.md +0 -2
  745. package/docs/examples/tablesdb/get.md +0 -2
  746. package/docs/examples/tablesdb/increment-row-column.md +0 -5
  747. package/docs/examples/tablesdb/list-columns.md +0 -3
  748. package/docs/examples/tablesdb/list-indexes.md +0 -3
  749. package/docs/examples/tablesdb/list-row-logs.md +0 -4
  750. package/docs/examples/tablesdb/list-rows.md +0 -3
  751. package/docs/examples/tablesdb/list-table-logs.md +0 -3
  752. package/docs/examples/tablesdb/list-tables.md +0 -2
  753. package/docs/examples/tablesdb/list-transactions.md +0 -1
  754. package/docs/examples/tablesdb/list-usage.md +0 -1
  755. package/docs/examples/tablesdb/list.md +0 -1
  756. package/docs/examples/tablesdb/update-boolean-column.md +0 -6
  757. package/docs/examples/tablesdb/update-datetime-column.md +0 -6
  758. package/docs/examples/tablesdb/update-email-column.md +0 -6
  759. package/docs/examples/tablesdb/update-enum-column.md +0 -7
  760. package/docs/examples/tablesdb/update-float-column.md +0 -6
  761. package/docs/examples/tablesdb/update-integer-column.md +0 -6
  762. package/docs/examples/tablesdb/update-ip-column.md +0 -6
  763. package/docs/examples/tablesdb/update-line-column.md +0 -5
  764. package/docs/examples/tablesdb/update-point-column.md +0 -5
  765. package/docs/examples/tablesdb/update-polygon-column.md +0 -5
  766. package/docs/examples/tablesdb/update-relationship-column.md +0 -4
  767. package/docs/examples/tablesdb/update-row.md +0 -4
  768. package/docs/examples/tablesdb/update-rows.md +0 -3
  769. package/docs/examples/tablesdb/update-string-column.md +0 -6
  770. package/docs/examples/tablesdb/update-table.md +0 -4
  771. package/docs/examples/tablesdb/update-transaction.md +0 -2
  772. package/docs/examples/tablesdb/update-url-column.md +0 -6
  773. package/docs/examples/tablesdb/update.md +0 -3
  774. package/docs/examples/tablesdb/upsert-row.md +0 -4
  775. package/docs/examples/tablesdb/upsert-rows.md +0 -4
  776. package/docs/examples/teams/create-membership.md +0 -3
  777. package/docs/examples/teams/create.md +0 -3
  778. package/docs/examples/teams/delete-membership.md +0 -3
  779. package/docs/examples/teams/delete.md +0 -2
  780. package/docs/examples/teams/get-membership.md +0 -3
  781. package/docs/examples/teams/get-prefs.md +0 -2
  782. package/docs/examples/teams/get.md +0 -2
  783. package/docs/examples/teams/list-logs.md +0 -2
  784. package/docs/examples/teams/list-memberships.md +0 -2
  785. package/docs/examples/teams/list.md +0 -1
  786. package/docs/examples/teams/update-membership-status.md +0 -5
  787. package/docs/examples/teams/update-membership.md +0 -4
  788. package/docs/examples/teams/update-name.md +0 -3
  789. package/docs/examples/teams/update-prefs.md +0 -3
  790. package/docs/examples/tokens/create-file-token.md +0 -3
  791. package/docs/examples/tokens/delete.md +0 -2
  792. package/docs/examples/tokens/get.md +0 -2
  793. package/docs/examples/tokens/list.md +0 -3
  794. package/docs/examples/tokens/update.md +0 -2
  795. package/docs/examples/users/create-argon-2-user.md +0 -4
  796. package/docs/examples/users/create-bcrypt-user.md +0 -4
  797. package/docs/examples/users/create-jwt.md +0 -2
  798. package/docs/examples/users/create-md-5-user.md +0 -4
  799. package/docs/examples/users/create-mfa-recovery-codes.md +0 -2
  800. package/docs/examples/users/create-ph-pass-user.md +0 -4
  801. package/docs/examples/users/create-scrypt-modified-user.md +0 -7
  802. package/docs/examples/users/create-scrypt-user.md +0 -9
  803. package/docs/examples/users/create-session.md +0 -2
  804. package/docs/examples/users/create-sha-user.md +0 -4
  805. package/docs/examples/users/create-target.md +0 -5
  806. package/docs/examples/users/create-token.md +0 -2
  807. package/docs/examples/users/create.md +0 -2
  808. package/docs/examples/users/delete-identity.md +0 -2
  809. package/docs/examples/users/delete-mfa-authenticator.md +0 -3
  810. package/docs/examples/users/delete-session.md +0 -3
  811. package/docs/examples/users/delete-sessions.md +0 -2
  812. package/docs/examples/users/delete-target.md +0 -3
  813. package/docs/examples/users/delete.md +0 -2
  814. package/docs/examples/users/get-mfa-recovery-codes.md +0 -2
  815. package/docs/examples/users/get-prefs.md +0 -2
  816. package/docs/examples/users/get-target.md +0 -3
  817. package/docs/examples/users/get-usage.md +0 -1
  818. package/docs/examples/users/get.md +0 -2
  819. package/docs/examples/users/list-identities.md +0 -1
  820. package/docs/examples/users/list-logs.md +0 -2
  821. package/docs/examples/users/list-memberships.md +0 -2
  822. package/docs/examples/users/list-mfa-factors.md +0 -2
  823. package/docs/examples/users/list-sessions.md +0 -2
  824. package/docs/examples/users/list-targets.md +0 -2
  825. package/docs/examples/users/list.md +0 -1
  826. package/docs/examples/users/update-email-verification.md +0 -3
  827. package/docs/examples/users/update-email.md +0 -3
  828. package/docs/examples/users/update-labels.md +0 -3
  829. package/docs/examples/users/update-mfa-recovery-codes.md +0 -2
  830. package/docs/examples/users/update-mfa.md +0 -3
  831. package/docs/examples/users/update-name.md +0 -3
  832. package/docs/examples/users/update-password.md +0 -3
  833. package/docs/examples/users/update-phone-verification.md +0 -3
  834. package/docs/examples/users/update-phone.md +0 -3
  835. package/docs/examples/users/update-prefs.md +0 -3
  836. package/docs/examples/users/update-status.md +0 -3
  837. package/docs/examples/users/update-target.md +0 -3
  838. package/docs/examples/vcs/create-repository-detection.md +0 -4
  839. package/docs/examples/vcs/create-repository.md +0 -4
  840. package/docs/examples/vcs/delete-installation.md +0 -2
  841. package/docs/examples/vcs/get-installation.md +0 -2
  842. package/docs/examples/vcs/get-repository-contents.md +0 -3
  843. package/docs/examples/vcs/get-repository.md +0 -3
  844. package/docs/examples/vcs/list-installations.md +0 -1
  845. package/docs/examples/vcs/list-repositories.md +0 -3
  846. package/docs/examples/vcs/list-repository-branches.md +0 -3
  847. package/docs/examples/vcs/update-external-deployments.md +0 -4
  848. package/lib/commands/account.ts +0 -1867
  849. package/lib/commands/console.ts +0 -112
  850. package/lib/commands/databases.ts +0 -3272
  851. package/lib/commands/functions.ts +0 -1587
  852. package/lib/commands/graphql.ts +0 -110
  853. package/lib/commands/health.ts +0 -753
  854. package/lib/commands/locale.ts +0 -270
  855. package/lib/commands/messaging.ts +0 -2878
  856. package/lib/commands/migrations.ts +0 -754
  857. package/lib/commands/organizations.ts +0 -46
  858. package/lib/commands/project.ts +0 -266
  859. package/lib/commands/projects.ts +0 -2370
  860. package/lib/commands/proxy.ts +0 -357
  861. package/lib/commands/sites.ts +0 -1514
  862. package/lib/commands/storage.ts +0 -919
  863. package/lib/commands/tables-db.ts +0 -3260
  864. package/lib/commands/teams.ts +0 -609
  865. package/lib/commands/tokens.ts +0 -232
  866. package/lib/commands/users.ts +0 -1804
  867. package/lib/commands/vcs.ts +0 -428
  868. package/lib/exception.ts +0 -20
@@ -1,2042 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.messagingDeleteSubscriber = exports.messagingGetSubscriber = exports.messagingCreateSubscriber = exports.messagingListSubscribers = exports.messagingListTopicLogs = exports.messagingDeleteTopic = exports.messagingUpdateTopic = exports.messagingGetTopic = exports.messagingCreateTopic = exports.messagingListTopics = exports.messagingListSubscriberLogs = exports.messagingListProviderLogs = exports.messagingDeleteProvider = exports.messagingGetProvider = exports.messagingUpdateVonageProvider = exports.messagingCreateVonageProvider = exports.messagingUpdateTwilioProvider = exports.messagingCreateTwilioProvider = exports.messagingUpdateTextmagicProvider = exports.messagingCreateTextmagicProvider = exports.messagingUpdateTelesignProvider = exports.messagingCreateTelesignProvider = exports.messagingUpdateSMTPProvider = exports.messagingCreateSMTPProvider = exports.messagingUpdateSendgridProvider = exports.messagingCreateSendgridProvider = exports.messagingUpdateResendProvider = exports.messagingCreateResendProvider = exports.messagingUpdateMsg91Provider = exports.messagingCreateMsg91Provider = exports.messagingUpdateMailgunProvider = exports.messagingCreateMailgunProvider = exports.messagingUpdateFCMProvider = exports.messagingCreateFCMProvider = exports.messagingUpdateAPNSProvider = exports.messagingCreateAPNSProvider = exports.messagingListProviders = exports.messagingListTargets = exports.messagingListMessageLogs = exports.messagingDelete = exports.messagingGetMessage = exports.messagingUpdateSMS = exports.messagingCreateSMS = exports.messagingUpdatePush = exports.messagingCreatePush = exports.messagingUpdateEmail = exports.messagingCreateEmail = exports.messagingListMessages = exports.messaging = void 0;
4
- const utils_1 = require("../utils");
5
- const commander_1 = require("commander");
6
- const sdks_1 = require("../sdks");
7
- const parser_1 = require("../parser");
8
- const web_1 = require("stream/web");
9
- function convertReadStreamToReadableStream(readStream) {
10
- return new web_1.ReadableStream({
11
- start(controller) {
12
- readStream.on("data", (chunk) => {
13
- controller.enqueue(chunk);
14
- });
15
- readStream.on("end", () => {
16
- controller.close();
17
- });
18
- readStream.on("error", (err) => {
19
- controller.error(err);
20
- });
21
- },
22
- cancel() {
23
- readStream.destroy();
24
- },
25
- });
26
- }
27
- exports.messaging = new commander_1.Command("messaging").description(parser_1.commandDescriptions['messaging'] ?? '').configureHelp({
28
- helpWidth: process.stdout.columns || 80
29
- });
30
- const messagingListMessages = async ({ queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
31
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
32
- sdk;
33
- let apiPath = '/messaging/messages';
34
- let payload = {};
35
- if (typeof queries !== 'undefined') {
36
- payload['queries'] = queries;
37
- }
38
- if (typeof search !== 'undefined') {
39
- payload['search'] = search;
40
- }
41
- if (typeof total !== 'undefined') {
42
- payload['total'] = total;
43
- }
44
- let response = undefined;
45
- response = await client.call('get', apiPath, {}, payload);
46
- if (parseOutput) {
47
- if (showConsole) {
48
- (0, utils_1.showConsoleLink)('messaging', 'listMessages');
49
- }
50
- else {
51
- (0, parser_1.parse)(response);
52
- }
53
- }
54
- return response;
55
- };
56
- exports.messagingListMessages = messagingListMessages;
57
- const messagingCreateEmail = async ({ messageId, subject, content, topics, users, targets, cc, bcc, attachments, draft, html, scheduledAt, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
58
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
59
- sdk;
60
- let apiPath = '/messaging/messages/email';
61
- let payload = {};
62
- if (typeof messageId !== 'undefined') {
63
- payload['messageId'] = messageId;
64
- }
65
- if (typeof subject !== 'undefined') {
66
- payload['subject'] = subject;
67
- }
68
- if (typeof content !== 'undefined') {
69
- payload['content'] = content;
70
- }
71
- topics = topics === true ? [] : topics;
72
- if (typeof topics !== 'undefined') {
73
- payload['topics'] = topics;
74
- }
75
- users = users === true ? [] : users;
76
- if (typeof users !== 'undefined') {
77
- payload['users'] = users;
78
- }
79
- targets = targets === true ? [] : targets;
80
- if (typeof targets !== 'undefined') {
81
- payload['targets'] = targets;
82
- }
83
- cc = cc === true ? [] : cc;
84
- if (typeof cc !== 'undefined') {
85
- payload['cc'] = cc;
86
- }
87
- bcc = bcc === true ? [] : bcc;
88
- if (typeof bcc !== 'undefined') {
89
- payload['bcc'] = bcc;
90
- }
91
- attachments = attachments === true ? [] : attachments;
92
- if (typeof attachments !== 'undefined') {
93
- payload['attachments'] = attachments;
94
- }
95
- if (typeof draft !== 'undefined') {
96
- payload['draft'] = draft;
97
- }
98
- if (typeof html !== 'undefined') {
99
- payload['html'] = html;
100
- }
101
- if (typeof scheduledAt !== 'undefined') {
102
- payload['scheduledAt'] = scheduledAt;
103
- }
104
- let response = undefined;
105
- response = await client.call('post', apiPath, {
106
- 'content-type': 'application/json',
107
- }, payload);
108
- if (parseOutput) {
109
- (0, parser_1.parse)(response);
110
- }
111
- return response;
112
- };
113
- exports.messagingCreateEmail = messagingCreateEmail;
114
- const messagingUpdateEmail = async ({ messageId, topics, users, targets, subject, content, draft, html, cc, bcc, scheduledAt, attachments, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
115
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
116
- sdk;
117
- let apiPath = '/messaging/messages/email/{messageId}'.replace('{messageId}', messageId);
118
- let payload = {};
119
- topics = topics === true ? [] : topics;
120
- if (typeof topics !== 'undefined') {
121
- payload['topics'] = topics;
122
- }
123
- users = users === true ? [] : users;
124
- if (typeof users !== 'undefined') {
125
- payload['users'] = users;
126
- }
127
- targets = targets === true ? [] : targets;
128
- if (typeof targets !== 'undefined') {
129
- payload['targets'] = targets;
130
- }
131
- if (typeof subject !== 'undefined') {
132
- payload['subject'] = subject;
133
- }
134
- if (typeof content !== 'undefined') {
135
- payload['content'] = content;
136
- }
137
- if (typeof draft !== 'undefined') {
138
- payload['draft'] = draft;
139
- }
140
- if (typeof html !== 'undefined') {
141
- payload['html'] = html;
142
- }
143
- cc = cc === true ? [] : cc;
144
- if (typeof cc !== 'undefined') {
145
- payload['cc'] = cc;
146
- }
147
- bcc = bcc === true ? [] : bcc;
148
- if (typeof bcc !== 'undefined') {
149
- payload['bcc'] = bcc;
150
- }
151
- if (typeof scheduledAt !== 'undefined') {
152
- payload['scheduledAt'] = scheduledAt;
153
- }
154
- attachments = attachments === true ? [] : attachments;
155
- if (typeof attachments !== 'undefined') {
156
- payload['attachments'] = attachments;
157
- }
158
- let response = undefined;
159
- response = await client.call('patch', apiPath, {
160
- 'content-type': 'application/json',
161
- }, payload);
162
- if (parseOutput) {
163
- (0, parser_1.parse)(response);
164
- }
165
- return response;
166
- };
167
- exports.messagingUpdateEmail = messagingUpdateEmail;
168
- 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 }) => {
169
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
170
- sdk;
171
- let apiPath = '/messaging/messages/push';
172
- let payload = {};
173
- if (typeof messageId !== 'undefined') {
174
- payload['messageId'] = messageId;
175
- }
176
- if (typeof title !== 'undefined') {
177
- payload['title'] = title;
178
- }
179
- if (typeof body !== 'undefined') {
180
- payload['body'] = body;
181
- }
182
- topics = topics === true ? [] : topics;
183
- if (typeof topics !== 'undefined') {
184
- payload['topics'] = topics;
185
- }
186
- users = users === true ? [] : users;
187
- if (typeof users !== 'undefined') {
188
- payload['users'] = users;
189
- }
190
- targets = targets === true ? [] : targets;
191
- if (typeof targets !== 'undefined') {
192
- payload['targets'] = targets;
193
- }
194
- if (typeof data !== 'undefined') {
195
- payload['data'] = JSON.parse(data);
196
- }
197
- if (typeof action !== 'undefined') {
198
- payload['action'] = action;
199
- }
200
- if (typeof image !== 'undefined') {
201
- payload['image'] = image;
202
- }
203
- if (typeof icon !== 'undefined') {
204
- payload['icon'] = icon;
205
- }
206
- if (typeof sound !== 'undefined') {
207
- payload['sound'] = sound;
208
- }
209
- if (typeof color !== 'undefined') {
210
- payload['color'] = color;
211
- }
212
- if (typeof tag !== 'undefined') {
213
- payload['tag'] = tag;
214
- }
215
- if (typeof badge !== 'undefined') {
216
- payload['badge'] = badge;
217
- }
218
- if (typeof draft !== 'undefined') {
219
- payload['draft'] = draft;
220
- }
221
- if (typeof scheduledAt !== 'undefined') {
222
- payload['scheduledAt'] = scheduledAt;
223
- }
224
- if (typeof contentAvailable !== 'undefined') {
225
- payload['contentAvailable'] = contentAvailable;
226
- }
227
- if (typeof critical !== 'undefined') {
228
- payload['critical'] = critical;
229
- }
230
- if (typeof priority !== 'undefined') {
231
- payload['priority'] = priority;
232
- }
233
- let response = undefined;
234
- response = await client.call('post', apiPath, {
235
- 'content-type': 'application/json',
236
- }, payload);
237
- if (parseOutput) {
238
- (0, parser_1.parse)(response);
239
- }
240
- return response;
241
- };
242
- exports.messagingCreatePush = messagingCreatePush;
243
- 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 }) => {
244
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
245
- sdk;
246
- let apiPath = '/messaging/messages/push/{messageId}'.replace('{messageId}', messageId);
247
- let payload = {};
248
- topics = topics === true ? [] : topics;
249
- if (typeof topics !== 'undefined') {
250
- payload['topics'] = topics;
251
- }
252
- users = users === true ? [] : users;
253
- if (typeof users !== 'undefined') {
254
- payload['users'] = users;
255
- }
256
- targets = targets === true ? [] : targets;
257
- if (typeof targets !== 'undefined') {
258
- payload['targets'] = targets;
259
- }
260
- if (typeof title !== 'undefined') {
261
- payload['title'] = title;
262
- }
263
- if (typeof body !== 'undefined') {
264
- payload['body'] = body;
265
- }
266
- if (typeof data !== 'undefined') {
267
- payload['data'] = JSON.parse(data);
268
- }
269
- if (typeof action !== 'undefined') {
270
- payload['action'] = action;
271
- }
272
- if (typeof image !== 'undefined') {
273
- payload['image'] = image;
274
- }
275
- if (typeof icon !== 'undefined') {
276
- payload['icon'] = icon;
277
- }
278
- if (typeof sound !== 'undefined') {
279
- payload['sound'] = sound;
280
- }
281
- if (typeof color !== 'undefined') {
282
- payload['color'] = color;
283
- }
284
- if (typeof tag !== 'undefined') {
285
- payload['tag'] = tag;
286
- }
287
- if (typeof badge !== 'undefined') {
288
- payload['badge'] = badge;
289
- }
290
- if (typeof draft !== 'undefined') {
291
- payload['draft'] = draft;
292
- }
293
- if (typeof scheduledAt !== 'undefined') {
294
- payload['scheduledAt'] = scheduledAt;
295
- }
296
- if (typeof contentAvailable !== 'undefined') {
297
- payload['contentAvailable'] = contentAvailable;
298
- }
299
- if (typeof critical !== 'undefined') {
300
- payload['critical'] = critical;
301
- }
302
- if (typeof priority !== 'undefined') {
303
- payload['priority'] = priority;
304
- }
305
- let response = undefined;
306
- response = await client.call('patch', apiPath, {
307
- 'content-type': 'application/json',
308
- }, payload);
309
- if (parseOutput) {
310
- (0, parser_1.parse)(response);
311
- }
312
- return response;
313
- };
314
- exports.messagingUpdatePush = messagingUpdatePush;
315
- const messagingCreateSMS = async ({ messageId, content, topics, users, targets, draft, scheduledAt, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
316
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
317
- sdk;
318
- let apiPath = '/messaging/messages/sms';
319
- let payload = {};
320
- if (typeof messageId !== 'undefined') {
321
- payload['messageId'] = messageId;
322
- }
323
- if (typeof content !== 'undefined') {
324
- payload['content'] = content;
325
- }
326
- topics = topics === true ? [] : topics;
327
- if (typeof topics !== 'undefined') {
328
- payload['topics'] = topics;
329
- }
330
- users = users === true ? [] : users;
331
- if (typeof users !== 'undefined') {
332
- payload['users'] = users;
333
- }
334
- targets = targets === true ? [] : targets;
335
- if (typeof targets !== 'undefined') {
336
- payload['targets'] = targets;
337
- }
338
- if (typeof draft !== 'undefined') {
339
- payload['draft'] = draft;
340
- }
341
- if (typeof scheduledAt !== 'undefined') {
342
- payload['scheduledAt'] = scheduledAt;
343
- }
344
- let response = undefined;
345
- response = await client.call('post', apiPath, {
346
- 'content-type': 'application/json',
347
- }, payload);
348
- if (parseOutput) {
349
- (0, parser_1.parse)(response);
350
- }
351
- return response;
352
- };
353
- exports.messagingCreateSMS = messagingCreateSMS;
354
- const messagingUpdateSMS = async ({ messageId, topics, users, targets, content, draft, scheduledAt, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
355
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
356
- sdk;
357
- let apiPath = '/messaging/messages/sms/{messageId}'.replace('{messageId}', messageId);
358
- let payload = {};
359
- topics = topics === true ? [] : topics;
360
- if (typeof topics !== 'undefined') {
361
- payload['topics'] = topics;
362
- }
363
- users = users === true ? [] : users;
364
- if (typeof users !== 'undefined') {
365
- payload['users'] = users;
366
- }
367
- targets = targets === true ? [] : targets;
368
- if (typeof targets !== 'undefined') {
369
- payload['targets'] = targets;
370
- }
371
- if (typeof content !== 'undefined') {
372
- payload['content'] = content;
373
- }
374
- if (typeof draft !== 'undefined') {
375
- payload['draft'] = draft;
376
- }
377
- if (typeof scheduledAt !== 'undefined') {
378
- payload['scheduledAt'] = scheduledAt;
379
- }
380
- let response = undefined;
381
- response = await client.call('patch', apiPath, {
382
- 'content-type': 'application/json',
383
- }, payload);
384
- if (parseOutput) {
385
- (0, parser_1.parse)(response);
386
- }
387
- return response;
388
- };
389
- exports.messagingUpdateSMS = messagingUpdateSMS;
390
- const messagingGetMessage = async ({ messageId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
391
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
392
- sdk;
393
- let apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
394
- let payload = {};
395
- let response = undefined;
396
- response = await client.call('get', apiPath, {}, payload);
397
- if (parseOutput) {
398
- if (showConsole) {
399
- (0, utils_1.showConsoleLink)('messaging', 'getMessage', messageId);
400
- }
401
- else {
402
- (0, parser_1.parse)(response);
403
- }
404
- }
405
- return response;
406
- };
407
- exports.messagingGetMessage = messagingGetMessage;
408
- const messagingDelete = async ({ messageId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
409
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
410
- sdk;
411
- let apiPath = '/messaging/messages/{messageId}'.replace('{messageId}', messageId);
412
- let payload = {};
413
- let response = undefined;
414
- response = await client.call('delete', apiPath, {
415
- 'content-type': 'application/json',
416
- }, payload);
417
- if (parseOutput) {
418
- (0, parser_1.parse)(response);
419
- }
420
- return response;
421
- };
422
- exports.messagingDelete = messagingDelete;
423
- const messagingListMessageLogs = async ({ messageId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
424
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
425
- sdk;
426
- let apiPath = '/messaging/messages/{messageId}/logs'.replace('{messageId}', messageId);
427
- let payload = {};
428
- if (typeof queries !== 'undefined') {
429
- payload['queries'] = queries;
430
- }
431
- if (typeof total !== 'undefined') {
432
- payload['total'] = total;
433
- }
434
- let response = undefined;
435
- response = await client.call('get', apiPath, {}, payload);
436
- if (parseOutput) {
437
- if (showConsole) {
438
- (0, utils_1.showConsoleLink)('messaging', 'listMessageLogs', messageId);
439
- }
440
- else {
441
- (0, parser_1.parse)(response);
442
- }
443
- }
444
- return response;
445
- };
446
- exports.messagingListMessageLogs = messagingListMessageLogs;
447
- const messagingListTargets = async ({ messageId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
448
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
449
- sdk;
450
- let apiPath = '/messaging/messages/{messageId}/targets'.replace('{messageId}', messageId);
451
- let payload = {};
452
- if (typeof queries !== 'undefined') {
453
- payload['queries'] = queries;
454
- }
455
- if (typeof total !== 'undefined') {
456
- payload['total'] = total;
457
- }
458
- let response = undefined;
459
- response = await client.call('get', apiPath, {}, payload);
460
- if (parseOutput) {
461
- (0, parser_1.parse)(response);
462
- }
463
- return response;
464
- };
465
- exports.messagingListTargets = messagingListTargets;
466
- const messagingListProviders = async ({ queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
467
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
468
- sdk;
469
- let apiPath = '/messaging/providers';
470
- let payload = {};
471
- if (typeof queries !== 'undefined') {
472
- payload['queries'] = queries;
473
- }
474
- if (typeof search !== 'undefined') {
475
- payload['search'] = search;
476
- }
477
- if (typeof total !== 'undefined') {
478
- payload['total'] = total;
479
- }
480
- let response = undefined;
481
- response = await client.call('get', apiPath, {}, payload);
482
- if (parseOutput) {
483
- if (showConsole) {
484
- (0, utils_1.showConsoleLink)('messaging', 'listProviders');
485
- }
486
- else {
487
- (0, parser_1.parse)(response);
488
- }
489
- }
490
- return response;
491
- };
492
- exports.messagingListProviders = messagingListProviders;
493
- const messagingCreateAPNSProvider = async ({ providerId, name, authKey, authKeyId, teamId, bundleId, sandbox, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
494
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
495
- sdk;
496
- let apiPath = '/messaging/providers/apns';
497
- let payload = {};
498
- if (typeof providerId !== 'undefined') {
499
- payload['providerId'] = providerId;
500
- }
501
- if (typeof name !== 'undefined') {
502
- payload['name'] = name;
503
- }
504
- if (typeof authKey !== 'undefined') {
505
- payload['authKey'] = authKey;
506
- }
507
- if (typeof authKeyId !== 'undefined') {
508
- payload['authKeyId'] = authKeyId;
509
- }
510
- if (typeof teamId !== 'undefined') {
511
- payload['teamId'] = teamId;
512
- }
513
- if (typeof bundleId !== 'undefined') {
514
- payload['bundleId'] = bundleId;
515
- }
516
- if (typeof sandbox !== 'undefined') {
517
- payload['sandbox'] = sandbox;
518
- }
519
- if (typeof enabled !== 'undefined') {
520
- payload['enabled'] = enabled;
521
- }
522
- let response = undefined;
523
- response = await client.call('post', apiPath, {
524
- 'content-type': 'application/json',
525
- }, payload);
526
- if (parseOutput) {
527
- (0, parser_1.parse)(response);
528
- }
529
- return response;
530
- };
531
- exports.messagingCreateAPNSProvider = messagingCreateAPNSProvider;
532
- const messagingUpdateAPNSProvider = async ({ providerId, name, enabled, authKey, authKeyId, teamId, bundleId, sandbox, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
533
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
534
- sdk;
535
- let apiPath = '/messaging/providers/apns/{providerId}'.replace('{providerId}', providerId);
536
- let payload = {};
537
- if (typeof name !== 'undefined') {
538
- payload['name'] = name;
539
- }
540
- if (typeof enabled !== 'undefined') {
541
- payload['enabled'] = enabled;
542
- }
543
- if (typeof authKey !== 'undefined') {
544
- payload['authKey'] = authKey;
545
- }
546
- if (typeof authKeyId !== 'undefined') {
547
- payload['authKeyId'] = authKeyId;
548
- }
549
- if (typeof teamId !== 'undefined') {
550
- payload['teamId'] = teamId;
551
- }
552
- if (typeof bundleId !== 'undefined') {
553
- payload['bundleId'] = bundleId;
554
- }
555
- if (typeof sandbox !== 'undefined') {
556
- payload['sandbox'] = sandbox;
557
- }
558
- let response = undefined;
559
- response = await client.call('patch', apiPath, {
560
- 'content-type': 'application/json',
561
- }, payload);
562
- if (parseOutput) {
563
- (0, parser_1.parse)(response);
564
- }
565
- return response;
566
- };
567
- exports.messagingUpdateAPNSProvider = messagingUpdateAPNSProvider;
568
- const messagingCreateFCMProvider = async ({ providerId, name, serviceAccountJSON, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
569
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
570
- sdk;
571
- let apiPath = '/messaging/providers/fcm';
572
- let payload = {};
573
- if (typeof providerId !== 'undefined') {
574
- payload['providerId'] = providerId;
575
- }
576
- if (typeof name !== 'undefined') {
577
- payload['name'] = name;
578
- }
579
- if (typeof serviceAccountJSON !== 'undefined') {
580
- payload['serviceAccountJSON'] = JSON.parse(serviceAccountJSON);
581
- }
582
- if (typeof enabled !== 'undefined') {
583
- payload['enabled'] = enabled;
584
- }
585
- let response = undefined;
586
- response = await client.call('post', apiPath, {
587
- 'content-type': 'application/json',
588
- }, payload);
589
- if (parseOutput) {
590
- (0, parser_1.parse)(response);
591
- }
592
- return response;
593
- };
594
- exports.messagingCreateFCMProvider = messagingCreateFCMProvider;
595
- const messagingUpdateFCMProvider = async ({ providerId, name, enabled, serviceAccountJSON, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
596
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
597
- sdk;
598
- let apiPath = '/messaging/providers/fcm/{providerId}'.replace('{providerId}', providerId);
599
- let payload = {};
600
- if (typeof name !== 'undefined') {
601
- payload['name'] = name;
602
- }
603
- if (typeof enabled !== 'undefined') {
604
- payload['enabled'] = enabled;
605
- }
606
- if (typeof serviceAccountJSON !== 'undefined') {
607
- payload['serviceAccountJSON'] = JSON.parse(serviceAccountJSON);
608
- }
609
- let response = undefined;
610
- response = await client.call('patch', apiPath, {
611
- 'content-type': 'application/json',
612
- }, payload);
613
- if (parseOutput) {
614
- (0, parser_1.parse)(response);
615
- }
616
- return response;
617
- };
618
- exports.messagingUpdateFCMProvider = messagingUpdateFCMProvider;
619
- const messagingCreateMailgunProvider = async ({ providerId, name, apiKey, domain, isEuRegion, fromName, fromEmail, replyToName, replyToEmail, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
620
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
621
- sdk;
622
- let apiPath = '/messaging/providers/mailgun';
623
- let payload = {};
624
- if (typeof providerId !== 'undefined') {
625
- payload['providerId'] = providerId;
626
- }
627
- if (typeof name !== 'undefined') {
628
- payload['name'] = name;
629
- }
630
- if (typeof apiKey !== 'undefined') {
631
- payload['apiKey'] = apiKey;
632
- }
633
- if (typeof domain !== 'undefined') {
634
- payload['domain'] = domain;
635
- }
636
- if (typeof isEuRegion !== 'undefined') {
637
- payload['isEuRegion'] = isEuRegion;
638
- }
639
- if (typeof fromName !== 'undefined') {
640
- payload['fromName'] = fromName;
641
- }
642
- if (typeof fromEmail !== 'undefined') {
643
- payload['fromEmail'] = fromEmail;
644
- }
645
- if (typeof replyToName !== 'undefined') {
646
- payload['replyToName'] = replyToName;
647
- }
648
- if (typeof replyToEmail !== 'undefined') {
649
- payload['replyToEmail'] = replyToEmail;
650
- }
651
- if (typeof enabled !== 'undefined') {
652
- payload['enabled'] = enabled;
653
- }
654
- let response = undefined;
655
- response = await client.call('post', apiPath, {
656
- 'content-type': 'application/json',
657
- }, payload);
658
- if (parseOutput) {
659
- (0, parser_1.parse)(response);
660
- }
661
- return response;
662
- };
663
- exports.messagingCreateMailgunProvider = messagingCreateMailgunProvider;
664
- const messagingUpdateMailgunProvider = async ({ providerId, name, apiKey, domain, isEuRegion, enabled, fromName, fromEmail, replyToName, replyToEmail, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
665
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
666
- sdk;
667
- let apiPath = '/messaging/providers/mailgun/{providerId}'.replace('{providerId}', providerId);
668
- let payload = {};
669
- if (typeof name !== 'undefined') {
670
- payload['name'] = name;
671
- }
672
- if (typeof apiKey !== 'undefined') {
673
- payload['apiKey'] = apiKey;
674
- }
675
- if (typeof domain !== 'undefined') {
676
- payload['domain'] = domain;
677
- }
678
- if (typeof isEuRegion !== 'undefined') {
679
- payload['isEuRegion'] = isEuRegion;
680
- }
681
- if (typeof enabled !== 'undefined') {
682
- payload['enabled'] = enabled;
683
- }
684
- if (typeof fromName !== 'undefined') {
685
- payload['fromName'] = fromName;
686
- }
687
- if (typeof fromEmail !== 'undefined') {
688
- payload['fromEmail'] = fromEmail;
689
- }
690
- if (typeof replyToName !== 'undefined') {
691
- payload['replyToName'] = replyToName;
692
- }
693
- if (typeof replyToEmail !== 'undefined') {
694
- payload['replyToEmail'] = replyToEmail;
695
- }
696
- let response = undefined;
697
- response = await client.call('patch', apiPath, {
698
- 'content-type': 'application/json',
699
- }, payload);
700
- if (parseOutput) {
701
- (0, parser_1.parse)(response);
702
- }
703
- return response;
704
- };
705
- exports.messagingUpdateMailgunProvider = messagingUpdateMailgunProvider;
706
- const messagingCreateMsg91Provider = async ({ providerId, name, templateId, senderId, authKey, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
707
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
708
- sdk;
709
- let apiPath = '/messaging/providers/msg91';
710
- let payload = {};
711
- if (typeof providerId !== 'undefined') {
712
- payload['providerId'] = providerId;
713
- }
714
- if (typeof name !== 'undefined') {
715
- payload['name'] = name;
716
- }
717
- if (typeof templateId !== 'undefined') {
718
- payload['templateId'] = templateId;
719
- }
720
- if (typeof senderId !== 'undefined') {
721
- payload['senderId'] = senderId;
722
- }
723
- if (typeof authKey !== 'undefined') {
724
- payload['authKey'] = authKey;
725
- }
726
- if (typeof enabled !== 'undefined') {
727
- payload['enabled'] = enabled;
728
- }
729
- let response = undefined;
730
- response = await client.call('post', apiPath, {
731
- 'content-type': 'application/json',
732
- }, payload);
733
- if (parseOutput) {
734
- (0, parser_1.parse)(response);
735
- }
736
- return response;
737
- };
738
- exports.messagingCreateMsg91Provider = messagingCreateMsg91Provider;
739
- const messagingUpdateMsg91Provider = async ({ providerId, name, enabled, templateId, senderId, authKey, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
740
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
741
- sdk;
742
- let apiPath = '/messaging/providers/msg91/{providerId}'.replace('{providerId}', providerId);
743
- let payload = {};
744
- if (typeof name !== 'undefined') {
745
- payload['name'] = name;
746
- }
747
- if (typeof enabled !== 'undefined') {
748
- payload['enabled'] = enabled;
749
- }
750
- if (typeof templateId !== 'undefined') {
751
- payload['templateId'] = templateId;
752
- }
753
- if (typeof senderId !== 'undefined') {
754
- payload['senderId'] = senderId;
755
- }
756
- if (typeof authKey !== 'undefined') {
757
- payload['authKey'] = authKey;
758
- }
759
- let response = undefined;
760
- response = await client.call('patch', apiPath, {
761
- 'content-type': 'application/json',
762
- }, payload);
763
- if (parseOutput) {
764
- (0, parser_1.parse)(response);
765
- }
766
- return response;
767
- };
768
- exports.messagingUpdateMsg91Provider = messagingUpdateMsg91Provider;
769
- const messagingCreateResendProvider = async ({ providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
770
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
771
- sdk;
772
- let apiPath = '/messaging/providers/resend';
773
- let payload = {};
774
- if (typeof providerId !== 'undefined') {
775
- payload['providerId'] = providerId;
776
- }
777
- if (typeof name !== 'undefined') {
778
- payload['name'] = name;
779
- }
780
- if (typeof apiKey !== 'undefined') {
781
- payload['apiKey'] = apiKey;
782
- }
783
- if (typeof fromName !== 'undefined') {
784
- payload['fromName'] = fromName;
785
- }
786
- if (typeof fromEmail !== 'undefined') {
787
- payload['fromEmail'] = fromEmail;
788
- }
789
- if (typeof replyToName !== 'undefined') {
790
- payload['replyToName'] = replyToName;
791
- }
792
- if (typeof replyToEmail !== 'undefined') {
793
- payload['replyToEmail'] = replyToEmail;
794
- }
795
- if (typeof enabled !== 'undefined') {
796
- payload['enabled'] = enabled;
797
- }
798
- let response = undefined;
799
- response = await client.call('post', apiPath, {
800
- 'content-type': 'application/json',
801
- }, payload);
802
- if (parseOutput) {
803
- (0, parser_1.parse)(response);
804
- }
805
- return response;
806
- };
807
- exports.messagingCreateResendProvider = messagingCreateResendProvider;
808
- const messagingUpdateResendProvider = async ({ providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
809
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
810
- sdk;
811
- let apiPath = '/messaging/providers/resend/{providerId}'.replace('{providerId}', providerId);
812
- let payload = {};
813
- if (typeof name !== 'undefined') {
814
- payload['name'] = name;
815
- }
816
- if (typeof enabled !== 'undefined') {
817
- payload['enabled'] = enabled;
818
- }
819
- if (typeof apiKey !== 'undefined') {
820
- payload['apiKey'] = apiKey;
821
- }
822
- if (typeof fromName !== 'undefined') {
823
- payload['fromName'] = fromName;
824
- }
825
- if (typeof fromEmail !== 'undefined') {
826
- payload['fromEmail'] = fromEmail;
827
- }
828
- if (typeof replyToName !== 'undefined') {
829
- payload['replyToName'] = replyToName;
830
- }
831
- if (typeof replyToEmail !== 'undefined') {
832
- payload['replyToEmail'] = replyToEmail;
833
- }
834
- let response = undefined;
835
- response = await client.call('patch', apiPath, {
836
- 'content-type': 'application/json',
837
- }, payload);
838
- if (parseOutput) {
839
- (0, parser_1.parse)(response);
840
- }
841
- return response;
842
- };
843
- exports.messagingUpdateResendProvider = messagingUpdateResendProvider;
844
- const messagingCreateSendgridProvider = async ({ providerId, name, apiKey, fromName, fromEmail, replyToName, replyToEmail, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
845
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
846
- sdk;
847
- let apiPath = '/messaging/providers/sendgrid';
848
- let payload = {};
849
- if (typeof providerId !== 'undefined') {
850
- payload['providerId'] = providerId;
851
- }
852
- if (typeof name !== 'undefined') {
853
- payload['name'] = name;
854
- }
855
- if (typeof apiKey !== 'undefined') {
856
- payload['apiKey'] = apiKey;
857
- }
858
- if (typeof fromName !== 'undefined') {
859
- payload['fromName'] = fromName;
860
- }
861
- if (typeof fromEmail !== 'undefined') {
862
- payload['fromEmail'] = fromEmail;
863
- }
864
- if (typeof replyToName !== 'undefined') {
865
- payload['replyToName'] = replyToName;
866
- }
867
- if (typeof replyToEmail !== 'undefined') {
868
- payload['replyToEmail'] = replyToEmail;
869
- }
870
- if (typeof enabled !== 'undefined') {
871
- payload['enabled'] = enabled;
872
- }
873
- let response = undefined;
874
- response = await client.call('post', apiPath, {
875
- 'content-type': 'application/json',
876
- }, payload);
877
- if (parseOutput) {
878
- (0, parser_1.parse)(response);
879
- }
880
- return response;
881
- };
882
- exports.messagingCreateSendgridProvider = messagingCreateSendgridProvider;
883
- const messagingUpdateSendgridProvider = async ({ providerId, name, enabled, apiKey, fromName, fromEmail, replyToName, replyToEmail, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
884
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
885
- sdk;
886
- let apiPath = '/messaging/providers/sendgrid/{providerId}'.replace('{providerId}', providerId);
887
- let payload = {};
888
- if (typeof name !== 'undefined') {
889
- payload['name'] = name;
890
- }
891
- if (typeof enabled !== 'undefined') {
892
- payload['enabled'] = enabled;
893
- }
894
- if (typeof apiKey !== 'undefined') {
895
- payload['apiKey'] = apiKey;
896
- }
897
- if (typeof fromName !== 'undefined') {
898
- payload['fromName'] = fromName;
899
- }
900
- if (typeof fromEmail !== 'undefined') {
901
- payload['fromEmail'] = fromEmail;
902
- }
903
- if (typeof replyToName !== 'undefined') {
904
- payload['replyToName'] = replyToName;
905
- }
906
- if (typeof replyToEmail !== 'undefined') {
907
- payload['replyToEmail'] = replyToEmail;
908
- }
909
- let response = undefined;
910
- response = await client.call('patch', apiPath, {
911
- 'content-type': 'application/json',
912
- }, payload);
913
- if (parseOutput) {
914
- (0, parser_1.parse)(response);
915
- }
916
- return response;
917
- };
918
- exports.messagingUpdateSendgridProvider = messagingUpdateSendgridProvider;
919
- const messagingCreateSMTPProvider = async ({ providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
920
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
921
- sdk;
922
- let apiPath = '/messaging/providers/smtp';
923
- let payload = {};
924
- if (typeof providerId !== 'undefined') {
925
- payload['providerId'] = providerId;
926
- }
927
- if (typeof name !== 'undefined') {
928
- payload['name'] = name;
929
- }
930
- if (typeof host !== 'undefined') {
931
- payload['host'] = host;
932
- }
933
- if (typeof port !== 'undefined') {
934
- payload['port'] = port;
935
- }
936
- if (typeof username !== 'undefined') {
937
- payload['username'] = username;
938
- }
939
- if (typeof password !== 'undefined') {
940
- payload['password'] = password;
941
- }
942
- if (typeof encryption !== 'undefined') {
943
- payload['encryption'] = encryption;
944
- }
945
- if (typeof autoTLS !== 'undefined') {
946
- payload['autoTLS'] = autoTLS;
947
- }
948
- if (typeof mailer !== 'undefined') {
949
- payload['mailer'] = mailer;
950
- }
951
- if (typeof fromName !== 'undefined') {
952
- payload['fromName'] = fromName;
953
- }
954
- if (typeof fromEmail !== 'undefined') {
955
- payload['fromEmail'] = fromEmail;
956
- }
957
- if (typeof replyToName !== 'undefined') {
958
- payload['replyToName'] = replyToName;
959
- }
960
- if (typeof replyToEmail !== 'undefined') {
961
- payload['replyToEmail'] = replyToEmail;
962
- }
963
- if (typeof enabled !== 'undefined') {
964
- payload['enabled'] = enabled;
965
- }
966
- let response = undefined;
967
- response = await client.call('post', apiPath, {
968
- 'content-type': 'application/json',
969
- }, payload);
970
- if (parseOutput) {
971
- (0, parser_1.parse)(response);
972
- }
973
- return response;
974
- };
975
- exports.messagingCreateSMTPProvider = messagingCreateSMTPProvider;
976
- const messagingUpdateSMTPProvider = async ({ providerId, name, host, port, username, password, encryption, autoTLS, mailer, fromName, fromEmail, replyToName, replyToEmail, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
977
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
978
- sdk;
979
- let apiPath = '/messaging/providers/smtp/{providerId}'.replace('{providerId}', providerId);
980
- let payload = {};
981
- if (typeof name !== 'undefined') {
982
- payload['name'] = name;
983
- }
984
- if (typeof host !== 'undefined') {
985
- payload['host'] = host;
986
- }
987
- if (typeof port !== 'undefined') {
988
- payload['port'] = port;
989
- }
990
- if (typeof username !== 'undefined') {
991
- payload['username'] = username;
992
- }
993
- if (typeof password !== 'undefined') {
994
- payload['password'] = password;
995
- }
996
- if (typeof encryption !== 'undefined') {
997
- payload['encryption'] = encryption;
998
- }
999
- if (typeof autoTLS !== 'undefined') {
1000
- payload['autoTLS'] = autoTLS;
1001
- }
1002
- if (typeof mailer !== 'undefined') {
1003
- payload['mailer'] = mailer;
1004
- }
1005
- if (typeof fromName !== 'undefined') {
1006
- payload['fromName'] = fromName;
1007
- }
1008
- if (typeof fromEmail !== 'undefined') {
1009
- payload['fromEmail'] = fromEmail;
1010
- }
1011
- if (typeof replyToName !== 'undefined') {
1012
- payload['replyToName'] = replyToName;
1013
- }
1014
- if (typeof replyToEmail !== 'undefined') {
1015
- payload['replyToEmail'] = replyToEmail;
1016
- }
1017
- if (typeof enabled !== 'undefined') {
1018
- payload['enabled'] = enabled;
1019
- }
1020
- let response = undefined;
1021
- response = await client.call('patch', apiPath, {
1022
- 'content-type': 'application/json',
1023
- }, payload);
1024
- if (parseOutput) {
1025
- (0, parser_1.parse)(response);
1026
- }
1027
- return response;
1028
- };
1029
- exports.messagingUpdateSMTPProvider = messagingUpdateSMTPProvider;
1030
- const messagingCreateTelesignProvider = async ({ providerId, name, from, customerId, apiKey, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1031
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1032
- sdk;
1033
- let apiPath = '/messaging/providers/telesign';
1034
- let payload = {};
1035
- if (typeof providerId !== 'undefined') {
1036
- payload['providerId'] = providerId;
1037
- }
1038
- if (typeof name !== 'undefined') {
1039
- payload['name'] = name;
1040
- }
1041
- if (typeof from !== 'undefined') {
1042
- payload['from'] = from;
1043
- }
1044
- if (typeof customerId !== 'undefined') {
1045
- payload['customerId'] = customerId;
1046
- }
1047
- if (typeof apiKey !== 'undefined') {
1048
- payload['apiKey'] = apiKey;
1049
- }
1050
- if (typeof enabled !== 'undefined') {
1051
- payload['enabled'] = enabled;
1052
- }
1053
- let response = undefined;
1054
- response = await client.call('post', apiPath, {
1055
- 'content-type': 'application/json',
1056
- }, payload);
1057
- if (parseOutput) {
1058
- (0, parser_1.parse)(response);
1059
- }
1060
- return response;
1061
- };
1062
- exports.messagingCreateTelesignProvider = messagingCreateTelesignProvider;
1063
- const messagingUpdateTelesignProvider = async ({ providerId, name, enabled, customerId, apiKey, from, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1064
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1065
- sdk;
1066
- let apiPath = '/messaging/providers/telesign/{providerId}'.replace('{providerId}', providerId);
1067
- let payload = {};
1068
- if (typeof name !== 'undefined') {
1069
- payload['name'] = name;
1070
- }
1071
- if (typeof enabled !== 'undefined') {
1072
- payload['enabled'] = enabled;
1073
- }
1074
- if (typeof customerId !== 'undefined') {
1075
- payload['customerId'] = customerId;
1076
- }
1077
- if (typeof apiKey !== 'undefined') {
1078
- payload['apiKey'] = apiKey;
1079
- }
1080
- if (typeof from !== 'undefined') {
1081
- payload['from'] = from;
1082
- }
1083
- let response = undefined;
1084
- response = await client.call('patch', apiPath, {
1085
- 'content-type': 'application/json',
1086
- }, payload);
1087
- if (parseOutput) {
1088
- (0, parser_1.parse)(response);
1089
- }
1090
- return response;
1091
- };
1092
- exports.messagingUpdateTelesignProvider = messagingUpdateTelesignProvider;
1093
- const messagingCreateTextmagicProvider = async ({ providerId, name, from, username, apiKey, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1094
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1095
- sdk;
1096
- let apiPath = '/messaging/providers/textmagic';
1097
- let payload = {};
1098
- if (typeof providerId !== 'undefined') {
1099
- payload['providerId'] = providerId;
1100
- }
1101
- if (typeof name !== 'undefined') {
1102
- payload['name'] = name;
1103
- }
1104
- if (typeof from !== 'undefined') {
1105
- payload['from'] = from;
1106
- }
1107
- if (typeof username !== 'undefined') {
1108
- payload['username'] = username;
1109
- }
1110
- if (typeof apiKey !== 'undefined') {
1111
- payload['apiKey'] = apiKey;
1112
- }
1113
- if (typeof enabled !== 'undefined') {
1114
- payload['enabled'] = enabled;
1115
- }
1116
- let response = undefined;
1117
- response = await client.call('post', apiPath, {
1118
- 'content-type': 'application/json',
1119
- }, payload);
1120
- if (parseOutput) {
1121
- (0, parser_1.parse)(response);
1122
- }
1123
- return response;
1124
- };
1125
- exports.messagingCreateTextmagicProvider = messagingCreateTextmagicProvider;
1126
- const messagingUpdateTextmagicProvider = async ({ providerId, name, enabled, username, apiKey, from, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1127
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1128
- sdk;
1129
- let apiPath = '/messaging/providers/textmagic/{providerId}'.replace('{providerId}', providerId);
1130
- let payload = {};
1131
- if (typeof name !== 'undefined') {
1132
- payload['name'] = name;
1133
- }
1134
- if (typeof enabled !== 'undefined') {
1135
- payload['enabled'] = enabled;
1136
- }
1137
- if (typeof username !== 'undefined') {
1138
- payload['username'] = username;
1139
- }
1140
- if (typeof apiKey !== 'undefined') {
1141
- payload['apiKey'] = apiKey;
1142
- }
1143
- if (typeof from !== 'undefined') {
1144
- payload['from'] = from;
1145
- }
1146
- let response = undefined;
1147
- response = await client.call('patch', apiPath, {
1148
- 'content-type': 'application/json',
1149
- }, payload);
1150
- if (parseOutput) {
1151
- (0, parser_1.parse)(response);
1152
- }
1153
- return response;
1154
- };
1155
- exports.messagingUpdateTextmagicProvider = messagingUpdateTextmagicProvider;
1156
- const messagingCreateTwilioProvider = async ({ providerId, name, from, accountSid, authToken, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1157
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1158
- sdk;
1159
- let apiPath = '/messaging/providers/twilio';
1160
- let payload = {};
1161
- if (typeof providerId !== 'undefined') {
1162
- payload['providerId'] = providerId;
1163
- }
1164
- if (typeof name !== 'undefined') {
1165
- payload['name'] = name;
1166
- }
1167
- if (typeof from !== 'undefined') {
1168
- payload['from'] = from;
1169
- }
1170
- if (typeof accountSid !== 'undefined') {
1171
- payload['accountSid'] = accountSid;
1172
- }
1173
- if (typeof authToken !== 'undefined') {
1174
- payload['authToken'] = authToken;
1175
- }
1176
- if (typeof enabled !== 'undefined') {
1177
- payload['enabled'] = enabled;
1178
- }
1179
- let response = undefined;
1180
- response = await client.call('post', apiPath, {
1181
- 'content-type': 'application/json',
1182
- }, payload);
1183
- if (parseOutput) {
1184
- (0, parser_1.parse)(response);
1185
- }
1186
- return response;
1187
- };
1188
- exports.messagingCreateTwilioProvider = messagingCreateTwilioProvider;
1189
- const messagingUpdateTwilioProvider = async ({ providerId, name, enabled, accountSid, authToken, from, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1190
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1191
- sdk;
1192
- let apiPath = '/messaging/providers/twilio/{providerId}'.replace('{providerId}', providerId);
1193
- let payload = {};
1194
- if (typeof name !== 'undefined') {
1195
- payload['name'] = name;
1196
- }
1197
- if (typeof enabled !== 'undefined') {
1198
- payload['enabled'] = enabled;
1199
- }
1200
- if (typeof accountSid !== 'undefined') {
1201
- payload['accountSid'] = accountSid;
1202
- }
1203
- if (typeof authToken !== 'undefined') {
1204
- payload['authToken'] = authToken;
1205
- }
1206
- if (typeof from !== 'undefined') {
1207
- payload['from'] = from;
1208
- }
1209
- let response = undefined;
1210
- response = await client.call('patch', apiPath, {
1211
- 'content-type': 'application/json',
1212
- }, payload);
1213
- if (parseOutput) {
1214
- (0, parser_1.parse)(response);
1215
- }
1216
- return response;
1217
- };
1218
- exports.messagingUpdateTwilioProvider = messagingUpdateTwilioProvider;
1219
- const messagingCreateVonageProvider = async ({ providerId, name, from, apiKey, apiSecret, enabled, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1220
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1221
- sdk;
1222
- let apiPath = '/messaging/providers/vonage';
1223
- let payload = {};
1224
- if (typeof providerId !== 'undefined') {
1225
- payload['providerId'] = providerId;
1226
- }
1227
- if (typeof name !== 'undefined') {
1228
- payload['name'] = name;
1229
- }
1230
- if (typeof from !== 'undefined') {
1231
- payload['from'] = from;
1232
- }
1233
- if (typeof apiKey !== 'undefined') {
1234
- payload['apiKey'] = apiKey;
1235
- }
1236
- if (typeof apiSecret !== 'undefined') {
1237
- payload['apiSecret'] = apiSecret;
1238
- }
1239
- if (typeof enabled !== 'undefined') {
1240
- payload['enabled'] = enabled;
1241
- }
1242
- let response = undefined;
1243
- response = await client.call('post', apiPath, {
1244
- 'content-type': 'application/json',
1245
- }, payload);
1246
- if (parseOutput) {
1247
- (0, parser_1.parse)(response);
1248
- }
1249
- return response;
1250
- };
1251
- exports.messagingCreateVonageProvider = messagingCreateVonageProvider;
1252
- const messagingUpdateVonageProvider = async ({ providerId, name, enabled, apiKey, apiSecret, from, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1253
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1254
- sdk;
1255
- let apiPath = '/messaging/providers/vonage/{providerId}'.replace('{providerId}', providerId);
1256
- let payload = {};
1257
- if (typeof name !== 'undefined') {
1258
- payload['name'] = name;
1259
- }
1260
- if (typeof enabled !== 'undefined') {
1261
- payload['enabled'] = enabled;
1262
- }
1263
- if (typeof apiKey !== 'undefined') {
1264
- payload['apiKey'] = apiKey;
1265
- }
1266
- if (typeof apiSecret !== 'undefined') {
1267
- payload['apiSecret'] = apiSecret;
1268
- }
1269
- if (typeof from !== 'undefined') {
1270
- payload['from'] = from;
1271
- }
1272
- let response = undefined;
1273
- response = await client.call('patch', apiPath, {
1274
- 'content-type': 'application/json',
1275
- }, payload);
1276
- if (parseOutput) {
1277
- (0, parser_1.parse)(response);
1278
- }
1279
- return response;
1280
- };
1281
- exports.messagingUpdateVonageProvider = messagingUpdateVonageProvider;
1282
- const messagingGetProvider = async ({ providerId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
1283
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1284
- sdk;
1285
- let apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
1286
- let payload = {};
1287
- let response = undefined;
1288
- response = await client.call('get', apiPath, {}, payload);
1289
- if (parseOutput) {
1290
- if (showConsole) {
1291
- (0, utils_1.showConsoleLink)('messaging', 'getProvider', providerId);
1292
- }
1293
- else {
1294
- (0, parser_1.parse)(response);
1295
- }
1296
- }
1297
- return response;
1298
- };
1299
- exports.messagingGetProvider = messagingGetProvider;
1300
- const messagingDeleteProvider = async ({ providerId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1301
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1302
- sdk;
1303
- let apiPath = '/messaging/providers/{providerId}'.replace('{providerId}', providerId);
1304
- let payload = {};
1305
- let response = undefined;
1306
- response = await client.call('delete', apiPath, {
1307
- 'content-type': 'application/json',
1308
- }, payload);
1309
- if (parseOutput) {
1310
- (0, parser_1.parse)(response);
1311
- }
1312
- return response;
1313
- };
1314
- exports.messagingDeleteProvider = messagingDeleteProvider;
1315
- const messagingListProviderLogs = async ({ providerId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1316
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1317
- sdk;
1318
- let apiPath = '/messaging/providers/{providerId}/logs'.replace('{providerId}', providerId);
1319
- let payload = {};
1320
- if (typeof queries !== 'undefined') {
1321
- payload['queries'] = queries;
1322
- }
1323
- if (typeof total !== 'undefined') {
1324
- payload['total'] = total;
1325
- }
1326
- let response = undefined;
1327
- response = await client.call('get', apiPath, {}, payload);
1328
- if (parseOutput) {
1329
- (0, parser_1.parse)(response);
1330
- }
1331
- return response;
1332
- };
1333
- exports.messagingListProviderLogs = messagingListProviderLogs;
1334
- const messagingListSubscriberLogs = async ({ subscriberId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1335
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1336
- sdk;
1337
- let apiPath = '/messaging/subscribers/{subscriberId}/logs'.replace('{subscriberId}', subscriberId);
1338
- let payload = {};
1339
- if (typeof queries !== 'undefined') {
1340
- payload['queries'] = queries;
1341
- }
1342
- if (typeof total !== 'undefined') {
1343
- payload['total'] = total;
1344
- }
1345
- let response = undefined;
1346
- response = await client.call('get', apiPath, {}, payload);
1347
- if (parseOutput) {
1348
- (0, parser_1.parse)(response);
1349
- }
1350
- return response;
1351
- };
1352
- exports.messagingListSubscriberLogs = messagingListSubscriberLogs;
1353
- const messagingListTopics = async ({ queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
1354
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1355
- sdk;
1356
- let apiPath = '/messaging/topics';
1357
- let payload = {};
1358
- if (typeof queries !== 'undefined') {
1359
- payload['queries'] = queries;
1360
- }
1361
- if (typeof search !== 'undefined') {
1362
- payload['search'] = search;
1363
- }
1364
- if (typeof total !== 'undefined') {
1365
- payload['total'] = total;
1366
- }
1367
- let response = undefined;
1368
- response = await client.call('get', apiPath, {}, payload);
1369
- if (parseOutput) {
1370
- if (showConsole) {
1371
- (0, utils_1.showConsoleLink)('messaging', 'listTopics');
1372
- }
1373
- else {
1374
- (0, parser_1.parse)(response);
1375
- }
1376
- }
1377
- return response;
1378
- };
1379
- exports.messagingListTopics = messagingListTopics;
1380
- const messagingCreateTopic = async ({ topicId, name, subscribe, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1381
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1382
- sdk;
1383
- let apiPath = '/messaging/topics';
1384
- let payload = {};
1385
- if (typeof topicId !== 'undefined') {
1386
- payload['topicId'] = topicId;
1387
- }
1388
- if (typeof name !== 'undefined') {
1389
- payload['name'] = name;
1390
- }
1391
- subscribe = subscribe === true ? [] : subscribe;
1392
- if (typeof subscribe !== 'undefined') {
1393
- payload['subscribe'] = subscribe;
1394
- }
1395
- let response = undefined;
1396
- response = await client.call('post', apiPath, {
1397
- 'content-type': 'application/json',
1398
- }, payload);
1399
- if (parseOutput) {
1400
- (0, parser_1.parse)(response);
1401
- }
1402
- return response;
1403
- };
1404
- exports.messagingCreateTopic = messagingCreateTopic;
1405
- const messagingGetTopic = async ({ topicId, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
1406
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1407
- sdk;
1408
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1409
- let payload = {};
1410
- let response = undefined;
1411
- response = await client.call('get', apiPath, {}, payload);
1412
- if (parseOutput) {
1413
- if (showConsole) {
1414
- (0, utils_1.showConsoleLink)('messaging', 'getTopic', topicId);
1415
- }
1416
- else {
1417
- (0, parser_1.parse)(response);
1418
- }
1419
- }
1420
- return response;
1421
- };
1422
- exports.messagingGetTopic = messagingGetTopic;
1423
- const messagingUpdateTopic = async ({ topicId, name, subscribe, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1424
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1425
- sdk;
1426
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1427
- let payload = {};
1428
- if (typeof name !== 'undefined') {
1429
- payload['name'] = name;
1430
- }
1431
- subscribe = subscribe === true ? [] : subscribe;
1432
- if (typeof subscribe !== 'undefined') {
1433
- payload['subscribe'] = subscribe;
1434
- }
1435
- let response = undefined;
1436
- response = await client.call('patch', apiPath, {
1437
- 'content-type': 'application/json',
1438
- }, payload);
1439
- if (parseOutput) {
1440
- (0, parser_1.parse)(response);
1441
- }
1442
- return response;
1443
- };
1444
- exports.messagingUpdateTopic = messagingUpdateTopic;
1445
- const messagingDeleteTopic = async ({ topicId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1446
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1447
- sdk;
1448
- let apiPath = '/messaging/topics/{topicId}'.replace('{topicId}', topicId);
1449
- let payload = {};
1450
- let response = undefined;
1451
- response = await client.call('delete', apiPath, {
1452
- 'content-type': 'application/json',
1453
- }, payload);
1454
- if (parseOutput) {
1455
- (0, parser_1.parse)(response);
1456
- }
1457
- return response;
1458
- };
1459
- exports.messagingDeleteTopic = messagingDeleteTopic;
1460
- const messagingListTopicLogs = async ({ topicId, queries, total, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1461
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1462
- sdk;
1463
- let apiPath = '/messaging/topics/{topicId}/logs'.replace('{topicId}', topicId);
1464
- let payload = {};
1465
- if (typeof queries !== 'undefined') {
1466
- payload['queries'] = queries;
1467
- }
1468
- if (typeof total !== 'undefined') {
1469
- payload['total'] = total;
1470
- }
1471
- let response = undefined;
1472
- response = await client.call('get', apiPath, {}, payload);
1473
- if (parseOutput) {
1474
- (0, parser_1.parse)(response);
1475
- }
1476
- return response;
1477
- };
1478
- exports.messagingListTopicLogs = messagingListTopicLogs;
1479
- const messagingListSubscribers = async ({ topicId, queries, search, total, parseOutput = true, overrideForCli = false, sdk = undefined, console: showConsole }) => {
1480
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1481
- sdk;
1482
- let apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
1483
- let payload = {};
1484
- if (typeof queries !== 'undefined') {
1485
- payload['queries'] = queries;
1486
- }
1487
- if (typeof search !== 'undefined') {
1488
- payload['search'] = search;
1489
- }
1490
- if (typeof total !== 'undefined') {
1491
- payload['total'] = total;
1492
- }
1493
- let response = undefined;
1494
- response = await client.call('get', apiPath, {}, payload);
1495
- if (parseOutput) {
1496
- if (showConsole) {
1497
- (0, utils_1.showConsoleLink)('messaging', 'listSubscribers', topicId);
1498
- }
1499
- else {
1500
- (0, parser_1.parse)(response);
1501
- }
1502
- }
1503
- return response;
1504
- };
1505
- exports.messagingListSubscribers = messagingListSubscribers;
1506
- const messagingCreateSubscriber = async ({ topicId, subscriberId, targetId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1507
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1508
- sdk;
1509
- let apiPath = '/messaging/topics/{topicId}/subscribers'.replace('{topicId}', topicId);
1510
- let payload = {};
1511
- if (typeof subscriberId !== 'undefined') {
1512
- payload['subscriberId'] = subscriberId;
1513
- }
1514
- if (typeof targetId !== 'undefined') {
1515
- payload['targetId'] = targetId;
1516
- }
1517
- let response = undefined;
1518
- response = await client.call('post', apiPath, {
1519
- 'content-type': 'application/json',
1520
- }, payload);
1521
- if (parseOutput) {
1522
- (0, parser_1.parse)(response);
1523
- }
1524
- return response;
1525
- };
1526
- exports.messagingCreateSubscriber = messagingCreateSubscriber;
1527
- const messagingGetSubscriber = async ({ topicId, subscriberId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1528
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1529
- sdk;
1530
- let apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
1531
- let payload = {};
1532
- let response = undefined;
1533
- response = await client.call('get', apiPath, {}, payload);
1534
- if (parseOutput) {
1535
- (0, parser_1.parse)(response);
1536
- }
1537
- return response;
1538
- };
1539
- exports.messagingGetSubscriber = messagingGetSubscriber;
1540
- const messagingDeleteSubscriber = async ({ topicId, subscriberId, parseOutput = true, overrideForCli = false, sdk = undefined }) => {
1541
- let client = !sdk ? await (0, sdks_1.sdkForProject)() :
1542
- sdk;
1543
- let apiPath = '/messaging/topics/{topicId}/subscribers/{subscriberId}'.replace('{topicId}', topicId).replace('{subscriberId}', subscriberId);
1544
- let payload = {};
1545
- let response = undefined;
1546
- response = await client.call('delete', apiPath, {
1547
- 'content-type': 'application/json',
1548
- }, payload);
1549
- if (parseOutput) {
1550
- (0, parser_1.parse)(response);
1551
- }
1552
- return response;
1553
- };
1554
- exports.messagingDeleteSubscriber = messagingDeleteSubscriber;
1555
- exports.messaging
1556
- .command(`list-messages`)
1557
- .description(`Get a list of all messages from the current Appwrite project.`)
1558
- .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`)
1559
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
1560
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1561
- .option(`--console`, `Get the resource console url`)
1562
- .action((0, parser_1.actionRunner)(exports.messagingListMessages));
1563
- exports.messaging
1564
- .command(`create-email`)
1565
- .description(`Create a new email message.`)
1566
- .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.`)
1567
- .requiredOption(`--subject <subject>`, `Email Subject.`)
1568
- .requiredOption(`--content <content>`, `Email Content.`)
1569
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1570
- .option(`--users [users...]`, `List of User IDs.`)
1571
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1572
- .option(`--cc [cc...]`, `Array of target IDs to be added as CC.`)
1573
- .option(`--bcc [bcc...]`, `Array of target IDs to be added as BCC.`)
1574
- .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>.`)
1575
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1576
- .option(`--html [value]`, `Is content of type HTML`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1577
- .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.`)
1578
- .action((0, parser_1.actionRunner)(exports.messagingCreateEmail));
1579
- exports.messaging
1580
- .command(`update-email`)
1581
- .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. `)
1582
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1583
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1584
- .option(`--users [users...]`, `List of User IDs.`)
1585
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1586
- .option(`--subject <subject>`, `Email Subject.`)
1587
- .option(`--content <content>`, `Email Content.`)
1588
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1589
- .option(`--html [value]`, `Is content of type HTML`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1590
- .option(`--cc [cc...]`, `Array of target IDs to be added as CC.`)
1591
- .option(`--bcc [bcc...]`, `Array of target IDs to be added as BCC.`)
1592
- .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.`)
1593
- .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>.`)
1594
- .action((0, parser_1.actionRunner)(exports.messagingUpdateEmail));
1595
- exports.messaging
1596
- .command(`create-push`)
1597
- .description(`Create a new push notification.`)
1598
- .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.`)
1599
- .option(`--title <title>`, `Title for push notification.`)
1600
- .option(`--body <body>`, `Body for push notification.`)
1601
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1602
- .option(`--users [users...]`, `List of User IDs.`)
1603
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1604
- .option(`--data <data>`, `Additional key-value pair data for push notification.`)
1605
- .option(`--action <action>`, `Action for push notification.`)
1606
- .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>.`)
1607
- .option(`--icon <icon>`, `Icon for push notification. Available only for Android and Web Platform.`)
1608
- .option(`--sound <sound>`, `Sound for push notification. Available only for Android and iOS Platform.`)
1609
- .option(`--color <color>`, `Color for push notification. Available only for Android Platform.`)
1610
- .option(`--tag <tag>`, `Tag for push notification. Available only for Android Platform.`)
1611
- .option(`--badge <badge>`, `Badge for push notification. Available only for iOS Platform.`, parser_1.parseInteger)
1612
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1613
- .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.`)
1614
- .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 : (0, parser_1.parseBool)(value))
1615
- .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 : (0, parser_1.parseBool)(value))
1616
- .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.`)
1617
- .action((0, parser_1.actionRunner)(exports.messagingCreatePush));
1618
- exports.messaging
1619
- .command(`update-push`)
1620
- .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. `)
1621
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1622
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1623
- .option(`--users [users...]`, `List of User IDs.`)
1624
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1625
- .option(`--title <title>`, `Title for push notification.`)
1626
- .option(`--body <body>`, `Body for push notification.`)
1627
- .option(`--data <data>`, `Additional Data for push notification.`)
1628
- .option(`--action <action>`, `Action for push notification.`)
1629
- .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>.`)
1630
- .option(`--icon <icon>`, `Icon for push notification. Available only for Android and Web platforms.`)
1631
- .option(`--sound <sound>`, `Sound for push notification. Available only for Android and iOS platforms.`)
1632
- .option(`--color <color>`, `Color for push notification. Available only for Android platforms.`)
1633
- .option(`--tag <tag>`, `Tag for push notification. Available only for Android platforms.`)
1634
- .option(`--badge <badge>`, `Badge for push notification. Available only for iOS platforms.`, parser_1.parseInteger)
1635
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1636
- .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.`)
1637
- .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 : (0, parser_1.parseBool)(value))
1638
- .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 : (0, parser_1.parseBool)(value))
1639
- .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.`)
1640
- .action((0, parser_1.actionRunner)(exports.messagingUpdatePush));
1641
- exports.messaging
1642
- .command(`create-sms`)
1643
- .description(`Create a new SMS message.`)
1644
- .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.`)
1645
- .requiredOption(`--content <content>`, `SMS Content.`)
1646
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1647
- .option(`--users [users...]`, `List of User IDs.`)
1648
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1649
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1650
- .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.`)
1651
- .action((0, parser_1.actionRunner)(exports.messagingCreateSMS));
1652
- exports.messaging
1653
- .command(`update-sms`)
1654
- .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. `)
1655
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1656
- .option(`--topics [topics...]`, `List of Topic IDs.`)
1657
- .option(`--users [users...]`, `List of User IDs.`)
1658
- .option(`--targets [targets...]`, `List of Targets IDs.`)
1659
- .option(`--content <content>`, `Email Content.`)
1660
- .option(`--draft [value]`, `Is message a draft`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1661
- .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.`)
1662
- .action((0, parser_1.actionRunner)(exports.messagingUpdateSMS));
1663
- exports.messaging
1664
- .command(`get-message`)
1665
- .description(`Get a message by its unique ID. `)
1666
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1667
- .option(`--console`, `Get the resource console url`)
1668
- .action((0, parser_1.actionRunner)(exports.messagingGetMessage));
1669
- exports.messaging
1670
- .command(`delete`)
1671
- .description(`Delete a message. If the message is not a draft or scheduled, but has been sent, this will not recall the message.`)
1672
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1673
- .action((0, parser_1.actionRunner)(exports.messagingDelete));
1674
- exports.messaging
1675
- .command(`list-message-logs`)
1676
- .description(`Get the message activity logs listed by its unique ID.`)
1677
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1678
- .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`)
1679
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1680
- .option(`--console`, `Get the resource console url`)
1681
- .action((0, parser_1.actionRunner)(exports.messagingListMessageLogs));
1682
- exports.messaging
1683
- .command(`list-targets`)
1684
- .description(`Get a list of the targets associated with a message.`)
1685
- .requiredOption(`--message-id <message-id>`, `Message ID.`)
1686
- .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`)
1687
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1688
- .action((0, parser_1.actionRunner)(exports.messagingListTargets));
1689
- exports.messaging
1690
- .command(`list-providers`)
1691
- .description(`Get a list of all providers from the current Appwrite project.`)
1692
- .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`)
1693
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
1694
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1695
- .option(`--console`, `Get the resource console url`)
1696
- .action((0, parser_1.actionRunner)(exports.messagingListProviders));
1697
- exports.messaging
1698
- .command(`create-apns-provider`)
1699
- .description(`Create a new Apple Push Notification service provider.`)
1700
- .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.`)
1701
- .requiredOption(`--name <name>`, `Provider name.`)
1702
- .option(`--auth-key <auth-key>`, `APNS authentication key.`)
1703
- .option(`--auth-key-id <auth-key-id>`, `APNS authentication key ID.`)
1704
- .option(`--team-id <team-id>`, `APNS team ID.`)
1705
- .option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
1706
- .option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1707
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1708
- .action((0, parser_1.actionRunner)(exports.messagingCreateAPNSProvider));
1709
- exports.messaging
1710
- .command(`update-apns-provider`)
1711
- .description(`Update a Apple Push Notification service provider by its unique ID.`)
1712
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1713
- .option(`--name <name>`, `Provider name.`)
1714
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1715
- .option(`--auth-key <auth-key>`, `APNS authentication key.`)
1716
- .option(`--auth-key-id <auth-key-id>`, `APNS authentication key ID.`)
1717
- .option(`--team-id <team-id>`, `APNS team ID.`)
1718
- .option(`--bundle-id <bundle-id>`, `APNS bundle ID.`)
1719
- .option(`--sandbox [value]`, `Use APNS sandbox environment.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1720
- .action((0, parser_1.actionRunner)(exports.messagingUpdateAPNSProvider));
1721
- exports.messaging
1722
- .command(`create-fcm-provider`)
1723
- .description(`Create a new Firebase Cloud Messaging provider.`)
1724
- .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.`)
1725
- .requiredOption(`--name <name>`, `Provider name.`)
1726
- .option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
1727
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1728
- .action((0, parser_1.actionRunner)(exports.messagingCreateFCMProvider));
1729
- exports.messaging
1730
- .command(`update-fcm-provider`)
1731
- .description(`Update a Firebase Cloud Messaging provider by its unique ID.`)
1732
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1733
- .option(`--name <name>`, `Provider name.`)
1734
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1735
- .option(`--service-account-json <service-account-json>`, `FCM service account JSON.`)
1736
- .action((0, parser_1.actionRunner)(exports.messagingUpdateFCMProvider));
1737
- exports.messaging
1738
- .command(`create-mailgun-provider`)
1739
- .description(`Create a new Mailgun provider.`)
1740
- .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.`)
1741
- .requiredOption(`--name <name>`, `Provider name.`)
1742
- .option(`--api-key <api-key>`, `Mailgun API Key.`)
1743
- .option(`--domain <domain>`, `Mailgun Domain.`)
1744
- .option(`--is-eu-region [value]`, `Set as EU region.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1745
- .option(`--from-name <from-name>`, `Sender Name.`)
1746
- .option(`--from-email <from-email>`, `Sender email address.`)
1747
- .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.`)
1748
- .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.`)
1749
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1750
- .action((0, parser_1.actionRunner)(exports.messagingCreateMailgunProvider));
1751
- exports.messaging
1752
- .command(`update-mailgun-provider`)
1753
- .description(`Update a Mailgun provider by its unique ID.`)
1754
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1755
- .option(`--name <name>`, `Provider name.`)
1756
- .option(`--api-key <api-key>`, `Mailgun API Key.`)
1757
- .option(`--domain <domain>`, `Mailgun Domain.`)
1758
- .option(`--is-eu-region [value]`, `Set as EU region.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1759
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1760
- .option(`--from-name <from-name>`, `Sender Name.`)
1761
- .option(`--from-email <from-email>`, `Sender email address.`)
1762
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
1763
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
1764
- .action((0, parser_1.actionRunner)(exports.messagingUpdateMailgunProvider));
1765
- exports.messaging
1766
- .command(`create-msg-91-provider`)
1767
- .description(`Create a new MSG91 provider.`)
1768
- .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.`)
1769
- .requiredOption(`--name <name>`, `Provider name.`)
1770
- .option(`--template-id <template-id>`, `Msg91 template ID`)
1771
- .option(`--sender-id <sender-id>`, `Msg91 sender ID.`)
1772
- .option(`--auth-key <auth-key>`, `Msg91 auth key.`)
1773
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1774
- .action((0, parser_1.actionRunner)(exports.messagingCreateMsg91Provider));
1775
- exports.messaging
1776
- .command(`update-msg-91-provider`)
1777
- .description(`Update a MSG91 provider by its unique ID.`)
1778
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1779
- .option(`--name <name>`, `Provider name.`)
1780
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1781
- .option(`--template-id <template-id>`, `Msg91 template ID.`)
1782
- .option(`--sender-id <sender-id>`, `Msg91 sender ID.`)
1783
- .option(`--auth-key <auth-key>`, `Msg91 auth key.`)
1784
- .action((0, parser_1.actionRunner)(exports.messagingUpdateMsg91Provider));
1785
- exports.messaging
1786
- .command(`create-resend-provider`)
1787
- .description(`Create a new Resend provider.`)
1788
- .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.`)
1789
- .requiredOption(`--name <name>`, `Provider name.`)
1790
- .option(`--api-key <api-key>`, `Resend API key.`)
1791
- .option(`--from-name <from-name>`, `Sender Name.`)
1792
- .option(`--from-email <from-email>`, `Sender email address.`)
1793
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
1794
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
1795
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1796
- .action((0, parser_1.actionRunner)(exports.messagingCreateResendProvider));
1797
- exports.messaging
1798
- .command(`update-resend-provider`)
1799
- .description(`Update a Resend provider by its unique ID.`)
1800
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1801
- .option(`--name <name>`, `Provider name.`)
1802
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1803
- .option(`--api-key <api-key>`, `Resend API key.`)
1804
- .option(`--from-name <from-name>`, `Sender Name.`)
1805
- .option(`--from-email <from-email>`, `Sender email address.`)
1806
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
1807
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
1808
- .action((0, parser_1.actionRunner)(exports.messagingUpdateResendProvider));
1809
- exports.messaging
1810
- .command(`create-sendgrid-provider`)
1811
- .description(`Create a new Sendgrid provider.`)
1812
- .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.`)
1813
- .requiredOption(`--name <name>`, `Provider name.`)
1814
- .option(`--api-key <api-key>`, `Sendgrid API key.`)
1815
- .option(`--from-name <from-name>`, `Sender Name.`)
1816
- .option(`--from-email <from-email>`, `Sender email address.`)
1817
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
1818
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
1819
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1820
- .action((0, parser_1.actionRunner)(exports.messagingCreateSendgridProvider));
1821
- exports.messaging
1822
- .command(`update-sendgrid-provider`)
1823
- .description(`Update a Sendgrid provider by its unique ID.`)
1824
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1825
- .option(`--name <name>`, `Provider name.`)
1826
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1827
- .option(`--api-key <api-key>`, `Sendgrid API key.`)
1828
- .option(`--from-name <from-name>`, `Sender Name.`)
1829
- .option(`--from-email <from-email>`, `Sender email address.`)
1830
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
1831
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
1832
- .action((0, parser_1.actionRunner)(exports.messagingUpdateSendgridProvider));
1833
- exports.messaging
1834
- .command(`create-smtp-provider`)
1835
- .description(`Create a new SMTP provider.`)
1836
- .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.`)
1837
- .requiredOption(`--name <name>`, `Provider name.`)
1838
- .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.`)
1839
- .option(`--port <port>`, `The default SMTP server port.`, parser_1.parseInteger)
1840
- .option(`--username <username>`, `Authentication username.`)
1841
- .option(`--password <password>`, `Authentication password.`)
1842
- .option(`--encryption <encryption>`, `Encryption type. Can be omitted, 'ssl', or 'tls'`)
1843
- .option(`--auto-tls [value]`, `Enable SMTP AutoTLS feature.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1844
- .option(`--mailer <mailer>`, `The value to use for the X-Mailer header.`)
1845
- .option(`--from-name <from-name>`, `Sender Name.`)
1846
- .option(`--from-email <from-email>`, `Sender email address.`)
1847
- .option(`--reply-to-name <reply-to-name>`, `Name set in the reply to field for the mail. Default value is sender name.`)
1848
- .option(`--reply-to-email <reply-to-email>`, `Email set in the reply to field for the mail. Default value is sender email.`)
1849
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1850
- .action((0, parser_1.actionRunner)(exports.messagingCreateSMTPProvider));
1851
- exports.messaging
1852
- .command(`update-smtp-provider`)
1853
- .description(`Update a SMTP provider by its unique ID.`)
1854
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1855
- .option(`--name <name>`, `Provider name.`)
1856
- .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.`)
1857
- .option(`--port <port>`, `SMTP port.`, parser_1.parseInteger)
1858
- .option(`--username <username>`, `Authentication username.`)
1859
- .option(`--password <password>`, `Authentication password.`)
1860
- .option(`--encryption <encryption>`, `Encryption type. Can be 'ssl' or 'tls'`)
1861
- .option(`--auto-tls [value]`, `Enable SMTP AutoTLS feature.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1862
- .option(`--mailer <mailer>`, `The value to use for the X-Mailer header.`)
1863
- .option(`--from-name <from-name>`, `Sender Name.`)
1864
- .option(`--from-email <from-email>`, `Sender email address.`)
1865
- .option(`--reply-to-name <reply-to-name>`, `Name set in the Reply To field for the mail. Default value is Sender Name.`)
1866
- .option(`--reply-to-email <reply-to-email>`, `Email set in the Reply To field for the mail. Default value is Sender Email.`)
1867
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1868
- .action((0, parser_1.actionRunner)(exports.messagingUpdateSMTPProvider));
1869
- exports.messaging
1870
- .command(`create-telesign-provider`)
1871
- .description(`Create a new Telesign provider.`)
1872
- .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.`)
1873
- .requiredOption(`--name <name>`, `Provider name.`)
1874
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
1875
- .option(`--customer-id <customer-id>`, `Telesign customer ID.`)
1876
- .option(`--api-key <api-key>`, `Telesign API key.`)
1877
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1878
- .action((0, parser_1.actionRunner)(exports.messagingCreateTelesignProvider));
1879
- exports.messaging
1880
- .command(`update-telesign-provider`)
1881
- .description(`Update a Telesign provider by its unique ID.`)
1882
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1883
- .option(`--name <name>`, `Provider name.`)
1884
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1885
- .option(`--customer-id <customer-id>`, `Telesign customer ID.`)
1886
- .option(`--api-key <api-key>`, `Telesign API key.`)
1887
- .option(`--from <from>`, `Sender number.`)
1888
- .action((0, parser_1.actionRunner)(exports.messagingUpdateTelesignProvider));
1889
- exports.messaging
1890
- .command(`create-textmagic-provider`)
1891
- .description(`Create a new Textmagic provider.`)
1892
- .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.`)
1893
- .requiredOption(`--name <name>`, `Provider name.`)
1894
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
1895
- .option(`--username <username>`, `Textmagic username.`)
1896
- .option(`--api-key <api-key>`, `Textmagic apiKey.`)
1897
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1898
- .action((0, parser_1.actionRunner)(exports.messagingCreateTextmagicProvider));
1899
- exports.messaging
1900
- .command(`update-textmagic-provider`)
1901
- .description(`Update a Textmagic provider by its unique ID.`)
1902
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1903
- .option(`--name <name>`, `Provider name.`)
1904
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1905
- .option(`--username <username>`, `Textmagic username.`)
1906
- .option(`--api-key <api-key>`, `Textmagic apiKey.`)
1907
- .option(`--from <from>`, `Sender number.`)
1908
- .action((0, parser_1.actionRunner)(exports.messagingUpdateTextmagicProvider));
1909
- exports.messaging
1910
- .command(`create-twilio-provider`)
1911
- .description(`Create a new Twilio provider.`)
1912
- .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.`)
1913
- .requiredOption(`--name <name>`, `Provider name.`)
1914
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
1915
- .option(`--account-sid <account-sid>`, `Twilio account secret ID.`)
1916
- .option(`--auth-token <auth-token>`, `Twilio authentication token.`)
1917
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1918
- .action((0, parser_1.actionRunner)(exports.messagingCreateTwilioProvider));
1919
- exports.messaging
1920
- .command(`update-twilio-provider`)
1921
- .description(`Update a Twilio provider by its unique ID.`)
1922
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1923
- .option(`--name <name>`, `Provider name.`)
1924
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1925
- .option(`--account-sid <account-sid>`, `Twilio account secret ID.`)
1926
- .option(`--auth-token <auth-token>`, `Twilio authentication token.`)
1927
- .option(`--from <from>`, `Sender number.`)
1928
- .action((0, parser_1.actionRunner)(exports.messagingUpdateTwilioProvider));
1929
- exports.messaging
1930
- .command(`create-vonage-provider`)
1931
- .description(`Create a new Vonage provider.`)
1932
- .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.`)
1933
- .requiredOption(`--name <name>`, `Provider name.`)
1934
- .option(`--from <from>`, `Sender Phone number. Format this number with a leading '+' and a country code, e.g., +16175551212.`)
1935
- .option(`--api-key <api-key>`, `Vonage API key.`)
1936
- .option(`--api-secret <api-secret>`, `Vonage API secret.`)
1937
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1938
- .action((0, parser_1.actionRunner)(exports.messagingCreateVonageProvider));
1939
- exports.messaging
1940
- .command(`update-vonage-provider`)
1941
- .description(`Update a Vonage provider by its unique ID.`)
1942
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1943
- .option(`--name <name>`, `Provider name.`)
1944
- .option(`--enabled [value]`, `Set as enabled.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1945
- .option(`--api-key <api-key>`, `Vonage API key.`)
1946
- .option(`--api-secret <api-secret>`, `Vonage API secret.`)
1947
- .option(`--from <from>`, `Sender number.`)
1948
- .action((0, parser_1.actionRunner)(exports.messagingUpdateVonageProvider));
1949
- exports.messaging
1950
- .command(`get-provider`)
1951
- .description(`Get a provider by its unique ID. `)
1952
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1953
- .option(`--console`, `Get the resource console url`)
1954
- .action((0, parser_1.actionRunner)(exports.messagingGetProvider));
1955
- exports.messaging
1956
- .command(`delete-provider`)
1957
- .description(`Delete a provider by its unique ID.`)
1958
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1959
- .action((0, parser_1.actionRunner)(exports.messagingDeleteProvider));
1960
- exports.messaging
1961
- .command(`list-provider-logs`)
1962
- .description(`Get the provider activity logs listed by its unique ID.`)
1963
- .requiredOption(`--provider-id <provider-id>`, `Provider ID.`)
1964
- .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`)
1965
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1966
- .action((0, parser_1.actionRunner)(exports.messagingListProviderLogs));
1967
- exports.messaging
1968
- .command(`list-subscriber-logs`)
1969
- .description(`Get the subscriber activity logs listed by its unique ID.`)
1970
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
1971
- .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`)
1972
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1973
- .action((0, parser_1.actionRunner)(exports.messagingListSubscriberLogs));
1974
- exports.messaging
1975
- .command(`list-topics`)
1976
- .description(`Get a list of all topics from the current Appwrite project.`)
1977
- .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`)
1978
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
1979
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
1980
- .option(`--console`, `Get the resource console url`)
1981
- .action((0, parser_1.actionRunner)(exports.messagingListTopics));
1982
- exports.messaging
1983
- .command(`create-topic`)
1984
- .description(`Create a new topic.`)
1985
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. Choose a custom Topic ID or a new Topic ID.`)
1986
- .requiredOption(`--name <name>`, `Topic Name.`)
1987
- .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.`)
1988
- .action((0, parser_1.actionRunner)(exports.messagingCreateTopic));
1989
- exports.messaging
1990
- .command(`get-topic`)
1991
- .description(`Get a topic by its unique ID. `)
1992
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
1993
- .option(`--console`, `Get the resource console url`)
1994
- .action((0, parser_1.actionRunner)(exports.messagingGetTopic));
1995
- exports.messaging
1996
- .command(`update-topic`)
1997
- .description(`Update a topic by its unique ID. `)
1998
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
1999
- .option(`--name <name>`, `Topic Name.`)
2000
- .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.`)
2001
- .action((0, parser_1.actionRunner)(exports.messagingUpdateTopic));
2002
- exports.messaging
2003
- .command(`delete-topic`)
2004
- .description(`Delete a topic by its unique ID.`)
2005
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
2006
- .action((0, parser_1.actionRunner)(exports.messagingDeleteTopic));
2007
- exports.messaging
2008
- .command(`list-topic-logs`)
2009
- .description(`Get the topic activity logs listed by its unique ID.`)
2010
- .requiredOption(`--topic-id <topic-id>`, `Topic ID.`)
2011
- .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`)
2012
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
2013
- .action((0, parser_1.actionRunner)(exports.messagingListTopicLogs));
2014
- exports.messaging
2015
- .command(`list-subscribers`)
2016
- .description(`Get a list of all subscribers from the current Appwrite project.`)
2017
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
2018
- .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`)
2019
- .option(`--search <search>`, `Search term to filter your list results. Max length: 256 chars.`)
2020
- .option(`--total [value]`, `When set to false, the total count returned will be 0 and will not be calculated.`, (value) => value === undefined ? true : (0, parser_1.parseBool)(value))
2021
- .option(`--console`, `Get the resource console url`)
2022
- .action((0, parser_1.actionRunner)(exports.messagingListSubscribers));
2023
- exports.messaging
2024
- .command(`create-subscriber`)
2025
- .description(`Create a new subscriber.`)
2026
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID to subscribe to.`)
2027
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID. Choose a custom Subscriber ID or a new Subscriber ID.`)
2028
- .requiredOption(`--target-id <target-id>`, `Target ID. The target ID to link to the specified Topic ID.`)
2029
- .action((0, parser_1.actionRunner)(exports.messagingCreateSubscriber));
2030
- exports.messaging
2031
- .command(`get-subscriber`)
2032
- .description(`Get a subscriber by its unique ID. `)
2033
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
2034
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
2035
- .action((0, parser_1.actionRunner)(exports.messagingGetSubscriber));
2036
- exports.messaging
2037
- .command(`delete-subscriber`)
2038
- .description(`Delete a subscriber by its unique ID.`)
2039
- .requiredOption(`--topic-id <topic-id>`, `Topic ID. The topic ID subscribed to.`)
2040
- .requiredOption(`--subscriber-id <subscriber-id>`, `Subscriber ID.`)
2041
- .action((0, parser_1.actionRunner)(exports.messagingDeleteSubscriber));
2042
- //# sourceMappingURL=messaging.js.map