@keystrokehq/sendbird 0.1.4 → 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 -6
  6. package/dist/actions/add-members-group-channel.d.cts.map +1 -1
  7. package/dist/actions/add-members-group-channel.d.mts +3 -6
  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 -7
  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 -7
  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 -20
  22. package/dist/actions/create-channel.d.cts.map +1 -1
  23. package/dist/actions/create-channel.d.mts +3 -20
  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 -13
  30. package/dist/actions/create-user.d.cts.map +1 -1
  31. package/dist/actions/create-user.d.mts +3 -13
  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 -3
  38. package/dist/actions/delete-channel.d.cts.map +1 -1
  39. package/dist/actions/delete-channel.d.mts +3 -3
  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 -4
  46. package/dist/actions/delete-message.d.cts.map +1 -1
  47. package/dist/actions/delete-message.d.mts +3 -4
  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 -4
  54. package/dist/actions/delete-user.d.cts.map +1 -1
  55. package/dist/actions/delete-user.d.mts +3 -4
  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 -5
  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 -5
  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 -7
  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 -7
  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 -5
  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 -5
  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 -4
  86. package/dist/actions/issue-session-token.d.cts.map +1 -1
  87. package/dist/actions/issue-session-token.d.mts +3 -4
  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 -6
  94. package/dist/actions/leave-group-channels.d.cts.map +1 -1
  95. package/dist/actions/leave-group-channels.d.mts +3 -6
  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 -5
  102. package/dist/actions/list-banned-members.d.cts.map +1 -1
  103. package/dist/actions/list-banned-members.d.mts +3 -5
  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 -21
  110. package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
  111. package/dist/actions/list-group-channel-messages.d.mts +3 -21
  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 -23
  118. package/dist/actions/list-group-channels.d.cts.map +1 -1
  119. package/dist/actions/list-group-channels.d.mts +3 -23
  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 -11
  126. package/dist/actions/list-members-group-channel.d.cts.map +1 -1
  127. package/dist/actions/list-members-group-channel.d.mts +3 -11
  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 -5
  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 -5
  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 -5
  142. package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
  143. package/dist/actions/list-operators-group-channel.d.mts +3 -5
  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 -5
  150. package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
  151. package/dist/actions/list-operators-open-channel.d.mts +3 -5
  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 -13
  158. package/dist/actions/list-users.d.cts.map +1 -1
  159. package/dist/actions/list-users.d.mts +3 -13
  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 -3
  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 -3
  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 -6
  174. package/dist/actions/mute-user.d.cts.map +1 -1
  175. package/dist/actions/mute-user.d.mts +3 -6
  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 -4
  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 -4
  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 -4
  190. package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
  191. package/dist/actions/register-operators-group-channel.d.mts +3 -4
  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 -4
  198. package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
  199. package/dist/actions/register-operators-open-channel.d.mts +3 -4
  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 -3
  206. package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
  207. package/dist/actions/revoke-all-session-tokens.d.mts +3 -3
  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 -22
  214. package/dist/actions/send-message.d.cts.map +1 -1
  215. package/dist/actions/send-message.d.mts +3 -22
  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 -4
  222. package/dist/actions/unban-user.d.cts.map +1 -1
  223. package/dist/actions/unban-user.d.mts +3 -4
  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 -4
  230. package/dist/actions/unmute-user.d.cts.map +1 -1
  231. package/dist/actions/unmute-user.d.mts +3 -4
  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 -4
  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 -4
  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 -5
  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 -5
  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 -14
  254. package/dist/actions/update-group-channel.d.cts.map +1 -1
  255. package/dist/actions/update-group-channel.d.mts +3 -14
  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 -16
  262. package/dist/actions/update-message.d.cts.map +1 -1
  263. package/dist/actions/update-message.d.mts +3 -16
  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 -9
  270. package/dist/actions/update-user.d.cts.map +1 -1
  271. package/dist/actions/update-user.d.mts +3 -9
  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 -8
  278. package/dist/actions/view-group-channel.d.cts.map +1 -1
  279. package/dist/actions/view-group-channel.d.mts +3 -8
  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 -5
  286. package/dist/actions/view-message.d.cts.map +1 -1
  287. package/dist/actions/view-message.d.mts +3 -5
  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 -3
  294. package/dist/actions/view-user.d.cts.map +1 -1
  295. package/dist/actions/view-user.d.mts +3 -3
  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 +9 -2
  300. package/dist/app.cjs.map +1 -1
  301. package/dist/app.d.cts +8 -1
  302. package/dist/app.d.cts.map +1 -1
  303. package/dist/app.d.mts +8 -1
  304. package/dist/app.d.mts.map +1 -1
  305. package/dist/app.mjs +6 -2
  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":"create-user.mjs","names":[],"sources":["../../src/actions/create-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":";;AAgCA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EACxK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACxJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EACtL,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC1K,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAC9J,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACjL,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,SAAS,iDAoBH;CACP,QApBsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-user.mjs","names":[],"sources":["../../src/actions/create-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 SendbirdCreateUserInput = z.object({\n user_id: z.string().describe(\"Unique identifier for the new user. Must be unique across the application. Can contain alphanumeric characters, underscores, and hyphens.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs to store additional user data. Keys and values must be strings.\").optional(),\n nickname: z.string().describe(\"Display name shown to other users in channels. If not provided, may default to user_id.\").optional(),\n is_active: z.boolean().default(true).describe(\"If true, the user is active and can send/receive messages. Inactive users cannot participate in channels.\").optional(),\n profile_url: z.string().describe(\"URL of the user's profile image. Must be a valid HTTP/HTTPS URL.\").optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format (e.g., +15551234567). Used for user discovery if enabled.\").optional(),\n profile_file: z.string().describe(\"Binary content of the user's profile image for multipart upload. Use this instead of profile_url when uploading an image file directly.\").optional(),\n discovery_keys: z.array(z.string()).describe(\"List of unique keys used to find this user through the discovery feature (e.g., email addresses, phone numbers).\").optional(),\n has_ever_logged_in: z.boolean().default(false).describe(\"Internal flag indicating if the user has ever logged in. Typically managed by the system.\").optional(),\n issue_access_token: z.boolean().default(false).describe(\"If true, generates and returns an access token for the user that can be used for client-side authentication.\").optional(),\n preferred_languages: z.array(z.string()).describe(\"List of ISO 639-1 language codes indicating user's preferred languages for push notifications.\").optional(),\n}).describe(\"Request model for creating a new Sendbird user.\");\nexport const SendbirdCreateUserOutput = z.object({\n user_id: z.string().describe(\"The unique identifier of the created user\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs stored with the user\").nullable().optional(),\n nickname: z.string().describe(\"The display name of the user\").nullable().optional(),\n is_active: z.boolean().describe(\"Whether the user is currently active in the system\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in milliseconds) when the user was created\").nullable().optional(),\n profile_url: z.string().describe(\"URL of the user's profile image\").nullable().optional(),\n access_token: z.string().describe(\"Access token for client-side authentication. Only returned if issue_access_token was set to true.\").nullable().optional(),\n last_seen_at: z.number().int().describe(\"Unix timestamp (in milliseconds) of the user's last activity. May be 0 for newly created users.\").nullable().optional(),\n phone_number: z.string().describe(\"User's phone number in E.164 format\").nullable().optional(),\n discovery_keys: z.array(z.string()).describe(\"List of discovery keys associated with the user\").nullable().optional(),\n has_ever_logged_in: z.boolean().describe(\"Whether the user has ever logged in to the application\").nullable().optional(),\n preferred_languages: z.array(z.string()).describe(\"User's preferred language codes for push notifications\").nullable().optional(),\n}).passthrough().describe(\"Response model after successfully creating a new Sendbird user.\");\n\nexport const sendbirdCreateUser: AppAction<\n typeof SendbirdCreateUserInput,\n typeof SendbirdCreateUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_CREATE_USER\", {\n slug: \"sendbird-create-user\",\n name: \"Create Sendbird User\",\n description: \"Creates a new user in Sendbird. Use this to register user accounts before they can join channels or send messages. The user_id must be unique across the application.\",\n input: SendbirdCreateUserInput,\n output: SendbirdCreateUserOutput,\n});\n"],"mappings":";;;AAkCA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2IAA2I;EACxK,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS;EACxJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;EAClI,WAAW,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpK,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI,CAAC,CAAC,SAAS;EACtL,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;EAC1K,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAC9J,oBAAoB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;EACjL,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CAC/J,CAAC,CAAC,CAAC,SAAS,iDAwBH;CACP,QAxBsC,EAAE,OAAO;EAC/C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3J,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpH,oBAAoB,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,qBAAqB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,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/delete-channel.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-channel.cjs","names":["z","action"],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\").nullable(),\n}).passthrough().describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-channel.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SendbirdDeleteChannelInput = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\").nullable(),\n}).passthrough().describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel: AppAction<\n typeof SendbirdDeleteChannelInput,\n typeof SendbirdDeleteChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,EACjD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/delete-channel.d.ts
@@ -7,9 +9,7 @@ declare const SendbirdDeleteChannelInput: z.ZodObject<{
7
9
  declare const SendbirdDeleteChannelOutput: z.ZodObject<{
8
10
  success: z.ZodNullable<z.ZodBoolean>;
9
11
  }, z.core.$loose>;
10
- declare const sendbirdDeleteChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- channel_url: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const sendbirdDeleteChannel: AppAction<typeof SendbirdDeleteChannelInput, typeof SendbirdDeleteChannelOutput, typeof sendbird.credential>;
13
13
  //#endregion
14
14
  export { sendbirdDeleteChannel };
15
15
  //# sourceMappingURL=delete-channel.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-channel.d.cts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-channel.d.cts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/delete-channel.d.ts
@@ -7,9 +9,7 @@ declare const SendbirdDeleteChannelInput: z.ZodObject<{
7
9
  declare const SendbirdDeleteChannelOutput: z.ZodObject<{
8
10
  success: z.ZodNullable<z.ZodBoolean>;
9
11
  }, z.core.$loose>;
10
- declare const sendbirdDeleteChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
11
- channel_url: string;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
12
+ declare const sendbirdDeleteChannel: AppAction<typeof SendbirdDeleteChannelInput, typeof SendbirdDeleteChannelOutput, typeof sendbird.credential>;
13
13
  //#endregion
14
14
  export { sendbirdDeleteChannel };
15
15
  //# sourceMappingURL=delete-channel.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-channel.d.mts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-channel.d.mts","names":[],"sources":["../../src/actions/delete-channel.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;cAG1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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 sendbirdDeleteChannel = action("SENDBIRD_DELETE_CHANNEL", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-channel.mjs","names":[],"sources":["../../src/actions/delete-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteChannelInput = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\").nullable(),\n}).passthrough().describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;AAWA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAXwC,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-channel.mjs","names":[],"sources":["../../src/actions/delete-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 SendbirdDeleteChannelInput = z.object({\n channel_url: z.string().describe(\"The unique URL identifier of the group channel to delete. This is the channel's unique ID, typically in format like 'sendbird_group_channel_123456' or a custom URL set during channel creation.\"),\n}).describe(\"Request model for deleting a Sendbird group channel.\");\nexport const SendbirdDeleteChannelOutput = z.object({\n success: z.boolean().describe(\"True if the channel was successfully deleted. The deletion is permanent and cannot be undone.\").nullable(),\n}).passthrough().describe(\"Response model for deletion of a group channel.\");\n\nexport const sendbirdDeleteChannel: AppAction<\n typeof SendbirdDeleteChannelInput,\n typeof SendbirdDeleteChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_CHANNEL\", {\n slug: \"sendbird-delete-channel\",\n name: \"Delete Group Channel\",\n description: \"Permanently deletes a Sendbird group channel. Use this tool when you need to remove a group channel and all its associated data (messages, members, etc.). WARNING: This action is irreversible. Requires the channel_url identifier of the channel to delete.\",\n input: SendbirdDeleteChannelInput,\n output: SendbirdDeleteChannelOutput,\n});\n"],"mappings":";;;AAaA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfwC,EAAE,OAAO,EACjD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kMAAkM,EACrO,CAAC,CAAC,CAAC,SAAS,sDAaH;CACP,QAbyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS,EAC1I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;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/delete-message.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-message.cjs","names":["z","action"],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\").nullable(),\n}).passthrough().describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;CAC1K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAChM,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-message.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SendbirdDeleteMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\").nullable(),\n}).passthrough().describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage: AppAction<\n typeof SendbirdDeleteMessageInput,\n typeof SendbirdDeleteMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;CAC1K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;AAChM,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,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/delete-message.d.ts
@@ -8,10 +10,7 @@ declare const SendbirdDeleteMessageInput: z.ZodObject<{
8
10
  declare const SendbirdDeleteMessageOutput: z.ZodObject<{
9
11
  success: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>;
11
- declare const sendbirdDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- message_id: number;
13
- channel_url: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const sendbirdDeleteMessage: AppAction<typeof SendbirdDeleteMessageInput, typeof SendbirdDeleteMessageOutput, typeof sendbird.credential>;
15
14
  //#endregion
16
15
  export { sendbirdDeleteMessage };
17
16
  //# sourceMappingURL=delete-message.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-message.d.cts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-message.d.cts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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/delete-message.d.ts
@@ -8,10 +10,7 @@ declare const SendbirdDeleteMessageInput: z.ZodObject<{
8
10
  declare const SendbirdDeleteMessageOutput: z.ZodObject<{
9
11
  success: z.ZodNullable<z.ZodBoolean>;
10
12
  }, z.core.$loose>;
11
- declare const sendbirdDeleteMessage: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- message_id: number;
13
- channel_url: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const sendbirdDeleteMessage: AppAction<typeof SendbirdDeleteMessageInput, typeof SendbirdDeleteMessageOutput, typeof sendbird.credential>;
15
14
  //#endregion
16
15
  export { sendbirdDeleteMessage };
17
16
  //# sourceMappingURL=delete-message.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-message.d.mts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,gCAAqB,wBAAA"}
1
+ {"version":3,"file":"delete-message.d.mts","names":[],"sources":["../../src/actions/delete-message.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAI1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAI3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,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 sendbirdDeleteMessage = action("SENDBIRD_DELETE_MESSAGE", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-message.mjs","names":[],"sources":["../../src/actions/delete-message.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\").nullable(),\n}).passthrough().describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;AAYA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZwC,EAAE,OAAO;EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;EAC1K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CAChM,CAAC,CAAC,CAAC,SAAS,+DASH;CACP,QATyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"delete-message.mjs","names":[],"sources":["../../src/actions/delete-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 SendbirdDeleteMessageInput = z.object({\n message_id: z.number().int().describe(\"Unique numeric ID of the message to delete. Must be a positive integer obtained from message listing or message sending responses.\"),\n channel_url: z.string().describe(\"URL-encoded identifier of the group channel containing the message to delete. Can be obtained from channel creation responses or channel listing endpoints.\"),\n}).describe(\"Request schema for deleting a Sendbird group channel message.\");\nexport const SendbirdDeleteMessageOutput = z.object({\n success: z.boolean().describe(\"Indicates whether the message was successfully deleted. Always True on successful deletion; errors raise ExecutionFailed.\").nullable(),\n}).passthrough().describe(\"Response schema for successful deletion of a Sendbird message.\");\n\nexport const sendbirdDeleteMessage: AppAction<\n typeof SendbirdDeleteMessageInput,\n typeof SendbirdDeleteMessageOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_MESSAGE\", {\n slug: \"sendbird-delete-message\",\n name: \"Delete Message\",\n description: \"Permanently deletes a specific message from a Sendbird group channel. This action cannot be undone. Use this when you need to remove a message that was sent by mistake or contains inappropriate content. Requires both channel_url and message_id, which can be obtained from channel/message listing endpoints.\",\n input: SendbirdDeleteMessageInput,\n output: SendbirdDeleteMessageOutput,\n});\n"],"mappings":";;;AAcA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBwC,EAAE,OAAO;EACjD,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oIAAoI;EAC1K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6JAA6J;CAChM,CAAC,CAAC,CAAC,SAAS,+DAaH;CACP,QAbyC,EAAE,OAAO,EAClD,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,EACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gEAWhB;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/delete-user.ts
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,2BAA2BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAErJ,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.cjs","names":["z","action"],"sources":["../../src/actions/delete-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 SendbirdDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser: AppAction<\n typeof SendbirdDeleteUserInput,\n typeof SendbirdDeleteUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC/D,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,2BAA2BA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAErJ,MAAa,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,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/delete-user.d.ts
@@ -6,10 +8,7 @@ declare const SendbirdDeleteUserInput: z.ZodObject<{
6
8
  hard_delete: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
9
  }, z.core.$strip>;
8
10
  declare const SendbirdDeleteUserOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const sendbirdDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- user_id: string;
11
- hard_delete?: boolean | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const sendbirdDeleteUser: AppAction<typeof SendbirdDeleteUserInput, typeof SendbirdDeleteUserOutput, typeof sendbird.credential>;
13
12
  //#endregion
14
13
  export { sendbirdDeleteUser };
15
14
  //# sourceMappingURL=delete-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"delete-user.d.cts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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/delete-user.d.ts
@@ -6,10 +8,7 @@ declare const SendbirdDeleteUserInput: z.ZodObject<{
6
8
  hard_delete: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
9
  }, z.core.$strip>;
8
10
  declare const SendbirdDeleteUserOutput: z.ZodRecord<z.ZodString, z.ZodUnknown>;
9
- declare const sendbirdDeleteUser: import("@keystrokehq/action").WorkflowActionDefinition<{
10
- user_id: string;
11
- hard_delete?: boolean | undefined;
12
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
11
+ declare const sendbirdDeleteUser: AppAction<typeof SendbirdDeleteUserInput, typeof SendbirdDeleteUserOutput, typeof sendbird.credential>;
13
12
  //#endregion
14
13
  export { sendbirdDeleteUser };
15
14
  //# sourceMappingURL=delete-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"delete-user.d.mts","names":[],"sources":["../../src/actions/delete-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;cAIvB,wBAAA,EAAwB,CAAA,CAAA,SAAA,CAAA,CAAA,CAAA,SAAA,EAAA,CAAA,CAAA,UAAA;AAAA,cAExB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,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 sendbirdDeleteUser = action("SENDBIRD_DELETE_USER", {
@@ -1 +1 @@
1
- {"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-user.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;AAUA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAVqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,kDAOH;CACP,QAPsC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAOzE;AACV,CAAC"}
1
+ {"version":3,"file":"delete-user.mjs","names":[],"sources":["../../src/actions/delete-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 SendbirdDeleteUserInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user to delete.\"),\n hard_delete: z.boolean().default(false).describe(\"Whether to permanently delete the user and all associated data.\").optional(),\n}).describe(\"Request parameters for deleting a Sendbird user.\");\nexport const SendbirdDeleteUserOutput = z.record(z.string(), z.unknown()).describe(\"Response schema for deleting a Sendbird user (empty on success).\");\n\nexport const sendbirdDeleteUser: AppAction<\n typeof SendbirdDeleteUserInput,\n typeof SendbirdDeleteUserOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_DELETE_USER\", {\n slug: \"sendbird-delete-user\",\n name: \"Delete Sendbird User\",\n description: \"Tool to delete a Sendbird user. Use when you need to remove a user from your Sendbird application, optionally permanently.\",\n input: SendbirdDeleteUserInput,\n output: SendbirdDeleteUserOutput,\n});\n"],"mappings":";;;AAYA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqC,EAAE,OAAO;EAC9C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;EAC/D,aAAa,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,kDAWH;CACP,QAXsC,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAWzE;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/get-count-preference-of-channel.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-count-preference-of-channel.cjs","names":["z","action"],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetCountPreferenceOfChannelInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\").nullable(),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\").nullable(),\n}).passthrough().describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAwB;CAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,sCAAsCC,eAAAA,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-count-preference-of-channel.cjs","names":["z","action"],"sources":["../../src/actions/get-count-preference-of-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 SendbirdGetCountPreferenceOfChannelInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\").nullable(),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\").nullable(),\n}).passthrough().describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel: AppAction<\n typeof SendbirdGetCountPreferenceOfChannelInput,\n typeof SendbirdGetCountPreferenceOfChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACzD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AAC3E,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAClG,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,kBAAkBA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAwB;CAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;AAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAAkE;AAE5F,MAAa,sCAITC,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/get-count-preference-of-channel.d.ts
@@ -8,15 +10,12 @@ declare const SendbirdGetCountPreferenceOfChannelInput: z.ZodObject<{
8
10
  declare const SendbirdGetCountPreferenceOfChannelOutput: z.ZodObject<{
9
11
  channel_url: z.ZodNullable<z.ZodString>;
10
12
  count_preference: z.ZodNullable<z.ZodEnum<{
11
- all: "all";
12
13
  unread_message_count: "unread_message_count";
14
+ all: "all";
13
15
  mention_count: "mention_count";
14
16
  }>>;
15
17
  }, z.core.$loose>;
16
- declare const sendbirdGetCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- user_id: string;
18
- channel_url: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const sendbirdGetCountPreferenceOfChannel: AppAction<typeof SendbirdGetCountPreferenceOfChannelInput, typeof SendbirdGetCountPreferenceOfChannelOutput, typeof sendbird.credential>;
20
19
  //#endregion
21
20
  export { sendbirdGetCountPreferenceOfChannel };
22
21
  //# sourceMappingURL=get-count-preference-of-channel.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count-preference-of-channel.d.cts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAIxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"get-count-preference-of-channel.d.cts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAIxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,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/get-count-preference-of-channel.d.ts
@@ -8,15 +10,12 @@ declare const SendbirdGetCountPreferenceOfChannelInput: z.ZodObject<{
8
10
  declare const SendbirdGetCountPreferenceOfChannelOutput: z.ZodObject<{
9
11
  channel_url: z.ZodNullable<z.ZodString>;
10
12
  count_preference: z.ZodNullable<z.ZodEnum<{
11
- all: "all";
12
13
  unread_message_count: "unread_message_count";
14
+ all: "all";
13
15
  mention_count: "mention_count";
14
16
  }>>;
15
17
  }, z.core.$loose>;
16
- declare const sendbirdGetCountPreferenceOfChannel: import("@keystrokehq/action").WorkflowActionDefinition<{
17
- user_id: string;
18
- channel_url: string;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
18
+ declare const sendbirdGetCountPreferenceOfChannel: AppAction<typeof SendbirdGetCountPreferenceOfChannelInput, typeof SendbirdGetCountPreferenceOfChannelOutput, typeof sendbird.credential>;
20
19
  //#endregion
21
20
  export { sendbirdGetCountPreferenceOfChannel };
22
21
  //# sourceMappingURL=get-count-preference-of-channel.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-count-preference-of-channel.d.mts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAIxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,gCAAmC,wBAAA"}
1
+ {"version":3,"file":"get-count-preference-of-channel.d.mts","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"mappings":";;;;;cAMa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAIxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;cAKzC,mCAAA,EAAqC,SAAA,QACzC,wCAAA,SACA,yCAAA,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 sendbirdGetCountPreferenceOfChannel = action("SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-count-preference-of-channel.mjs","names":[],"sources":["../../src/actions/get-count-preference-of-channel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetCountPreferenceOfChannelInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\").nullable(),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\").nullable(),\n}).passthrough().describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;AAaA,MAAa,sCAAsC,OAAO,4CAA4C;CACpG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC3E,CAAC,CAAC,CAAC,SAAS,sFAUH;CACP,QAVuD,EAAE,OAAO;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,kBAAkB,EAAE,KAAK;GAAC;GAAO;GAAwB;EAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-count-preference-of-channel.mjs","names":[],"sources":["../../src/actions/get-count-preference-of-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 SendbirdGetCountPreferenceOfChannelInput = z.object({\n user_id: z.string().describe(\"The unique ID of the user.\"),\n channel_url: z.string().describe(\"URL (identifier) of the group channel.\"),\n}).describe(\"Request model for retrieving a user's count preference for a specific group channel.\");\nexport const SendbirdGetCountPreferenceOfChannelOutput = z.object({\n channel_url: z.string().describe(\"The URL of the group channel.\").nullable(),\n count_preference: z.enum([\"all\", \"unread_message_count\", \"mention_count\"]).describe(\"The user's count preference for the channel.\").nullable(),\n}).passthrough().describe(\"Response model for a user's count preference of a group channel.\");\n\nexport const sendbirdGetCountPreferenceOfChannel: AppAction<\n typeof SendbirdGetCountPreferenceOfChannelInput,\n typeof SendbirdGetCountPreferenceOfChannelOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_COUNT_PREFERENCE_OF_CHANNEL\", {\n slug: \"sendbird-get-count-preference-of-channel\",\n name: \"Get Count Preference Of Channel\",\n description: \"Tool to retrieve a user's count preference for a specific group channel. Use after confirming the user and channel exist to determine whether to display all, unread-only, or mention-only counts.\",\n input: SendbirdGetCountPreferenceOfChannelInput,\n output: SendbirdGetCountPreferenceOfChannelOutput,\n});\n"],"mappings":";;;AAeA,MAAa,sCAIT,OAAO,4CAA4C;CACrD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjBsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACzD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CAC3E,CAAC,CAAC,CAAC,SAAS,sFAcH;CACP,QAduD,EAAE,OAAO;EAChE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,kBAAkB,EAAE,KAAK;GAAC;GAAO;GAAwB;EAAe,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC/I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kEAWhB;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/get-number-of-channels-by-join-status.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-channels-by-join-status.cjs","names":["z","action"],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfChannelsByJoinStatusInput = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\").nullable(),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).passthrough().describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;CAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACrO,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5N,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzN,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAY;CAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;AACvQ,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6HAA6H;AAEvJ,MAAa,0CAA0CC,eAAAA,OAAO,kDAAkD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-number-of-channels-by-join-status.cjs","names":["z","action"],"sources":["../../src/actions/get-number-of-channels-by-join-status.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 SendbirdGetNumberOfChannelsByJoinStatusInput = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\").nullable(),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).passthrough().describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus: AppAction<\n typeof SendbirdGetNumberOfChannelsByJoinStatusInput,\n typeof SendbirdGetNumberOfChannelsByJoinStatusOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+CAA+CA,IAAAA,EAAE,OAAO;CACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;CAC5G,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAS;CAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;CACrO,aAAaA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAU;CAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5N,cAAcA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACzN,eAAeA,IAAAA,EAAE,KAAK;EAAC;EAAO;EAAY;CAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;AACvQ,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,gDAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6HAA6H;AAEvJ,MAAa,0CAITC,eAAAA,OAAO,kDAAkD;CAC3D,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/get-number-of-channels-by-join-status.d.ts
@@ -27,13 +29,7 @@ declare const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodObject<{
27
29
  invited_by_friend: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
28
30
  invited_by_non_friend: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
29
31
  }, z.core.$loose>;
30
- declare const sendbirdGetNumberOfChannelsByJoinStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- user_id: string;
32
- super_mode?: "all" | "super" | "nonsuper" | undefined;
33
- public_mode?: "all" | "public" | "private" | undefined;
34
- custom_types?: string[] | undefined;
35
- distinct_mode?: "all" | "distinct" | "nondistinct" | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ declare const sendbirdGetNumberOfChannelsByJoinStatus: AppAction<typeof SendbirdGetNumberOfChannelsByJoinStatusInput, typeof SendbirdGetNumberOfChannelsByJoinStatusOutput, typeof sendbird.credential>;
37
33
  //#endregion
38
34
  export { sendbirdGetNumberOfChannelsByJoinStatus };
39
35
  //# sourceMappingURL=get-number-of-channels-by-join-status.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-channels-by-join-status.d.cts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;cAIa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAO5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAQ7C,uCAAA,gCAAuC,wBAAA"}
1
+ {"version":3,"file":"get-number-of-channels-by-join-status.d.cts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAO5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAQ7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,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/get-number-of-channels-by-join-status.d.ts
@@ -27,13 +29,7 @@ declare const SendbirdGetNumberOfChannelsByJoinStatusOutput: z.ZodObject<{
27
29
  invited_by_friend: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
28
30
  invited_by_non_friend: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
29
31
  }, z.core.$loose>;
30
- declare const sendbirdGetNumberOfChannelsByJoinStatus: import("@keystrokehq/action").WorkflowActionDefinition<{
31
- user_id: string;
32
- super_mode?: "all" | "super" | "nonsuper" | undefined;
33
- public_mode?: "all" | "public" | "private" | undefined;
34
- custom_types?: string[] | undefined;
35
- distinct_mode?: "all" | "distinct" | "nondistinct" | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
32
+ declare const sendbirdGetNumberOfChannelsByJoinStatus: AppAction<typeof SendbirdGetNumberOfChannelsByJoinStatusInput, typeof SendbirdGetNumberOfChannelsByJoinStatusOutput, typeof sendbird.credential>;
37
33
  //#endregion
38
34
  export { sendbirdGetNumberOfChannelsByJoinStatus };
39
35
  //# sourceMappingURL=get-number-of-channels-by-join-status.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-channels-by-join-status.d.mts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;cAIa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAO5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAQ7C,uCAAA,gCAAuC,wBAAA"}
1
+ {"version":3,"file":"get-number-of-channels-by-join-status.d.mts","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"mappings":";;;;;cAMa,4CAAA,EAA4C,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAO5C,6CAAA,EAA6C,CAAA,CAAA,SAAA;;;;;;;cAQ7C,uCAAA,EAAyC,SAAA,QAC7C,4CAAA,SACA,6CAAA,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 sendbirdGetNumberOfChannelsByJoinStatus = action("SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS", {
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-channels-by-join-status.mjs","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfChannelsByJoinStatusInput = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\").nullable(),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).passthrough().describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;AAmBA,MAAa,0CAA0C,OAAO,kDAAkD;CAC9G,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB0D,EAAE,OAAO;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC5G,YAAY,EAAE,KAAK;GAAC;GAAO;GAAS;EAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EACrO,aAAa,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5N,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;EACzN,eAAe,EAAE,KAAK;GAAC;GAAO;GAAY;EAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACvQ,CAAC,CAAC,CAAC,SAAS,gFAaH;CACP,QAb2D,EAAE,OAAO;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjL,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6HAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"get-number-of-channels-by-join-status.mjs","names":[],"sources":["../../src/actions/get-number-of-channels-by-join-status.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 SendbirdGetNumberOfChannelsByJoinStatusInput = z.object({\n user_id: z.string().describe(\"The unique ID of the target user whose group channel count will be retrieved.\"),\n super_mode: z.enum([\"all\", \"super\", \"nonsuper\"]).describe(\"Filter by channel type. 'super' channels support up to tens of thousands of members; 'nonsuper' regular channels support up to 100 members. Defaults to 'all'.\").optional(),\n public_mode: z.enum([\"all\", \"public\", \"private\"]).describe(\"Filter by channel visibility. 'public' channels allow users to join without invitation; 'private' channels require an invitation. Defaults to 'all'.\").optional(),\n custom_types: z.array(z.string()).describe(\"Filter by custom channel types. Only channels matching one of the specified custom types will be counted. Pass an empty list or omit to include all custom types.\").optional(),\n distinct_mode: z.enum([\"all\", \"distinct\", \"nondistinct\"]).describe(\"Filter by channel distinctness. 'distinct' channels resume conversations with the same members; 'nondistinct' allows multiple channels with identical member sets. Defaults to 'all'.\").optional(),\n}).describe(\"Request model for fetching number of group channels by join status for a user.\");\nexport const SendbirdGetNumberOfChannelsByJoinStatusOutput = z.object({\n total: z.number().int().describe(\"Total number of group channels associated with the user (sum of joined and invited channels).\").nullable(),\n joined: z.number().int().default(0).describe(\"Number of group channels the user is currently a member of (has joined).\").nullable().optional(),\n invited: z.number().int().default(0).describe(\"Number of group channels the user has been invited to but has not yet joined.\").nullable().optional(),\n invited_by_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by a friend (if friend feature is enabled).\").nullable().optional(),\n invited_by_non_friend: z.number().int().default(0).describe(\"Number of group channels the user has been invited to by someone who is not a friend.\").nullable().optional(),\n}).passthrough().describe(\"Response model for group channel count by join status. Contains counts of channels where the user is invited or has joined.\");\n\nexport const sendbirdGetNumberOfChannelsByJoinStatus: AppAction<\n typeof SendbirdGetNumberOfChannelsByJoinStatusInput,\n typeof SendbirdGetNumberOfChannelsByJoinStatusOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_NUMBER_OF_CHANNELS_BY_JOIN_STATUS\", {\n slug: \"sendbird-get-number-of-channels-by-join-status\",\n name: \"Get User Group Channel Count by Join Status\",\n description: \"Retrieves the number of group channels for a user, categorized by join status (joined, invited, etc.). Use this tool to get channel count statistics for a specific user, optionally filtered by channel properties like visibility (public/private), distinctness, or super mode. Returns counts of joined channels, invited channels (with friend/non-friend breakdown), and total count.\",\n input: SendbirdGetNumberOfChannelsByJoinStatusInput,\n output: SendbirdGetNumberOfChannelsByJoinStatusOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,0CAIT,OAAO,kDAAkD;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB0D,EAAE,OAAO;EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;EAC5G,YAAY,EAAE,KAAK;GAAC;GAAO;GAAS;EAAU,CAAC,CAAC,CAAC,SAAS,gKAAgK,CAAC,CAAC,SAAS;EACrO,aAAa,EAAE,KAAK;GAAC;GAAO;GAAU;EAAS,CAAC,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5N,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;EACzN,eAAe,EAAE,KAAK;GAAC;GAAO;GAAY;EAAa,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACvQ,CAAC,CAAC,CAAC,SAAS,gFAiBH;CACP,QAjB2D,EAAE,OAAO;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,+EAA+E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnJ,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjL,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3K,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6HAWhB;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/get-number-of-unread-items.ts
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-unread-items.cjs","names":["z","action"],"sources":["../../src/actions/get-number-of-unread-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const SendbirdGetNumberOfUnreadItemsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose unread item counts are to be retrieved.\"),\n item_keys: z.string().describe(\"Comma-separated list of item keys to retrieve. Options: non_super_group_channel_unread_message_count, super_group_channel_unread_message_count, group_channel_unread_message_count, non_super_group_channel_unread_mention_count, super_group_channel_unread_mention_count, group_channel_unread_mention_count, non_super_group_channel_invitation_count, super_group_channel_invitation_count, group_channel_invitation_count. If not specified, returns all available counts.\").optional(),\n custom_types: z.string().describe(\"Comma-separated list of custom channel types to filter the count by.\").optional(),\n}).describe(\"Request model for retrieving unread item counts for a Sendbird user.\\nRetrieves unread messages, mentions, and invitation counts in group channels.\");\nexport const SendbirdGetNumberOfUnreadItemsOutput = z.object({\n group_channel_invitation_count: z.number().int().describe(\"Total count of pending invitations across all group channels.\").nullable().optional(),\n group_channel_unread_mention_count: z.number().int().describe(\"Total count of unread mentions across all group channels.\").nullable().optional(),\n group_channel_unread_message_count: z.number().int().describe(\"Total count of unread messages across all group channels.\").nullable().optional(),\n super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in super group channels.\").nullable().optional(),\n non_super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in non-super group channels.\").nullable().optional(),\n super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in super group channels.\").nullable().optional(),\n super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in super group channels.\").nullable().optional(),\n non_super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in non-super group channels.\").nullable().optional(),\n non_super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in non-super group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Sendbird unread item counts.\\nReturns various counts for unread messages, mentions, and invitations\\nacross different channel types.\");\n\nexport const sendbirdGetNumberOfUnreadItems = action(\"SENDBIRD_GET_NUMBER_OF_UNREAD_ITEMS\", {\n slug: \"sendbird-get-number-of-unread-items\",\n name: \"Sendbird Get Unread Item Count\",\n description: \"Tool to retrieve a user's unread item counts including unread messages, mentions, and pending invitations across group channels. Use this to display unread counts in the UI for a specific user.\",\n input: SendbirdGetNumberOfUnreadItemsInput,\n output: SendbirdGetNumberOfUnreadItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,idAAid,CAAC,CAAC,SAAS;CAC3f,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,qJAAqJ;AACjK,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,8CAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,8CAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AAEnL,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-number-of-unread-items.cjs","names":["z","action"],"sources":["../../src/actions/get-number-of-unread-items.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 SendbirdGetNumberOfUnreadItemsInput = z.object({\n user_id: z.string().describe(\"Unique ID of the user whose unread item counts are to be retrieved.\"),\n item_keys: z.string().describe(\"Comma-separated list of item keys to retrieve. Options: non_super_group_channel_unread_message_count, super_group_channel_unread_message_count, group_channel_unread_message_count, non_super_group_channel_unread_mention_count, super_group_channel_unread_mention_count, group_channel_unread_mention_count, non_super_group_channel_invitation_count, super_group_channel_invitation_count, group_channel_invitation_count. If not specified, returns all available counts.\").optional(),\n custom_types: z.string().describe(\"Comma-separated list of custom channel types to filter the count by.\").optional(),\n}).describe(\"Request model for retrieving unread item counts for a Sendbird user.\\nRetrieves unread messages, mentions, and invitation counts in group channels.\");\nexport const SendbirdGetNumberOfUnreadItemsOutput = z.object({\n group_channel_invitation_count: z.number().int().describe(\"Total count of pending invitations across all group channels.\").nullable().optional(),\n group_channel_unread_mention_count: z.number().int().describe(\"Total count of unread mentions across all group channels.\").nullable().optional(),\n group_channel_unread_message_count: z.number().int().describe(\"Total count of unread messages across all group channels.\").nullable().optional(),\n super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in super group channels.\").nullable().optional(),\n non_super_group_channel_invitation_count: z.number().int().describe(\"Count of pending invitations in non-super group channels.\").nullable().optional(),\n super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in super group channels.\").nullable().optional(),\n super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in super group channels.\").nullable().optional(),\n non_super_group_channel_unread_mention_count: z.number().int().describe(\"Count of unread mentions in non-super group channels.\").nullable().optional(),\n non_super_group_channel_unread_message_count: z.number().int().describe(\"Count of unread messages in non-super group channels.\").nullable().optional(),\n}).passthrough().describe(\"Response model for Sendbird unread item counts.\\nReturns various counts for unread messages, mentions, and invitations\\nacross different channel types.\");\n\nexport const sendbirdGetNumberOfUnreadItems: AppAction<\n typeof SendbirdGetNumberOfUnreadItemsInput,\n typeof SendbirdGetNumberOfUnreadItemsOutput,\n typeof sendbird.credential\n> = action(\"SENDBIRD_GET_NUMBER_OF_UNREAD_ITEMS\", {\n slug: \"sendbird-get-number-of-unread-items\",\n name: \"Sendbird Get Unread Item Count\",\n description: \"Tool to retrieve a user's unread item counts including unread messages, mentions, and pending invitations across group channels. Use this to display unread counts in the UI for a specific user.\",\n input: SendbirdGetNumberOfUnreadItemsInput,\n output: SendbirdGetNumberOfUnreadItemsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,idAAid,CAAC,CAAC,SAAS;CAC3f,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,qJAAqJ;AACjK,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,oCAAoCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,sCAAsCA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,0CAA0CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,8CAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,8CAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yJAAyJ;AAEnL,MAAa,iCAITC,eAAAA,OAAO,uCAAuC;CAChD,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/get-number-of-unread-items.d.ts
@@ -17,11 +19,7 @@ declare const SendbirdGetNumberOfUnreadItemsOutput: z.ZodObject<{
17
19
  non_super_group_channel_unread_mention_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
20
  non_super_group_channel_unread_message_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
21
  }, z.core.$loose>;
20
- declare const sendbirdGetNumberOfUnreadItems: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- user_id: string;
22
- item_keys?: string | undefined;
23
- custom_types?: string | undefined;
24
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const sendbirdGetNumberOfUnreadItems: AppAction<typeof SendbirdGetNumberOfUnreadItemsInput, typeof SendbirdGetNumberOfUnreadItemsOutput, typeof sendbird.credential>;
25
23
  //#endregion
26
24
  export { sendbirdGetNumberOfUnreadItems };
27
25
  //# sourceMappingURL=get-number-of-unread-items.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-number-of-unread-items.d.cts","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpC,8BAAA,gCAA8B,wBAAA"}
1
+ {"version":3,"file":"get-number-of-unread-items.d.cts","names":[],"sources":["../../src/actions/get-number-of-unread-items.ts"],"mappings":";;;;;cAMa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;cAKnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;cAYpC,8BAAA,EAAgC,SAAA,QACpC,mCAAA,SACA,oCAAA,SACA,QAAA,CAAS,UAAA"}