@keystrokehq/sendbird 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (309) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-members-group-channel.cjs +1 -0
  4. package/dist/actions/add-members-group-channel.cjs.map +1 -1
  5. package/dist/actions/add-members-group-channel.d.cts +3 -20
  6. package/dist/actions/add-members-group-channel.d.cts.map +1 -1
  7. package/dist/actions/add-members-group-channel.d.mts +3 -20
  8. package/dist/actions/add-members-group-channel.d.mts.map +1 -1
  9. package/dist/actions/add-members-group-channel.mjs +1 -0
  10. package/dist/actions/add-members-group-channel.mjs.map +1 -1
  11. package/dist/actions/ban-user-from-group-channel.cjs +1 -0
  12. package/dist/actions/ban-user-from-group-channel.cjs.map +1 -1
  13. package/dist/actions/ban-user-from-group-channel.d.cts +3 -21
  14. package/dist/actions/ban-user-from-group-channel.d.cts.map +1 -1
  15. package/dist/actions/ban-user-from-group-channel.d.mts +3 -21
  16. package/dist/actions/ban-user-from-group-channel.d.mts.map +1 -1
  17. package/dist/actions/ban-user-from-group-channel.mjs +1 -0
  18. package/dist/actions/ban-user-from-group-channel.mjs.map +1 -1
  19. package/dist/actions/create-channel.cjs +1 -0
  20. package/dist/actions/create-channel.cjs.map +1 -1
  21. package/dist/actions/create-channel.d.cts +3 -34
  22. package/dist/actions/create-channel.d.cts.map +1 -1
  23. package/dist/actions/create-channel.d.mts +3 -34
  24. package/dist/actions/create-channel.d.mts.map +1 -1
  25. package/dist/actions/create-channel.mjs +1 -0
  26. package/dist/actions/create-channel.mjs.map +1 -1
  27. package/dist/actions/create-user.cjs +1 -0
  28. package/dist/actions/create-user.cjs.map +1 -1
  29. package/dist/actions/create-user.d.cts +3 -27
  30. package/dist/actions/create-user.d.cts.map +1 -1
  31. package/dist/actions/create-user.d.mts +3 -27
  32. package/dist/actions/create-user.d.mts.map +1 -1
  33. package/dist/actions/create-user.mjs +1 -0
  34. package/dist/actions/create-user.mjs.map +1 -1
  35. package/dist/actions/delete-channel.cjs +1 -0
  36. package/dist/actions/delete-channel.cjs.map +1 -1
  37. package/dist/actions/delete-channel.d.cts +3 -17
  38. package/dist/actions/delete-channel.d.cts.map +1 -1
  39. package/dist/actions/delete-channel.d.mts +3 -17
  40. package/dist/actions/delete-channel.d.mts.map +1 -1
  41. package/dist/actions/delete-channel.mjs +1 -0
  42. package/dist/actions/delete-channel.mjs.map +1 -1
  43. package/dist/actions/delete-message.cjs +1 -0
  44. package/dist/actions/delete-message.cjs.map +1 -1
  45. package/dist/actions/delete-message.d.cts +3 -18
  46. package/dist/actions/delete-message.d.cts.map +1 -1
  47. package/dist/actions/delete-message.d.mts +3 -18
  48. package/dist/actions/delete-message.d.mts.map +1 -1
  49. package/dist/actions/delete-message.mjs +1 -0
  50. package/dist/actions/delete-message.mjs.map +1 -1
  51. package/dist/actions/delete-user.cjs +1 -0
  52. package/dist/actions/delete-user.cjs.map +1 -1
  53. package/dist/actions/delete-user.d.cts +3 -18
  54. package/dist/actions/delete-user.d.cts.map +1 -1
  55. package/dist/actions/delete-user.d.mts +3 -18
  56. package/dist/actions/delete-user.d.mts.map +1 -1
  57. package/dist/actions/delete-user.mjs +1 -0
  58. package/dist/actions/delete-user.mjs.map +1 -1
  59. package/dist/actions/get-count-preference-of-channel.cjs +1 -0
  60. package/dist/actions/get-count-preference-of-channel.cjs.map +1 -1
  61. package/dist/actions/get-count-preference-of-channel.d.cts +4 -19
  62. package/dist/actions/get-count-preference-of-channel.d.cts.map +1 -1
  63. package/dist/actions/get-count-preference-of-channel.d.mts +4 -19
  64. package/dist/actions/get-count-preference-of-channel.d.mts.map +1 -1
  65. package/dist/actions/get-count-preference-of-channel.mjs +1 -0
  66. package/dist/actions/get-count-preference-of-channel.mjs.map +1 -1
  67. package/dist/actions/get-number-of-channels-by-join-status.cjs +1 -0
  68. package/dist/actions/get-number-of-channels-by-join-status.cjs.map +1 -1
  69. package/dist/actions/get-number-of-channels-by-join-status.d.cts +3 -21
  70. package/dist/actions/get-number-of-channels-by-join-status.d.cts.map +1 -1
  71. package/dist/actions/get-number-of-channels-by-join-status.d.mts +3 -21
  72. package/dist/actions/get-number-of-channels-by-join-status.d.mts.map +1 -1
  73. package/dist/actions/get-number-of-channels-by-join-status.mjs +1 -0
  74. package/dist/actions/get-number-of-channels-by-join-status.mjs.map +1 -1
  75. package/dist/actions/get-number-of-unread-items.cjs +1 -0
  76. package/dist/actions/get-number-of-unread-items.cjs.map +1 -1
  77. package/dist/actions/get-number-of-unread-items.d.cts +3 -19
  78. package/dist/actions/get-number-of-unread-items.d.cts.map +1 -1
  79. package/dist/actions/get-number-of-unread-items.d.mts +3 -19
  80. package/dist/actions/get-number-of-unread-items.d.mts.map +1 -1
  81. package/dist/actions/get-number-of-unread-items.mjs +1 -0
  82. package/dist/actions/get-number-of-unread-items.mjs.map +1 -1
  83. package/dist/actions/issue-session-token.cjs +1 -0
  84. package/dist/actions/issue-session-token.cjs.map +1 -1
  85. package/dist/actions/issue-session-token.d.cts +3 -18
  86. package/dist/actions/issue-session-token.d.cts.map +1 -1
  87. package/dist/actions/issue-session-token.d.mts +3 -18
  88. package/dist/actions/issue-session-token.d.mts.map +1 -1
  89. package/dist/actions/issue-session-token.mjs +1 -0
  90. package/dist/actions/issue-session-token.mjs.map +1 -1
  91. package/dist/actions/leave-group-channels.cjs +1 -0
  92. package/dist/actions/leave-group-channels.cjs.map +1 -1
  93. package/dist/actions/leave-group-channels.d.cts +3 -20
  94. package/dist/actions/leave-group-channels.d.cts.map +1 -1
  95. package/dist/actions/leave-group-channels.d.mts +3 -20
  96. package/dist/actions/leave-group-channels.d.mts.map +1 -1
  97. package/dist/actions/leave-group-channels.mjs +1 -0
  98. package/dist/actions/leave-group-channels.mjs.map +1 -1
  99. package/dist/actions/list-banned-members.cjs +1 -0
  100. package/dist/actions/list-banned-members.cjs.map +1 -1
  101. package/dist/actions/list-banned-members.d.cts +3 -19
  102. package/dist/actions/list-banned-members.d.cts.map +1 -1
  103. package/dist/actions/list-banned-members.d.mts +3 -19
  104. package/dist/actions/list-banned-members.d.mts.map +1 -1
  105. package/dist/actions/list-banned-members.mjs +1 -0
  106. package/dist/actions/list-banned-members.mjs.map +1 -1
  107. package/dist/actions/list-group-channel-messages.cjs +1 -0
  108. package/dist/actions/list-group-channel-messages.cjs.map +1 -1
  109. package/dist/actions/list-group-channel-messages.d.cts +3 -35
  110. package/dist/actions/list-group-channel-messages.d.cts.map +1 -1
  111. package/dist/actions/list-group-channel-messages.d.mts +3 -35
  112. package/dist/actions/list-group-channel-messages.d.mts.map +1 -1
  113. package/dist/actions/list-group-channel-messages.mjs +1 -0
  114. package/dist/actions/list-group-channel-messages.mjs.map +1 -1
  115. package/dist/actions/list-group-channels.cjs +1 -0
  116. package/dist/actions/list-group-channels.cjs.map +1 -1
  117. package/dist/actions/list-group-channels.d.cts +3 -37
  118. package/dist/actions/list-group-channels.d.cts.map +1 -1
  119. package/dist/actions/list-group-channels.d.mts +3 -37
  120. package/dist/actions/list-group-channels.d.mts.map +1 -1
  121. package/dist/actions/list-group-channels.mjs +1 -0
  122. package/dist/actions/list-group-channels.mjs.map +1 -1
  123. package/dist/actions/list-members-group-channel.cjs +1 -0
  124. package/dist/actions/list-members-group-channel.cjs.map +1 -1
  125. package/dist/actions/list-members-group-channel.d.cts +3 -25
  126. package/dist/actions/list-members-group-channel.d.cts.map +1 -1
  127. package/dist/actions/list-members-group-channel.d.mts +3 -25
  128. package/dist/actions/list-members-group-channel.d.mts.map +1 -1
  129. package/dist/actions/list-members-group-channel.mjs +1 -0
  130. package/dist/actions/list-members-group-channel.mjs.map +1 -1
  131. package/dist/actions/list-operators-custom-channel-type.cjs +1 -0
  132. package/dist/actions/list-operators-custom-channel-type.cjs.map +1 -1
  133. package/dist/actions/list-operators-custom-channel-type.d.cts +3 -19
  134. package/dist/actions/list-operators-custom-channel-type.d.cts.map +1 -1
  135. package/dist/actions/list-operators-custom-channel-type.d.mts +3 -19
  136. package/dist/actions/list-operators-custom-channel-type.d.mts.map +1 -1
  137. package/dist/actions/list-operators-custom-channel-type.mjs +1 -0
  138. package/dist/actions/list-operators-custom-channel-type.mjs.map +1 -1
  139. package/dist/actions/list-operators-group-channel.cjs +1 -0
  140. package/dist/actions/list-operators-group-channel.cjs.map +1 -1
  141. package/dist/actions/list-operators-group-channel.d.cts +3 -19
  142. package/dist/actions/list-operators-group-channel.d.cts.map +1 -1
  143. package/dist/actions/list-operators-group-channel.d.mts +3 -19
  144. package/dist/actions/list-operators-group-channel.d.mts.map +1 -1
  145. package/dist/actions/list-operators-group-channel.mjs +1 -0
  146. package/dist/actions/list-operators-group-channel.mjs.map +1 -1
  147. package/dist/actions/list-operators-open-channel.cjs +1 -0
  148. package/dist/actions/list-operators-open-channel.cjs.map +1 -1
  149. package/dist/actions/list-operators-open-channel.d.cts +3 -19
  150. package/dist/actions/list-operators-open-channel.d.cts.map +1 -1
  151. package/dist/actions/list-operators-open-channel.d.mts +3 -19
  152. package/dist/actions/list-operators-open-channel.d.mts.map +1 -1
  153. package/dist/actions/list-operators-open-channel.mjs +1 -0
  154. package/dist/actions/list-operators-open-channel.mjs.map +1 -1
  155. package/dist/actions/list-users.cjs +1 -0
  156. package/dist/actions/list-users.cjs.map +1 -1
  157. package/dist/actions/list-users.d.cts +3 -27
  158. package/dist/actions/list-users.d.cts.map +1 -1
  159. package/dist/actions/list-users.d.mts +3 -27
  160. package/dist/actions/list-users.d.mts.map +1 -1
  161. package/dist/actions/list-users.mjs +1 -0
  162. package/dist/actions/list-users.mjs.map +1 -1
  163. package/dist/actions/mark-all-user-messages-as-read.cjs +1 -0
  164. package/dist/actions/mark-all-user-messages-as-read.cjs.map +1 -1
  165. package/dist/actions/mark-all-user-messages-as-read.d.cts +3 -17
  166. package/dist/actions/mark-all-user-messages-as-read.d.cts.map +1 -1
  167. package/dist/actions/mark-all-user-messages-as-read.d.mts +3 -17
  168. package/dist/actions/mark-all-user-messages-as-read.d.mts.map +1 -1
  169. package/dist/actions/mark-all-user-messages-as-read.mjs +1 -0
  170. package/dist/actions/mark-all-user-messages-as-read.mjs.map +1 -1
  171. package/dist/actions/mute-user.cjs +1 -0
  172. package/dist/actions/mute-user.cjs.map +1 -1
  173. package/dist/actions/mute-user.d.cts +3 -20
  174. package/dist/actions/mute-user.d.cts.map +1 -1
  175. package/dist/actions/mute-user.d.mts +3 -20
  176. package/dist/actions/mute-user.d.mts.map +1 -1
  177. package/dist/actions/mute-user.mjs +1 -0
  178. package/dist/actions/mute-user.mjs.map +1 -1
  179. package/dist/actions/register-operators-custom-channel-type.cjs +1 -0
  180. package/dist/actions/register-operators-custom-channel-type.cjs.map +1 -1
  181. package/dist/actions/register-operators-custom-channel-type.d.cts +3 -18
  182. package/dist/actions/register-operators-custom-channel-type.d.cts.map +1 -1
  183. package/dist/actions/register-operators-custom-channel-type.d.mts +3 -18
  184. package/dist/actions/register-operators-custom-channel-type.d.mts.map +1 -1
  185. package/dist/actions/register-operators-custom-channel-type.mjs +1 -0
  186. package/dist/actions/register-operators-custom-channel-type.mjs.map +1 -1
  187. package/dist/actions/register-operators-group-channel.cjs +1 -0
  188. package/dist/actions/register-operators-group-channel.cjs.map +1 -1
  189. package/dist/actions/register-operators-group-channel.d.cts +3 -18
  190. package/dist/actions/register-operators-group-channel.d.cts.map +1 -1
  191. package/dist/actions/register-operators-group-channel.d.mts +3 -18
  192. package/dist/actions/register-operators-group-channel.d.mts.map +1 -1
  193. package/dist/actions/register-operators-group-channel.mjs +1 -0
  194. package/dist/actions/register-operators-group-channel.mjs.map +1 -1
  195. package/dist/actions/register-operators-open-channel.cjs +1 -0
  196. package/dist/actions/register-operators-open-channel.cjs.map +1 -1
  197. package/dist/actions/register-operators-open-channel.d.cts +3 -18
  198. package/dist/actions/register-operators-open-channel.d.cts.map +1 -1
  199. package/dist/actions/register-operators-open-channel.d.mts +3 -18
  200. package/dist/actions/register-operators-open-channel.d.mts.map +1 -1
  201. package/dist/actions/register-operators-open-channel.mjs +1 -0
  202. package/dist/actions/register-operators-open-channel.mjs.map +1 -1
  203. package/dist/actions/revoke-all-session-tokens.cjs +1 -0
  204. package/dist/actions/revoke-all-session-tokens.cjs.map +1 -1
  205. package/dist/actions/revoke-all-session-tokens.d.cts +3 -17
  206. package/dist/actions/revoke-all-session-tokens.d.cts.map +1 -1
  207. package/dist/actions/revoke-all-session-tokens.d.mts +3 -17
  208. package/dist/actions/revoke-all-session-tokens.d.mts.map +1 -1
  209. package/dist/actions/revoke-all-session-tokens.mjs +1 -0
  210. package/dist/actions/revoke-all-session-tokens.mjs.map +1 -1
  211. package/dist/actions/send-message.cjs +1 -0
  212. package/dist/actions/send-message.cjs.map +1 -1
  213. package/dist/actions/send-message.d.cts +3 -36
  214. package/dist/actions/send-message.d.cts.map +1 -1
  215. package/dist/actions/send-message.d.mts +3 -36
  216. package/dist/actions/send-message.d.mts.map +1 -1
  217. package/dist/actions/send-message.mjs +1 -0
  218. package/dist/actions/send-message.mjs.map +1 -1
  219. package/dist/actions/unban-user.cjs +1 -0
  220. package/dist/actions/unban-user.cjs.map +1 -1
  221. package/dist/actions/unban-user.d.cts +3 -18
  222. package/dist/actions/unban-user.d.cts.map +1 -1
  223. package/dist/actions/unban-user.d.mts +3 -18
  224. package/dist/actions/unban-user.d.mts.map +1 -1
  225. package/dist/actions/unban-user.mjs +1 -0
  226. package/dist/actions/unban-user.mjs.map +1 -1
  227. package/dist/actions/unmute-user.cjs +1 -0
  228. package/dist/actions/unmute-user.cjs.map +1 -1
  229. package/dist/actions/unmute-user.d.cts +3 -18
  230. package/dist/actions/unmute-user.d.cts.map +1 -1
  231. package/dist/actions/unmute-user.d.mts +3 -18
  232. package/dist/actions/unmute-user.d.mts.map +1 -1
  233. package/dist/actions/unmute-user.mjs +1 -0
  234. package/dist/actions/unmute-user.mjs.map +1 -1
  235. package/dist/actions/unregister-operators-custom-channel-type.cjs +1 -0
  236. package/dist/actions/unregister-operators-custom-channel-type.cjs.map +1 -1
  237. package/dist/actions/unregister-operators-custom-channel-type.d.cts +3 -18
  238. package/dist/actions/unregister-operators-custom-channel-type.d.cts.map +1 -1
  239. package/dist/actions/unregister-operators-custom-channel-type.d.mts +3 -18
  240. package/dist/actions/unregister-operators-custom-channel-type.d.mts.map +1 -1
  241. package/dist/actions/unregister-operators-custom-channel-type.mjs +1 -0
  242. package/dist/actions/unregister-operators-custom-channel-type.mjs.map +1 -1
  243. package/dist/actions/update-count-preference-of-channel.cjs +1 -0
  244. package/dist/actions/update-count-preference-of-channel.cjs.map +1 -1
  245. package/dist/actions/update-count-preference-of-channel.d.cts +3 -19
  246. package/dist/actions/update-count-preference-of-channel.d.cts.map +1 -1
  247. package/dist/actions/update-count-preference-of-channel.d.mts +3 -19
  248. package/dist/actions/update-count-preference-of-channel.d.mts.map +1 -1
  249. package/dist/actions/update-count-preference-of-channel.mjs +1 -0
  250. package/dist/actions/update-count-preference-of-channel.mjs.map +1 -1
  251. package/dist/actions/update-group-channel.cjs +1 -0
  252. package/dist/actions/update-group-channel.cjs.map +1 -1
  253. package/dist/actions/update-group-channel.d.cts +3 -28
  254. package/dist/actions/update-group-channel.d.cts.map +1 -1
  255. package/dist/actions/update-group-channel.d.mts +3 -28
  256. package/dist/actions/update-group-channel.d.mts.map +1 -1
  257. package/dist/actions/update-group-channel.mjs +1 -0
  258. package/dist/actions/update-group-channel.mjs.map +1 -1
  259. package/dist/actions/update-message.cjs +1 -0
  260. package/dist/actions/update-message.cjs.map +1 -1
  261. package/dist/actions/update-message.d.cts +3 -30
  262. package/dist/actions/update-message.d.cts.map +1 -1
  263. package/dist/actions/update-message.d.mts +3 -30
  264. package/dist/actions/update-message.d.mts.map +1 -1
  265. package/dist/actions/update-message.mjs +1 -0
  266. package/dist/actions/update-message.mjs.map +1 -1
  267. package/dist/actions/update-user.cjs +1 -0
  268. package/dist/actions/update-user.cjs.map +1 -1
  269. package/dist/actions/update-user.d.cts +3 -23
  270. package/dist/actions/update-user.d.cts.map +1 -1
  271. package/dist/actions/update-user.d.mts +3 -23
  272. package/dist/actions/update-user.d.mts.map +1 -1
  273. package/dist/actions/update-user.mjs +1 -0
  274. package/dist/actions/update-user.mjs.map +1 -1
  275. package/dist/actions/view-group-channel.cjs +1 -0
  276. package/dist/actions/view-group-channel.cjs.map +1 -1
  277. package/dist/actions/view-group-channel.d.cts +3 -22
  278. package/dist/actions/view-group-channel.d.cts.map +1 -1
  279. package/dist/actions/view-group-channel.d.mts +3 -22
  280. package/dist/actions/view-group-channel.d.mts.map +1 -1
  281. package/dist/actions/view-group-channel.mjs +1 -0
  282. package/dist/actions/view-group-channel.mjs.map +1 -1
  283. package/dist/actions/view-message.cjs +1 -0
  284. package/dist/actions/view-message.cjs.map +1 -1
  285. package/dist/actions/view-message.d.cts +3 -19
  286. package/dist/actions/view-message.d.cts.map +1 -1
  287. package/dist/actions/view-message.d.mts +3 -19
  288. package/dist/actions/view-message.d.mts.map +1 -1
  289. package/dist/actions/view-message.mjs +1 -0
  290. package/dist/actions/view-message.mjs.map +1 -1
  291. package/dist/actions/view-user.cjs +1 -0
  292. package/dist/actions/view-user.cjs.map +1 -1
  293. package/dist/actions/view-user.d.cts +3 -17
  294. package/dist/actions/view-user.d.cts.map +1 -1
  295. package/dist/actions/view-user.d.mts +3 -17
  296. package/dist/actions/view-user.d.mts.map +1 -1
  297. package/dist/actions/view-user.mjs +1 -0
  298. package/dist/actions/view-user.mjs.map +1 -1
  299. package/dist/app.cjs +5 -4
  300. package/dist/app.cjs.map +1 -1
  301. package/dist/app.d.cts +4 -6
  302. package/dist/app.d.cts.map +1 -1
  303. package/dist/app.d.mts +4 -6
  304. package/dist/app.d.mts.map +1 -1
  305. package/dist/app.mjs +0 -1
  306. package/dist/app.mjs.map +1 -1
  307. package/dist/index.d.cts +1 -1
  308. package/dist/index.d.mts +1 -1
  309. package/package.json +2 -2
@@ -1,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/create-user.d.ts
@@ -28,33 +30,7 @@ declare const SendbirdCreateUserOutput: z.ZodObject<{
28
30
  has_ever_logged_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
31
  preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
32
  }, z.core.$loose>;
31
- declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- user_id: string;
33
- metadata?: Record<string, unknown> | undefined;
34
- nickname?: string | undefined;
35
- is_active?: boolean | undefined;
36
- profile_url?: string | undefined;
37
- phone_number?: string | undefined;
38
- profile_file?: string | undefined;
39
- discovery_keys?: string[] | undefined;
40
- has_ever_logged_in?: boolean | undefined;
41
- issue_access_token?: boolean | undefined;
42
- preferred_languages?: string[] | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- subdomain: z.ZodString;
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- subdomain: z.ZodString;
56
- generic_api_key: z.ZodString;
57
- }, z.core.$strip>>]>;
33
+ declare const sendbirdCreateUser: AppAction<typeof SendbirdCreateUserInput, typeof SendbirdCreateUserOutput, typeof sendbird.credential>;
58
34
  //#endregion
59
35
  export { sendbirdCreateUser };
60
36
  //# sourceMappingURL=create-user.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"create-user.d.cts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;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/create-user.d.ts
@@ -28,33 +30,7 @@ declare const SendbirdCreateUserOutput: z.ZodObject<{
28
30
  has_ever_logged_in: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
29
31
  preferred_languages: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
30
32
  }, z.core.$loose>;
31
- declare const sendbirdCreateUser: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- user_id: string;
33
- metadata?: Record<string, unknown> | undefined;
34
- nickname?: string | undefined;
35
- is_active?: boolean | undefined;
36
- profile_url?: string | undefined;
37
- phone_number?: string | undefined;
38
- profile_file?: string | undefined;
39
- discovery_keys?: string[] | undefined;
40
- has_ever_logged_in?: boolean | undefined;
41
- issue_access_token?: boolean | undefined;
42
- preferred_languages?: string[] | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
44
- connectionId: z.ZodString;
45
- entityId: z.ZodString;
46
- instanceId: z.ZodString;
47
- }, z.core.$strip>, z.ZodObject<{
48
- subdomain: z.ZodString;
49
- generic_api_key: z.ZodString;
50
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
51
- connectionId: z.ZodString;
52
- entityId: z.ZodString;
53
- instanceId: z.ZodString;
54
- }, z.core.$strip>, z.ZodObject<{
55
- subdomain: z.ZodString;
56
- generic_api_key: z.ZodString;
57
- }, z.core.$strip>>]>;
33
+ declare const sendbirdCreateUser: AppAction<typeof SendbirdCreateUserInput, typeof SendbirdCreateUserOutput, typeof sendbird.credential>;
58
34
  //#endregion
59
35
  export { sendbirdCreateUser };
60
36
  //# sourceMappingURL=create-user.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAexB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"create-user.d.mts","names":[],"sources":["../../src/actions/create-user.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAavB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;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 sendbirdCreateUser = action("SENDBIRD_CREATE_USER", {
@@ -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,23 +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<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
12
+ declare const sendbirdDeleteChannel: AppAction<typeof SendbirdDeleteChannelInput, typeof SendbirdDeleteChannelOutput, typeof sendbird.credential>;
27
13
  //#endregion
28
14
  export { sendbirdDeleteChannel };
29
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,23 +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<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
12
+ declare const sendbirdDeleteChannel: AppAction<typeof SendbirdDeleteChannelInput, typeof SendbirdDeleteChannelOutput, typeof sendbird.credential>;
27
13
  //#endregion
28
14
  export { sendbirdDeleteChannel };
29
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,24 +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<"sendbird", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- subdomain: z.ZodString;
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- subdomain: z.ZodString;
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
13
+ declare const sendbirdDeleteMessage: AppAction<typeof SendbirdDeleteMessageInput, typeof SendbirdDeleteMessageOutput, typeof sendbird.credential>;
29
14
  //#endregion
30
15
  export { sendbirdDeleteMessage };
31
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,24 +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<"sendbird", z.ZodObject<{
15
- connectionId: z.ZodString;
16
- entityId: z.ZodString;
17
- instanceId: z.ZodString;
18
- }, z.core.$strip>, z.ZodObject<{
19
- subdomain: z.ZodString;
20
- generic_api_key: z.ZodString;
21
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
22
- connectionId: z.ZodString;
23
- entityId: z.ZodString;
24
- instanceId: z.ZodString;
25
- }, z.core.$strip>, z.ZodObject<{
26
- subdomain: z.ZodString;
27
- generic_api_key: z.ZodString;
28
- }, z.core.$strip>>]>;
13
+ declare const sendbirdDeleteMessage: AppAction<typeof SendbirdDeleteMessageInput, typeof SendbirdDeleteMessageOutput, typeof sendbird.credential>;
29
14
  //#endregion
30
15
  export { sendbirdDeleteMessage };
31
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,24 +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<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
11
+ declare const sendbirdDeleteUser: AppAction<typeof SendbirdDeleteUserInput, typeof SendbirdDeleteUserOutput, typeof sendbird.credential>;
27
12
  //#endregion
28
13
  export { sendbirdDeleteUser };
29
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,24 +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<"sendbird", z.ZodObject<{
13
- connectionId: z.ZodString;
14
- entityId: z.ZodString;
15
- instanceId: z.ZodString;
16
- }, z.core.$strip>, z.ZodObject<{
17
- subdomain: z.ZodString;
18
- generic_api_key: z.ZodString;
19
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>;
11
+ declare const sendbirdDeleteUser: AppAction<typeof SendbirdDeleteUserInput, typeof SendbirdDeleteUserOutput, typeof sendbird.credential>;
27
12
  //#endregion
28
13
  export { sendbirdDeleteUser };
29
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,29 +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<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- subdomain: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
18
+ declare const sendbirdGetCountPreferenceOfChannel: AppAction<typeof SendbirdGetCountPreferenceOfChannelInput, typeof SendbirdGetCountPreferenceOfChannelOutput, typeof sendbird.credential>;
34
19
  //#endregion
35
20
  export { sendbirdGetCountPreferenceOfChannel };
36
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,29 +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<"sendbird", z.ZodObject<{
20
- connectionId: z.ZodString;
21
- entityId: z.ZodString;
22
- instanceId: z.ZodString;
23
- }, z.core.$strip>, z.ZodObject<{
24
- subdomain: z.ZodString;
25
- generic_api_key: z.ZodString;
26
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"sendbird", z.ZodObject<{
27
- connectionId: z.ZodString;
28
- entityId: z.ZodString;
29
- instanceId: z.ZodString;
30
- }, z.core.$strip>, z.ZodObject<{
31
- subdomain: z.ZodString;
32
- generic_api_key: z.ZodString;
33
- }, z.core.$strip>>]>;
18
+ declare const sendbirdGetCountPreferenceOfChannel: AppAction<typeof SendbirdGetCountPreferenceOfChannelInput, typeof SendbirdGetCountPreferenceOfChannelOutput, typeof sendbird.credential>;
34
19
  //#endregion
35
20
  export { sendbirdGetCountPreferenceOfChannel };
36
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