@keystrokehq/sendbird 0.1.5 → 0.1.6

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 (309) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-members-group-channel.cjs +1 -0
  4. package/dist/actions/add-members-group-channel.cjs.map +1 -1
  5. package/dist/actions/add-members-group-channel.d.cts +3 -20
  6. package/dist/actions/add-members-group-channel.d.cts.map +1 -1
  7. package/dist/actions/add-members-group-channel.d.mts +3 -20
  8. package/dist/actions/add-members-group-channel.d.mts.map +1 -1
  9. package/dist/actions/add-members-group-channel.mjs +1 -0
  10. package/dist/actions/add-members-group-channel.mjs.map +1 -1
  11. package/dist/actions/ban-user-from-group-channel.cjs +1 -0
  12. package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
  13. package/dist/actions/ban-user-from-group-channel.d.cts +3 -21
  14. package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
  15. package/dist/actions/ban-user-from-group-channel.d.mts +3 -21
  16. package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
  17. package/dist/actions/ban-user-from-group-channel.mjs +1 -0
  18. package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
  19. package/dist/actions/create-channel.cjs +1 -0
  20. package/dist/actions/create-channel.cjs.map +1 -1
  21. package/dist/actions/create-channel.d.cts +3 -34
  22. package/dist/actions/create-channel.d.cts.map +1 -1
  23. package/dist/actions/create-channel.d.mts +3 -34
  24. package/dist/actions/create-channel.d.mts.map +1 -1
  25. package/dist/actions/create-channel.mjs +1 -0
  26. package/dist/actions/create-channel.mjs.map +1 -1
  27. package/dist/actions/create-user.cjs +1 -0
  28. package/dist/actions/create-user.cjs.map +1 -1
  29. package/dist/actions/create-user.d.cts +3 -27
  30. package/dist/actions/create-user.d.cts.map +1 -1
  31. package/dist/actions/create-user.d.mts +3 -27
  32. package/dist/actions/create-user.d.mts.map +1 -1
  33. package/dist/actions/create-user.mjs +1 -0
  34. package/dist/actions/create-user.mjs.map +1 -1
  35. package/dist/actions/delete-channel.cjs +1 -0
  36. package/dist/actions/delete-channel.cjs.map +1 -1
  37. package/dist/actions/delete-channel.d.cts +3 -17
  38. package/dist/actions/delete-channel.d.cts.map +1 -1
  39. package/dist/actions/delete-channel.d.mts +3 -17
  40. package/dist/actions/delete-channel.d.mts.map +1 -1
  41. package/dist/actions/delete-channel.mjs +1 -0
  42. package/dist/actions/delete-channel.mjs.map +1 -1
  43. package/dist/actions/delete-message.cjs +1 -0
  44. package/dist/actions/delete-message.cjs.map +1 -1
  45. package/dist/actions/delete-message.d.cts +3 -18
  46. package/dist/actions/delete-message.d.cts.map +1 -1
  47. package/dist/actions/delete-message.d.mts +3 -18
  48. package/dist/actions/delete-message.d.mts.map +1 -1
  49. package/dist/actions/delete-message.mjs +1 -0
  50. package/dist/actions/delete-message.mjs.map +1 -1
  51. package/dist/actions/delete-user.cjs +1 -0
  52. package/dist/actions/delete-user.cjs.map +1 -1
  53. package/dist/actions/delete-user.d.cts +3 -18
  54. package/dist/actions/delete-user.d.cts.map +1 -1
  55. package/dist/actions/delete-user.d.mts +3 -18
  56. package/dist/actions/delete-user.d.mts.map +1 -1
  57. package/dist/actions/delete-user.mjs +1 -0
  58. package/dist/actions/delete-user.mjs.map +1 -1
  59. package/dist/actions/get-count-preference-of-channel.cjs +1 -0
  60. package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
  61. package/dist/actions/get-count-preference-of-channel.d.cts +4 -19
  62. package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
  63. package/dist/actions/get-count-preference-of-channel.d.mts +4 -19
  64. package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
  65. package/dist/actions/get-count-preference-of-channel.mjs +1 -0
  66. package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
  67. package/dist/actions/get-number-of-channels-by-join-status.cjs +1 -0
  68. package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -1
  69. package/dist/actions/get-number-of-channels-by-join-status.d.cts +3 -21
  70. package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -1
  71. package/dist/actions/get-number-of-channels-by-join-status.d.mts +3 -21
  72. package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -1
  73. package/dist/actions/get-number-of-channels-by-join-status.mjs +1 -0
  74. package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
  75. package/dist/actions/get-number-of-unread-items.cjs +1 -0
  76. package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
  77. package/dist/actions/get-number-of-unread-items.d.cts +3 -19
  78. package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
  79. package/dist/actions/get-number-of-unread-items.d.mts +3 -19
  80. package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
  81. package/dist/actions/get-number-of-unread-items.mjs +1 -0
  82. package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
  83. package/dist/actions/issue-session-token.cjs +1 -0
  84. package/dist/actions/issue-session-token.cjs.map +1 -1
  85. package/dist/actions/issue-session-token.d.cts +3 -18
  86. package/dist/actions/issue-session-token.d.cts.map +1 -1
  87. package/dist/actions/issue-session-token.d.mts +3 -18
  88. package/dist/actions/issue-session-token.d.mts.map +1 -1
  89. package/dist/actions/issue-session-token.mjs +1 -0
  90. package/dist/actions/issue-session-token.mjs.map +1 -1
  91. package/dist/actions/leave-group-channels.cjs +1 -0
  92. package/dist/actions/leave-group-channels.cjs.map +1 -1
  93. package/dist/actions/leave-group-channels.d.cts +3 -20
  94. package/dist/actions/leave-group-channels.d.cts.map +1 -1
  95. package/dist/actions/leave-group-channels.d.mts +3 -20
  96. package/dist/actions/leave-group-channels.d.mts.map +1 -1
  97. package/dist/actions/leave-group-channels.mjs +1 -0
  98. package/dist/actions/leave-group-channels.mjs.map +1 -1
  99. package/dist/actions/list-banned-members.cjs +1 -0
  100. package/dist/actions/list-banned-members.cjs.map +1 -1
  101. package/dist/actions/list-banned-members.d.cts +3 -19
  102. package/dist/actions/list-banned-members.d.cts.map +1 -1
  103. package/dist/actions/list-banned-members.d.mts +3 -19
  104. package/dist/actions/list-banned-members.d.mts.map +1 -1
  105. package/dist/actions/list-banned-members.mjs +1 -0
  106. package/dist/actions/list-banned-members.mjs.map +1 -1
  107. package/dist/actions/list-group-channel-messages.cjs +1 -0
  108. package/dist/actions/list-group-channel-messages.cjs.map +1 -1
  109. package/dist/actions/list-group-channel-messages.d.cts +3 -35
  110. package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
  111. package/dist/actions/list-group-channel-messages.d.mts +3 -35
  112. package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
  113. package/dist/actions/list-group-channel-messages.mjs +1 -0
  114. package/dist/actions/list-group-channel-messages.mjs.map +1 -1
  115. package/dist/actions/list-group-channels.cjs +1 -0
  116. package/dist/actions/list-group-channels.cjs.map +1 -1
  117. package/dist/actions/list-group-channels.d.cts +3 -37
  118. package/dist/actions/list-group-channels.d.cts.map +1 -1
  119. package/dist/actions/list-group-channels.d.mts +3 -37
  120. package/dist/actions/list-group-channels.d.mts.map +1 -1
  121. package/dist/actions/list-group-channels.mjs +1 -0
  122. package/dist/actions/list-group-channels.mjs.map +1 -1
  123. package/dist/actions/list-members-group-channel.cjs +1 -0
  124. package/dist/actions/list-members-group-channel.cjs.map +1 -1
  125. package/dist/actions/list-members-group-channel.d.cts +3 -25
  126. package/dist/actions/list-members-group-channel.d.cts.map +1 -1
  127. package/dist/actions/list-members-group-channel.d.mts +3 -25
  128. package/dist/actions/list-members-group-channel.d.mts.map +1 -1
  129. package/dist/actions/list-members-group-channel.mjs +1 -0
  130. package/dist/actions/list-members-group-channel.mjs.map +1 -1
  131. package/dist/actions/list-operators-custom-channel-type.cjs +1 -0
  132. package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
  133. package/dist/actions/list-operators-custom-channel-type.d.cts +3 -19
  134. package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
  135. package/dist/actions/list-operators-custom-channel-type.d.mts +3 -19
  136. package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
  137. package/dist/actions/list-operators-custom-channel-type.mjs +1 -0
  138. package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
  139. package/dist/actions/list-operators-group-channel.cjs +1 -0
  140. package/dist/actions/list-operators-group-channel.cjs.map +1 -1
  141. package/dist/actions/list-operators-group-channel.d.cts +3 -19
  142. package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
  143. package/dist/actions/list-operators-group-channel.d.mts +3 -19
  144. package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
  145. package/dist/actions/list-operators-group-channel.mjs +1 -0
  146. package/dist/actions/list-operators-group-channel.mjs.map +1 -1
  147. package/dist/actions/list-operators-open-channel.cjs +1 -0
  148. package/dist/actions/list-operators-open-channel.cjs.map +1 -1
  149. package/dist/actions/list-operators-open-channel.d.cts +3 -19
  150. package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
  151. package/dist/actions/list-operators-open-channel.d.mts +3 -19
  152. package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
  153. package/dist/actions/list-operators-open-channel.mjs +1 -0
  154. package/dist/actions/list-operators-open-channel.mjs.map +1 -1
  155. package/dist/actions/list-users.cjs +1 -0
  156. package/dist/actions/list-users.cjs.map +1 -1
  157. package/dist/actions/list-users.d.cts +3 -27
  158. package/dist/actions/list-users.d.cts.map +1 -1
  159. package/dist/actions/list-users.d.mts +3 -27
  160. package/dist/actions/list-users.d.mts.map +1 -1
  161. package/dist/actions/list-users.mjs +1 -0
  162. package/dist/actions/list-users.mjs.map +1 -1
  163. package/dist/actions/mark-all-user-messages-as-read.cjs +1 -0
  164. package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
  165. package/dist/actions/mark-all-user-messages-as-read.d.cts +3 -17
  166. package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
  167. package/dist/actions/mark-all-user-messages-as-read.d.mts +3 -17
  168. package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
  169. package/dist/actions/mark-all-user-messages-as-read.mjs +1 -0
  170. package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
  171. package/dist/actions/mute-user.cjs +1 -0
  172. package/dist/actions/mute-user.cjs.map +1 -1
  173. package/dist/actions/mute-user.d.cts +3 -20
  174. package/dist/actions/mute-user.d.cts.map +1 -1
  175. package/dist/actions/mute-user.d.mts +3 -20
  176. package/dist/actions/mute-user.d.mts.map +1 -1
  177. package/dist/actions/mute-user.mjs +1 -0
  178. package/dist/actions/mute-user.mjs.map +1 -1
  179. package/dist/actions/register-operators-custom-channel-type.cjs +1 -0
  180. package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
  181. package/dist/actions/register-operators-custom-channel-type.d.cts +3 -18
  182. package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
  183. package/dist/actions/register-operators-custom-channel-type.d.mts +3 -18
  184. package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
  185. package/dist/actions/register-operators-custom-channel-type.mjs +1 -0
  186. package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
  187. package/dist/actions/register-operators-group-channel.cjs +1 -0
  188. package/dist/actions/register-operators-group-channel.cjs.map +1 -1
  189. package/dist/actions/register-operators-group-channel.d.cts +3 -18
  190. package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
  191. package/dist/actions/register-operators-group-channel.d.mts +3 -18
  192. package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
  193. package/dist/actions/register-operators-group-channel.mjs +1 -0
  194. package/dist/actions/register-operators-group-channel.mjs.map +1 -1
  195. package/dist/actions/register-operators-open-channel.cjs +1 -0
  196. package/dist/actions/register-operators-open-channel.cjs.map +1 -1
  197. package/dist/actions/register-operators-open-channel.d.cts +3 -18
  198. package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
  199. package/dist/actions/register-operators-open-channel.d.mts +3 -18
  200. package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
  201. package/dist/actions/register-operators-open-channel.mjs +1 -0
  202. package/dist/actions/register-operators-open-channel.mjs.map +1 -1
  203. package/dist/actions/revoke-all-session-tokens.cjs +1 -0
  204. package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
  205. package/dist/actions/revoke-all-session-tokens.d.cts +3 -17
  206. package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
  207. package/dist/actions/revoke-all-session-tokens.d.mts +3 -17
  208. package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
  209. package/dist/actions/revoke-all-session-tokens.mjs +1 -0
  210. package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
  211. package/dist/actions/send-message.cjs +1 -0
  212. package/dist/actions/send-message.cjs.map +1 -1
  213. package/dist/actions/send-message.d.cts +3 -36
  214. package/dist/actions/send-message.d.cts.map +1 -1
  215. package/dist/actions/send-message.d.mts +3 -36
  216. package/dist/actions/send-message.d.mts.map +1 -1
  217. package/dist/actions/send-message.mjs +1 -0
  218. package/dist/actions/send-message.mjs.map +1 -1
  219. package/dist/actions/unban-user.cjs +1 -0
  220. package/dist/actions/unban-user.cjs.map +1 -1
  221. package/dist/actions/unban-user.d.cts +3 -18
  222. package/dist/actions/unban-user.d.cts.map +1 -1
  223. package/dist/actions/unban-user.d.mts +3 -18
  224. package/dist/actions/unban-user.d.mts.map +1 -1
  225. package/dist/actions/unban-user.mjs +1 -0
  226. package/dist/actions/unban-user.mjs.map +1 -1
  227. package/dist/actions/unmute-user.cjs +1 -0
  228. package/dist/actions/unmute-user.cjs.map +1 -1
  229. package/dist/actions/unmute-user.d.cts +3 -18
  230. package/dist/actions/unmute-user.d.cts.map +1 -1
  231. package/dist/actions/unmute-user.d.mts +3 -18
  232. package/dist/actions/unmute-user.d.mts.map +1 -1
  233. package/dist/actions/unmute-user.mjs +1 -0
  234. package/dist/actions/unmute-user.mjs.map +1 -1
  235. package/dist/actions/unregister-operators-custom-channel-type.cjs +1 -0
  236. package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
  237. package/dist/actions/unregister-operators-custom-channel-type.d.cts +3 -18
  238. package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
  239. package/dist/actions/unregister-operators-custom-channel-type.d.mts +3 -18
  240. package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
  241. package/dist/actions/unregister-operators-custom-channel-type.mjs +1 -0
  242. package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
  243. package/dist/actions/update-count-preference-of-channel.cjs +1 -0
  244. package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
  245. package/dist/actions/update-count-preference-of-channel.d.cts +3 -19
  246. package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
  247. package/dist/actions/update-count-preference-of-channel.d.mts +3 -19
  248. package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
  249. package/dist/actions/update-count-preference-of-channel.mjs +1 -0
  250. package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
  251. package/dist/actions/update-group-channel.cjs +1 -0
  252. package/dist/actions/update-group-channel.cjs.map +1 -1
  253. package/dist/actions/update-group-channel.d.cts +3 -28
  254. package/dist/actions/update-group-channel.d.cts.map +1 -1
  255. package/dist/actions/update-group-channel.d.mts +3 -28
  256. package/dist/actions/update-group-channel.d.mts.map +1 -1
  257. package/dist/actions/update-group-channel.mjs +1 -0
  258. package/dist/actions/update-group-channel.mjs.map +1 -1
  259. package/dist/actions/update-message.cjs +1 -0
  260. package/dist/actions/update-message.cjs.map +1 -1
  261. package/dist/actions/update-message.d.cts +3 -30
  262. package/dist/actions/update-message.d.cts.map +1 -1
  263. package/dist/actions/update-message.d.mts +3 -30
  264. package/dist/actions/update-message.d.mts.map +1 -1
  265. package/dist/actions/update-message.mjs +1 -0
  266. package/dist/actions/update-message.mjs.map +1 -1
  267. package/dist/actions/update-user.cjs +1 -0
  268. package/dist/actions/update-user.cjs.map +1 -1
  269. package/dist/actions/update-user.d.cts +3 -23
  270. package/dist/actions/update-user.d.cts.map +1 -1
  271. package/dist/actions/update-user.d.mts +3 -23
  272. package/dist/actions/update-user.d.mts.map +1 -1
  273. package/dist/actions/update-user.mjs +1 -0
  274. package/dist/actions/update-user.mjs.map +1 -1
  275. package/dist/actions/view-group-channel.cjs +1 -0
  276. package/dist/actions/view-group-channel.cjs.map +1 -1
  277. package/dist/actions/view-group-channel.d.cts +3 -22
  278. package/dist/actions/view-group-channel.d.cts.map +1 -1
  279. package/dist/actions/view-group-channel.d.mts +3 -22
  280. package/dist/actions/view-group-channel.d.mts.map +1 -1
  281. package/dist/actions/view-group-channel.mjs +1 -0
  282. package/dist/actions/view-group-channel.mjs.map +1 -1
  283. package/dist/actions/view-message.cjs +1 -0
  284. package/dist/actions/view-message.cjs.map +1 -1
  285. package/dist/actions/view-message.d.cts +3 -19
  286. package/dist/actions/view-message.d.cts.map +1 -1
  287. package/dist/actions/view-message.d.mts +3 -19
  288. package/dist/actions/view-message.d.mts.map +1 -1
  289. package/dist/actions/view-message.mjs +1 -0
  290. package/dist/actions/view-message.mjs.map +1 -1
  291. package/dist/actions/view-user.cjs +1 -0
  292. package/dist/actions/view-user.cjs.map +1 -1
  293. package/dist/actions/view-user.d.cts +3 -17
  294. package/dist/actions/view-user.d.cts.map +1 -1
  295. package/dist/actions/view-user.d.mts +3 -17
  296. package/dist/actions/view-user.d.mts.map +1 -1
  297. package/dist/actions/view-user.mjs +1 -0
  298. package/dist/actions/view-user.mjs.map +1 -1
  299. package/dist/app.cjs +5 -4
  300. package/dist/app.cjs.map +1 -1
  301. package/dist/app.d.cts +4 -6
  302. package/dist/app.d.cts.map +1 -1
  303. package/dist/app.d.mts +4 -6
  304. package/dist/app.d.mts.map +1 -1
  305. package/dist/app.mjs +0 -1
  306. package/dist/app.mjs.map +1 -1
  307. package/dist/index.d.cts +1 -1
  308. package/dist/index.d.mts +1 -1
  309. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"register-operators-group-channel.mjs","names":[],"sources":["../../src/actions/register-operators-group-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsGroupChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel\"),\n}).describe(\"Request parameters for registering operators to a Sendbird group channel.\");\nconst SendbirdRegisterOperatorsGroupChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the operator user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator object returned by Sendbird after registration.\");\nexport const SendbirdRegisterOperatorsGroupChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe(\"List of operator objects after registration\"),\n total_count: z.number().int().describe(\"Total number of operators in the group channel\").nullable(),\n}).passthrough().describe(\"Response schema after registering operators to a group channel.\");\n\nexport const sendbirdRegisterOperatorsGroupChannel = action(\"SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL\", {\n slug: \"sendbird-register-operators-group-channel\",\n name: \"Register Group Channel Operators\",\n description: \"Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.\",\n input: SendbirdRegisterOperatorsGroupChannelInput,\n output: SendbirdRegisterOperatorsGroupChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6CAA6C,EAAE,OAAO;CACjE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uDAAuD,EAAE,OAAO;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAMpF,MAAa,wCAAwC,OAAO,6CAA6C;CACvG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyD,EAAE,OAAO;EAClE,WAAW,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,6CAA6C;EAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"register-operators-group-channel.mjs","names":[],"sources":["../../src/actions/register-operators-group-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdRegisterOperatorsGroupChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel\"),\n}).describe(\"Request parameters for registering operators to a Sendbird group channel.\");\nconst SendbirdRegisterOperatorsGroupChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the operator user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator object returned by Sendbird after registration.\");\nexport const SendbirdRegisterOperatorsGroupChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsGroupChannel_OperatorSchema).describe(\"List of operator objects after registration\"),\n total_count: z.number().int().describe(\"Total number of operators in the group channel\").nullable(),\n}).passthrough().describe(\"Response schema after registering operators to a group channel.\");\n\nexport const sendbirdRegisterOperatorsGroupChannel: AppAction<\n typeof SendbirdRegisterOperatorsGroupChannelInput,\n typeof SendbirdRegisterOperatorsGroupChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_REGISTER_OPERATORS_GROUP_CHANNEL\", {\n slug: \"sendbird-register-operators-group-channel\",\n name: \"Register Group Channel Operators\",\n description: \"Tool to register one or more users as operators in a Sendbird group channel. Use when elevating permissions of existing channel members.\",\n input: SendbirdRegisterOperatorsGroupChannelInput,\n output: SendbirdRegisterOperatorsGroupChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6CAA6C,EAAE,OAAO;CACjE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;AAChF,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,uDAAuD,EAAE,OAAO;CACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAMpF,MAAa,wCAIT,OAAO,6CAA6C;CACtD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyD,EAAE,OAAO;EAClE,WAAW,EAAE,MAAM,oDAAoD,CAAC,CAAC,SAAS,6CAA6C;EAC/H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/register-operators-open-channel.ts
@@ -1 +1 @@
1
- {"version":3,"file":"register-operators-open-channel.cjs","names":["z","action"],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"User ID of the operator\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).passthrough().describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,WAAWA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,uCAAuCC,eAAAA,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"register-operators-open-channel.cjs","names":["z","action"],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"User ID of the operator\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).passthrough().describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel: AppAction<\n typeof SendbirdRegisterOperatorsOpenChannelInput,\n typeof SendbirdRegisterOperatorsOpenChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,UAAUA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAsDA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,6CAA6CA,IAAAA,EAAE,OAAO,EACjE,WAAWA,IAAAA,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AAEvF,MAAa,uCAITC,eAAAA,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/register-operators-open-channel.d.ts
@@ -13,24 +15,7 @@ declare const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodObject<{
13
15
  profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  }, z.core.$loose>>;
15
17
  }, z.core.$loose>;
16
- declare const sendbirdRegisterOperatorsOpenChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- user_ids: string[];
18
- channel_url: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- subdomain: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
18
+ declare const sendbirdRegisterOperatorsOpenChannel: AppAction<typeof SendbirdRegisterOperatorsOpenChannelInput, typeof SendbirdRegisterOperatorsOpenChannelOutput, typeof sendbird.credential>;
34
19
  //#endregion
35
20
  export { sendbirdRegisterOperatorsOpenChannel };
36
21
  //# sourceMappingURL=register-operators-open-channel.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-operators-open-channel.d.cts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAUzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAI1C,oCAAA,gCAAoC,wBAAA"}
1
+ {"version":3,"file":"register-operators-open-channel.d.cts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAUzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAI1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/register-operators-open-channel.d.ts
@@ -13,24 +15,7 @@ declare const SendbirdRegisterOperatorsOpenChannelOutput: z.ZodObject<{
13
15
  profile_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
16
  }, z.core.$loose>>;
15
17
  }, z.core.$loose>;
16
- declare const sendbirdRegisterOperatorsOpenChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- user_ids: string[];
18
- channel_url: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- subdomain: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
18
+ declare const sendbirdRegisterOperatorsOpenChannel: AppAction<typeof SendbirdRegisterOperatorsOpenChannelInput, typeof SendbirdRegisterOperatorsOpenChannelOutput, typeof sendbird.credential>;
34
19
  //#endregion
35
20
  export { sendbirdRegisterOperatorsOpenChannel };
36
21
  //# sourceMappingURL=register-operators-open-channel.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"register-operators-open-channel.d.mts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;cAIa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAUzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAI1C,oCAAA,gCAAoC,wBAAA"}
1
+ {"version":3,"file":"register-operators-open-channel.d.mts","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"mappings":";;;;;cAMa,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;cAUzC,0CAAA,EAA0C,CAAA,CAAA,SAAA;;;;;;;;cAI1C,oCAAA,EAAsC,SAAA,QAC1C,yCAAA,SACA,0CAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/register-operators-open-channel.ts
@@ -1 +1 @@
1
- {"version":3,"file":"register-operators-open-channel.mjs","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"User ID of the operator\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).passthrough().describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA4C,EAAE,OAAO;CAChE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAsD,EAAE,OAAO;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,uCAAuC,OAAO,4CAA4C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATwD,EAAE,OAAO,EACjE,WAAW,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"register-operators-open-channel.mjs","names":[],"sources":["../../src/actions/register-operators-open-channel.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdRegisterOperatorsOpenChannelInput = z.object({\n user_ids: z.array(z.string()).describe(\"List of user IDs to register as operators (at least one)\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the open channel\"),\n}).describe(\"Request model for registering operators to an open channel.\");\nconst SendbirdRegisterOperatorsOpenChannel_OperatorSchema = z.object({\n user_id: z.string().describe(\"User ID of the operator\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata for the operator\").nullable().optional(),\n nickname: z.string().describe(\"Nickname of the operator\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the operator\").nullable().optional(),\n}).passthrough().describe(\"Operator information in an open channel.\");\nexport const SendbirdRegisterOperatorsOpenChannelOutput = z.object({\n operators: z.array(SendbirdRegisterOperatorsOpenChannel_OperatorSchema).describe(\"List of operators registered to the open channel\"),\n}).passthrough().describe(\"Response model for registered operators in an open channel.\");\n\nexport const sendbirdRegisterOperatorsOpenChannel: AppAction<\n typeof SendbirdRegisterOperatorsOpenChannelInput,\n typeof SendbirdRegisterOperatorsOpenChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_REGISTER_OPERATORS_OPEN_CHANNEL\", {\n slug: \"sendbird-register-operators-open-channel\",\n name: \"Register Operators to Open Channel\",\n description: \"Tool to register operators to an open channel. Use after creating or updating an open channel when you need to assign operator roles.\",\n input: SendbirdRegisterOperatorsOpenChannelInput,\n output: SendbirdRegisterOperatorsOpenChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,4CAA4C,EAAE,OAAO;CAChE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,0DAA0D;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC/E,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,sDAAsD,EAAE,OAAO;CACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACjE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAKpE,MAAa,uCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbwD,EAAE,OAAO,EACjE,WAAW,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,kDAAkD,EACrI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/revoke-all-session-tokens.ts
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-all-session-tokens.cjs","names":["z","action"],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRevokeAllSessionTokensInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose session tokens will be revoked.\"),\n}).describe(\"Request model for revoking all session and refresh tokens of a Sendbird user.\");\nexport const SendbirdRevokeAllSessionTokensOutput = z.object({\n status: z.string().describe(\"Status of the revoke operation, e.g., 'success'\").nullable().optional(),\n user_id: z.string().describe(\"The ID of the user whose tokens were revoked\").nullable().optional(),\n}).passthrough().describe(\"Response model for revoking all session tokens of a user.\");\n\nexport const sendbirdRevokeAllSessionTokens = action(\"SENDBIRD_REVOKE_ALL_SESSION_TOKENS\", {\n slug: \"sendbird-revoke-all-session-tokens\",\n name: \"Revoke All Session Tokens\",\n description: \"Tool to revoke all session tokens for a user. Use when you need to invalidate all active sessions for security.\",\n input: SendbirdRevokeAllSessionTokensInput,\n output: SendbirdRevokeAllSessionTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"revoke-all-session-tokens.cjs","names":["z","action"],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdRevokeAllSessionTokensInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose session tokens will be revoked.\"),\n}).describe(\"Request model for revoking all session and refresh tokens of a Sendbird user.\");\nexport const SendbirdRevokeAllSessionTokensOutput = z.object({\n status: z.string().describe(\"Status of the revoke operation, e.g., 'success'\").nullable().optional(),\n user_id: z.string().describe(\"The ID of the user whose tokens were revoked\").nullable().optional(),\n}).passthrough().describe(\"Response model for revoking all session tokens of a user.\");\n\nexport const sendbirdRevokeAllSessionTokens: AppAction<\n typeof SendbirdRevokeAllSessionTokensInput,\n typeof SendbirdRevokeAllSessionTokensOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_REVOKE_ALL_SESSION_TOKENS\", {\n slug: \"sendbird-revoke-all-session-tokens\",\n name: \"Revoke All Session Tokens\",\n description: \"Tool to revoke all session tokens for a user. Use when you need to invalidate all active sessions for security.\",\n input: SendbirdRevokeAllSessionTokensInput,\n output: SendbirdRevokeAllSessionTokensOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO,EAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAC3F,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,iCAITC,eAAAA,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/revoke-all-session-tokens.d.ts
@@ -8,23 +10,7 @@ declare const SendbirdRevokeAllSessionTokensOutput: z.ZodObject<{
8
10
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const sendbirdRevokeAllSessionTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- user_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- subdomain: z.ZodString;
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- subdomain: z.ZodString;
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
13
+ declare const sendbirdRevokeAllSessionTokens: AppAction<typeof SendbirdRevokeAllSessionTokensInput, typeof SendbirdRevokeAllSessionTokensOutput, typeof sendbird.credential>;
28
14
  //#endregion
29
15
  export { sendbirdRevokeAllSessionTokens };
30
16
  //# sourceMappingURL=revoke-all-session-tokens.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-all-session-tokens.d.cts","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"revoke-all-session-tokens.d.cts","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/revoke-all-session-tokens.d.ts
@@ -8,23 +10,7 @@ declare const SendbirdRevokeAllSessionTokensOutput: z.ZodObject<{
8
10
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
11
  user_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
12
  }, z.core.$loose>;
11
- declare const sendbirdRevokeAllSessionTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- user_id: string;
13
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
14
- connectionId: z.ZodString;
15
- entityId: z.ZodString;
16
- instanceId: z.ZodString;
17
- }, z.core.$strip>, z.ZodObject<{
18
- subdomain: z.ZodString;
19
- generic_api_key: z.ZodString;
20
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
21
- connectionId: z.ZodString;
22
- entityId: z.ZodString;
23
- instanceId: z.ZodString;
24
- }, z.core.$strip>, z.ZodObject<{
25
- subdomain: z.ZodString;
26
- generic_api_key: z.ZodString;
27
- }, z.core.$strip>>]>;
13
+ declare const sendbirdRevokeAllSessionTokens: AppAction<typeof SendbirdRevokeAllSessionTokensInput, typeof SendbirdRevokeAllSessionTokensOutput, typeof sendbird.credential>;
28
14
  //#endregion
29
15
  export { sendbirdRevokeAllSessionTokens };
30
16
  //# sourceMappingURL=revoke-all-session-tokens.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-all-session-tokens.d.mts","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"revoke-all-session-tokens.d.mts","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;cAGnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;cAKpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const sendbirdRevokeAllSessionTokens = action("SENDBIRD_REVOKE_ALL_SESSION_TOKENS", {
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-all-session-tokens.mjs","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdRevokeAllSessionTokensInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose session tokens will be revoked.\"),\n}).describe(\"Request model for revoking all session and refresh tokens of a Sendbird user.\");\nexport const SendbirdRevokeAllSessionTokensOutput = z.object({\n status: z.string().describe(\"Status of the revoke operation, e.g., 'success'\").nullable().optional(),\n user_id: z.string().describe(\"The ID of the user whose tokens were revoked\").nullable().optional(),\n}).passthrough().describe(\"Response model for revoking all session tokens of a user.\");\n\nexport const sendbirdRevokeAllSessionTokens = action(\"SENDBIRD_REVOKE_ALL_SESSION_TOKENS\", {\n slug: \"sendbird-revoke-all-session-tokens\",\n name: \"Revoke All Session Tokens\",\n description: \"Tool to revoke all session tokens for a user. Use when you need to invalidate all active sessions for security.\",\n input: SendbirdRevokeAllSessionTokensInput,\n output: SendbirdRevokeAllSessionTokensOutput,\n});\n"],"mappings":";;AAYA,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZiD,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,+EAUH;CACP,QAVkD,EAAE,OAAO;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"revoke-all-session-tokens.mjs","names":[],"sources":["../../src/actions/revoke-all-session-tokens.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdRevokeAllSessionTokensInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose session tokens will be revoked.\"),\n}).describe(\"Request model for revoking all session and refresh tokens of a Sendbird user.\");\nexport const SendbirdRevokeAllSessionTokensOutput = z.object({\n status: z.string().describe(\"Status of the revoke operation, e.g., 'success'\").nullable().optional(),\n user_id: z.string().describe(\"The ID of the user whose tokens were revoked\").nullable().optional(),\n}).passthrough().describe(\"Response model for revoking all session tokens of a user.\");\n\nexport const sendbirdRevokeAllSessionTokens: AppAction<\n typeof SendbirdRevokeAllSessionTokensInput,\n typeof SendbirdRevokeAllSessionTokensOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_REVOKE_ALL_SESSION_TOKENS\", {\n slug: \"sendbird-revoke-all-session-tokens\",\n name: \"Revoke All Session Tokens\",\n description: \"Tool to revoke all session tokens for a user. Use when you need to invalidate all active sessions for security.\",\n input: SendbirdRevokeAllSessionTokensInput,\n output: SendbirdRevokeAllSessionTokensOutput,\n});\n"],"mappings":";;;AAcA,MAAa,iCAIT,OAAO,sCAAsC;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBiD,EAAE,OAAO,EAC1D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,EAC5F,CAAC,CAAC,CAAC,SAAS,+EAcH;CACP,QAdkD,EAAE,OAAO;EAC3D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/send-message.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdSendMessageInput = z.object({\n data: z.string().describe(\"Free-form custom data string (often JSON)\").optional(),\n message: z.string().describe(\"Text content of the message. Required when message_type is 'MESG'\").optional(),\n poll_id: z.number().int().describe(\"Attach an existing poll by its ID\").optional(),\n user_id: z.string().describe(\"Sender's user ID. Required unless using API token as acting user\").optional(),\n is_silent: z.boolean().default(false).describe(\"Send as silent message (no push notifications)\").optional(),\n metaarray: z.array(z.object({\n key: z.string().describe(\"Metadata key\"),\n value: z.string().describe(\"Metadata value\"),\n user_id: z.string().describe(\"User ID associated with this metadata\").optional(),\n}).passthrough().describe(\"Model for message metadata.\")).describe(\"Array of metadata objects\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n custom_type: z.string().describe(\"Custom message type for classification\").optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention scope: 'users' to mention specific users or 'channel' to mention all\").optional(),\n message_type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of message: 'MESG' for text, 'FILE' for file, 'ADMM' for admin message\"),\n parent_message_id: z.number().int().describe(\"Reply in a thread to the message with this ID\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention when mention_type is 'users'\").optional(),\n is_operator_message: z.boolean().default(false).describe(\"Mark as operator (moderator) message\").optional(),\n translation_target_languages: z.array(z.string()).describe(\"List of language codes for auto-translation, e.g., ['en', 'es']\").optional(),\n push_notification_delivery_option: z.enum([\"default\", \"suppress\", \"include_offline_user\"]).describe(\"Push notification option: 'default', 'suppress', or 'include_offline_user'\").optional(),\n}).describe(\"Request model for sending a message to a group channel.\");\nconst SendbirdSendMessage_UserSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the sender user\").nullable(),\n nickname: z.string().describe(\"Nickname of the sender user\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the sender user\").nullable().optional(),\n}).passthrough().describe(\"Sender user information.\");\nconst SendbirdSendMessage_ThreadInfoSchema = z.object({\n updated_at: z.number().int().describe(\"Timestamp (ms) when the thread was last updated\").nullable().optional(),\n reply_count: z.number().int().describe(\"Number of replies in this thread\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a thread reply\").nullable().optional(),\n}).passthrough().describe(\"Thread details when message has replies.\");\nconst SendbirdSendMessage_TranslationSchema = z.object({\n text: z.string().describe(\"Translated text content\").nullable(),\n target_lang: z.string().describe(\"Target language code for translation\").nullable(),\n}).passthrough().describe(\"Translation result for auto-translated messages.\");\nexport const SendbirdSendMessageOutput = z.object({\n data: z.string().describe(\"Custom data payload\").nullable().optional(),\n type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of the message\").nullable(),\n user: SendbirdSendMessage_UserSchema.nullable(),\n silent: z.boolean().describe(\"Whether the message is silent\").nullable(),\n message: z.string().describe(\"Text content of the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp (ms) when message was created\").nullable(),\n message_id: z.string().describe(\"Unique message ID\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when message was last updated\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel where message was sent\").nullable(),\n custom_type: z.string().describe(\"Custom message type\").nullable().optional(),\n thread_info: SendbirdSendMessage_ThreadInfoSchema.nullable().optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention type used in the message\").nullable().optional(),\n translations: z.array(SendbirdSendMessage_TranslationSchema).describe(\"Auto-translation results for this message\").nullable().optional(),\n operator_message: z.boolean().describe(\"Whether this is an operator message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if it's a reply\").nullable().optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs mentioned in the message\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending a message in a group channel.\");\n\nexport const sendbirdSendMessage = action(\"SENDBIRD_SEND_MESSAGE\", {\n slug: \"sendbird-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a message to a group channel. Use when you need to post a text, file, or admin message to an existing group channel.\",\n input: SendbirdSendMessageInput,\n output: SendbirdSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC5B,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACvC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACvG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACpF,cAAcA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC7I,cAAcA,IAA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AAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAa,qCAAqC,SAAS,CAAC,CAAC,SAAS;CACtE,cAAcA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"send-message.cjs","names":["z","action"],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdSendMessageInput = z.object({\n data: z.string().describe(\"Free-form custom data string (often JSON)\").optional(),\n message: z.string().describe(\"Text content of the message. Required when message_type is 'MESG'\").optional(),\n poll_id: z.number().int().describe(\"Attach an existing poll by its ID\").optional(),\n user_id: z.string().describe(\"Sender's user ID. Required unless using API token as acting user\").optional(),\n is_silent: z.boolean().default(false).describe(\"Send as silent message (no push notifications)\").optional(),\n metaarray: z.array(z.object({\n key: z.string().describe(\"Metadata key\"),\n value: z.string().describe(\"Metadata value\"),\n user_id: z.string().describe(\"User ID associated with this metadata\").optional(),\n}).passthrough().describe(\"Model for message metadata.\")).describe(\"Array of metadata objects\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n custom_type: z.string().describe(\"Custom message type for classification\").optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention scope: 'users' to mention specific users or 'channel' to mention all\").optional(),\n message_type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of message: 'MESG' for text, 'FILE' for file, 'ADMM' for admin message\"),\n parent_message_id: z.number().int().describe(\"Reply in a thread to the message with this ID\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention when mention_type is 'users'\").optional(),\n is_operator_message: z.boolean().default(false).describe(\"Mark as operator (moderator) message\").optional(),\n translation_target_languages: z.array(z.string()).describe(\"List of language codes for auto-translation, e.g., ['en', 'es']\").optional(),\n push_notification_delivery_option: z.enum([\"default\", \"suppress\", \"include_offline_user\"]).describe(\"Push notification option: 'default', 'suppress', or 'include_offline_user'\").optional(),\n}).describe(\"Request model for sending a message to a group channel.\");\nconst SendbirdSendMessage_UserSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the sender user\").nullable(),\n nickname: z.string().describe(\"Nickname of the sender user\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the sender user\").nullable().optional(),\n}).passthrough().describe(\"Sender user information.\");\nconst SendbirdSendMessage_ThreadInfoSchema = z.object({\n updated_at: z.number().int().describe(\"Timestamp (ms) when the thread was last updated\").nullable().optional(),\n reply_count: z.number().int().describe(\"Number of replies in this thread\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a thread reply\").nullable().optional(),\n}).passthrough().describe(\"Thread details when message has replies.\");\nconst SendbirdSendMessage_TranslationSchema = z.object({\n text: z.string().describe(\"Translated text content\").nullable(),\n target_lang: z.string().describe(\"Target language code for translation\").nullable(),\n}).passthrough().describe(\"Translation result for auto-translated messages.\");\nexport const SendbirdSendMessageOutput = z.object({\n data: z.string().describe(\"Custom data payload\").nullable().optional(),\n type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of the message\").nullable(),\n user: SendbirdSendMessage_UserSchema.nullable(),\n silent: z.boolean().describe(\"Whether the message is silent\").nullable(),\n message: z.string().describe(\"Text content of the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp (ms) when message was created\").nullable(),\n message_id: z.string().describe(\"Unique message ID\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when message was last updated\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel where message was sent\").nullable(),\n custom_type: z.string().describe(\"Custom message type\").nullable().optional(),\n thread_info: SendbirdSendMessage_ThreadInfoSchema.nullable().optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention type used in the message\").nullable().optional(),\n translations: z.array(SendbirdSendMessage_TranslationSchema).describe(\"Auto-translation results for this message\").nullable().optional(),\n operator_message: z.boolean().describe(\"Whether this is an operator message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if it's a reply\").nullable().optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs mentioned in the message\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending a message in a group channel.\");\n\nexport const sendbirdSendMessage: AppAction<\n typeof SendbirdSendMessageInput,\n typeof SendbirdSendMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_SEND_MESSAGE\", {\n slug: \"sendbird-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a message to a group channel. Use when you need to post a text, file, or admin message to an existing group channel.\",\n input: SendbirdSendMessageInput,\n output: SendbirdSendMessageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA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cAAcA,IAAAA,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,cAAcA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,kBAAkBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAA0D;AAEpF,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-message.d.ts
@@ -69,42 +71,7 @@ declare const SendbirdSendMessageOutput: z.ZodObject<{
69
71
  parent_message_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
72
  mentioned_user_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
71
73
  }, z.core.$loose>;
72
- declare const sendbirdSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
73
- channel_url: string;
74
- message_type: "MESG" | "FILE" | "ADMM";
75
- data?: string | undefined;
76
- message?: string | undefined;
77
- poll_id?: number | undefined;
78
- user_id?: string | undefined;
79
- is_silent?: boolean | undefined;
80
- metaarray?: {
81
- [x: string]: unknown;
82
- key: string;
83
- value: string;
84
- user_id?: string | undefined;
85
- }[] | undefined;
86
- custom_type?: string | undefined;
87
- mention_type?: "users" | "channel" | undefined;
88
- parent_message_id?: number | undefined;
89
- mentioned_user_ids?: string[] | undefined;
90
- is_operator_message?: boolean | undefined;
91
- translation_target_languages?: string[] | undefined;
92
- push_notification_delivery_option?: "default" | "suppress" | "include_offline_user" | undefined;
93
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
94
- connectionId: z.ZodString;
95
- entityId: z.ZodString;
96
- instanceId: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- subdomain: z.ZodString;
99
- generic_api_key: z.ZodString;
100
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
101
- connectionId: z.ZodString;
102
- entityId: z.ZodString;
103
- instanceId: z.ZodString;
104
- }, z.core.$strip>, z.ZodObject<{
105
- subdomain: z.ZodString;
106
- generic_api_key: z.ZodString;
107
- }, z.core.$strip>>]>;
74
+ declare const sendbirdSendMessage: AppAction<typeof SendbirdSendMessageInput, typeof SendbirdSendMessageOutput, typeof sendbird.credential>;
108
75
  //#endregion
109
76
  export { sendbirdSendMessage };
110
77
  //# sourceMappingURL=send-message.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"send-message.d.cts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/send-message.d.ts
@@ -69,42 +71,7 @@ declare const SendbirdSendMessageOutput: z.ZodObject<{
69
71
  parent_message_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
70
72
  mentioned_user_ids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
71
73
  }, z.core.$loose>;
72
- declare const sendbirdSendMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
73
- channel_url: string;
74
- message_type: "MESG" | "FILE" | "ADMM";
75
- data?: string | undefined;
76
- message?: string | undefined;
77
- poll_id?: number | undefined;
78
- user_id?: string | undefined;
79
- is_silent?: boolean | undefined;
80
- metaarray?: {
81
- [x: string]: unknown;
82
- key: string;
83
- value: string;
84
- user_id?: string | undefined;
85
- }[] | undefined;
86
- custom_type?: string | undefined;
87
- mention_type?: "users" | "channel" | undefined;
88
- parent_message_id?: number | undefined;
89
- mentioned_user_ids?: string[] | undefined;
90
- is_operator_message?: boolean | undefined;
91
- translation_target_languages?: string[] | undefined;
92
- push_notification_delivery_option?: "default" | "suppress" | "include_offline_user" | undefined;
93
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
94
- connectionId: z.ZodString;
95
- entityId: z.ZodString;
96
- instanceId: z.ZodString;
97
- }, z.core.$strip>, z.ZodObject<{
98
- subdomain: z.ZodString;
99
- generic_api_key: z.ZodString;
100
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
101
- connectionId: z.ZodString;
102
- entityId: z.ZodString;
103
- instanceId: z.ZodString;
104
- }, z.core.$strip>, z.ZodObject<{
105
- subdomain: z.ZodString;
106
- generic_api_key: z.ZodString;
107
- }, z.core.$strip>>]>;
74
+ declare const sendbirdSendMessage: AppAction<typeof SendbirdSendMessageInput, typeof SendbirdSendMessageOutput, typeof sendbird.credential>;
108
75
  //#endregion
109
76
  export { sendbirdSendMessage };
110
77
  //# sourceMappingURL=send-message.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"send-message.d.mts","names":[],"sources":["../../src/actions/send-message.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmCxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAmBzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/send-message.ts
@@ -1 +1 @@
1
- {"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdSendMessageInput = z.object({\n data: z.string().describe(\"Free-form custom data string (often JSON)\").optional(),\n message: z.string().describe(\"Text content of the message. Required when message_type is 'MESG'\").optional(),\n poll_id: z.number().int().describe(\"Attach an existing poll by its ID\").optional(),\n user_id: z.string().describe(\"Sender's user ID. Required unless using API token as acting user\").optional(),\n is_silent: z.boolean().default(false).describe(\"Send as silent message (no push notifications)\").optional(),\n metaarray: z.array(z.object({\n key: z.string().describe(\"Metadata key\"),\n value: z.string().describe(\"Metadata value\"),\n user_id: z.string().describe(\"User ID associated with this metadata\").optional(),\n}).passthrough().describe(\"Model for message metadata.\")).describe(\"Array of metadata objects\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n custom_type: z.string().describe(\"Custom message type for classification\").optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention scope: 'users' to mention specific users or 'channel' to mention all\").optional(),\n message_type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of message: 'MESG' for text, 'FILE' for file, 'ADMM' for admin message\"),\n parent_message_id: z.number().int().describe(\"Reply in a thread to the message with this ID\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention when mention_type is 'users'\").optional(),\n is_operator_message: z.boolean().default(false).describe(\"Mark as operator (moderator) message\").optional(),\n translation_target_languages: z.array(z.string()).describe(\"List of language codes for auto-translation, e.g., ['en', 'es']\").optional(),\n push_notification_delivery_option: z.enum([\"default\", \"suppress\", \"include_offline_user\"]).describe(\"Push notification option: 'default', 'suppress', or 'include_offline_user'\").optional(),\n}).describe(\"Request model for sending a message to a group channel.\");\nconst SendbirdSendMessage_UserSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the sender user\").nullable(),\n nickname: z.string().describe(\"Nickname of the sender user\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the sender user\").nullable().optional(),\n}).passthrough().describe(\"Sender user information.\");\nconst SendbirdSendMessage_ThreadInfoSchema = z.object({\n updated_at: z.number().int().describe(\"Timestamp (ms) when the thread was last updated\").nullable().optional(),\n reply_count: z.number().int().describe(\"Number of replies in this thread\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a thread reply\").nullable().optional(),\n}).passthrough().describe(\"Thread details when message has replies.\");\nconst SendbirdSendMessage_TranslationSchema = z.object({\n text: z.string().describe(\"Translated text content\").nullable(),\n target_lang: z.string().describe(\"Target language code for translation\").nullable(),\n}).passthrough().describe(\"Translation result for auto-translated messages.\");\nexport const SendbirdSendMessageOutput = z.object({\n data: z.string().describe(\"Custom data payload\").nullable().optional(),\n type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of the message\").nullable(),\n user: SendbirdSendMessage_UserSchema.nullable(),\n silent: z.boolean().describe(\"Whether the message is silent\").nullable(),\n message: z.string().describe(\"Text content of the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp (ms) when message was created\").nullable(),\n message_id: z.string().describe(\"Unique message ID\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when message was last updated\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel where message was sent\").nullable(),\n custom_type: z.string().describe(\"Custom message type\").nullable().optional(),\n thread_info: SendbirdSendMessage_ThreadInfoSchema.nullable().optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention type used in the message\").nullable().optional(),\n translations: z.array(SendbirdSendMessage_TranslationSchema).describe(\"Auto-translation results for this message\").nullable().optional(),\n operator_message: z.boolean().describe(\"Whether this is an operator message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if it's a reply\").nullable().optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs mentioned in the message\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending a message in a group channel.\");\n\nexport const sendbirdSendMessage = action(\"SENDBIRD_SEND_MESSAGE\", {\n slug: \"sendbird-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a message to a group channel. Use when you need to post a text, file, or admin message to an existing group channel.\",\n input: SendbirdSendMessageInput,\n output: SendbirdSendMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,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,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"send-message.mjs","names":[],"sources":["../../src/actions/send-message.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdSendMessageInput = z.object({\n data: z.string().describe(\"Free-form custom data string (often JSON)\").optional(),\n message: z.string().describe(\"Text content of the message. Required when message_type is 'MESG'\").optional(),\n poll_id: z.number().int().describe(\"Attach an existing poll by its ID\").optional(),\n user_id: z.string().describe(\"Sender's user ID. Required unless using API token as acting user\").optional(),\n is_silent: z.boolean().default(false).describe(\"Send as silent message (no push notifications)\").optional(),\n metaarray: z.array(z.object({\n key: z.string().describe(\"Metadata key\"),\n value: z.string().describe(\"Metadata value\"),\n user_id: z.string().describe(\"User ID associated with this metadata\").optional(),\n}).passthrough().describe(\"Model for message metadata.\")).describe(\"Array of metadata objects\").optional(),\n channel_url: z.string().describe(\"URL-encoded identifier of the target group channel\"),\n custom_type: z.string().describe(\"Custom message type for classification\").optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention scope: 'users' to mention specific users or 'channel' to mention all\").optional(),\n message_type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of message: 'MESG' for text, 'FILE' for file, 'ADMM' for admin message\"),\n parent_message_id: z.number().int().describe(\"Reply in a thread to the message with this ID\").optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs to mention when mention_type is 'users'\").optional(),\n is_operator_message: z.boolean().default(false).describe(\"Mark as operator (moderator) message\").optional(),\n translation_target_languages: z.array(z.string()).describe(\"List of language codes for auto-translation, e.g., ['en', 'es']\").optional(),\n push_notification_delivery_option: z.enum([\"default\", \"suppress\", \"include_offline_user\"]).describe(\"Push notification option: 'default', 'suppress', or 'include_offline_user'\").optional(),\n}).describe(\"Request model for sending a message to a group channel.\");\nconst SendbirdSendMessage_UserSchema = z.object({\n user_id: z.string().describe(\"Unique ID of the sender user\").nullable(),\n nickname: z.string().describe(\"Nickname of the sender user\").nullable().optional(),\n profile_url: z.string().describe(\"Profile image URL of the sender user\").nullable().optional(),\n}).passthrough().describe(\"Sender user information.\");\nconst SendbirdSendMessage_ThreadInfoSchema = z.object({\n updated_at: z.number().int().describe(\"Timestamp (ms) when the thread was last updated\").nullable().optional(),\n reply_count: z.number().int().describe(\"Number of replies in this thread\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if this is a thread reply\").nullable().optional(),\n}).passthrough().describe(\"Thread details when message has replies.\");\nconst SendbirdSendMessage_TranslationSchema = z.object({\n text: z.string().describe(\"Translated text content\").nullable(),\n target_lang: z.string().describe(\"Target language code for translation\").nullable(),\n}).passthrough().describe(\"Translation result for auto-translated messages.\");\nexport const SendbirdSendMessageOutput = z.object({\n data: z.string().describe(\"Custom data payload\").nullable().optional(),\n type: z.enum([\"MESG\", \"FILE\", \"ADMM\"]).describe(\"Type of the message\").nullable(),\n user: SendbirdSendMessage_UserSchema.nullable(),\n silent: z.boolean().describe(\"Whether the message is silent\").nullable(),\n message: z.string().describe(\"Text content of the message\").nullable().optional(),\n created_at: z.number().int().describe(\"Timestamp (ms) when message was created\").nullable(),\n message_id: z.string().describe(\"Unique message ID\").nullable(),\n updated_at: z.number().int().describe(\"Timestamp (ms) when message was last updated\").nullable(),\n channel_url: z.string().describe(\"URL of the group channel where message was sent\").nullable(),\n custom_type: z.string().describe(\"Custom message type\").nullable().optional(),\n thread_info: SendbirdSendMessage_ThreadInfoSchema.nullable().optional(),\n mention_type: z.enum([\"users\", \"channel\"]).describe(\"Mention type used in the message\").nullable().optional(),\n translations: z.array(SendbirdSendMessage_TranslationSchema).describe(\"Auto-translation results for this message\").nullable().optional(),\n operator_message: z.boolean().describe(\"Whether this is an operator message\").nullable().optional(),\n parent_message_id: z.number().int().describe(\"Parent message ID if it's a reply\").nullable().optional(),\n mentioned_user_ids: z.array(z.string()).describe(\"List of user IDs mentioned in the message\").nullable().optional(),\n}).passthrough().describe(\"Response model for sending a message in a group channel.\");\n\nexport const sendbirdSendMessage: AppAction<\n typeof SendbirdSendMessageInput,\n typeof SendbirdSendMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_SEND_MESSAGE\", {\n slug: \"sendbird-send-message\",\n name: \"Send Message\",\n description: \"Tool to send a message to a group channel. Use when you need to post a text, file, or admin message to an existing group channel.\",\n input: SendbirdSendMessageInput,\n output: SendbirdSendMessageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC3G,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACjF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1G,WAAW,EAAE,MAAM,EAAE,OAAO;EAC5B,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc;EACvC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6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;EAC9D,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,aAAa,qCAAqC,SAAS,CAAC,CAAC,SAAS;EACtE,cAAc,EAAE,KAAK,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,cAAc,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,kBAAkB,EAAE,QAAQ,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0DAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/unban-user.ts
@@ -1 +1 @@
1
- {"version":3,"file":"unban-user.cjs","names":["z","action"],"sources":["../../src/actions/unban-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUnbanUserInput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel from which to unban the user.\"),\n banned_user_id: z.string().describe(\"The unique ID of the banned user to unban.\"),\n}).describe(\"Request model for unbanning a user from a Sendbird group channel.\");\nexport const SendbirdUnbanUserOutput = z.record(z.string(), z.unknown()).describe(\"Response model for unbanning a user (empty on success).\");\n\nexport const sendbirdUnbanUser = action(\"SENDBIRD_UNBAN_USER\", {\n slug: \"sendbird-unban-user\",\n name: \"Unban User from Group Channel\",\n description: \"Tool to unban a user from a group channel. Use when reinstating a previously banned user. Execute after confirming the user is currently banned.\",\n input: SendbirdUnbanUserInput,\n output: SendbirdUnbanUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,0BAA0BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAE3I,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"unban-user.cjs","names":["z","action"],"sources":["../../src/actions/unban-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdUnbanUserInput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel from which to unban the user.\"),\n banned_user_id: z.string().describe(\"The unique ID of the banned user to unban.\"),\n}).describe(\"Request model for unbanning a user from a Sendbird group channel.\");\nexport const SendbirdUnbanUserOutput = z.record(z.string(), z.unknown()).describe(\"Response model for unbanning a user (empty on success).\");\n\nexport const sendbirdUnbanUser: AppAction<\n typeof SendbirdUnbanUserInput,\n typeof SendbirdUnbanUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_UNBAN_USER\", {\n slug: \"sendbird-unban-user\",\n name: \"Unban User from Group Channel\",\n description: \"Tool to unban a user from a group channel. Use when reinstating a previously banned user. Execute after confirming the user is currently banned.\",\n input: SendbirdUnbanUserInput,\n output: SendbirdUnbanUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC7F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAClF,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,0BAA0BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAE3I,MAAa,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/unban-user.d.ts
@@ -6,24 +8,7 @@ declare const SendbirdUnbanUserInput: z.ZodObject<{
6
8
  banned_user_id: z.ZodString;
7
9
  }, z.core.$strip>;
8
10
  declare const SendbirdUnbanUserOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const sendbirdUnbanUser: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- channel_url: string;
11
- banned_user_id: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
11
+ declare const sendbirdUnbanUser: AppAction<typeof SendbirdUnbanUserInput, typeof SendbirdUnbanUserOutput, typeof sendbird.credential>;
27
12
  //#endregion
28
13
  export { sendbirdUnbanUser };
29
14
  //# sourceMappingURL=unban-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unban-user.d.cts","names":[],"sources":["../../src/actions/unban-user.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAItB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"unban-user.d.cts","names":[],"sources":["../../src/actions/unban-user.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAItB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { sendbird } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/unban-user.d.ts
@@ -6,24 +8,7 @@ declare const SendbirdUnbanUserInput: z.ZodObject<{
6
8
  banned_user_id: z.ZodString;
7
9
  }, z.core.$strip>;
8
10
  declare const SendbirdUnbanUserOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const sendbirdUnbanUser: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- channel_url: string;
11
- banned_user_id: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
11
+ declare const sendbirdUnbanUser: AppAction<typeof SendbirdUnbanUserInput, typeof SendbirdUnbanUserOutput, typeof sendbird.credential>;
27
12
  //#endregion
28
13
  export { sendbirdUnbanUser };
29
14
  //# sourceMappingURL=unban-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unban-user.d.mts","names":[],"sources":["../../src/actions/unban-user.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAItB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"unban-user.d.mts","names":[],"sources":["../../src/actions/unban-user.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAItB,uBAAA,EAAuB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAEvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,QAAA,CAAS,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const sendbirdUnbanUser = action("SENDBIRD_UNBAN_USER", {
@@ -1 +1 @@
1
- {"version":3,"file":"unban-user.mjs","names":[],"sources":["../../src/actions/unban-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdUnbanUserInput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel from which to unban the user.\"),\n banned_user_id: z.string().describe(\"The unique ID of the banned user to unban.\"),\n}).describe(\"Request model for unbanning a user from a Sendbird group channel.\");\nexport const SendbirdUnbanUserOutput = z.record(z.string(), z.unknown()).describe(\"Response model for unbanning a user (empty on success).\");\n\nexport const sendbirdUnbanUser = action(\"SENDBIRD_UNBAN_USER\", {\n slug: \"sendbird-unban-user\",\n name: \"Unban User from Group Channel\",\n description: \"Tool to unban a user from a group channel. Use when reinstating a previously banned user. Execute after confirming the user is currently banned.\",\n input: SendbirdUnbanUserInput,\n output: SendbirdUnbanUserOutput,\n});\n"],"mappings":";;AAUA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVoC,EAAE,OAAO;EAC7C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,CAAC,CAAC,CAAC,SAAS,mEAOH;CACP,QAPqC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAOxE;AACV,CAAC"}
1
+ {"version":3,"file":"unban-user.mjs","names":[],"sources":["../../src/actions/unban-user.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { sendbird } from \"../app\";\n\nexport const SendbirdUnbanUserInput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel from which to unban the user.\"),\n banned_user_id: z.string().describe(\"The unique ID of the banned user to unban.\"),\n}).describe(\"Request model for unbanning a user from a Sendbird group channel.\");\nexport const SendbirdUnbanUserOutput = z.record(z.string(), z.unknown()).describe(\"Response model for unbanning a user (empty on success).\");\n\nexport const sendbirdUnbanUser: AppAction<\n typeof SendbirdUnbanUserInput,\n typeof SendbirdUnbanUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_UNBAN_USER\", {\n slug: \"sendbird-unban-user\",\n name: \"Unban User from Group Channel\",\n description: \"Tool to unban a user from a group channel. Use when reinstating a previously banned user. Execute after confirming the user is currently banned.\",\n input: SendbirdUnbanUserInput,\n output: SendbirdUnbanUserOutput,\n});\n"],"mappings":";;;AAYA,MAAa,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoC,EAAE,OAAO;EAC7C,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;EAC7F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAClF,CAAC,CAAC,CAAC,SAAS,mEAWH;CACP,QAXqC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAWxE;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/unmute-user.ts