@keystrokehq/sendbird 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/add-members-group-channel.cjs +35 -0
  7. package/dist/actions/add-members-group-channel.cjs.map +1 -0
  8. package/dist/actions/add-members-group-channel.d.cts +9 -0
  9. package/dist/actions/add-members-group-channel.d.cts.map +1 -0
  10. package/dist/actions/add-members-group-channel.d.mts +9 -0
  11. package/dist/actions/add-members-group-channel.d.mts.map +1 -0
  12. package/dist/actions/add-members-group-channel.mjs +34 -0
  13. package/dist/actions/add-members-group-channel.mjs.map +1 -0
  14. package/dist/actions/ban-user-from-group-channel.cjs +33 -0
  15. package/dist/actions/ban-user-from-group-channel.cjs.map +1 -0
  16. package/dist/actions/ban-user-from-group-channel.d.cts +9 -0
  17. package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -0
  18. package/dist/actions/ban-user-from-group-channel.d.mts +9 -0
  19. package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -0
  20. package/dist/actions/ban-user-from-group-channel.mjs +32 -0
  21. package/dist/actions/ban-user-from-group-channel.mjs.map +1 -0
  22. package/dist/actions/create-channel.cjs +77 -0
  23. package/dist/actions/create-channel.cjs.map +1 -0
  24. package/dist/actions/create-channel.d.cts +9 -0
  25. package/dist/actions/create-channel.d.cts.map +1 -0
  26. package/dist/actions/create-channel.d.mts +9 -0
  27. package/dist/actions/create-channel.d.mts.map +1 -0
  28. package/dist/actions/create-channel.mjs +76 -0
  29. package/dist/actions/create-channel.mjs.map +1 -0
  30. package/dist/actions/create-user.cjs +41 -0
  31. package/dist/actions/create-user.cjs.map +1 -0
  32. package/dist/actions/create-user.d.cts +9 -0
  33. package/dist/actions/create-user.d.cts.map +1 -0
  34. package/dist/actions/create-user.d.mts +9 -0
  35. package/dist/actions/create-user.d.mts.map +1 -0
  36. package/dist/actions/create-user.mjs +38 -0
  37. package/dist/actions/create-user.mjs.map +1 -0
  38. package/dist/actions/delete-channel.cjs +16 -0
  39. package/dist/actions/delete-channel.cjs.map +1 -0
  40. package/dist/actions/delete-channel.d.cts +9 -0
  41. package/dist/actions/delete-channel.d.cts.map +1 -0
  42. package/dist/actions/delete-channel.d.mts +9 -0
  43. package/dist/actions/delete-channel.d.mts.map +1 -0
  44. package/dist/actions/delete-channel.mjs +13 -0
  45. package/dist/actions/delete-channel.mjs.map +1 -0
  46. package/dist/actions/delete-message.cjs +19 -0
  47. package/dist/actions/delete-message.cjs.map +1 -0
  48. package/dist/actions/delete-message.d.cts +9 -0
  49. package/dist/actions/delete-message.d.cts.map +1 -0
  50. package/dist/actions/delete-message.d.mts +9 -0
  51. package/dist/actions/delete-message.d.mts.map +1 -0
  52. package/dist/actions/delete-message.mjs +16 -0
  53. package/dist/actions/delete-message.mjs.map +1 -0
  54. package/dist/actions/delete-user.cjs +19 -0
  55. package/dist/actions/delete-user.cjs.map +1 -0
  56. package/dist/actions/delete-user.d.cts +9 -0
  57. package/dist/actions/delete-user.d.cts.map +1 -0
  58. package/dist/actions/delete-user.d.mts +9 -0
  59. package/dist/actions/delete-user.d.mts.map +1 -0
  60. package/dist/actions/delete-user.mjs +16 -0
  61. package/dist/actions/delete-user.mjs.map +1 -0
  62. package/dist/actions/get-count-preference-of-channel.cjs +26 -0
  63. package/dist/actions/get-count-preference-of-channel.cjs.map +1 -0
  64. package/dist/actions/get-count-preference-of-channel.d.cts +9 -0
  65. package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -0
  66. package/dist/actions/get-count-preference-of-channel.d.mts +9 -0
  67. package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -0
  68. package/dist/actions/get-count-preference-of-channel.mjs +23 -0
  69. package/dist/actions/get-count-preference-of-channel.mjs.map +1 -0
  70. package/dist/actions/get-number-of-channels-by-join-status.cjs +40 -0
  71. package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -0
  72. package/dist/actions/get-number-of-channels-by-join-status.d.cts +9 -0
  73. package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -0
  74. package/dist/actions/get-number-of-channels-by-join-status.d.mts +9 -0
  75. package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -0
  76. package/dist/actions/get-number-of-channels-by-join-status.mjs +37 -0
  77. package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -0
  78. package/dist/actions/get-number-of-unread-items.cjs +30 -0
  79. package/dist/actions/get-number-of-unread-items.cjs.map +1 -0
  80. package/dist/actions/get-number-of-unread-items.d.cts +9 -0
  81. package/dist/actions/get-number-of-unread-items.d.cts.map +1 -0
  82. package/dist/actions/get-number-of-unread-items.d.mts +9 -0
  83. package/dist/actions/get-number-of-unread-items.d.mts.map +1 -0
  84. package/dist/actions/get-number-of-unread-items.mjs +27 -0
  85. package/dist/actions/get-number-of-unread-items.mjs.map +1 -0
  86. package/dist/actions/index.cjs +75 -0
  87. package/dist/actions/index.d.cts +38 -0
  88. package/dist/actions/index.d.mts +38 -0
  89. package/dist/actions/index.mjs +38 -0
  90. package/dist/actions/issue-session-token.cjs +23 -0
  91. package/dist/actions/issue-session-token.cjs.map +1 -0
  92. package/dist/actions/issue-session-token.d.cts +9 -0
  93. package/dist/actions/issue-session-token.d.cts.map +1 -0
  94. package/dist/actions/issue-session-token.d.mts +9 -0
  95. package/dist/actions/issue-session-token.d.mts.map +1 -0
  96. package/dist/actions/issue-session-token.mjs +20 -0
  97. package/dist/actions/issue-session-token.mjs.map +1 -0
  98. package/dist/actions/leave-group-channels.cjs +21 -0
  99. package/dist/actions/leave-group-channels.cjs.map +1 -0
  100. package/dist/actions/leave-group-channels.d.cts +9 -0
  101. package/dist/actions/leave-group-channels.d.cts.map +1 -0
  102. package/dist/actions/leave-group-channels.d.mts +9 -0
  103. package/dist/actions/leave-group-channels.d.mts.map +1 -0
  104. package/dist/actions/leave-group-channels.mjs +18 -0
  105. package/dist/actions/leave-group-channels.mjs.map +1 -0
  106. package/dist/actions/list-banned-members.cjs +31 -0
  107. package/dist/actions/list-banned-members.cjs.map +1 -0
  108. package/dist/actions/list-banned-members.d.cts +9 -0
  109. package/dist/actions/list-banned-members.d.cts.map +1 -0
  110. package/dist/actions/list-banned-members.d.mts +9 -0
  111. package/dist/actions/list-banned-members.d.mts.map +1 -0
  112. package/dist/actions/list-banned-members.mjs +30 -0
  113. package/dist/actions/list-banned-members.mjs.map +1 -0
  114. package/dist/actions/list-group-channel-messages.cjs +89 -0
  115. package/dist/actions/list-group-channel-messages.cjs.map +1 -0
  116. package/dist/actions/list-group-channel-messages.d.cts +9 -0
  117. package/dist/actions/list-group-channel-messages.d.cts.map +1 -0
  118. package/dist/actions/list-group-channel-messages.d.mts +9 -0
  119. package/dist/actions/list-group-channel-messages.d.mts.map +1 -0
  120. package/dist/actions/list-group-channel-messages.mjs +88 -0
  121. package/dist/actions/list-group-channel-messages.mjs.map +1 -0
  122. package/dist/actions/list-group-channels.cjs +102 -0
  123. package/dist/actions/list-group-channels.cjs.map +1 -0
  124. package/dist/actions/list-group-channels.d.cts +9 -0
  125. package/dist/actions/list-group-channels.d.cts.map +1 -0
  126. package/dist/actions/list-group-channels.d.mts +9 -0
  127. package/dist/actions/list-group-channels.d.mts.map +1 -0
  128. package/dist/actions/list-group-channels.mjs +101 -0
  129. package/dist/actions/list-group-channels.mjs.map +1 -0
  130. package/dist/actions/list-members-group-channel.cjs +53 -0
  131. package/dist/actions/list-members-group-channel.cjs.map +1 -0
  132. package/dist/actions/list-members-group-channel.d.cts +9 -0
  133. package/dist/actions/list-members-group-channel.d.cts.map +1 -0
  134. package/dist/actions/list-members-group-channel.d.mts +9 -0
  135. package/dist/actions/list-members-group-channel.d.mts.map +1 -0
  136. package/dist/actions/list-members-group-channel.mjs +52 -0
  137. package/dist/actions/list-members-group-channel.mjs.map +1 -0
  138. package/dist/actions/list-operators-custom-channel-type.cjs +29 -0
  139. package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -0
  140. package/dist/actions/list-operators-custom-channel-type.d.cts +9 -0
  141. package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -0
  142. package/dist/actions/list-operators-custom-channel-type.d.mts +9 -0
  143. package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -0
  144. package/dist/actions/list-operators-custom-channel-type.mjs +28 -0
  145. package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -0
  146. package/dist/actions/list-operators-group-channel.cjs +28 -0
  147. package/dist/actions/list-operators-group-channel.cjs.map +1 -0
  148. package/dist/actions/list-operators-group-channel.d.cts +9 -0
  149. package/dist/actions/list-operators-group-channel.d.cts.map +1 -0
  150. package/dist/actions/list-operators-group-channel.d.mts +9 -0
  151. package/dist/actions/list-operators-group-channel.d.mts.map +1 -0
  152. package/dist/actions/list-operators-group-channel.mjs +27 -0
  153. package/dist/actions/list-operators-group-channel.mjs.map +1 -0
  154. package/dist/actions/list-operators-open-channel.cjs +29 -0
  155. package/dist/actions/list-operators-open-channel.cjs.map +1 -0
  156. package/dist/actions/list-operators-open-channel.d.cts +9 -0
  157. package/dist/actions/list-operators-open-channel.d.cts.map +1 -0
  158. package/dist/actions/list-operators-open-channel.d.mts +9 -0
  159. package/dist/actions/list-operators-open-channel.d.mts.map +1 -0
  160. package/dist/actions/list-operators-open-channel.mjs +28 -0
  161. package/dist/actions/list-operators-open-channel.mjs.map +1 -0
  162. package/dist/actions/list-users.cjs +50 -0
  163. package/dist/actions/list-users.cjs.map +1 -0
  164. package/dist/actions/list-users.d.cts +9 -0
  165. package/dist/actions/list-users.d.cts.map +1 -0
  166. package/dist/actions/list-users.d.mts +9 -0
  167. package/dist/actions/list-users.d.mts.map +1 -0
  168. package/dist/actions/list-users.mjs +49 -0
  169. package/dist/actions/list-users.mjs.map +1 -0
  170. package/dist/actions/mark-all-user-messages-as-read.cjs +16 -0
  171. package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -0
  172. package/dist/actions/mark-all-user-messages-as-read.d.cts +9 -0
  173. package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -0
  174. package/dist/actions/mark-all-user-messages-as-read.d.mts +9 -0
  175. package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -0
  176. package/dist/actions/mark-all-user-messages-as-read.mjs +13 -0
  177. package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -0
  178. package/dist/actions/mute-user.cjs +21 -0
  179. package/dist/actions/mute-user.cjs.map +1 -0
  180. package/dist/actions/mute-user.d.cts +9 -0
  181. package/dist/actions/mute-user.d.cts.map +1 -0
  182. package/dist/actions/mute-user.d.mts +9 -0
  183. package/dist/actions/mute-user.d.mts.map +1 -0
  184. package/dist/actions/mute-user.mjs +18 -0
  185. package/dist/actions/mute-user.mjs.map +1 -0
  186. package/dist/actions/register-operators-custom-channel-type.cjs +25 -0
  187. package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -0
  188. package/dist/actions/register-operators-custom-channel-type.d.cts +9 -0
  189. package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -0
  190. package/dist/actions/register-operators-custom-channel-type.d.mts +9 -0
  191. package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -0
  192. package/dist/actions/register-operators-custom-channel-type.mjs +24 -0
  193. package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -0
  194. package/dist/actions/register-operators-group-channel.cjs +28 -0
  195. package/dist/actions/register-operators-group-channel.cjs.map +1 -0
  196. package/dist/actions/register-operators-group-channel.d.cts +9 -0
  197. package/dist/actions/register-operators-group-channel.d.cts.map +1 -0
  198. package/dist/actions/register-operators-group-channel.d.mts +9 -0
  199. package/dist/actions/register-operators-group-channel.d.mts.map +1 -0
  200. package/dist/actions/register-operators-group-channel.mjs +27 -0
  201. package/dist/actions/register-operators-group-channel.mjs.map +1 -0
  202. package/dist/actions/register-operators-open-channel.cjs +25 -0
  203. package/dist/actions/register-operators-open-channel.cjs.map +1 -0
  204. package/dist/actions/register-operators-open-channel.d.cts +9 -0
  205. package/dist/actions/register-operators-open-channel.d.cts.map +1 -0
  206. package/dist/actions/register-operators-open-channel.d.mts +9 -0
  207. package/dist/actions/register-operators-open-channel.d.mts.map +1 -0
  208. package/dist/actions/register-operators-open-channel.mjs +24 -0
  209. package/dist/actions/register-operators-open-channel.mjs.map +1 -0
  210. package/dist/actions/revoke-all-session-tokens.cjs +19 -0
  211. package/dist/actions/revoke-all-session-tokens.cjs.map +1 -0
  212. package/dist/actions/revoke-all-session-tokens.d.cts +9 -0
  213. package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -0
  214. package/dist/actions/revoke-all-session-tokens.d.mts +9 -0
  215. package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -0
  216. package/dist/actions/revoke-all-session-tokens.mjs +16 -0
  217. package/dist/actions/revoke-all-session-tokens.mjs.map +1 -0
  218. package/dist/actions/send-message.cjs +79 -0
  219. package/dist/actions/send-message.cjs.map +1 -0
  220. package/dist/actions/send-message.d.cts +9 -0
  221. package/dist/actions/send-message.d.cts.map +1 -0
  222. package/dist/actions/send-message.d.mts +9 -0
  223. package/dist/actions/send-message.d.mts.map +1 -0
  224. package/dist/actions/send-message.mjs +78 -0
  225. package/dist/actions/send-message.mjs.map +1 -0
  226. package/dist/actions/unban-user.cjs +19 -0
  227. package/dist/actions/unban-user.cjs.map +1 -0
  228. package/dist/actions/unban-user.d.cts +9 -0
  229. package/dist/actions/unban-user.d.cts.map +1 -0
  230. package/dist/actions/unban-user.d.mts +9 -0
  231. package/dist/actions/unban-user.d.mts.map +1 -0
  232. package/dist/actions/unban-user.mjs +16 -0
  233. package/dist/actions/unban-user.mjs.map +1 -0
  234. package/dist/actions/unmute-user.cjs +26 -0
  235. package/dist/actions/unmute-user.cjs.map +1 -0
  236. package/dist/actions/unmute-user.d.cts +9 -0
  237. package/dist/actions/unmute-user.d.cts.map +1 -0
  238. package/dist/actions/unmute-user.d.mts +9 -0
  239. package/dist/actions/unmute-user.d.mts.map +1 -0
  240. package/dist/actions/unmute-user.mjs +23 -0
  241. package/dist/actions/unmute-user.mjs.map +1 -0
  242. package/dist/actions/unregister-operators-custom-channel-type.cjs +23 -0
  243. package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -0
  244. package/dist/actions/unregister-operators-custom-channel-type.d.cts +9 -0
  245. package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -0
  246. package/dist/actions/unregister-operators-custom-channel-type.d.mts +9 -0
  247. package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -0
  248. package/dist/actions/unregister-operators-custom-channel-type.mjs +22 -0
  249. package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -0
  250. package/dist/actions/update-count-preference-of-channel.cjs +28 -0
  251. package/dist/actions/update-count-preference-of-channel.cjs.map +1 -0
  252. package/dist/actions/update-count-preference-of-channel.d.cts +9 -0
  253. package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -0
  254. package/dist/actions/update-count-preference-of-channel.d.mts +9 -0
  255. package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -0
  256. package/dist/actions/update-count-preference-of-channel.mjs +25 -0
  257. package/dist/actions/update-count-preference-of-channel.mjs.map +1 -0
  258. package/dist/actions/update-group-channel.cjs +42 -0
  259. package/dist/actions/update-group-channel.cjs.map +1 -0
  260. package/dist/actions/update-group-channel.d.cts +9 -0
  261. package/dist/actions/update-group-channel.d.cts.map +1 -0
  262. package/dist/actions/update-group-channel.d.mts +9 -0
  263. package/dist/actions/update-group-channel.d.mts.map +1 -0
  264. package/dist/actions/update-group-channel.mjs +39 -0
  265. package/dist/actions/update-group-channel.mjs.map +1 -0
  266. package/dist/actions/update-message.cjs +54 -0
  267. package/dist/actions/update-message.cjs.map +1 -0
  268. package/dist/actions/update-message.d.cts +9 -0
  269. package/dist/actions/update-message.d.cts.map +1 -0
  270. package/dist/actions/update-message.d.mts +9 -0
  271. package/dist/actions/update-message.d.mts.map +1 -0
  272. package/dist/actions/update-message.mjs +51 -0
  273. package/dist/actions/update-message.mjs.map +1 -0
  274. package/dist/actions/update-user.cjs +39 -0
  275. package/dist/actions/update-user.cjs.map +1 -0
  276. package/dist/actions/update-user.d.cts +9 -0
  277. package/dist/actions/update-user.d.cts.map +1 -0
  278. package/dist/actions/update-user.d.mts +9 -0
  279. package/dist/actions/update-user.d.mts.map +1 -0
  280. package/dist/actions/update-user.mjs +36 -0
  281. package/dist/actions/update-user.mjs.map +1 -0
  282. package/dist/actions/view-group-channel.cjs +59 -0
  283. package/dist/actions/view-group-channel.cjs.map +1 -0
  284. package/dist/actions/view-group-channel.d.cts +9 -0
  285. package/dist/actions/view-group-channel.d.cts.map +1 -0
  286. package/dist/actions/view-group-channel.d.mts +9 -0
  287. package/dist/actions/view-group-channel.d.mts.map +1 -0
  288. package/dist/actions/view-group-channel.mjs +58 -0
  289. package/dist/actions/view-group-channel.mjs.map +1 -0
  290. package/dist/actions/view-message.cjs +67 -0
  291. package/dist/actions/view-message.cjs.map +1 -0
  292. package/dist/actions/view-message.d.cts +9 -0
  293. package/dist/actions/view-message.d.cts.map +1 -0
  294. package/dist/actions/view-message.d.mts +9 -0
  295. package/dist/actions/view-message.d.mts.map +1 -0
  296. package/dist/actions/view-message.mjs +66 -0
  297. package/dist/actions/view-message.mjs.map +1 -0
  298. package/dist/actions/view-user.cjs +31 -0
  299. package/dist/actions/view-user.cjs.map +1 -0
  300. package/dist/actions/view-user.d.cts +9 -0
  301. package/dist/actions/view-user.d.cts.map +1 -0
  302. package/dist/actions/view-user.d.mts +9 -0
  303. package/dist/actions/view-user.d.mts.map +1 -0
  304. package/dist/actions/view-user.mjs +28 -0
  305. package/dist/actions/view-user.mjs.map +1 -0
  306. package/dist/app.cjs +9 -0
  307. package/dist/app.cjs.map +1 -0
  308. package/dist/app.d.cts +5 -0
  309. package/dist/app.d.cts.map +1 -0
  310. package/dist/app.d.mts +5 -0
  311. package/dist/app.d.mts.map +1 -0
  312. package/dist/app.mjs +10 -0
  313. package/dist/app.mjs.map +1 -0
  314. package/dist/catalog.cjs +15 -0
  315. package/dist/catalog.cjs.map +1 -0
  316. package/dist/catalog.d.cts +14 -0
  317. package/dist/catalog.d.cts.map +1 -0
  318. package/dist/catalog.d.mts +14 -0
  319. package/dist/catalog.d.mts.map +1 -0
  320. package/dist/catalog.mjs +15 -0
  321. package/dist/catalog.mjs.map +1 -0
  322. package/dist/execute.cjs +18 -0
  323. package/dist/execute.cjs.map +1 -0
  324. package/dist/execute.mjs +18 -0
  325. package/dist/execute.mjs.map +1 -0
  326. package/dist/index.cjs +80 -0
  327. package/dist/index.d.cts +40 -0
  328. package/dist/index.d.mts +40 -0
  329. package/dist/index.mjs +41 -0
  330. package/package.json +49 -0
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-count-preference-of-channel.ts
4
+ const SendbirdUpdateCountPreferenceOfChannelInput = zod.z.object({
5
+ user_id: zod.z.string().describe("The unique ID of the user."),
6
+ channel_url: zod.z.string().describe("URL identifier of the group channel."),
7
+ count_preference: zod.z.enum([
8
+ "all",
9
+ "unread_message_count_only",
10
+ "mention_count_only",
11
+ "none"
12
+ ]).describe("The user's count preference for the channel: one of 'all', 'unread_message_count_only', 'mention_count_only', or 'none'.")
13
+ }).describe("Request model for updating a user's unread count preference for a specific group channel.");
14
+ const SendbirdUpdateCountPreferenceOfChannelOutput = zod.z.object({
15
+ channel_url: zod.z.string().describe("URL identifier of the group channel."),
16
+ count_preference: zod.z.string().describe("The updated user count preference. Possible values: 'all' (track both unread messages and mentions), 'unread_message_count_only' (track only unread messages), 'unread_mention_count_only' (track only mentions), or 'off' (disable tracking).")
17
+ }).describe("Response model for updating a user's unread count preference.");
18
+ const sendbirdUpdateCountPreferenceOfChannel = require_action.action("SENDBIRD_UPDATE_COUNT_PREFERENCE_OF_CHANNEL", {
19
+ slug: "sendbird-update-count-preference-of-channel",
20
+ name: "Update Count Preference Of Channel",
21
+ description: "Tool to update a user's unread count preference for a specific group channel. Use when you want to include or suppress a channel in the user's unread counts.",
22
+ input: SendbirdUpdateCountPreferenceOfChannelInput,
23
+ output: SendbirdUpdateCountPreferenceOfChannelOutput
24
+ });
25
+ //#endregion
26
+ exports.sendbirdUpdateCountPreferenceOfChannel = sendbirdUpdateCountPreferenceOfChannel;
27
+
28
+ //# sourceMappingURL=update-count-preference-of-channel.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-count-preference-of-channel.cjs","names":["z","action"],"sources":["../../src/actions/update-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateCountPreferenceOfChannelInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL identifier of the group channel.\"),\n count_preference: z.enum([\"all\", \"unread_message_count_only\", \"mention_count_only\", \"none\"]).describe(\"The user's count preference for the channel: one of 'all', 'unread_message_count_only', 'mention_count_only', or 'none'.\"),\n}).describe(\"Request model for updating a user's unread count preference for a specific group channel.\");\nexport const SendbirdUpdateCountPreferenceOfChannelOutput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"URL identifier of the group channel.\"),\n count_preference: z.string().describe(\"The updated user count preference. Possible values: 'all' (track both unread messages and mentions), 'unread_message_count_only' (track only unread messages), 'unread_mention_count_only' (track only mentions), or 'off' (disable tracking).\"),\n}).describe(\"Response model for updating a user's unread count preference.\");\n\nexport const sendbirdUpdateCountPreferenceOfChannel = action(\"SENDBIRD_UPDATE_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-update-count-preference-of-channel\",\n name: \"Update Count Preference Of Channel\",\n description: \"Tool to update a user's unread count preference for a specific group channel. Use when you want to include or suppress a channel in the user's unread counts.\",\n input: SendbirdUpdateCountPreferenceOfChannelInput,\n output: SendbirdUpdateCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8CAA4DA,IAAAA,EAAE,OAAO;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACvE,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAA6B;EAAsB;CAAM,CAAC,CAAC,CAAC,SAAS,0HAA0H;AAClO,CAAC,CAAC,CAAC,SAAS,2FAA2F;AACvG,MAAa,+CAA6DA,IAAAA,EAAE,OAAO;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACvE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gPAAgP;AACxR,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAE3E,MAAa,yCAAyCC,eAAAA,OAAO,+CAA+C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-count-preference-of-channel.d.ts
4
+ declare const SendbirdUpdateCountPreferenceOfChannelInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateCountPreferenceOfChannelOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateCountPreferenceOfChannel };
9
+ //# sourceMappingURL=update-count-preference-of-channel.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-count-preference-of-channel.d.cts","names":[],"sources":["../../src/actions/update-count-preference-of-channel.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAI4C;AAAA,cAC3F,4CAAA,EAA8C,CAAA,CAAE,UAGe;AAAA,cAE/D,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-count-preference-of-channel.d.ts
4
+ declare const SendbirdUpdateCountPreferenceOfChannelInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateCountPreferenceOfChannelOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateCountPreferenceOfChannel };
9
+ //# sourceMappingURL=update-count-preference-of-channel.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-count-preference-of-channel.d.mts","names":[],"sources":["../../src/actions/update-count-preference-of-channel.ts"],"mappings":";;;cAIa,2CAAA,EAA6C,CAAA,CAAE,UAI4C;AAAA,cAC3F,4CAAA,EAA8C,CAAA,CAAE,UAGe;AAAA,cAE/D,sCAAA,gCAAsC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const sendbirdUpdateCountPreferenceOfChannel = action("SENDBIRD_UPDATE_COUNT_PREFERENCE_OF_CHANNEL", {
4
+ slug: "sendbird-update-count-preference-of-channel",
5
+ name: "Update Count Preference Of Channel",
6
+ description: "Tool to update a user's unread count preference for a specific group channel. Use when you want to include or suppress a channel in the user's unread counts.",
7
+ input: z.object({
8
+ user_id: z.string().describe("The unique ID of the user."),
9
+ channel_url: z.string().describe("URL identifier of the group channel."),
10
+ count_preference: z.enum([
11
+ "all",
12
+ "unread_message_count_only",
13
+ "mention_count_only",
14
+ "none"
15
+ ]).describe("The user's count preference for the channel: one of 'all', 'unread_message_count_only', 'mention_count_only', or 'none'.")
16
+ }).describe("Request model for updating a user's unread count preference for a specific group channel."),
17
+ output: z.object({
18
+ channel_url: z.string().describe("URL identifier of the group channel."),
19
+ count_preference: z.string().describe("The updated user count preference. Possible values: 'all' (track both unread messages and mentions), 'unread_message_count_only' (track only unread messages), 'unread_mention_count_only' (track only mentions), or 'off' (disable tracking).")
20
+ }).describe("Response model for updating a user's unread count preference.")
21
+ });
22
+ //#endregion
23
+ export { sendbirdUpdateCountPreferenceOfChannel };
24
+
25
+ //# sourceMappingURL=update-count-preference-of-channel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-count-preference-of-channel.mjs","names":[],"sources":["../../src/actions/update-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateCountPreferenceOfChannelInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL identifier of the group channel.\"),\n count_preference: z.enum([\"all\", \"unread_message_count_only\", \"mention_count_only\", \"none\"]).describe(\"The user's count preference for the channel: one of 'all', 'unread_message_count_only', 'mention_count_only', or 'none'.\"),\n}).describe(\"Request model for updating a user's unread count preference for a specific group channel.\");\nexport const SendbirdUpdateCountPreferenceOfChannelOutput: z.ZodTypeAny = z.object({\n channel_url: z.string().describe(\"URL identifier of the group channel.\"),\n count_preference: z.string().describe(\"The updated user count preference. Possible values: 'all' (track both unread messages and mentions), 'unread_message_count_only' (track only unread messages), 'unread_mention_count_only' (track only mentions), or 'off' (disable tracking).\"),\n}).describe(\"Response model for updating a user's unread count preference.\");\n\nexport const sendbirdUpdateCountPreferenceOfChannel = action(\"SENDBIRD_UPDATE_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-update-count-preference-of-channel\",\n name: \"Update Count Preference Of Channel\",\n description: \"Tool to update a user's unread count preference for a specific group channel. Use when you want to include or suppress a channel in the user's unread counts.\",\n input: SendbirdUpdateCountPreferenceOfChannelInput,\n output: SendbirdUpdateCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;AAcA,MAAa,yCAAyC,OAAO,+CAA+C;CAC1G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAduE,EAAE,OAAO;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACvE,kBAAkB,EAAE,KAAK;GAAC;GAAO;GAA6B;GAAsB;EAAM,CAAC,CAAC,CAAC,SAAS,0HAA0H;CAClO,CAAC,CAAC,CAAC,SAAS,2FAUH;CACP,QAVwE,EAAE,OAAO;EACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;EACvE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,gPAAgP;CACxR,CAAC,CAAC,CAAC,SAAS,+DAOF;AACV,CAAC"}
@@ -0,0 +1,42 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-group-channel.ts
4
+ const SendbirdUpdateGroupChannelInput = zod.z.object({
5
+ data: zod.z.string().describe("Custom channel data as a JSON-encoded string").optional(),
6
+ name: zod.z.string().describe("New name for the channel").optional(),
7
+ is_super: zod.z.boolean().describe("Whether this is a supergroup channel").optional(),
8
+ cover_url: zod.z.string().describe("HTTPS URL for the channel's cover image").optional(),
9
+ is_public: zod.z.boolean().describe("Whether this channel is publicly joinable").optional(),
10
+ operators: zod.z.array(zod.z.string()).describe("List of user IDs to assign as channel operators").optional(),
11
+ access_code: zod.z.string().describe("Access code required for joining this channel").optional(),
12
+ channel_url: zod.z.string().describe("URL identifier of the group channel to update"),
13
+ custom_type: zod.z.string().describe("Custom type label for the channel").optional(),
14
+ is_distinct: zod.z.boolean().describe("Whether this is a distinct channel").optional(),
15
+ is_ephemeral: zod.z.boolean().describe("Whether this channel is ephemeral").optional(),
16
+ my_count_preference: zod.z.enum(["unread_message_count_only", "all_count"]).describe("Unread count preference (\"unread_message_count_only\" or \"all_count\")").optional()
17
+ }).describe("Request schema for updating a Sendbird group channel.");
18
+ const SendbirdUpdateGroupChannelOutput = zod.z.object({
19
+ data: zod.z.string().describe("Custom data string for the channel").nullable().optional(),
20
+ name: zod.z.string().describe("Name of the channel").nullable().optional(),
21
+ is_super: zod.z.boolean().describe("True if channel is a supergroup"),
22
+ cover_url: zod.z.string().describe("Cover image URL").nullable().optional(),
23
+ is_public: zod.z.boolean().describe("True if channel is public"),
24
+ operators: zod.z.array(zod.z.string()).describe("User IDs of channel operators").nullable().optional(),
25
+ access_code: zod.z.string().describe("Access code for channel joining").nullable().optional(),
26
+ channel_url: zod.z.string().describe("Unique URL of the group channel"),
27
+ custom_type: zod.z.string().describe("Custom type of the channel").nullable().optional(),
28
+ is_distinct: zod.z.boolean().describe("True if channel is distinct"),
29
+ is_ephemeral: zod.z.boolean().describe("True if channel is ephemeral"),
30
+ my_count_preference: zod.z.string().describe("Unread count setting").nullable().optional()
31
+ }).passthrough().describe("Response schema for an updated Sendbird group channel.");
32
+ const sendbirdUpdateGroupChannel = require_action.action("SENDBIRD_UPDATE_GROUP_CHANNEL", {
33
+ slug: "sendbird-update-group-channel",
34
+ name: "Update Group Channel",
35
+ description: "Tool to update group channel information. Use when you need to modify channel attributes such as name, cover image, privacy settings, or operator list after channel creation.",
36
+ input: SendbirdUpdateGroupChannelInput,
37
+ output: SendbirdUpdateGroupChannelOutput
38
+ });
39
+ //#endregion
40
+ exports.sendbirdUpdateGroupChannel = sendbirdUpdateGroupChannel;
41
+
42
+ //# sourceMappingURL=update-group-channel.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-group-channel.cjs","names":["z","action"],"sources":["../../src/actions/update-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateGroupChannelInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom channel data as a JSON-encoded string\").optional(),\n name: z.string().describe(\"New name for the channel\").optional(),\n is_super: z.boolean().describe(\"Whether this is a supergroup channel\").optional(),\n cover_url: z.string().describe(\"HTTPS URL for the channel's cover image\").optional(),\n is_public: z.boolean().describe(\"Whether this channel is publicly joinable\").optional(),\n operators: z.array(z.string()).describe(\"List of user IDs to assign as channel operators\").optional(),\n access_code: z.string().describe(\"Access code required for joining this channel\").optional(),\n channel_url: z.string().describe(\"URL identifier of the group channel to update\"),\n custom_type: z.string().describe(\"Custom type label for the channel\").optional(),\n is_distinct: z.boolean().describe(\"Whether this is a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"Whether this channel is ephemeral\").optional(),\n my_count_preference: z.enum([\"unread_message_count_only\", \"all_count\"]).describe(\"Unread count preference (\\\"unread_message_count_only\\\" or \\\"all_count\\\")\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel.\");\nexport const SendbirdUpdateGroupChannelOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom data string for the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n is_super: z.boolean().describe(\"True if channel is a supergroup\"),\n cover_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n is_public: z.boolean().describe(\"True if channel is public\"),\n operators: z.array(z.string()).describe(\"User IDs of channel operators\").nullable().optional(),\n access_code: z.string().describe(\"Access code for channel joining\").nullable().optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel\"),\n custom_type: z.string().describe(\"Custom type of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"True if channel is distinct\"),\n is_ephemeral: z.boolean().describe(\"True if channel is ephemeral\"),\n my_count_preference: z.string().describe(\"Unread count setting\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel.\");\n\nexport const sendbirdUpdateGroupChannel = action(\"SENDBIRD_UPDATE_GROUP_CHANNEL\", {\n slug: \"sendbird-update-group-channel\",\n name: \"Update Group Channel\",\n description: \"Tool to update group channel information. Use when you need to modify channel attributes such as name, cover image, privacy settings, or operator list after channel creation.\",\n input: Sendbird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C,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iCAAiC;CAChE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2BAA2B;CAC3D,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6BAA6B;CAC/D,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8BAA8B;CACjE,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAElF,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-group-channel.d.ts
4
+ declare const SendbirdUpdateGroupChannelInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateGroupChannelOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateGroupChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateGroupChannel };
9
+ //# sourceMappingURL=update-group-channel.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-group-channel.d.cts","names":[],"sources":["../../src/actions/update-group-channel.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAaoB;AAAA,cACvD,gCAAA,EAAkC,CAAA,CAAE,UAakC;AAAA,cAEtE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-group-channel.d.ts
4
+ declare const SendbirdUpdateGroupChannelInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateGroupChannelOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateGroupChannel: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateGroupChannel };
9
+ //# sourceMappingURL=update-group-channel.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-group-channel.d.mts","names":[],"sources":["../../src/actions/update-group-channel.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAaoB;AAAA,cACvD,gCAAA,EAAkC,CAAA,CAAE,UAakC;AAAA,cAEtE,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const sendbirdUpdateGroupChannel = action("SENDBIRD_UPDATE_GROUP_CHANNEL", {
4
+ slug: "sendbird-update-group-channel",
5
+ name: "Update Group Channel",
6
+ description: "Tool to update group channel information. Use when you need to modify channel attributes such as name, cover image, privacy settings, or operator list after channel creation.",
7
+ input: z.object({
8
+ data: z.string().describe("Custom channel data as a JSON-encoded string").optional(),
9
+ name: z.string().describe("New name for the channel").optional(),
10
+ is_super: z.boolean().describe("Whether this is a supergroup channel").optional(),
11
+ cover_url: z.string().describe("HTTPS URL for the channel's cover image").optional(),
12
+ is_public: z.boolean().describe("Whether this channel is publicly joinable").optional(),
13
+ operators: z.array(z.string()).describe("List of user IDs to assign as channel operators").optional(),
14
+ access_code: z.string().describe("Access code required for joining this channel").optional(),
15
+ channel_url: z.string().describe("URL identifier of the group channel to update"),
16
+ custom_type: z.string().describe("Custom type label for the channel").optional(),
17
+ is_distinct: z.boolean().describe("Whether this is a distinct channel").optional(),
18
+ is_ephemeral: z.boolean().describe("Whether this channel is ephemeral").optional(),
19
+ my_count_preference: z.enum(["unread_message_count_only", "all_count"]).describe("Unread count preference (\"unread_message_count_only\" or \"all_count\")").optional()
20
+ }).describe("Request schema for updating a Sendbird group channel."),
21
+ output: z.object({
22
+ data: z.string().describe("Custom data string for the channel").nullable().optional(),
23
+ name: z.string().describe("Name of the channel").nullable().optional(),
24
+ is_super: z.boolean().describe("True if channel is a supergroup"),
25
+ cover_url: z.string().describe("Cover image URL").nullable().optional(),
26
+ is_public: z.boolean().describe("True if channel is public"),
27
+ operators: z.array(z.string()).describe("User IDs of channel operators").nullable().optional(),
28
+ access_code: z.string().describe("Access code for channel joining").nullable().optional(),
29
+ channel_url: z.string().describe("Unique URL of the group channel"),
30
+ custom_type: z.string().describe("Custom type of the channel").nullable().optional(),
31
+ is_distinct: z.boolean().describe("True if channel is distinct"),
32
+ is_ephemeral: z.boolean().describe("True if channel is ephemeral"),
33
+ my_count_preference: z.string().describe("Unread count setting").nullable().optional()
34
+ }).passthrough().describe("Response schema for an updated Sendbird group channel.")
35
+ });
36
+ //#endregion
37
+ export { sendbirdUpdateGroupChannel };
38
+
39
+ //# sourceMappingURL=update-group-channel.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-group-channel.mjs","names":[],"sources":["../../src/actions/update-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateGroupChannelInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom channel data as a JSON-encoded string\").optional(),\n name: z.string().describe(\"New name for the channel\").optional(),\n is_super: z.boolean().describe(\"Whether this is a supergroup channel\").optional(),\n cover_url: z.string().describe(\"HTTPS URL for the channel's cover image\").optional(),\n is_public: z.boolean().describe(\"Whether this channel is publicly joinable\").optional(),\n operators: z.array(z.string()).describe(\"List of user IDs to assign as channel operators\").optional(),\n access_code: z.string().describe(\"Access code required for joining this channel\").optional(),\n channel_url: z.string().describe(\"URL identifier of the group channel to update\"),\n custom_type: z.string().describe(\"Custom type label for the channel\").optional(),\n is_distinct: z.boolean().describe(\"Whether this is a distinct channel\").optional(),\n is_ephemeral: z.boolean().describe(\"Whether this channel is ephemeral\").optional(),\n my_count_preference: z.enum([\"unread_message_count_only\", \"all_count\"]).describe(\"Unread count preference (\\\"unread_message_count_only\\\" or \\\"all_count\\\")\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel.\");\nexport const SendbirdUpdateGroupChannelOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Custom data string for the channel\").nullable().optional(),\n name: z.string().describe(\"Name of the channel\").nullable().optional(),\n is_super: z.boolean().describe(\"True if channel is a supergroup\"),\n cover_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n is_public: z.boolean().describe(\"True if channel is public\"),\n operators: z.array(z.string()).describe(\"User IDs of channel operators\").nullable().optional(),\n access_code: z.string().describe(\"Access code for channel joining\").nullable().optional(),\n channel_url: z.string().describe(\"Unique URL of the group channel\"),\n custom_type: z.string().describe(\"Custom type of the channel\").nullable().optional(),\n is_distinct: z.boolean().describe(\"True if channel is distinct\"),\n is_ephemeral: z.boolean().describe(\"True if channel is ephemeral\"),\n my_count_preference: z.string().describe(\"Unread count setting\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel.\");\n\nexport const sendbirdUpdateGroupChannel = action(\"SENDBIRD_UPDATE_GROUP_CHANNEL\", {\n slug: \"sendbird-update-group-channel\",\n name: \"Update Group Channel\",\n description: \"Tool to update group channel information. Use when you need to modify channel attributes such as name, cover image, privacy settings, or operator list after channel creation.\",\n input: SendbirdUpdateGroupChannelInput,\n output: SendbirdUpdateGroupChannelOutput,\n});\n"],"mappings":";;AAiCA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjC2D,EAAE,OAAO;EACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EAC/D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAChF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACnF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACpG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAChF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACjF,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,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Input = zod.z.object({
5
+ data: zod.z.string().describe("Additional data for the message as a JSON-encoded string").optional(),
6
+ content: zod.z.string().describe("New text content of the message").optional(),
7
+ user_id: zod.z.string().describe("ID of the user performing the update").optional(),
8
+ dedup_id: zod.z.string().describe("Deduplication ID for the message update").optional(),
9
+ is_silent: zod.z.boolean().describe("Whether the message update should be silent (no push notification)").optional(),
10
+ message_id: zod.z.string().describe("Unique ID of the message to update"),
11
+ channel_url: zod.z.string().describe("URL identifier of the group channel containing the message"),
12
+ custom_type: zod.z.string().describe("Custom type label for the message").optional(),
13
+ mention_type: zod.z.string().describe("Mention type for the message (e.g., 'users' or 'channel')").optional(),
14
+ message_type: zod.z.string().describe("Type of the message (e.g., 'MESG' or 'FILE')").optional(),
15
+ apns_bundle_id: zod.z.string().describe("APNs bundle ID for iOS push notifications").optional(),
16
+ sorted_metaarray: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Sorted metaarray objects for the message").optional(),
17
+ mentioned_user_ids: zod.z.array(zod.z.string()).describe("List of user IDs to mention in the message").optional(),
18
+ push_notification_delivery_option: zod.z.string().describe("Push notification delivery option ('default', 'suppress')").optional()
19
+ }).describe("Request schema for updating a Sendbird group channel message.");
20
+ const SendbirdUpdateMessageOutput = zod.z.object({
21
+ data: zod.z.string().describe("Additional data in the message").nullable().optional(),
22
+ file: zod.z.record(zod.z.string(), zod.z.unknown()).describe("File object if the message contains a file").nullable().optional(),
23
+ type: zod.z.string().describe("Type of the message"),
24
+ user: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User object who sent the message"),
25
+ og_tag: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Open Graph tag information for the message").nullable().optional(),
26
+ content: zod.z.string().describe("Content of the message").nullable().optional(),
27
+ is_silent: zod.z.boolean().describe("True if the update was silent"),
28
+ reactions: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of reaction objects on the message").nullable().optional(),
29
+ created_at: zod.z.number().int().describe("Timestamp when the message was created (ms since epoch)"),
30
+ message_id: zod.z.string().describe("Unique ID of the updated message"),
31
+ updated_at: zod.z.number().int().describe("Timestamp when the message was last updated (ms since epoch)"),
32
+ channel_url: zod.z.string().describe("URL of the channel containing the message"),
33
+ custom_type: zod.z.string().describe("Custom type of the message").nullable().optional(),
34
+ thread_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Thread information if part of a thread").nullable().optional(),
35
+ mention_type: zod.z.string().describe("Mention type in the message").nullable().optional(),
36
+ translations: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Translations available for the message").nullable().optional(),
37
+ mentioned_users: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of mentioned user objects").nullable().optional(),
38
+ sorted_metaarray: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Sorted metaarray objects for the message").nullable().optional(),
39
+ parent_message_id: zod.z.number().int().describe("ID of the parent message if this is a reply").nullable().optional(),
40
+ is_reply_to_channel: zod.z.boolean().describe("True if message is a direct reply to channel").nullable().optional(),
41
+ parent_message_info: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Parent message data if this is a reply").nullable().optional(),
42
+ apple_critical_alert_options: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Apple critical alert options for the message").nullable().optional()
43
+ }).passthrough().describe("Response schema for an updated Sendbird group channel message.");
44
+ const sendbirdUpdateMessage = require_action.action("SENDBIRD_UPDATE_MESSAGE", {
45
+ slug: "sendbird-update-message",
46
+ name: "Sendbird Update Message",
47
+ description: "Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.",
48
+ input: SendbirdUpdateMessageInput,
49
+ output: SendbirdUpdateMessageOutput
50
+ });
51
+ //#endregion
52
+ exports.sendbirdUpdateMessage = sendbirdUpdateMessage;
53
+
54
+ //# sourceMappingURL=update-message.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-message.cjs","names":["z","action"],"sources":["../../src/actions/update-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateMessageInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Additional data for the message as a JSON-encoded string\").optional(),\n content: z.string().describe(\"New text content of the message\").optional(),\n user_id: z.string().describe(\"ID of the user performing the update\").optional(),\n dedup_id: z.string().describe(\"Deduplication ID for the message update\").optional(),\n is_silent: z.boolean().describe(\"Whether the message update should be silent (no push notification)\").optional(),\n message_id: z.string().describe(\"Unique ID of the message to update\"),\n channel_url: z.string().describe(\"URL identifier of the group channel containing the message\"),\n custom_type: z.string().describe(\"Custom type label for the message\").optional(),\n mention_type: z.string().describe(\"Mention type for the message (e.g., 'users' or 'channel')\").optional(),\n message_type: z.string().describe(\"Type of the message (e.g., 'MESG' or 'FILE')\").optional(),\n apns_bundle_id: z.string().describe(\"APNs bundle ID for iOS push notifications\").optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention in the message\").optional(),\n push_notification_delivery_option: z.string().describe(\"Push notification delivery option ('default', 'suppress')\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel message.\");\nexport const SendbirdUpdateMessageOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Additional data in the message\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File object if the message contains a file\").nullable().optional(),\n type: z.string().describe(\"Type of the message\"),\n user: z.record(z.string(), z.unknown()).describe(\"User object who sent the message\"),\n og_tag: z.record(z.string(), z.unknown()).describe(\"Open Graph tag information for the message\").nullable().optional(),\n content: z.string().describe(\"Content of the message\").nullable().optional(),\n is_silent: z.boolean().describe(\"True if the update was silent\"),\n reactions: z.array(z.record(z.string(), z.unknown())).describe(\"List of reaction objects on the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the message was created (ms since epoch)\"),\n message_id: z.string().describe(\"Unique ID of the updated message\"),\n updated_at: z.number().int().describe(\"Timestamp when the message was last updated (ms since epoch)\"),\n channel_url: z.string().describe(\"URL of the channel containing the message\"),\n custom_type: z.string().describe(\"Custom type of the message\").nullable().optional(),\n thread_info: z.record(z.string(), z.unknown()).describe(\"Thread information if part of a thread\").nullable().optional(),\n mention_type: z.string().describe(\"Mention type in the message\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translations available for the message\").nullable().optional(),\n mentioned_users: z.array(z.record(z.string(), z.unknown())).describe(\"List of mentioned user objects\").nullable().optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"ID of the parent message if this is a reply\").nullable().optional(),\n is_reply_to_channel: z.boolean().describe(\"True if message is a direct reply to channel\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message data if this is a reply\").nullable().optional(),\n apple_critical_alert_options: z.record(z.string(), z.unknown()).describe(\"Apple critical alert options for the message\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel message.\");\n\nexport const sendbirdUpdateMessage = action(\"SENDBIRD_UPDATE_MESSAGE\", {\n slug: \"sendbird-update-message\",\n name: \"Sendbird Update Message\",\n description: \"Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.\",\n input: SendbirdUpdateMessageInput,\n output: SendbirdUpdateMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAClF,WAAWA,IA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.d.ts
4
+ declare const SendbirdUpdateMessageInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateMessageOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateMessage };
9
+ //# sourceMappingURL=update-message.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-message.d.cts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAeiC;AAAA,cAC/D,2BAAA,EAA6B,CAAA,CAAE,UAuB+C;AAAA,cAE9E,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-message.d.ts
4
+ declare const SendbirdUpdateMessageInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateMessageOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateMessage: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateMessage };
9
+ //# sourceMappingURL=update-message.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-message.d.mts","names":[],"sources":["../../src/actions/update-message.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAeiC;AAAA,cAC/D,2BAAA,EAA6B,CAAA,CAAE,UAuB+C;AAAA,cAE9E,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,51 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const sendbirdUpdateMessage = action("SENDBIRD_UPDATE_MESSAGE", {
4
+ slug: "sendbird-update-message",
5
+ name: "Sendbird Update Message",
6
+ description: "Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.",
7
+ input: z.object({
8
+ data: z.string().describe("Additional data for the message as a JSON-encoded string").optional(),
9
+ content: z.string().describe("New text content of the message").optional(),
10
+ user_id: z.string().describe("ID of the user performing the update").optional(),
11
+ dedup_id: z.string().describe("Deduplication ID for the message update").optional(),
12
+ is_silent: z.boolean().describe("Whether the message update should be silent (no push notification)").optional(),
13
+ message_id: z.string().describe("Unique ID of the message to update"),
14
+ channel_url: z.string().describe("URL identifier of the group channel containing the message"),
15
+ custom_type: z.string().describe("Custom type label for the message").optional(),
16
+ mention_type: z.string().describe("Mention type for the message (e.g., 'users' or 'channel')").optional(),
17
+ message_type: z.string().describe("Type of the message (e.g., 'MESG' or 'FILE')").optional(),
18
+ apns_bundle_id: z.string().describe("APNs bundle ID for iOS push notifications").optional(),
19
+ sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe("Sorted metaarray objects for the message").optional(),
20
+ mentioned_user_ids: z.array(z.string()).describe("List of user IDs to mention in the message").optional(),
21
+ push_notification_delivery_option: z.string().describe("Push notification delivery option ('default', 'suppress')").optional()
22
+ }).describe("Request schema for updating a Sendbird group channel message."),
23
+ output: z.object({
24
+ data: z.string().describe("Additional data in the message").nullable().optional(),
25
+ file: z.record(z.string(), z.unknown()).describe("File object if the message contains a file").nullable().optional(),
26
+ type: z.string().describe("Type of the message"),
27
+ user: z.record(z.string(), z.unknown()).describe("User object who sent the message"),
28
+ og_tag: z.record(z.string(), z.unknown()).describe("Open Graph tag information for the message").nullable().optional(),
29
+ content: z.string().describe("Content of the message").nullable().optional(),
30
+ is_silent: z.boolean().describe("True if the update was silent"),
31
+ reactions: z.array(z.record(z.string(), z.unknown())).describe("List of reaction objects on the message").nullable().optional(),
32
+ created_at: z.number().int().describe("Timestamp when the message was created (ms since epoch)"),
33
+ message_id: z.string().describe("Unique ID of the updated message"),
34
+ updated_at: z.number().int().describe("Timestamp when the message was last updated (ms since epoch)"),
35
+ channel_url: z.string().describe("URL of the channel containing the message"),
36
+ custom_type: z.string().describe("Custom type of the message").nullable().optional(),
37
+ thread_info: z.record(z.string(), z.unknown()).describe("Thread information if part of a thread").nullable().optional(),
38
+ mention_type: z.string().describe("Mention type in the message").nullable().optional(),
39
+ translations: z.record(z.string(), z.unknown()).describe("Translations available for the message").nullable().optional(),
40
+ mentioned_users: z.array(z.record(z.string(), z.unknown())).describe("List of mentioned user objects").nullable().optional(),
41
+ sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe("Sorted metaarray objects for the message").nullable().optional(),
42
+ parent_message_id: z.number().int().describe("ID of the parent message if this is a reply").nullable().optional(),
43
+ is_reply_to_channel: z.boolean().describe("True if message is a direct reply to channel").nullable().optional(),
44
+ parent_message_info: z.record(z.string(), z.unknown()).describe("Parent message data if this is a reply").nullable().optional(),
45
+ apple_critical_alert_options: z.record(z.string(), z.unknown()).describe("Apple critical alert options for the message").nullable().optional()
46
+ }).passthrough().describe("Response schema for an updated Sendbird group channel message.")
47
+ });
48
+ //#endregion
49
+ export { sendbirdUpdateMessage };
50
+
51
+ //# sourceMappingURL=update-message.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-message.mjs","names":[],"sources":["../../src/actions/update-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateMessageInput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Additional data for the message as a JSON-encoded string\").optional(),\n content: z.string().describe(\"New text content of the message\").optional(),\n user_id: z.string().describe(\"ID of the user performing the update\").optional(),\n dedup_id: z.string().describe(\"Deduplication ID for the message update\").optional(),\n is_silent: z.boolean().describe(\"Whether the message update should be silent (no push notification)\").optional(),\n message_id: z.string().describe(\"Unique ID of the message to update\"),\n channel_url: z.string().describe(\"URL identifier of the group channel containing the message\"),\n custom_type: z.string().describe(\"Custom type label for the message\").optional(),\n mention_type: z.string().describe(\"Mention type for the message (e.g., 'users' or 'channel')\").optional(),\n message_type: z.string().describe(\"Type of the message (e.g., 'MESG' or 'FILE')\").optional(),\n apns_bundle_id: z.string().describe(\"APNs bundle ID for iOS push notifications\").optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention in the message\").optional(),\n push_notification_delivery_option: z.string().describe(\"Push notification delivery option ('default', 'suppress')\").optional(),\n}).describe(\"Request schema for updating a Sendbird group channel message.\");\nexport const SendbirdUpdateMessageOutput: z.ZodTypeAny = z.object({\n data: z.string().describe(\"Additional data in the message\").nullable().optional(),\n file: z.record(z.string(), z.unknown()).describe(\"File object if the message contains a file\").nullable().optional(),\n type: z.string().describe(\"Type of the message\"),\n user: z.record(z.string(), z.unknown()).describe(\"User object who sent the message\"),\n og_tag: z.record(z.string(), z.unknown()).describe(\"Open Graph tag information for the message\").nullable().optional(),\n content: z.string().describe(\"Content of the message\").nullable().optional(),\n is_silent: z.boolean().describe(\"True if the update was silent\"),\n reactions: z.array(z.record(z.string(), z.unknown())).describe(\"List of reaction objects on the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp when the message was created (ms since epoch)\"),\n message_id: z.string().describe(\"Unique ID of the updated message\"),\n updated_at: z.number().int().describe(\"Timestamp when the message was last updated (ms since epoch)\"),\n channel_url: z.string().describe(\"URL of the channel containing the message\"),\n custom_type: z.string().describe(\"Custom type of the message\").nullable().optional(),\n thread_info: z.record(z.string(), z.unknown()).describe(\"Thread information if part of a thread\").nullable().optional(),\n mention_type: z.string().describe(\"Mention type in the message\").nullable().optional(),\n translations: z.record(z.string(), z.unknown()).describe(\"Translations available for the message\").nullable().optional(),\n mentioned_users: z.array(z.record(z.string(), z.unknown())).describe(\"List of mentioned user objects\").nullable().optional(),\n sorted_metaarray: z.array(z.record(z.string(), z.unknown())).describe(\"Sorted metaarray objects for the message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"ID of the parent message if this is a reply\").nullable().optional(),\n is_reply_to_channel: z.boolean().describe(\"True if message is a direct reply to channel\").nullable().optional(),\n parent_message_info: z.record(z.string(), z.unknown()).describe(\"Parent message data if this is a reply\").nullable().optional(),\n apple_critical_alert_options: z.record(z.string(), z.unknown()).describe(\"Apple critical alert options for the message\").nullable().optional(),\n}).passthrough().describe(\"Response schema for an updated Sendbird group channel message.\");\n\nexport const sendbirdUpdateMessage = action(\"SENDBIRD_UPDATE_MESSAGE\", {\n slug: \"sendbird-update-message\",\n name: \"Sendbird Update Message\",\n description: \"Tool to update an existing group channel message in Sendbird. Use after you need to modify content or metadata of a sent message.\",\n input: SendbirdUpdateMessageInput,\n output: SendbirdUpdateMessageOutput,\n});\n"],"mappings":";;AA6CA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7CsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC/G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC/E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;EACxG,cAAc,EAAE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AAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,8BAA8B,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -0,0 +1,39 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-user.ts
4
+ const SendbirdUpdateUserInput = zod.z.object({
5
+ user_id: zod.z.string().describe("Unique ID of the user to update"),
6
+ metadata: zod.z.object({}).describe("Custom key-value store for user metadata").optional(),
7
+ nickname: zod.z.string().describe("New display name for the user").optional(),
8
+ is_active: zod.z.boolean().describe("Set to false to deactivate the user account").optional(),
9
+ profile_url: zod.z.string().describe("URL of the new profile image").optional(),
10
+ issue_access_token: zod.z.boolean().describe("Whether to issue a new access token for the user").optional(),
11
+ preferred_languages: zod.z.array(zod.z.string()).describe("List of language tags for localization").optional()
12
+ }).describe("Request model for updating a Sendbird user.");
13
+ const SendbirdUpdateUserOutput = zod.z.object({
14
+ user_id: zod.z.string().describe("Unique ID of the user"),
15
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata of the user").nullable().optional(),
16
+ nickname: zod.z.string().describe("Display name of the user").nullable().optional(),
17
+ is_active: zod.z.boolean().describe("Whether the user account is active").nullable().optional(),
18
+ is_online: zod.z.boolean().describe("Whether the user is currently online").nullable().optional(),
19
+ created_at: zod.z.number().int().describe("Unix timestamp (ms) of when the user was created").nullable().optional(),
20
+ profile_url: zod.z.string().describe("Profile image URL of the user").nullable().optional(),
21
+ access_token: zod.z.string().describe("Access token for the user, returned if issue_access_token was true").nullable().optional(),
22
+ last_seen_at: zod.z.number().int().describe("Unix timestamp (ms) when the user was last seen").nullable().optional(),
23
+ phone_number: zod.z.string().describe("User's phone number if configured").nullable().optional(),
24
+ discovery_keys: zod.z.array(zod.z.string()).describe("Discovery keys for the Discovery feature").nullable().optional(),
25
+ has_ever_logged_in: zod.z.boolean().describe("Whether the user has ever logged in").nullable().optional(),
26
+ preferred_languages: zod.z.array(zod.z.string()).describe("User's preferred language codes").nullable().optional(),
27
+ require_auth_for_profile_image: zod.z.boolean().describe("Whether profile image requires authentication to access").nullable().optional()
28
+ }).passthrough().describe("Response model returned after updating a Sendbird user.");
29
+ const sendbirdUpdateUser = require_action.action("SENDBIRD_UPDATE_USER", {
30
+ slug: "sendbird-update-user",
31
+ name: "Update Sendbird User",
32
+ description: "Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.",
33
+ input: SendbirdUpdateUserInput,
34
+ output: SendbirdUpdateUserOutput
35
+ });
36
+ //#endregion
37
+ exports.sendbirdUpdateUser = sendbirdUpdateUser;
38
+
39
+ //# sourceMappingURL=update-user.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user.cjs","names":["z","action"],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.object({}).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CAC9D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAC1E,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,C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AAS;CAC3F,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,oBAAoBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,qBAAqBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,gCAAgCA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-user.d.ts
4
+ declare const SendbirdUpdateUserInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateUserOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateUser };
9
+ //# sourceMappingURL=update-user.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user.d.cts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQkB;AAAA,cAC7C,wBAAA,EAA0B,CAAA,CAAE,UAe2C;AAAA,cAEvE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-user.d.ts
4
+ declare const SendbirdUpdateUserInput: z.ZodTypeAny;
5
+ declare const SendbirdUpdateUserOutput: z.ZodTypeAny;
6
+ declare const sendbirdUpdateUser: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { sendbirdUpdateUser };
9
+ //# sourceMappingURL=update-user.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user.d.mts","names":[],"sources":["../../src/actions/update-user.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAQkB;AAAA,cAC7C,wBAAA,EAA0B,CAAA,CAAE,UAe2C;AAAA,cAEvE,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,36 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const sendbirdUpdateUser = action("SENDBIRD_UPDATE_USER", {
4
+ slug: "sendbird-update-user",
5
+ name: "Update Sendbird User",
6
+ description: "Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.",
7
+ input: z.object({
8
+ user_id: z.string().describe("Unique ID of the user to update"),
9
+ metadata: z.object({}).describe("Custom key-value store for user metadata").optional(),
10
+ nickname: z.string().describe("New display name for the user").optional(),
11
+ is_active: z.boolean().describe("Set to false to deactivate the user account").optional(),
12
+ profile_url: z.string().describe("URL of the new profile image").optional(),
13
+ issue_access_token: z.boolean().describe("Whether to issue a new access token for the user").optional(),
14
+ preferred_languages: z.array(z.string()).describe("List of language tags for localization").optional()
15
+ }).describe("Request model for updating a Sendbird user."),
16
+ output: z.object({
17
+ user_id: z.string().describe("Unique ID of the user"),
18
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value metadata of the user").nullable().optional(),
19
+ nickname: z.string().describe("Display name of the user").nullable().optional(),
20
+ is_active: z.boolean().describe("Whether the user account is active").nullable().optional(),
21
+ is_online: z.boolean().describe("Whether the user is currently online").nullable().optional(),
22
+ created_at: z.number().int().describe("Unix timestamp (ms) of when the user was created").nullable().optional(),
23
+ profile_url: z.string().describe("Profile image URL of the user").nullable().optional(),
24
+ access_token: z.string().describe("Access token for the user, returned if issue_access_token was true").nullable().optional(),
25
+ last_seen_at: z.number().int().describe("Unix timestamp (ms) when the user was last seen").nullable().optional(),
26
+ phone_number: z.string().describe("User's phone number if configured").nullable().optional(),
27
+ discovery_keys: z.array(z.string()).describe("Discovery keys for the Discovery feature").nullable().optional(),
28
+ has_ever_logged_in: z.boolean().describe("Whether the user has ever logged in").nullable().optional(),
29
+ preferred_languages: z.array(z.string()).describe("User's preferred language codes").nullable().optional(),
30
+ require_auth_for_profile_image: z.boolean().describe("Whether profile image requires authentication to access").nullable().optional()
31
+ }).passthrough().describe("Response model returned after updating a Sendbird user.")
32
+ });
33
+ //#endregion
34
+ export { sendbirdUpdateUser };
35
+
36
+ //# sourceMappingURL=update-user.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-user.mjs","names":[],"sources":["../../src/actions/update-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUpdateUserInput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user to update\"),\n metadata: z.object({}).describe(\"Custom key-value store for user metadata\").optional(),\n nickname: z.string().describe(\"New display name for the user\").optional(),\n is_active: z.boolean().describe(\"Set to false to deactivate the user account\").optional(),\n profile_url: z.string().describe(\"URL of the new profile image\").optional(),\n issue_access_token: z.boolean().describe(\"Whether to issue a new access token for the user\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of language tags for localization\").optional(),\n}).describe(\"Request model for updating a Sendbird user.\");\nexport const SendbirdUpdateUserOutput: z.ZodTypeAny = z.object({\n user_id: z.string().describe(\"Unique ID of the user\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata of the user\").nullable().optional(),\n nickname: z.string().describe(\"Display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user account is active\").nullable().optional(),\n is_online: z.boolean().describe(\"Whether the user is currently online\").nullable().optional(),\n created_at: z.number().int().describe(\"Unix timestamp (ms) of when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the user\").nullable().optional(),\n access_token: z.string().describe(\"Access token for the user, returned if issue_access_token was true\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (ms) when the user was last seen\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number if configured\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"Discovery keys for the Discovery feature\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes\").nullable().optional(),\n require_auth_for_profile_image: z.boolean().describe(\"Whether profile image requires authentication to access\").nullable().optional(),\n}).passthrough().describe(\"Response model returned after updating a Sendbird user.\");\n\nexport const sendbirdUpdateUser = action(\"SENDBIRD_UPDATE_USER\", {\n slug: \"sendbird-update-user\",\n name: \"Update Sendbird User\",\n description: \"Tool to update a user's information. Use when modifying nickname, profile image URL, activation status, or metadata.\",\n input: SendbirdUpdateUserInput,\n output: SendbirdUpdateUserOutput,\n});\n"],"mappings":";;AA8BA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BmD,EAAE,OAAO;EAC5D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EAC9D,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,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