@bubblelab/bubble-core 0.1.10 → 0.1.12

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 (350) hide show
  1. package/dist/bubble-bundle.d.ts +803 -351
  2. package/dist/bubble-factory.d.ts.map +1 -1
  3. package/dist/bubble-factory.js +130 -35
  4. package/dist/bubble-factory.js.map +1 -1
  5. package/dist/bubble-flow/bubble-flow-class.d.ts +5 -0
  6. package/dist/bubble-flow/bubble-flow-class.d.ts.map +1 -1
  7. package/dist/bubble-flow/bubble-flow-class.js +20 -0
  8. package/dist/bubble-flow/bubble-flow-class.js.map +1 -1
  9. package/dist/bubble-flow/sample/simplified-data-analysis.flow.d.ts.map +1 -1
  10. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js +6 -3
  11. package/dist/bubble-flow/sample/simplified-data-analysis.flow.js.map +1 -1
  12. package/dist/bubbles/service-bubble/agi-inc.d.ts +1121 -0
  13. package/dist/bubbles/service-bubble/agi-inc.d.ts.map +1 -0
  14. package/dist/bubbles/service-bubble/agi-inc.js +730 -0
  15. package/dist/bubbles/service-bubble/agi-inc.js.map +1 -0
  16. package/dist/bubbles/service-bubble/ai-agent.d.ts +273 -61
  17. package/dist/bubbles/service-bubble/ai-agent.d.ts.map +1 -1
  18. package/dist/bubbles/service-bubble/ai-agent.js +536 -405
  19. package/dist/bubbles/service-bubble/ai-agent.js.map +1 -1
  20. package/dist/bubbles/service-bubble/airtable.d.ts +1753 -0
  21. package/dist/bubbles/service-bubble/airtable.d.ts.map +1 -0
  22. package/dist/bubbles/service-bubble/airtable.js +1173 -0
  23. package/dist/bubbles/service-bubble/airtable.js.map +1 -0
  24. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts +240 -0
  25. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.d.ts.map +1 -0
  26. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js +119 -0
  27. package/dist/bubbles/service-bubble/apify/actors/google-maps-scraper.js.map +1 -0
  28. package/dist/bubbles/service-bubble/apify/actors/instagram-hashtag-scraper.d.ts +4 -4
  29. package/dist/bubbles/service-bubble/apify/actors/instagram-scraper.d.ts +14 -14
  30. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts +137 -0
  31. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.d.ts.map +1 -0
  32. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js +81 -0
  33. package/dist/bubbles/service-bubble/apify/actors/linkedin-jobs-scraper.js.map +1 -0
  34. package/dist/bubbles/service-bubble/apify/actors/linkedin-posts-search.d.ts +6 -6
  35. package/dist/bubbles/service-bubble/apify/actors/linkedin-profile-posts.d.ts +32 -32
  36. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts +488 -0
  37. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.d.ts.map +1 -0
  38. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js +463 -0
  39. package/dist/bubbles/service-bubble/apify/actors/tiktok-scraper.js.map +1 -0
  40. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts +262 -0
  41. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.d.ts.map +1 -0
  42. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js +291 -0
  43. package/dist/bubbles/service-bubble/apify/actors/twitter-scraper.js.map +1 -0
  44. package/dist/bubbles/service-bubble/apify/actors/youtube-scraper.d.ts +12 -12
  45. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts +1301 -170
  46. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.d.ts.map +1 -1
  47. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js +32 -0
  48. package/dist/bubbles/service-bubble/apify/apify-scraper.schema.js.map +1 -1
  49. package/dist/bubbles/service-bubble/apify/apify.d.ts +158 -13
  50. package/dist/bubbles/service-bubble/apify/apify.d.ts.map +1 -1
  51. package/dist/bubbles/service-bubble/apify/apify.js +222 -37
  52. package/dist/bubbles/service-bubble/apify/apify.js.map +1 -1
  53. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts +542 -0
  54. package/dist/bubbles/service-bubble/browserbase/browserbase.d.ts.map +1 -0
  55. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts +37 -0
  56. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.d.ts.map +1 -0
  57. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js +203 -0
  58. package/dist/bubbles/service-bubble/browserbase/browserbase.integration.flow.js.map +1 -0
  59. package/dist/bubbles/service-bubble/browserbase/browserbase.js +593 -0
  60. package/dist/bubbles/service-bubble/browserbase/browserbase.js.map +1 -0
  61. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts +518 -0
  62. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.d.ts.map +1 -0
  63. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js +311 -0
  64. package/dist/bubbles/service-bubble/browserbase/browserbase.schema.js.map +1 -0
  65. package/dist/bubbles/service-bubble/browserbase/index.d.ts +3 -0
  66. package/dist/bubbles/service-bubble/browserbase/index.d.ts.map +1 -0
  67. package/dist/bubbles/service-bubble/browserbase/index.js +3 -0
  68. package/dist/bubbles/service-bubble/browserbase/index.js.map +1 -0
  69. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts +1358 -0
  70. package/dist/bubbles/service-bubble/crustdata/crustdata.d.ts.map +1 -0
  71. package/dist/bubbles/service-bubble/crustdata/crustdata.js +219 -0
  72. package/dist/bubbles/service-bubble/crustdata/crustdata.js.map +1 -0
  73. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts +1604 -0
  74. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.d.ts.map +1 -0
  75. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js +194 -0
  76. package/dist/bubbles/service-bubble/crustdata/crustdata.schema.js.map +1 -0
  77. package/dist/bubbles/service-bubble/crustdata/index.d.ts +3 -0
  78. package/dist/bubbles/service-bubble/crustdata/index.d.ts.map +1 -0
  79. package/dist/bubbles/service-bubble/crustdata/index.js +3 -0
  80. package/dist/bubbles/service-bubble/crustdata/index.js.map +1 -0
  81. package/dist/bubbles/service-bubble/eleven-labs.d.ts +421 -0
  82. package/dist/bubbles/service-bubble/eleven-labs.d.ts.map +1 -0
  83. package/dist/bubbles/service-bubble/eleven-labs.js +479 -0
  84. package/dist/bubbles/service-bubble/eleven-labs.js.map +1 -0
  85. package/dist/bubbles/service-bubble/firecrawl.d.ts +37748 -0
  86. package/dist/bubbles/service-bubble/firecrawl.d.ts.map +1 -0
  87. package/dist/bubbles/service-bubble/firecrawl.js +1489 -0
  88. package/dist/bubbles/service-bubble/firecrawl.js.map +1 -0
  89. package/dist/bubbles/service-bubble/followupboss.d.ts +6822 -0
  90. package/dist/bubbles/service-bubble/followupboss.d.ts.map +1 -0
  91. package/dist/bubbles/service-bubble/followupboss.js +1394 -0
  92. package/dist/bubbles/service-bubble/followupboss.js.map +1 -0
  93. package/dist/bubbles/service-bubble/github.d.ts +2393 -0
  94. package/dist/bubbles/service-bubble/github.d.ts.map +1 -0
  95. package/dist/bubbles/service-bubble/github.js +1046 -0
  96. package/dist/bubbles/service-bubble/github.js.map +1 -0
  97. package/dist/bubbles/service-bubble/gmail.d.ts +180 -180
  98. package/dist/bubbles/service-bubble/google-calendar.d.ts +60 -60
  99. package/dist/bubbles/service-bubble/google-drive.d.ts +69 -68
  100. package/dist/bubbles/service-bubble/google-drive.d.ts.map +1 -1
  101. package/dist/bubbles/service-bubble/google-drive.js +35 -3
  102. package/dist/bubbles/service-bubble/google-drive.js.map +1 -1
  103. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts +943 -0
  104. package/dist/bubbles/service-bubble/google-sheets/google-sheets.d.ts.map +1 -0
  105. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts +31 -0
  106. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.d.ts.map +1 -0
  107. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js +184 -0
  108. package/dist/bubbles/service-bubble/google-sheets/google-sheets.integration.flow.js.map +1 -0
  109. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js +401 -0
  110. package/dist/bubbles/service-bubble/google-sheets/google-sheets.js.map +1 -0
  111. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts +1024 -0
  112. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.d.ts.map +1 -0
  113. package/dist/bubbles/service-bubble/{google-sheets.js → google-sheets/google-sheets.schema.js} +45 -409
  114. package/dist/bubbles/service-bubble/google-sheets/google-sheets.schema.js.map +1 -0
  115. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts +38 -0
  116. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.d.ts.map +1 -0
  117. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js +183 -0
  118. package/dist/bubbles/service-bubble/google-sheets/google-sheets.utils.js.map +1 -0
  119. package/dist/bubbles/service-bubble/google-sheets/index.d.ts +4 -0
  120. package/dist/bubbles/service-bubble/google-sheets/index.d.ts.map +1 -0
  121. package/dist/bubbles/service-bubble/google-sheets/index.js +4 -0
  122. package/dist/bubbles/service-bubble/google-sheets/index.js.map +1 -0
  123. package/dist/bubbles/service-bubble/hello-world.d.ts +4 -4
  124. package/dist/bubbles/service-bubble/http.d.ts +17 -5
  125. package/dist/bubbles/service-bubble/http.d.ts.map +1 -1
  126. package/dist/bubbles/service-bubble/http.integration.flow.d.ts +49 -0
  127. package/dist/bubbles/service-bubble/http.integration.flow.d.ts.map +1 -0
  128. package/dist/bubbles/service-bubble/http.integration.flow.js +425 -0
  129. package/dist/bubbles/service-bubble/http.integration.flow.js.map +1 -0
  130. package/dist/bubbles/service-bubble/http.js +47 -5
  131. package/dist/bubbles/service-bubble/http.js.map +1 -1
  132. package/dist/bubbles/service-bubble/insforge-db.d.ts +140 -0
  133. package/dist/bubbles/service-bubble/insforge-db.d.ts.map +1 -0
  134. package/dist/bubbles/service-bubble/insforge-db.js +260 -0
  135. package/dist/bubbles/service-bubble/insforge-db.js.map +1 -0
  136. package/dist/bubbles/service-bubble/notion/index.d.ts +3 -0
  137. package/dist/bubbles/service-bubble/notion/index.d.ts.map +1 -0
  138. package/dist/bubbles/service-bubble/notion/index.js +3 -0
  139. package/dist/bubbles/service-bubble/notion/index.js.map +1 -0
  140. package/dist/bubbles/service-bubble/notion/notion.d.ts +35405 -0
  141. package/dist/bubbles/service-bubble/notion/notion.d.ts.map +1 -0
  142. package/dist/bubbles/service-bubble/notion/notion.js +1492 -0
  143. package/dist/bubbles/service-bubble/notion/notion.js.map +1 -0
  144. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts +1148 -0
  145. package/dist/bubbles/service-bubble/notion/property-schemas.d.ts.map +1 -0
  146. package/dist/bubbles/service-bubble/notion/property-schemas.js +341 -0
  147. package/dist/bubbles/service-bubble/notion/property-schemas.js.map +1 -0
  148. package/dist/bubbles/service-bubble/postgresql.d.ts +12 -12
  149. package/dist/bubbles/service-bubble/resend.d.ts +30 -9
  150. package/dist/bubbles/service-bubble/resend.d.ts.map +1 -1
  151. package/dist/bubbles/service-bubble/resend.js +133 -2
  152. package/dist/bubbles/service-bubble/resend.js.map +1 -1
  153. package/dist/bubbles/service-bubble/slack.d.ts +1741 -798
  154. package/dist/bubbles/service-bubble/slack.d.ts.map +1 -1
  155. package/dist/bubbles/service-bubble/slack.js +322 -28
  156. package/dist/bubbles/service-bubble/slack.js.map +1 -1
  157. package/dist/bubbles/service-bubble/storage.d.ts +26 -22
  158. package/dist/bubbles/service-bubble/storage.d.ts.map +1 -1
  159. package/dist/bubbles/service-bubble/storage.js +45 -4
  160. package/dist/bubbles/service-bubble/storage.js.map +1 -1
  161. package/dist/bubbles/service-bubble/telegram.d.ts +7742 -0
  162. package/dist/bubbles/service-bubble/telegram.d.ts.map +1 -0
  163. package/dist/bubbles/service-bubble/telegram.js +1132 -0
  164. package/dist/bubbles/service-bubble/telegram.js.map +1 -0
  165. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts +494 -0
  166. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.d.ts.map +1 -0
  167. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts +31 -0
  168. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.d.ts.map +1 -0
  169. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js +100 -0
  170. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.integration.flow.js.map +1 -0
  171. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js +1301 -0
  172. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.js.map +1 -0
  173. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts +473 -0
  174. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.d.ts.map +1 -0
  175. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js +230 -0
  176. package/dist/bubbles/tool-bubble/amazon-shopping-tool/amazon-shopping-tool.schema.js.map +1 -0
  177. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts +3 -0
  178. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.d.ts.map +1 -0
  179. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js +3 -0
  180. package/dist/bubbles/tool-bubble/amazon-shopping-tool/index.js.map +1 -0
  181. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts +76 -20
  182. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.d.ts.map +1 -1
  183. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js +12 -0
  184. package/dist/bubbles/tool-bubble/bubbleflow-validation-tool.js.map +1 -1
  185. package/dist/bubbles/tool-bubble/chart-js-tool.d.ts +14 -14
  186. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts +188 -0
  187. package/dist/bubbles/tool-bubble/code-edit-tool.d.ts.map +1 -0
  188. package/dist/bubbles/tool-bubble/code-edit-tool.js +321 -0
  189. package/dist/bubbles/tool-bubble/code-edit-tool.js.map +1 -0
  190. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts +740 -0
  191. package/dist/bubbles/tool-bubble/company-enrichment-tool.d.ts.map +1 -0
  192. package/dist/bubbles/tool-bubble/company-enrichment-tool.js +350 -0
  193. package/dist/bubbles/tool-bubble/company-enrichment-tool.js.map +1 -0
  194. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts +8 -4
  195. package/dist/bubbles/tool-bubble/get-bubble-details-tool.d.ts.map +1 -1
  196. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js +115 -10
  197. package/dist/bubbles/tool-bubble/get-bubble-details-tool.js.map +1 -1
  198. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts +455 -0
  199. package/dist/bubbles/tool-bubble/google-maps-tool.d.ts.map +1 -0
  200. package/dist/bubbles/tool-bubble/google-maps-tool.js +206 -0
  201. package/dist/bubbles/tool-bubble/google-maps-tool.js.map +1 -0
  202. package/dist/bubbles/tool-bubble/instagram-tool.d.ts +36 -36
  203. package/dist/bubbles/tool-bubble/instagram-tool.d.ts.map +1 -1
  204. package/dist/bubbles/tool-bubble/instagram-tool.js +4 -2
  205. package/dist/bubbles/tool-bubble/instagram-tool.js.map +1 -1
  206. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts +830 -453
  207. package/dist/bubbles/tool-bubble/linkedin-tool.d.ts.map +1 -1
  208. package/dist/bubbles/tool-bubble/linkedin-tool.js +236 -14
  209. package/dist/bubbles/tool-bubble/linkedin-tool.js.map +1 -1
  210. package/dist/bubbles/tool-bubble/list-bubbles-tool.d.ts +4 -4
  211. package/dist/bubbles/tool-bubble/reddit-scrape-tool.d.ts +66 -66
  212. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts +17 -16
  213. package/dist/bubbles/tool-bubble/research-agent-tool.d.ts.map +1 -1
  214. package/dist/bubbles/tool-bubble/research-agent-tool.js +32 -17
  215. package/dist/bubbles/tool-bubble/research-agent-tool.js.map +1 -1
  216. package/dist/bubbles/tool-bubble/sql-query-tool.d.ts +8 -8
  217. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts +485 -0
  218. package/dist/bubbles/tool-bubble/tiktok-tool.d.ts.map +1 -0
  219. package/dist/bubbles/tool-bubble/tiktok-tool.js +226 -0
  220. package/dist/bubbles/tool-bubble/tiktok-tool.js.map +1 -0
  221. package/dist/bubbles/tool-bubble/tool-template.d.ts +8 -8
  222. package/dist/bubbles/tool-bubble/twitter-tool.d.ts +947 -0
  223. package/dist/bubbles/tool-bubble/twitter-tool.d.ts.map +1 -0
  224. package/dist/bubbles/tool-bubble/twitter-tool.js +497 -0
  225. package/dist/bubbles/tool-bubble/twitter-tool.js.map +1 -0
  226. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts +22 -16
  227. package/dist/bubbles/tool-bubble/web-crawl-tool.d.ts.map +1 -1
  228. package/dist/bubbles/tool-bubble/web-crawl-tool.js +58 -59
  229. package/dist/bubbles/tool-bubble/web-crawl-tool.js.map +1 -1
  230. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts +8 -8
  231. package/dist/bubbles/tool-bubble/web-extract-tool.d.ts.map +1 -1
  232. package/dist/bubbles/tool-bubble/web-extract-tool.js +17 -17
  233. package/dist/bubbles/tool-bubble/web-extract-tool.js.map +1 -1
  234. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts +21 -113
  235. package/dist/bubbles/tool-bubble/web-scrape-tool.d.ts.map +1 -1
  236. package/dist/bubbles/tool-bubble/web-scrape-tool.js +55 -73
  237. package/dist/bubbles/tool-bubble/web-scrape-tool.js.map +1 -1
  238. package/dist/bubbles/tool-bubble/web-search-tool.d.ts +20 -9
  239. package/dist/bubbles/tool-bubble/web-search-tool.d.ts.map +1 -1
  240. package/dist/bubbles/tool-bubble/web-search-tool.js +45 -35
  241. package/dist/bubbles/tool-bubble/web-search-tool.js.map +1 -1
  242. package/dist/bubbles/tool-bubble/youtube-tool.d.ts +25 -25
  243. package/dist/bubbles/tool-bubble/youtube-tool.d.ts.map +1 -1
  244. package/dist/bubbles/tool-bubble/youtube-tool.js +8 -5
  245. package/dist/bubbles/tool-bubble/youtube-tool.js.map +1 -1
  246. package/dist/bubbles/workflow-bubble/database-analyzer.workflow.d.ts +4 -4
  247. package/dist/bubbles/workflow-bubble/generate-document.workflow.d.ts +30 -30
  248. package/dist/bubbles/workflow-bubble/generate-document.workflow.js +1 -1
  249. package/dist/bubbles/workflow-bubble/parse-document.workflow.d.ts +22 -22
  250. package/dist/bubbles/workflow-bubble/parse-document.workflow.js +1 -1
  251. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts +70 -70
  252. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.d.ts.map +1 -1
  253. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js +4 -4
  254. package/dist/bubbles/workflow-bubble/pdf-form-operations.workflow.js.map +1 -1
  255. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.d.ts +36 -36
  256. package/dist/bubbles/workflow-bubble/pdf-ocr.workflow.js +1 -1
  257. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts +14 -14
  258. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.d.ts.map +1 -1
  259. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js +6 -6
  260. package/dist/bubbles/workflow-bubble/slack-data-assistant.workflow.js.map +1 -1
  261. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts +18 -18
  262. package/dist/bubbles/workflow-bubble/slack-formatter-agent.d.ts.map +1 -1
  263. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js +24 -4
  264. package/dist/bubbles/workflow-bubble/slack-formatter-agent.js.map +1 -1
  265. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts +19 -19
  266. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.d.ts.map +1 -1
  267. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js +8 -8
  268. package/dist/bubbles/workflow-bubble/slack-notifier.workflow.js.map +1 -1
  269. package/dist/bubbles.json +260 -77
  270. package/dist/index.d.ts +25 -4
  271. package/dist/index.d.ts.map +1 -1
  272. package/dist/index.js +18 -3
  273. package/dist/index.js.map +1 -1
  274. package/dist/logging/BubbleLogger.d.ts +55 -16
  275. package/dist/logging/BubbleLogger.d.ts.map +1 -1
  276. package/dist/logging/BubbleLogger.js +192 -77
  277. package/dist/logging/BubbleLogger.js.map +1 -1
  278. package/dist/logging/StreamingBubbleLogger.d.ts +21 -1
  279. package/dist/logging/StreamingBubbleLogger.d.ts.map +1 -1
  280. package/dist/logging/StreamingBubbleLogger.js +80 -8
  281. package/dist/logging/StreamingBubbleLogger.js.map +1 -1
  282. package/dist/logging/WebhookStreamLogger.d.ts +66 -0
  283. package/dist/logging/WebhookStreamLogger.d.ts.map +1 -0
  284. package/dist/logging/WebhookStreamLogger.js +291 -0
  285. package/dist/logging/WebhookStreamLogger.js.map +1 -0
  286. package/dist/types/available-tools.d.ts +1 -1
  287. package/dist/types/available-tools.d.ts.map +1 -1
  288. package/dist/types/available-tools.js +7 -0
  289. package/dist/types/available-tools.js.map +1 -1
  290. package/dist/types/base-bubble-class.d.ts +6 -4
  291. package/dist/types/base-bubble-class.d.ts.map +1 -1
  292. package/dist/types/base-bubble-class.js +30 -23
  293. package/dist/types/base-bubble-class.js.map +1 -1
  294. package/dist/types/bubble.d.ts +2 -0
  295. package/dist/types/bubble.d.ts.map +1 -1
  296. package/dist/types/service-bubble-class.d.ts +1 -1
  297. package/dist/types/service-bubble-class.d.ts.map +1 -1
  298. package/dist/types/service-bubble-class.js +2 -2
  299. package/dist/types/service-bubble-class.js.map +1 -1
  300. package/dist/types/tool-bubble-class.d.ts +1 -1
  301. package/dist/types/tool-bubble-class.d.ts.map +1 -1
  302. package/dist/types/tool-bubble-class.js +60 -10
  303. package/dist/types/tool-bubble-class.js.map +1 -1
  304. package/dist/types/workflow-bubble-class.d.ts +1 -1
  305. package/dist/types/workflow-bubble-class.d.ts.map +1 -1
  306. package/dist/types/workflow-bubble-class.js +2 -2
  307. package/dist/types/workflow-bubble-class.js.map +1 -1
  308. package/dist/utils/agent-formatter.d.ts +14 -2
  309. package/dist/utils/agent-formatter.d.ts.map +1 -1
  310. package/dist/utils/agent-formatter.js +174 -26
  311. package/dist/utils/agent-formatter.js.map +1 -1
  312. package/dist/utils/bubbleflow-validation.d.ts +7 -0
  313. package/dist/utils/bubbleflow-validation.d.ts.map +1 -1
  314. package/dist/utils/bubbleflow-validation.js +171 -6
  315. package/dist/utils/bubbleflow-validation.js.map +1 -1
  316. package/dist/utils/json-parsing.d.ts.map +1 -1
  317. package/dist/utils/json-parsing.js +146 -0
  318. package/dist/utils/json-parsing.js.map +1 -1
  319. package/dist/utils/safe-gemini-chat.d.ts +31 -0
  320. package/dist/utils/safe-gemini-chat.d.ts.map +1 -0
  321. package/dist/utils/safe-gemini-chat.js +93 -0
  322. package/dist/utils/safe-gemini-chat.js.map +1 -0
  323. package/dist/utils/schema-comparison.d.ts +92 -0
  324. package/dist/utils/schema-comparison.d.ts.map +1 -0
  325. package/dist/utils/schema-comparison.js +716 -0
  326. package/dist/utils/schema-comparison.js.map +1 -0
  327. package/dist/utils/zod-schema.d.ts +24 -0
  328. package/dist/utils/zod-schema.d.ts.map +1 -0
  329. package/dist/utils/zod-schema.js +56 -0
  330. package/dist/utils/zod-schema.js.map +1 -0
  331. package/package.json +6 -4
  332. package/dist/bubbles/service-bubble/google-sheets.d.ts +0 -1811
  333. package/dist/bubbles/service-bubble/google-sheets.d.ts.map +0 -1
  334. package/dist/bubbles/service-bubble/google-sheets.js.map +0 -1
  335. package/dist/bubbles/service-bubble/x-twitter.d.ts +0 -814
  336. package/dist/bubbles/service-bubble/x-twitter.d.ts.map +0 -1
  337. package/dist/bubbles/service-bubble/x-twitter.js +0 -445
  338. package/dist/bubbles/service-bubble/x-twitter.js.map +0 -1
  339. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts +0 -125
  340. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.d.ts.map +0 -1
  341. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js +0 -808
  342. package/dist/bubbles/workflow-bubble/bubbleflow-generator.workflow.js.map +0 -1
  343. package/dist/test-gm.d.ts +0 -10
  344. package/dist/test-gm.d.ts.map +0 -1
  345. package/dist/test-gm.js +0 -95
  346. package/dist/test-gm.js.map +0 -1
  347. package/dist/utils/param-helper.d.ts +0 -2
  348. package/dist/utils/param-helper.d.ts.map +0 -1
  349. package/dist/utils/param-helper.js +0 -5
  350. package/dist/utils/param-helper.js.map +0 -1
@@ -355,18 +355,18 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
355
355
  cursor: z.ZodOptional<z.ZodString>;
356
356
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
357
357
  }, "strip", z.ZodTypeAny, {
358
- limit: number;
359
358
  operation: "list_channels";
360
359
  types: ("public_channel" | "private_channel" | "mpim" | "im")[];
361
360
  exclude_archived: boolean;
361
+ limit: number;
362
362
  credentials?: Partial<Record<CredentialType, string>> | undefined;
363
363
  cursor?: string | undefined;
364
364
  }, {
365
365
  operation: "list_channels";
366
- limit?: number | undefined;
367
366
  credentials?: Partial<Record<CredentialType, string>> | undefined;
368
367
  types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
369
368
  exclude_archived?: boolean | undefined;
369
+ limit?: number | undefined;
370
370
  cursor?: string | undefined;
371
371
  }>, z.ZodObject<{
372
372
  operation: z.ZodLiteral<"get_channel_info">;
@@ -405,15 +405,15 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
405
405
  include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
406
406
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
407
407
  }, "strip", z.ZodTypeAny, {
408
- limit: number;
409
408
  operation: "list_users";
409
+ limit: number;
410
410
  include_locale: boolean;
411
411
  credentials?: Partial<Record<CredentialType, string>> | undefined;
412
412
  cursor?: string | undefined;
413
413
  }, {
414
414
  operation: "list_users";
415
- limit?: number | undefined;
416
415
  credentials?: Partial<Record<CredentialType, string>> | undefined;
416
+ limit?: number | undefined;
417
417
  cursor?: string | undefined;
418
418
  include_locale?: boolean | undefined;
419
419
  }>, z.ZodObject<{
@@ -427,9 +427,9 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
427
427
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
428
428
  }, "strip", z.ZodTypeAny, {
429
429
  inclusive: boolean;
430
- limit: number;
431
430
  operation: "get_conversation_history";
432
431
  channel: string;
432
+ limit: number;
433
433
  credentials?: Partial<Record<CredentialType, string>> | undefined;
434
434
  cursor?: string | undefined;
435
435
  latest?: string | undefined;
@@ -438,8 +438,8 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
438
438
  operation: "get_conversation_history";
439
439
  channel: string;
440
440
  inclusive?: boolean | undefined;
441
- limit?: number | undefined;
442
441
  credentials?: Partial<Record<CredentialType, string>> | undefined;
442
+ limit?: number | undefined;
443
443
  cursor?: string | undefined;
444
444
  latest?: string | undefined;
445
445
  oldest?: string | undefined;
@@ -455,10 +455,10 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
455
455
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
456
456
  }, "strip", z.ZodTypeAny, {
457
457
  inclusive: boolean;
458
- limit: number;
459
458
  ts: string;
460
459
  operation: "get_thread_replies";
461
460
  channel: string;
461
+ limit: number;
462
462
  credentials?: Partial<Record<CredentialType, string>> | undefined;
463
463
  cursor?: string | undefined;
464
464
  latest?: string | undefined;
@@ -468,8 +468,8 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
468
468
  operation: "get_thread_replies";
469
469
  channel: string;
470
470
  inclusive?: boolean | undefined;
471
- limit?: number | undefined;
472
471
  credentials?: Partial<Record<CredentialType, string>> | undefined;
472
+ limit?: number | undefined;
473
473
  cursor?: string | undefined;
474
474
  latest?: string | undefined;
475
475
  oldest?: string | undefined;
@@ -851,6 +851,18 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
851
851
  channel: string;
852
852
  timestamp: string;
853
853
  credentials?: Partial<Record<CredentialType, string>> | undefined;
854
+ }>, z.ZodObject<{
855
+ operation: z.ZodLiteral<"join_channel">;
856
+ channel: z.ZodString;
857
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
858
+ }, "strip", z.ZodTypeAny, {
859
+ operation: "join_channel";
860
+ channel: string;
861
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
862
+ }, {
863
+ operation: "join_channel";
864
+ channel: string;
865
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
854
866
  }>, z.ZodObject<{
855
867
  operation: z.ZodLiteral<"upload_file">;
856
868
  channel: z.ZodString;
@@ -878,6 +890,236 @@ declare const SlackParamsSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
878
890
  thread_ts?: string | undefined;
879
891
  filename?: string | undefined;
880
892
  initial_comment?: string | undefined;
893
+ }>, z.ZodObject<{
894
+ operation: z.ZodLiteral<"schedule_message">;
895
+ channel: z.ZodString;
896
+ text: z.ZodString;
897
+ post_at: z.ZodNumber;
898
+ thread_ts: z.ZodOptional<z.ZodString>;
899
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
900
+ type: z.ZodString;
901
+ text: z.ZodOptional<z.ZodObject<{
902
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
903
+ text: z.ZodString;
904
+ emoji: z.ZodOptional<z.ZodBoolean>;
905
+ verbatim: z.ZodOptional<z.ZodBoolean>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ type: "plain_text" | "mrkdwn";
908
+ text: string;
909
+ emoji?: boolean | undefined;
910
+ verbatim?: boolean | undefined;
911
+ }, {
912
+ type: "plain_text" | "mrkdwn";
913
+ text: string;
914
+ emoji?: boolean | undefined;
915
+ verbatim?: boolean | undefined;
916
+ }>>;
917
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
918
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
919
+ text: z.ZodOptional<z.ZodString>;
920
+ image_url: z.ZodOptional<z.ZodString>;
921
+ alt_text: z.ZodOptional<z.ZodString>;
922
+ emoji: z.ZodOptional<z.ZodBoolean>;
923
+ verbatim: z.ZodOptional<z.ZodBoolean>;
924
+ }, "strip", z.ZodTypeAny, {
925
+ type: "image" | "plain_text" | "mrkdwn";
926
+ emoji?: boolean | undefined;
927
+ text?: string | undefined;
928
+ image_url?: string | undefined;
929
+ verbatim?: boolean | undefined;
930
+ alt_text?: string | undefined;
931
+ }, {
932
+ type: "image" | "plain_text" | "mrkdwn";
933
+ emoji?: boolean | undefined;
934
+ text?: string | undefined;
935
+ image_url?: string | undefined;
936
+ verbatim?: boolean | undefined;
937
+ alt_text?: string | undefined;
938
+ }>, "many">>;
939
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
940
+ type: z.ZodString;
941
+ text: z.ZodOptional<z.ZodObject<{
942
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
943
+ text: z.ZodString;
944
+ emoji: z.ZodOptional<z.ZodBoolean>;
945
+ verbatim: z.ZodOptional<z.ZodBoolean>;
946
+ }, "strip", z.ZodTypeAny, {
947
+ type: "plain_text" | "mrkdwn";
948
+ text: string;
949
+ emoji?: boolean | undefined;
950
+ verbatim?: boolean | undefined;
951
+ }, {
952
+ type: "plain_text" | "mrkdwn";
953
+ text: string;
954
+ emoji?: boolean | undefined;
955
+ verbatim?: boolean | undefined;
956
+ }>>;
957
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
958
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
959
+ text: z.ZodOptional<z.ZodString>;
960
+ image_url: z.ZodOptional<z.ZodString>;
961
+ alt_text: z.ZodOptional<z.ZodString>;
962
+ emoji: z.ZodOptional<z.ZodBoolean>;
963
+ verbatim: z.ZodOptional<z.ZodBoolean>;
964
+ }, "strip", z.ZodTypeAny, {
965
+ type: "image" | "plain_text" | "mrkdwn";
966
+ emoji?: boolean | undefined;
967
+ text?: string | undefined;
968
+ image_url?: string | undefined;
969
+ verbatim?: boolean | undefined;
970
+ alt_text?: string | undefined;
971
+ }, {
972
+ type: "image" | "plain_text" | "mrkdwn";
973
+ emoji?: boolean | undefined;
974
+ text?: string | undefined;
975
+ image_url?: string | undefined;
976
+ verbatim?: boolean | undefined;
977
+ alt_text?: string | undefined;
978
+ }>, "many">>;
979
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
980
+ type: z.ZodString;
981
+ text: z.ZodOptional<z.ZodObject<{
982
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
983
+ text: z.ZodString;
984
+ emoji: z.ZodOptional<z.ZodBoolean>;
985
+ verbatim: z.ZodOptional<z.ZodBoolean>;
986
+ }, "strip", z.ZodTypeAny, {
987
+ type: "plain_text" | "mrkdwn";
988
+ text: string;
989
+ emoji?: boolean | undefined;
990
+ verbatim?: boolean | undefined;
991
+ }, {
992
+ type: "plain_text" | "mrkdwn";
993
+ text: string;
994
+ emoji?: boolean | undefined;
995
+ verbatim?: boolean | undefined;
996
+ }>>;
997
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
998
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
999
+ text: z.ZodOptional<z.ZodString>;
1000
+ image_url: z.ZodOptional<z.ZodString>;
1001
+ alt_text: z.ZodOptional<z.ZodString>;
1002
+ emoji: z.ZodOptional<z.ZodBoolean>;
1003
+ verbatim: z.ZodOptional<z.ZodBoolean>;
1004
+ }, "strip", z.ZodTypeAny, {
1005
+ type: "image" | "plain_text" | "mrkdwn";
1006
+ emoji?: boolean | undefined;
1007
+ text?: string | undefined;
1008
+ image_url?: string | undefined;
1009
+ verbatim?: boolean | undefined;
1010
+ alt_text?: string | undefined;
1011
+ }, {
1012
+ type: "image" | "plain_text" | "mrkdwn";
1013
+ emoji?: boolean | undefined;
1014
+ text?: string | undefined;
1015
+ image_url?: string | undefined;
1016
+ verbatim?: boolean | undefined;
1017
+ alt_text?: string | undefined;
1018
+ }>, "many">>;
1019
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
1020
+ unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1021
+ unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1022
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
1023
+ }, "strip", z.ZodTypeAny, {
1024
+ text: string;
1025
+ operation: "schedule_message";
1026
+ channel: string;
1027
+ unfurl_links: boolean;
1028
+ unfurl_media: boolean;
1029
+ post_at: number;
1030
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1031
+ blocks?: z.objectOutputType<{
1032
+ type: z.ZodString;
1033
+ text: z.ZodOptional<z.ZodObject<{
1034
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
1035
+ text: z.ZodString;
1036
+ emoji: z.ZodOptional<z.ZodBoolean>;
1037
+ verbatim: z.ZodOptional<z.ZodBoolean>;
1038
+ }, "strip", z.ZodTypeAny, {
1039
+ type: "plain_text" | "mrkdwn";
1040
+ text: string;
1041
+ emoji?: boolean | undefined;
1042
+ verbatim?: boolean | undefined;
1043
+ }, {
1044
+ type: "plain_text" | "mrkdwn";
1045
+ text: string;
1046
+ emoji?: boolean | undefined;
1047
+ verbatim?: boolean | undefined;
1048
+ }>>;
1049
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1050
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
1051
+ text: z.ZodOptional<z.ZodString>;
1052
+ image_url: z.ZodOptional<z.ZodString>;
1053
+ alt_text: z.ZodOptional<z.ZodString>;
1054
+ emoji: z.ZodOptional<z.ZodBoolean>;
1055
+ verbatim: z.ZodOptional<z.ZodBoolean>;
1056
+ }, "strip", z.ZodTypeAny, {
1057
+ type: "image" | "plain_text" | "mrkdwn";
1058
+ emoji?: boolean | undefined;
1059
+ text?: string | undefined;
1060
+ image_url?: string | undefined;
1061
+ verbatim?: boolean | undefined;
1062
+ alt_text?: string | undefined;
1063
+ }, {
1064
+ type: "image" | "plain_text" | "mrkdwn";
1065
+ emoji?: boolean | undefined;
1066
+ text?: string | undefined;
1067
+ image_url?: string | undefined;
1068
+ verbatim?: boolean | undefined;
1069
+ alt_text?: string | undefined;
1070
+ }>, "many">>;
1071
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1072
+ thread_ts?: string | undefined;
1073
+ }, {
1074
+ text: string;
1075
+ operation: "schedule_message";
1076
+ channel: string;
1077
+ post_at: number;
1078
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
1079
+ blocks?: z.objectInputType<{
1080
+ type: z.ZodString;
1081
+ text: z.ZodOptional<z.ZodObject<{
1082
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
1083
+ text: z.ZodString;
1084
+ emoji: z.ZodOptional<z.ZodBoolean>;
1085
+ verbatim: z.ZodOptional<z.ZodBoolean>;
1086
+ }, "strip", z.ZodTypeAny, {
1087
+ type: "plain_text" | "mrkdwn";
1088
+ text: string;
1089
+ emoji?: boolean | undefined;
1090
+ verbatim?: boolean | undefined;
1091
+ }, {
1092
+ type: "plain_text" | "mrkdwn";
1093
+ text: string;
1094
+ emoji?: boolean | undefined;
1095
+ verbatim?: boolean | undefined;
1096
+ }>>;
1097
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
1099
+ text: z.ZodOptional<z.ZodString>;
1100
+ image_url: z.ZodOptional<z.ZodString>;
1101
+ alt_text: z.ZodOptional<z.ZodString>;
1102
+ emoji: z.ZodOptional<z.ZodBoolean>;
1103
+ verbatim: z.ZodOptional<z.ZodBoolean>;
1104
+ }, "strip", z.ZodTypeAny, {
1105
+ type: "image" | "plain_text" | "mrkdwn";
1106
+ emoji?: boolean | undefined;
1107
+ text?: string | undefined;
1108
+ image_url?: string | undefined;
1109
+ verbatim?: boolean | undefined;
1110
+ alt_text?: string | undefined;
1111
+ }, {
1112
+ type: "image" | "plain_text" | "mrkdwn";
1113
+ emoji?: boolean | undefined;
1114
+ text?: string | undefined;
1115
+ image_url?: string | undefined;
1116
+ verbatim?: boolean | undefined;
1117
+ alt_text?: string | undefined;
1118
+ }>, "many">>;
1119
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
1120
+ thread_ts?: string | undefined;
1121
+ unfurl_links?: boolean | undefined;
1122
+ unfurl_media?: boolean | undefined;
881
1123
  }>]>;
882
1124
  declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
883
1125
  operation: z.ZodLiteral<"send_message">;
@@ -975,8 +1217,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
975
1217
  error: z.ZodString;
976
1218
  success: z.ZodBoolean;
977
1219
  }, "strip", z.ZodTypeAny, {
978
- success: boolean;
979
1220
  error: string;
1221
+ success: boolean;
980
1222
  operation: "send_message";
981
1223
  ok: boolean;
982
1224
  message?: {
@@ -1008,8 +1250,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1008
1250
  ts?: string | undefined;
1009
1251
  channel?: string | undefined;
1010
1252
  }, {
1011
- success: boolean;
1012
1253
  error: string;
1254
+ success: boolean;
1013
1255
  operation: "send_message";
1014
1256
  ok: boolean;
1015
1257
  message?: {
@@ -1169,8 +1411,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1169
1411
  error: z.ZodString;
1170
1412
  success: z.ZodBoolean;
1171
1413
  }, "strip", z.ZodTypeAny, {
1172
- success: boolean;
1173
1414
  error: string;
1415
+ success: boolean;
1174
1416
  operation: "list_channels";
1175
1417
  ok: boolean;
1176
1418
  response_metadata?: {
@@ -1211,8 +1453,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1211
1453
  num_members?: number | undefined;
1212
1454
  }[] | undefined;
1213
1455
  }, {
1214
- success: boolean;
1215
1456
  error: string;
1457
+ success: boolean;
1216
1458
  operation: "list_channels";
1217
1459
  ok: boolean;
1218
1460
  response_metadata?: {
@@ -1374,8 +1616,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1374
1616
  error: z.ZodString;
1375
1617
  success: z.ZodBoolean;
1376
1618
  }, "strip", z.ZodTypeAny, {
1377
- success: boolean;
1378
1619
  error: string;
1620
+ success: boolean;
1379
1621
  operation: "get_channel_info";
1380
1622
  ok: boolean;
1381
1623
  channel?: {
@@ -1413,8 +1655,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1413
1655
  num_members?: number | undefined;
1414
1656
  } | undefined;
1415
1657
  }, {
1416
- success: boolean;
1417
1658
  error: string;
1659
+ success: boolean;
1418
1660
  operation: "get_channel_info";
1419
1661
  ok: boolean;
1420
1662
  channel?: {
@@ -1552,13 +1794,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1552
1794
  }, "strip", z.ZodTypeAny, {
1553
1795
  name: string;
1554
1796
  id: string;
1555
- color?: string | undefined;
1556
- team_id?: string | undefined;
1557
- deleted?: boolean | undefined;
1558
- real_name?: string | undefined;
1559
- tz?: string | undefined;
1560
- tz_label?: string | undefined;
1561
- tz_offset?: number | undefined;
1562
1797
  profile?: {
1563
1798
  title?: string | undefined;
1564
1799
  email?: string | undefined;
@@ -1585,6 +1820,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1585
1820
  image_512?: string | undefined;
1586
1821
  image_1024?: string | undefined;
1587
1822
  } | undefined;
1823
+ color?: string | undefined;
1824
+ team_id?: string | undefined;
1825
+ deleted?: boolean | undefined;
1826
+ real_name?: string | undefined;
1827
+ tz?: string | undefined;
1828
+ tz_label?: string | undefined;
1829
+ tz_offset?: number | undefined;
1588
1830
  is_admin?: boolean | undefined;
1589
1831
  is_owner?: boolean | undefined;
1590
1832
  is_primary_owner?: boolean | undefined;
@@ -1597,13 +1839,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1597
1839
  }, {
1598
1840
  name: string;
1599
1841
  id: string;
1600
- color?: string | undefined;
1601
- team_id?: string | undefined;
1602
- deleted?: boolean | undefined;
1603
- real_name?: string | undefined;
1604
- tz?: string | undefined;
1605
- tz_label?: string | undefined;
1606
- tz_offset?: number | undefined;
1607
1842
  profile?: {
1608
1843
  title?: string | undefined;
1609
1844
  email?: string | undefined;
@@ -1630,6 +1865,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1630
1865
  image_512?: string | undefined;
1631
1866
  image_1024?: string | undefined;
1632
1867
  } | undefined;
1868
+ color?: string | undefined;
1869
+ team_id?: string | undefined;
1870
+ deleted?: boolean | undefined;
1871
+ real_name?: string | undefined;
1872
+ tz?: string | undefined;
1873
+ tz_label?: string | undefined;
1874
+ tz_offset?: number | undefined;
1633
1875
  is_admin?: boolean | undefined;
1634
1876
  is_owner?: boolean | undefined;
1635
1877
  is_primary_owner?: boolean | undefined;
@@ -1643,20 +1885,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1643
1885
  error: z.ZodString;
1644
1886
  success: z.ZodBoolean;
1645
1887
  }, "strip", z.ZodTypeAny, {
1646
- success: boolean;
1647
1888
  error: string;
1889
+ success: boolean;
1648
1890
  operation: "get_user_info";
1649
1891
  ok: boolean;
1650
1892
  user?: {
1651
1893
  name: string;
1652
1894
  id: string;
1653
- color?: string | undefined;
1654
- team_id?: string | undefined;
1655
- deleted?: boolean | undefined;
1656
- real_name?: string | undefined;
1657
- tz?: string | undefined;
1658
- tz_label?: string | undefined;
1659
- tz_offset?: number | undefined;
1660
1895
  profile?: {
1661
1896
  title?: string | undefined;
1662
1897
  email?: string | undefined;
@@ -1683,6 +1918,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1683
1918
  image_512?: string | undefined;
1684
1919
  image_1024?: string | undefined;
1685
1920
  } | undefined;
1921
+ color?: string | undefined;
1922
+ team_id?: string | undefined;
1923
+ deleted?: boolean | undefined;
1924
+ real_name?: string | undefined;
1925
+ tz?: string | undefined;
1926
+ tz_label?: string | undefined;
1927
+ tz_offset?: number | undefined;
1686
1928
  is_admin?: boolean | undefined;
1687
1929
  is_owner?: boolean | undefined;
1688
1930
  is_primary_owner?: boolean | undefined;
@@ -1694,20 +1936,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1694
1936
  has_2fa?: boolean | undefined;
1695
1937
  } | undefined;
1696
1938
  }, {
1697
- success: boolean;
1698
1939
  error: string;
1940
+ success: boolean;
1699
1941
  operation: "get_user_info";
1700
1942
  ok: boolean;
1701
1943
  user?: {
1702
1944
  name: string;
1703
1945
  id: string;
1704
- color?: string | undefined;
1705
- team_id?: string | undefined;
1706
- deleted?: boolean | undefined;
1707
- real_name?: string | undefined;
1708
- tz?: string | undefined;
1709
- tz_label?: string | undefined;
1710
- tz_offset?: number | undefined;
1711
1946
  profile?: {
1712
1947
  title?: string | undefined;
1713
1948
  email?: string | undefined;
@@ -1734,6 +1969,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1734
1969
  image_512?: string | undefined;
1735
1970
  image_1024?: string | undefined;
1736
1971
  } | undefined;
1972
+ color?: string | undefined;
1973
+ team_id?: string | undefined;
1974
+ deleted?: boolean | undefined;
1975
+ real_name?: string | undefined;
1976
+ tz?: string | undefined;
1977
+ tz_label?: string | undefined;
1978
+ tz_offset?: number | undefined;
1737
1979
  is_admin?: boolean | undefined;
1738
1980
  is_owner?: boolean | undefined;
1739
1981
  is_primary_owner?: boolean | undefined;
@@ -1845,13 +2087,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1845
2087
  }, "strip", z.ZodTypeAny, {
1846
2088
  name: string;
1847
2089
  id: string;
1848
- color?: string | undefined;
1849
- team_id?: string | undefined;
1850
- deleted?: boolean | undefined;
1851
- real_name?: string | undefined;
1852
- tz?: string | undefined;
1853
- tz_label?: string | undefined;
1854
- tz_offset?: number | undefined;
1855
2090
  profile?: {
1856
2091
  title?: string | undefined;
1857
2092
  email?: string | undefined;
@@ -1878,6 +2113,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1878
2113
  image_512?: string | undefined;
1879
2114
  image_1024?: string | undefined;
1880
2115
  } | undefined;
2116
+ color?: string | undefined;
2117
+ team_id?: string | undefined;
2118
+ deleted?: boolean | undefined;
2119
+ real_name?: string | undefined;
2120
+ tz?: string | undefined;
2121
+ tz_label?: string | undefined;
2122
+ tz_offset?: number | undefined;
1881
2123
  is_admin?: boolean | undefined;
1882
2124
  is_owner?: boolean | undefined;
1883
2125
  is_primary_owner?: boolean | undefined;
@@ -1890,13 +2132,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1890
2132
  }, {
1891
2133
  name: string;
1892
2134
  id: string;
1893
- color?: string | undefined;
1894
- team_id?: string | undefined;
1895
- deleted?: boolean | undefined;
1896
- real_name?: string | undefined;
1897
- tz?: string | undefined;
1898
- tz_label?: string | undefined;
1899
- tz_offset?: number | undefined;
1900
2135
  profile?: {
1901
2136
  title?: string | undefined;
1902
2137
  email?: string | undefined;
@@ -1923,6 +2158,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1923
2158
  image_512?: string | undefined;
1924
2159
  image_1024?: string | undefined;
1925
2160
  } | undefined;
2161
+ color?: string | undefined;
2162
+ team_id?: string | undefined;
2163
+ deleted?: boolean | undefined;
2164
+ real_name?: string | undefined;
2165
+ tz?: string | undefined;
2166
+ tz_label?: string | undefined;
2167
+ tz_offset?: number | undefined;
1926
2168
  is_admin?: boolean | undefined;
1927
2169
  is_owner?: boolean | undefined;
1928
2170
  is_primary_owner?: boolean | undefined;
@@ -1943,8 +2185,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1943
2185
  error: z.ZodString;
1944
2186
  success: z.ZodBoolean;
1945
2187
  }, "strip", z.ZodTypeAny, {
1946
- success: boolean;
1947
2188
  error: string;
2189
+ success: boolean;
1948
2190
  operation: "list_users";
1949
2191
  ok: boolean;
1950
2192
  response_metadata?: {
@@ -1953,13 +2195,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1953
2195
  members?: {
1954
2196
  name: string;
1955
2197
  id: string;
1956
- color?: string | undefined;
1957
- team_id?: string | undefined;
1958
- deleted?: boolean | undefined;
1959
- real_name?: string | undefined;
1960
- tz?: string | undefined;
1961
- tz_label?: string | undefined;
1962
- tz_offset?: number | undefined;
1963
2198
  profile?: {
1964
2199
  title?: string | undefined;
1965
2200
  email?: string | undefined;
@@ -1986,6 +2221,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1986
2221
  image_512?: string | undefined;
1987
2222
  image_1024?: string | undefined;
1988
2223
  } | undefined;
2224
+ color?: string | undefined;
2225
+ team_id?: string | undefined;
2226
+ deleted?: boolean | undefined;
2227
+ real_name?: string | undefined;
2228
+ tz?: string | undefined;
2229
+ tz_label?: string | undefined;
2230
+ tz_offset?: number | undefined;
1989
2231
  is_admin?: boolean | undefined;
1990
2232
  is_owner?: boolean | undefined;
1991
2233
  is_primary_owner?: boolean | undefined;
@@ -1997,8 +2239,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
1997
2239
  has_2fa?: boolean | undefined;
1998
2240
  }[] | undefined;
1999
2241
  }, {
2000
- success: boolean;
2001
2242
  error: string;
2243
+ success: boolean;
2002
2244
  operation: "list_users";
2003
2245
  ok: boolean;
2004
2246
  response_metadata?: {
@@ -2007,13 +2249,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2007
2249
  members?: {
2008
2250
  name: string;
2009
2251
  id: string;
2010
- color?: string | undefined;
2011
- team_id?: string | undefined;
2012
- deleted?: boolean | undefined;
2013
- real_name?: string | undefined;
2014
- tz?: string | undefined;
2015
- tz_label?: string | undefined;
2016
- tz_offset?: number | undefined;
2017
2252
  profile?: {
2018
2253
  title?: string | undefined;
2019
2254
  email?: string | undefined;
@@ -2040,6 +2275,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2040
2275
  image_512?: string | undefined;
2041
2276
  image_1024?: string | undefined;
2042
2277
  } | undefined;
2278
+ color?: string | undefined;
2279
+ team_id?: string | undefined;
2280
+ deleted?: boolean | undefined;
2281
+ real_name?: string | undefined;
2282
+ tz?: string | undefined;
2283
+ tz_label?: string | undefined;
2284
+ tz_offset?: number | undefined;
2043
2285
  is_admin?: boolean | undefined;
2044
2286
  is_owner?: boolean | undefined;
2045
2287
  is_primary_owner?: boolean | undefined;
@@ -2152,10 +2394,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2152
2394
  error: z.ZodString;
2153
2395
  success: z.ZodBoolean;
2154
2396
  }, "strip", z.ZodTypeAny, {
2155
- success: boolean;
2156
2397
  error: string;
2398
+ success: boolean;
2157
2399
  operation: "get_conversation_history";
2158
2400
  ok: boolean;
2401
+ response_metadata?: {
2402
+ next_cursor: string;
2403
+ } | undefined;
2159
2404
  messages?: {
2160
2405
  type: string;
2161
2406
  ts: string;
@@ -2182,15 +2427,15 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2182
2427
  count: number;
2183
2428
  }[] | undefined;
2184
2429
  }[] | undefined;
2185
- response_metadata?: {
2186
- next_cursor: string;
2187
- } | undefined;
2188
2430
  has_more?: boolean | undefined;
2189
2431
  }, {
2190
- success: boolean;
2191
2432
  error: string;
2433
+ success: boolean;
2192
2434
  operation: "get_conversation_history";
2193
2435
  ok: boolean;
2436
+ response_metadata?: {
2437
+ next_cursor: string;
2438
+ } | undefined;
2194
2439
  messages?: {
2195
2440
  type: string;
2196
2441
  ts: string;
@@ -2217,9 +2462,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2217
2462
  count: number;
2218
2463
  }[] | undefined;
2219
2464
  }[] | undefined;
2220
- response_metadata?: {
2221
- next_cursor: string;
2222
- } | undefined;
2223
2465
  has_more?: boolean | undefined;
2224
2466
  }>, z.ZodObject<{
2225
2467
  operation: z.ZodLiteral<"get_thread_replies">;
@@ -2323,10 +2565,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2323
2565
  error: z.ZodString;
2324
2566
  success: z.ZodBoolean;
2325
2567
  }, "strip", z.ZodTypeAny, {
2326
- success: boolean;
2327
2568
  error: string;
2569
+ success: boolean;
2328
2570
  operation: "get_thread_replies";
2329
2571
  ok: boolean;
2572
+ response_metadata?: {
2573
+ next_cursor: string;
2574
+ } | undefined;
2330
2575
  messages?: {
2331
2576
  type: string;
2332
2577
  ts: string;
@@ -2353,15 +2598,15 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2353
2598
  count: number;
2354
2599
  }[] | undefined;
2355
2600
  }[] | undefined;
2356
- response_metadata?: {
2357
- next_cursor: string;
2358
- } | undefined;
2359
2601
  has_more?: boolean | undefined;
2360
2602
  }, {
2361
- success: boolean;
2362
2603
  error: string;
2604
+ success: boolean;
2363
2605
  operation: "get_thread_replies";
2364
2606
  ok: boolean;
2607
+ response_metadata?: {
2608
+ next_cursor: string;
2609
+ } | undefined;
2365
2610
  messages?: {
2366
2611
  type: string;
2367
2612
  ts: string;
@@ -2388,9 +2633,6 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2388
2633
  count: number;
2389
2634
  }[] | undefined;
2390
2635
  }[] | undefined;
2391
- response_metadata?: {
2392
- next_cursor: string;
2393
- } | undefined;
2394
2636
  has_more?: boolean | undefined;
2395
2637
  }>, z.ZodObject<{
2396
2638
  operation: z.ZodLiteral<"update_message">;
@@ -2489,8 +2731,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2489
2731
  error: z.ZodString;
2490
2732
  success: z.ZodBoolean;
2491
2733
  }, "strip", z.ZodTypeAny, {
2492
- success: boolean;
2493
2734
  error: string;
2735
+ success: boolean;
2494
2736
  operation: "update_message";
2495
2737
  ok: boolean;
2496
2738
  message?: {
@@ -2523,8 +2765,8 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2523
2765
  ts?: string | undefined;
2524
2766
  channel?: string | undefined;
2525
2767
  }, {
2526
- success: boolean;
2527
2768
  error: string;
2769
+ success: boolean;
2528
2770
  operation: "update_message";
2529
2771
  ok: boolean;
2530
2772
  message?: {
@@ -2564,15 +2806,15 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2564
2806
  error: z.ZodString;
2565
2807
  success: z.ZodBoolean;
2566
2808
  }, "strip", z.ZodTypeAny, {
2567
- success: boolean;
2568
2809
  error: string;
2810
+ success: boolean;
2569
2811
  operation: "delete_message";
2570
2812
  ok: boolean;
2571
2813
  ts?: string | undefined;
2572
2814
  channel?: string | undefined;
2573
2815
  }, {
2574
- success: boolean;
2575
2816
  error: string;
2817
+ success: boolean;
2576
2818
  operation: "delete_message";
2577
2819
  ok: boolean;
2578
2820
  ts?: string | undefined;
@@ -2583,13 +2825,13 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2583
2825
  error: z.ZodString;
2584
2826
  success: z.ZodBoolean;
2585
2827
  }, "strip", z.ZodTypeAny, {
2586
- success: boolean;
2587
2828
  error: string;
2829
+ success: boolean;
2588
2830
  operation: "add_reaction";
2589
2831
  ok: boolean;
2590
2832
  }, {
2591
- success: boolean;
2592
2833
  error: string;
2834
+ success: boolean;
2593
2835
  operation: "add_reaction";
2594
2836
  ok: boolean;
2595
2837
  }>, z.ZodObject<{
@@ -2598,341 +2840,1036 @@ declare const SlackResultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObje
2598
2840
  error: z.ZodString;
2599
2841
  success: z.ZodBoolean;
2600
2842
  }, "strip", z.ZodTypeAny, {
2601
- success: boolean;
2602
2843
  error: string;
2844
+ success: boolean;
2603
2845
  operation: "remove_reaction";
2604
2846
  ok: boolean;
2605
2847
  }, {
2606
- success: boolean;
2607
2848
  error: string;
2849
+ success: boolean;
2608
2850
  operation: "remove_reaction";
2609
2851
  ok: boolean;
2610
2852
  }>, z.ZodObject<{
2611
- operation: z.ZodLiteral<"upload_file">;
2853
+ operation: z.ZodLiteral<"join_channel">;
2612
2854
  ok: z.ZodBoolean;
2613
- file: z.ZodOptional<z.ZodObject<{
2855
+ channel: z.ZodOptional<z.ZodObject<{
2614
2856
  id: z.ZodString;
2615
- created: z.ZodNumber;
2616
- timestamp: z.ZodNumber;
2617
2857
  name: z.ZodString;
2618
- title: z.ZodOptional<z.ZodString>;
2619
- mimetype: z.ZodString;
2620
- filetype: z.ZodString;
2621
- pretty_type: z.ZodString;
2622
- user: z.ZodString;
2623
- editable: z.ZodBoolean;
2624
- size: z.ZodNumber;
2625
- mode: z.ZodString;
2626
- is_external: z.ZodBoolean;
2627
- external_type: z.ZodString;
2628
- is_public: z.ZodBoolean;
2629
- public_url_shared: z.ZodBoolean;
2630
- display_as_bot: z.ZodBoolean;
2631
- username: z.ZodString;
2632
- url_private: z.ZodString;
2633
- url_private_download: z.ZodString;
2634
- permalink: z.ZodString;
2635
- permalink_public: z.ZodOptional<z.ZodString>;
2636
- shares: z.ZodOptional<z.ZodObject<{
2637
- public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2638
- reply_users: z.ZodArray<z.ZodString, "many">;
2639
- reply_users_count: z.ZodNumber;
2640
- reply_count: z.ZodNumber;
2641
- ts: z.ZodString;
2642
- channel_name: z.ZodString;
2643
- team_id: z.ZodString;
2644
- }, "strip", z.ZodTypeAny, {
2645
- ts: string;
2646
- team_id: string;
2647
- reply_count: number;
2648
- reply_users_count: number;
2649
- reply_users: string[];
2650
- channel_name: string;
2651
- }, {
2652
- ts: string;
2653
- team_id: string;
2654
- reply_count: number;
2655
- reply_users_count: number;
2656
- reply_users: string[];
2657
- channel_name: string;
2658
- }>, "many">>>;
2659
- private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
2660
- reply_users: z.ZodArray<z.ZodString, "many">;
2661
- reply_users_count: z.ZodNumber;
2662
- reply_count: z.ZodNumber;
2663
- ts: z.ZodString;
2664
- channel_name: z.ZodString;
2665
- team_id: z.ZodString;
2666
- }, "strip", z.ZodTypeAny, {
2667
- ts: string;
2668
- team_id: string;
2669
- reply_count: number;
2670
- reply_users_count: number;
2671
- reply_users: string[];
2672
- channel_name: string;
2673
- }, {
2674
- ts: string;
2675
- team_id: string;
2676
- reply_count: number;
2677
- reply_users_count: number;
2678
- reply_users: string[];
2679
- channel_name: string;
2680
- }>, "many">>>;
2681
- }, "strip", z.ZodTypeAny, {
2682
- public?: Record<string, {
2683
- ts: string;
2684
- team_id: string;
2685
- reply_count: number;
2686
- reply_users_count: number;
2687
- reply_users: string[];
2688
- channel_name: string;
2689
- }[]> | undefined;
2690
- private?: Record<string, {
2691
- ts: string;
2692
- team_id: string;
2693
- reply_count: number;
2694
- reply_users_count: number;
2695
- reply_users: string[];
2696
- channel_name: string;
2697
- }[]> | undefined;
2858
+ is_channel: z.ZodOptional<z.ZodBoolean>;
2859
+ is_group: z.ZodOptional<z.ZodBoolean>;
2860
+ is_im: z.ZodOptional<z.ZodBoolean>;
2861
+ is_mpim: z.ZodOptional<z.ZodBoolean>;
2862
+ is_private: z.ZodOptional<z.ZodBoolean>;
2863
+ created: z.ZodNumber;
2864
+ is_archived: z.ZodBoolean;
2865
+ is_general: z.ZodOptional<z.ZodBoolean>;
2866
+ unlinked: z.ZodOptional<z.ZodNumber>;
2867
+ name_normalized: z.ZodOptional<z.ZodString>;
2868
+ is_shared: z.ZodOptional<z.ZodBoolean>;
2869
+ is_ext_shared: z.ZodOptional<z.ZodBoolean>;
2870
+ is_org_shared: z.ZodOptional<z.ZodBoolean>;
2871
+ shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2872
+ pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2873
+ pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2874
+ is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>;
2875
+ is_member: z.ZodOptional<z.ZodBoolean>;
2876
+ is_open: z.ZodOptional<z.ZodBoolean>;
2877
+ topic: z.ZodOptional<z.ZodObject<{
2878
+ value: z.ZodString;
2879
+ creator: z.ZodString;
2880
+ last_set: z.ZodNumber;
2881
+ }, "strip", z.ZodTypeAny, {
2882
+ value: string;
2883
+ creator: string;
2884
+ last_set: number;
2698
2885
  }, {
2699
- public?: Record<string, {
2700
- ts: string;
2701
- team_id: string;
2702
- reply_count: number;
2703
- reply_users_count: number;
2704
- reply_users: string[];
2705
- channel_name: string;
2706
- }[]> | undefined;
2707
- private?: Record<string, {
2708
- ts: string;
2709
- team_id: string;
2710
- reply_count: number;
2711
- reply_users_count: number;
2712
- reply_users: string[];
2713
- channel_name: string;
2714
- }[]> | undefined;
2886
+ value: string;
2887
+ creator: string;
2888
+ last_set: number;
2715
2889
  }>>;
2716
- channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2717
- groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2718
- ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2719
- has_rich_preview: z.ZodOptional<z.ZodBoolean>;
2890
+ purpose: z.ZodOptional<z.ZodObject<{
2891
+ value: z.ZodString;
2892
+ creator: z.ZodString;
2893
+ last_set: z.ZodNumber;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ value: string;
2896
+ creator: string;
2897
+ last_set: number;
2898
+ }, {
2899
+ value: string;
2900
+ creator: string;
2901
+ last_set: number;
2902
+ }>>;
2903
+ num_members: z.ZodOptional<z.ZodNumber>;
2720
2904
  }, "strip", z.ZodTypeAny, {
2721
2905
  name: string;
2722
- user: string;
2723
2906
  id: string;
2724
- username: string;
2725
- timestamp: number;
2726
2907
  created: number;
2727
- mimetype: string;
2728
- filetype: string;
2729
- pretty_type: string;
2730
- editable: boolean;
2731
- size: number;
2732
- mode: string;
2733
- is_external: boolean;
2734
- external_type: string;
2735
- is_public: boolean;
2736
- public_url_shared: boolean;
2737
- display_as_bot: boolean;
2738
- url_private: string;
2739
- url_private_download: string;
2740
- permalink: string;
2741
- title?: string | undefined;
2742
- channels?: string[] | undefined;
2743
- permalink_public?: string | undefined;
2744
- shares?: {
2745
- public?: Record<string, {
2746
- ts: string;
2747
- team_id: string;
2748
- reply_count: number;
2749
- reply_users_count: number;
2750
- reply_users: string[];
2751
- channel_name: string;
2752
- }[]> | undefined;
2753
- private?: Record<string, {
2754
- ts: string;
2755
- team_id: string;
2756
- reply_count: number;
2757
- reply_users_count: number;
2758
- reply_users: string[];
2759
- channel_name: string;
2760
- }[]> | undefined;
2908
+ is_archived: boolean;
2909
+ is_channel?: boolean | undefined;
2910
+ is_group?: boolean | undefined;
2911
+ is_im?: boolean | undefined;
2912
+ is_mpim?: boolean | undefined;
2913
+ is_private?: boolean | undefined;
2914
+ is_general?: boolean | undefined;
2915
+ unlinked?: number | undefined;
2916
+ name_normalized?: string | undefined;
2917
+ is_shared?: boolean | undefined;
2918
+ is_ext_shared?: boolean | undefined;
2919
+ is_org_shared?: boolean | undefined;
2920
+ shared_team_ids?: string[] | undefined;
2921
+ pending_shared?: string[] | undefined;
2922
+ pending_connected_team_ids?: string[] | undefined;
2923
+ is_pending_ext_shared?: boolean | undefined;
2924
+ is_member?: boolean | undefined;
2925
+ is_open?: boolean | undefined;
2926
+ topic?: {
2927
+ value: string;
2928
+ creator: string;
2929
+ last_set: number;
2761
2930
  } | undefined;
2762
- groups?: string[] | undefined;
2763
- ims?: string[] | undefined;
2764
- has_rich_preview?: boolean | undefined;
2931
+ purpose?: {
2932
+ value: string;
2933
+ creator: string;
2934
+ last_set: number;
2935
+ } | undefined;
2936
+ num_members?: number | undefined;
2765
2937
  }, {
2766
2938
  name: string;
2767
- user: string;
2768
2939
  id: string;
2769
- username: string;
2770
- timestamp: number;
2771
2940
  created: number;
2772
- mimetype: string;
2773
- filetype: string;
2774
- pretty_type: string;
2775
- editable: boolean;
2776
- size: number;
2777
- mode: string;
2778
- is_external: boolean;
2779
- external_type: string;
2780
- is_public: boolean;
2781
- public_url_shared: boolean;
2782
- display_as_bot: boolean;
2783
- url_private: string;
2784
- url_private_download: string;
2785
- permalink: string;
2786
- title?: string | undefined;
2787
- channels?: string[] | undefined;
2788
- permalink_public?: string | undefined;
2789
- shares?: {
2790
- public?: Record<string, {
2791
- ts: string;
2792
- team_id: string;
2793
- reply_count: number;
2794
- reply_users_count: number;
2795
- reply_users: string[];
2796
- channel_name: string;
2797
- }[]> | undefined;
2798
- private?: Record<string, {
2799
- ts: string;
2800
- team_id: string;
2801
- reply_count: number;
2802
- reply_users_count: number;
2803
- reply_users: string[];
2804
- channel_name: string;
2805
- }[]> | undefined;
2941
+ is_archived: boolean;
2942
+ is_channel?: boolean | undefined;
2943
+ is_group?: boolean | undefined;
2944
+ is_im?: boolean | undefined;
2945
+ is_mpim?: boolean | undefined;
2946
+ is_private?: boolean | undefined;
2947
+ is_general?: boolean | undefined;
2948
+ unlinked?: number | undefined;
2949
+ name_normalized?: string | undefined;
2950
+ is_shared?: boolean | undefined;
2951
+ is_ext_shared?: boolean | undefined;
2952
+ is_org_shared?: boolean | undefined;
2953
+ shared_team_ids?: string[] | undefined;
2954
+ pending_shared?: string[] | undefined;
2955
+ pending_connected_team_ids?: string[] | undefined;
2956
+ is_pending_ext_shared?: boolean | undefined;
2957
+ is_member?: boolean | undefined;
2958
+ is_open?: boolean | undefined;
2959
+ topic?: {
2960
+ value: string;
2961
+ creator: string;
2962
+ last_set: number;
2806
2963
  } | undefined;
2807
- groups?: string[] | undefined;
2808
- ims?: string[] | undefined;
2809
- has_rich_preview?: boolean | undefined;
2964
+ purpose?: {
2965
+ value: string;
2966
+ creator: string;
2967
+ last_set: number;
2968
+ } | undefined;
2969
+ num_members?: number | undefined;
2810
2970
  }>>;
2971
+ already_in_channel: z.ZodOptional<z.ZodBoolean>;
2811
2972
  error: z.ZodString;
2812
2973
  success: z.ZodBoolean;
2813
2974
  }, "strip", z.ZodTypeAny, {
2975
+ error: string;
2814
2976
  success: boolean;
2977
+ operation: "join_channel";
2978
+ ok: boolean;
2979
+ channel?: {
2980
+ name: string;
2981
+ id: string;
2982
+ created: number;
2983
+ is_archived: boolean;
2984
+ is_channel?: boolean | undefined;
2985
+ is_group?: boolean | undefined;
2986
+ is_im?: boolean | undefined;
2987
+ is_mpim?: boolean | undefined;
2988
+ is_private?: boolean | undefined;
2989
+ is_general?: boolean | undefined;
2990
+ unlinked?: number | undefined;
2991
+ name_normalized?: string | undefined;
2992
+ is_shared?: boolean | undefined;
2993
+ is_ext_shared?: boolean | undefined;
2994
+ is_org_shared?: boolean | undefined;
2995
+ shared_team_ids?: string[] | undefined;
2996
+ pending_shared?: string[] | undefined;
2997
+ pending_connected_team_ids?: string[] | undefined;
2998
+ is_pending_ext_shared?: boolean | undefined;
2999
+ is_member?: boolean | undefined;
3000
+ is_open?: boolean | undefined;
3001
+ topic?: {
3002
+ value: string;
3003
+ creator: string;
3004
+ last_set: number;
3005
+ } | undefined;
3006
+ purpose?: {
3007
+ value: string;
3008
+ creator: string;
3009
+ last_set: number;
3010
+ } | undefined;
3011
+ num_members?: number | undefined;
3012
+ } | undefined;
3013
+ already_in_channel?: boolean | undefined;
3014
+ }, {
2815
3015
  error: string;
2816
- operation: "upload_file";
3016
+ success: boolean;
3017
+ operation: "join_channel";
2817
3018
  ok: boolean;
2818
- file?: {
3019
+ channel?: {
2819
3020
  name: string;
3021
+ id: string;
3022
+ created: number;
3023
+ is_archived: boolean;
3024
+ is_channel?: boolean | undefined;
3025
+ is_group?: boolean | undefined;
3026
+ is_im?: boolean | undefined;
3027
+ is_mpim?: boolean | undefined;
3028
+ is_private?: boolean | undefined;
3029
+ is_general?: boolean | undefined;
3030
+ unlinked?: number | undefined;
3031
+ name_normalized?: string | undefined;
3032
+ is_shared?: boolean | undefined;
3033
+ is_ext_shared?: boolean | undefined;
3034
+ is_org_shared?: boolean | undefined;
3035
+ shared_team_ids?: string[] | undefined;
3036
+ pending_shared?: string[] | undefined;
3037
+ pending_connected_team_ids?: string[] | undefined;
3038
+ is_pending_ext_shared?: boolean | undefined;
3039
+ is_member?: boolean | undefined;
3040
+ is_open?: boolean | undefined;
3041
+ topic?: {
3042
+ value: string;
3043
+ creator: string;
3044
+ last_set: number;
3045
+ } | undefined;
3046
+ purpose?: {
3047
+ value: string;
3048
+ creator: string;
3049
+ last_set: number;
3050
+ } | undefined;
3051
+ num_members?: number | undefined;
3052
+ } | undefined;
3053
+ already_in_channel?: boolean | undefined;
3054
+ }>, z.ZodObject<{
3055
+ operation: z.ZodLiteral<"upload_file">;
3056
+ ok: z.ZodBoolean;
3057
+ file: z.ZodOptional<z.ZodObject<{
3058
+ id: z.ZodString;
3059
+ created: z.ZodNumber;
3060
+ timestamp: z.ZodNumber;
3061
+ name: z.ZodString;
3062
+ title: z.ZodOptional<z.ZodString>;
3063
+ mimetype: z.ZodString;
3064
+ filetype: z.ZodString;
3065
+ pretty_type: z.ZodString;
3066
+ user: z.ZodString;
3067
+ editable: z.ZodBoolean;
3068
+ size: z.ZodNumber;
3069
+ mode: z.ZodString;
3070
+ is_external: z.ZodBoolean;
3071
+ external_type: z.ZodString;
3072
+ is_public: z.ZodBoolean;
3073
+ public_url_shared: z.ZodBoolean;
3074
+ display_as_bot: z.ZodBoolean;
3075
+ username: z.ZodString;
3076
+ url_private: z.ZodString;
3077
+ url_private_download: z.ZodString;
3078
+ permalink: z.ZodString;
3079
+ permalink_public: z.ZodOptional<z.ZodString>;
3080
+ shares: z.ZodOptional<z.ZodObject<{
3081
+ public: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3082
+ reply_users: z.ZodArray<z.ZodString, "many">;
3083
+ reply_users_count: z.ZodNumber;
3084
+ reply_count: z.ZodNumber;
3085
+ ts: z.ZodString;
3086
+ channel_name: z.ZodString;
3087
+ team_id: z.ZodString;
3088
+ }, "strip", z.ZodTypeAny, {
3089
+ ts: string;
3090
+ team_id: string;
3091
+ reply_count: number;
3092
+ reply_users_count: number;
3093
+ reply_users: string[];
3094
+ channel_name: string;
3095
+ }, {
3096
+ ts: string;
3097
+ team_id: string;
3098
+ reply_count: number;
3099
+ reply_users_count: number;
3100
+ reply_users: string[];
3101
+ channel_name: string;
3102
+ }>, "many">>>;
3103
+ private: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
3104
+ reply_users: z.ZodArray<z.ZodString, "many">;
3105
+ reply_users_count: z.ZodNumber;
3106
+ reply_count: z.ZodNumber;
3107
+ ts: z.ZodString;
3108
+ channel_name: z.ZodString;
3109
+ team_id: z.ZodString;
3110
+ }, "strip", z.ZodTypeAny, {
3111
+ ts: string;
3112
+ team_id: string;
3113
+ reply_count: number;
3114
+ reply_users_count: number;
3115
+ reply_users: string[];
3116
+ channel_name: string;
3117
+ }, {
3118
+ ts: string;
3119
+ team_id: string;
3120
+ reply_count: number;
3121
+ reply_users_count: number;
3122
+ reply_users: string[];
3123
+ channel_name: string;
3124
+ }>, "many">>>;
3125
+ }, "strip", z.ZodTypeAny, {
3126
+ public?: Record<string, {
3127
+ ts: string;
3128
+ team_id: string;
3129
+ reply_count: number;
3130
+ reply_users_count: number;
3131
+ reply_users: string[];
3132
+ channel_name: string;
3133
+ }[]> | undefined;
3134
+ private?: Record<string, {
3135
+ ts: string;
3136
+ team_id: string;
3137
+ reply_count: number;
3138
+ reply_users_count: number;
3139
+ reply_users: string[];
3140
+ channel_name: string;
3141
+ }[]> | undefined;
3142
+ }, {
3143
+ public?: Record<string, {
3144
+ ts: string;
3145
+ team_id: string;
3146
+ reply_count: number;
3147
+ reply_users_count: number;
3148
+ reply_users: string[];
3149
+ channel_name: string;
3150
+ }[]> | undefined;
3151
+ private?: Record<string, {
3152
+ ts: string;
3153
+ team_id: string;
3154
+ reply_count: number;
3155
+ reply_users_count: number;
3156
+ reply_users: string[];
3157
+ channel_name: string;
3158
+ }[]> | undefined;
3159
+ }>>;
3160
+ channels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3161
+ groups: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3162
+ ims: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3163
+ has_rich_preview: z.ZodOptional<z.ZodBoolean>;
3164
+ }, "strip", z.ZodTypeAny, {
3165
+ name: string;
3166
+ id: string;
3167
+ user: string;
3168
+ username: string;
3169
+ timestamp: number;
3170
+ created: number;
3171
+ mimetype: string;
3172
+ filetype: string;
3173
+ pretty_type: string;
3174
+ editable: boolean;
3175
+ size: number;
3176
+ mode: string;
3177
+ is_external: boolean;
3178
+ external_type: string;
3179
+ is_public: boolean;
3180
+ public_url_shared: boolean;
3181
+ display_as_bot: boolean;
3182
+ url_private: string;
3183
+ url_private_download: string;
3184
+ permalink: string;
3185
+ title?: string | undefined;
3186
+ channels?: string[] | undefined;
3187
+ permalink_public?: string | undefined;
3188
+ shares?: {
3189
+ public?: Record<string, {
3190
+ ts: string;
3191
+ team_id: string;
3192
+ reply_count: number;
3193
+ reply_users_count: number;
3194
+ reply_users: string[];
3195
+ channel_name: string;
3196
+ }[]> | undefined;
3197
+ private?: Record<string, {
3198
+ ts: string;
3199
+ team_id: string;
3200
+ reply_count: number;
3201
+ reply_users_count: number;
3202
+ reply_users: string[];
3203
+ channel_name: string;
3204
+ }[]> | undefined;
3205
+ } | undefined;
3206
+ groups?: string[] | undefined;
3207
+ ims?: string[] | undefined;
3208
+ has_rich_preview?: boolean | undefined;
3209
+ }, {
3210
+ name: string;
3211
+ id: string;
3212
+ user: string;
3213
+ username: string;
3214
+ timestamp: number;
3215
+ created: number;
3216
+ mimetype: string;
3217
+ filetype: string;
3218
+ pretty_type: string;
3219
+ editable: boolean;
3220
+ size: number;
3221
+ mode: string;
3222
+ is_external: boolean;
3223
+ external_type: string;
3224
+ is_public: boolean;
3225
+ public_url_shared: boolean;
3226
+ display_as_bot: boolean;
3227
+ url_private: string;
3228
+ url_private_download: string;
3229
+ permalink: string;
3230
+ title?: string | undefined;
3231
+ channels?: string[] | undefined;
3232
+ permalink_public?: string | undefined;
3233
+ shares?: {
3234
+ public?: Record<string, {
3235
+ ts: string;
3236
+ team_id: string;
3237
+ reply_count: number;
3238
+ reply_users_count: number;
3239
+ reply_users: string[];
3240
+ channel_name: string;
3241
+ }[]> | undefined;
3242
+ private?: Record<string, {
3243
+ ts: string;
3244
+ team_id: string;
3245
+ reply_count: number;
3246
+ reply_users_count: number;
3247
+ reply_users: string[];
3248
+ channel_name: string;
3249
+ }[]> | undefined;
3250
+ } | undefined;
3251
+ groups?: string[] | undefined;
3252
+ ims?: string[] | undefined;
3253
+ has_rich_preview?: boolean | undefined;
3254
+ }>>;
3255
+ error: z.ZodString;
3256
+ success: z.ZodBoolean;
3257
+ }, "strip", z.ZodTypeAny, {
3258
+ error: string;
3259
+ success: boolean;
3260
+ operation: "upload_file";
3261
+ ok: boolean;
3262
+ file?: {
3263
+ name: string;
3264
+ id: string;
3265
+ user: string;
3266
+ username: string;
3267
+ timestamp: number;
3268
+ created: number;
3269
+ mimetype: string;
3270
+ filetype: string;
3271
+ pretty_type: string;
3272
+ editable: boolean;
3273
+ size: number;
3274
+ mode: string;
3275
+ is_external: boolean;
3276
+ external_type: string;
3277
+ is_public: boolean;
3278
+ public_url_shared: boolean;
3279
+ display_as_bot: boolean;
3280
+ url_private: string;
3281
+ url_private_download: string;
3282
+ permalink: string;
3283
+ title?: string | undefined;
3284
+ channels?: string[] | undefined;
3285
+ permalink_public?: string | undefined;
3286
+ shares?: {
3287
+ public?: Record<string, {
3288
+ ts: string;
3289
+ team_id: string;
3290
+ reply_count: number;
3291
+ reply_users_count: number;
3292
+ reply_users: string[];
3293
+ channel_name: string;
3294
+ }[]> | undefined;
3295
+ private?: Record<string, {
3296
+ ts: string;
3297
+ team_id: string;
3298
+ reply_count: number;
3299
+ reply_users_count: number;
3300
+ reply_users: string[];
3301
+ channel_name: string;
3302
+ }[]> | undefined;
3303
+ } | undefined;
3304
+ groups?: string[] | undefined;
3305
+ ims?: string[] | undefined;
3306
+ has_rich_preview?: boolean | undefined;
3307
+ } | undefined;
3308
+ }, {
3309
+ error: string;
3310
+ success: boolean;
3311
+ operation: "upload_file";
3312
+ ok: boolean;
3313
+ file?: {
3314
+ name: string;
3315
+ id: string;
3316
+ user: string;
3317
+ username: string;
3318
+ timestamp: number;
3319
+ created: number;
3320
+ mimetype: string;
3321
+ filetype: string;
3322
+ pretty_type: string;
3323
+ editable: boolean;
3324
+ size: number;
3325
+ mode: string;
3326
+ is_external: boolean;
3327
+ external_type: string;
3328
+ is_public: boolean;
3329
+ public_url_shared: boolean;
3330
+ display_as_bot: boolean;
3331
+ url_private: string;
3332
+ url_private_download: string;
3333
+ permalink: string;
3334
+ title?: string | undefined;
3335
+ channels?: string[] | undefined;
3336
+ permalink_public?: string | undefined;
3337
+ shares?: {
3338
+ public?: Record<string, {
3339
+ ts: string;
3340
+ team_id: string;
3341
+ reply_count: number;
3342
+ reply_users_count: number;
3343
+ reply_users: string[];
3344
+ channel_name: string;
3345
+ }[]> | undefined;
3346
+ private?: Record<string, {
3347
+ ts: string;
3348
+ team_id: string;
3349
+ reply_count: number;
3350
+ reply_users_count: number;
3351
+ reply_users: string[];
3352
+ channel_name: string;
3353
+ }[]> | undefined;
3354
+ } | undefined;
3355
+ groups?: string[] | undefined;
3356
+ ims?: string[] | undefined;
3357
+ has_rich_preview?: boolean | undefined;
3358
+ } | undefined;
3359
+ }>, z.ZodObject<{
3360
+ operation: z.ZodLiteral<"schedule_message">;
3361
+ ok: z.ZodBoolean;
3362
+ channel: z.ZodOptional<z.ZodString>;
3363
+ scheduled_message_id: z.ZodOptional<z.ZodString>;
3364
+ post_at: z.ZodOptional<z.ZodNumber>;
3365
+ error: z.ZodString;
3366
+ success: z.ZodBoolean;
3367
+ }, "strip", z.ZodTypeAny, {
3368
+ error: string;
3369
+ success: boolean;
3370
+ operation: "schedule_message";
3371
+ ok: boolean;
3372
+ channel?: string | undefined;
3373
+ post_at?: number | undefined;
3374
+ scheduled_message_id?: string | undefined;
3375
+ }, {
3376
+ error: string;
3377
+ success: boolean;
3378
+ operation: "schedule_message";
3379
+ ok: boolean;
3380
+ channel?: string | undefined;
3381
+ post_at?: number | undefined;
3382
+ scheduled_message_id?: string | undefined;
3383
+ }>]>;
3384
+ type SlackResult = z.output<typeof SlackResultSchema>;
3385
+ type SlackParams = z.input<typeof SlackParamsSchema>;
3386
+ export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, {
3387
+ operation: T;
3388
+ }>;
3389
+ export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, {
3390
+ operation: T['operation'];
3391
+ }>> {
3392
+ testCredential(): Promise<boolean>;
3393
+ static readonly type: "service";
3394
+ static readonly service = "slack";
3395
+ static readonly authType: "apikey";
3396
+ static readonly bubbleName = "slack";
3397
+ static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
3398
+ operation: z.ZodLiteral<"send_message">;
3399
+ channel: z.ZodString;
3400
+ text: z.ZodString;
3401
+ username: z.ZodOptional<z.ZodString>;
3402
+ icon_emoji: z.ZodOptional<z.ZodString>;
3403
+ icon_url: z.ZodOptional<z.ZodString>;
3404
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3405
+ color: z.ZodOptional<z.ZodString>;
3406
+ pretext: z.ZodOptional<z.ZodString>;
3407
+ author_name: z.ZodOptional<z.ZodString>;
3408
+ author_link: z.ZodOptional<z.ZodString>;
3409
+ author_icon: z.ZodOptional<z.ZodString>;
3410
+ title: z.ZodOptional<z.ZodString>;
3411
+ title_link: z.ZodOptional<z.ZodString>;
3412
+ text: z.ZodOptional<z.ZodString>;
3413
+ fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3414
+ title: z.ZodString;
3415
+ value: z.ZodString;
3416
+ short: z.ZodOptional<z.ZodBoolean>;
3417
+ }, "strip", z.ZodTypeAny, {
3418
+ value: string;
3419
+ title: string;
3420
+ short?: boolean | undefined;
3421
+ }, {
3422
+ value: string;
3423
+ title: string;
3424
+ short?: boolean | undefined;
3425
+ }>, "many">>;
3426
+ image_url: z.ZodOptional<z.ZodString>;
3427
+ thumb_url: z.ZodOptional<z.ZodString>;
3428
+ footer: z.ZodOptional<z.ZodString>;
3429
+ footer_icon: z.ZodOptional<z.ZodString>;
3430
+ ts: z.ZodOptional<z.ZodNumber>;
3431
+ }, "strip", z.ZodTypeAny, {
3432
+ title?: string | undefined;
3433
+ text?: string | undefined;
3434
+ image_url?: string | undefined;
3435
+ fields?: {
3436
+ value: string;
3437
+ title: string;
3438
+ short?: boolean | undefined;
3439
+ }[] | undefined;
3440
+ color?: string | undefined;
3441
+ pretext?: string | undefined;
3442
+ author_name?: string | undefined;
3443
+ author_link?: string | undefined;
3444
+ author_icon?: string | undefined;
3445
+ title_link?: string | undefined;
3446
+ thumb_url?: string | undefined;
3447
+ footer?: string | undefined;
3448
+ footer_icon?: string | undefined;
3449
+ ts?: number | undefined;
3450
+ }, {
3451
+ title?: string | undefined;
3452
+ text?: string | undefined;
3453
+ image_url?: string | undefined;
3454
+ fields?: {
3455
+ value: string;
3456
+ title: string;
3457
+ short?: boolean | undefined;
3458
+ }[] | undefined;
3459
+ color?: string | undefined;
3460
+ pretext?: string | undefined;
3461
+ author_name?: string | undefined;
3462
+ author_link?: string | undefined;
3463
+ author_icon?: string | undefined;
3464
+ title_link?: string | undefined;
3465
+ thumb_url?: string | undefined;
3466
+ footer?: string | undefined;
3467
+ footer_icon?: string | undefined;
3468
+ ts?: number | undefined;
3469
+ }>, "many">>;
3470
+ blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3471
+ type: z.ZodString;
3472
+ text: z.ZodOptional<z.ZodObject<{
3473
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
3474
+ text: z.ZodString;
3475
+ emoji: z.ZodOptional<z.ZodBoolean>;
3476
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3477
+ }, "strip", z.ZodTypeAny, {
3478
+ type: "plain_text" | "mrkdwn";
3479
+ text: string;
3480
+ emoji?: boolean | undefined;
3481
+ verbatim?: boolean | undefined;
3482
+ }, {
3483
+ type: "plain_text" | "mrkdwn";
3484
+ text: string;
3485
+ emoji?: boolean | undefined;
3486
+ verbatim?: boolean | undefined;
3487
+ }>>;
3488
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3489
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
3490
+ text: z.ZodOptional<z.ZodString>;
3491
+ image_url: z.ZodOptional<z.ZodString>;
3492
+ alt_text: z.ZodOptional<z.ZodString>;
3493
+ emoji: z.ZodOptional<z.ZodBoolean>;
3494
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3495
+ }, "strip", z.ZodTypeAny, {
3496
+ type: "image" | "plain_text" | "mrkdwn";
3497
+ emoji?: boolean | undefined;
3498
+ text?: string | undefined;
3499
+ image_url?: string | undefined;
3500
+ verbatim?: boolean | undefined;
3501
+ alt_text?: string | undefined;
3502
+ }, {
3503
+ type: "image" | "plain_text" | "mrkdwn";
3504
+ emoji?: boolean | undefined;
3505
+ text?: string | undefined;
3506
+ image_url?: string | undefined;
3507
+ verbatim?: boolean | undefined;
3508
+ alt_text?: string | undefined;
3509
+ }>, "many">>;
3510
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3511
+ type: z.ZodString;
3512
+ text: z.ZodOptional<z.ZodObject<{
3513
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
3514
+ text: z.ZodString;
3515
+ emoji: z.ZodOptional<z.ZodBoolean>;
3516
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3517
+ }, "strip", z.ZodTypeAny, {
3518
+ type: "plain_text" | "mrkdwn";
3519
+ text: string;
3520
+ emoji?: boolean | undefined;
3521
+ verbatim?: boolean | undefined;
3522
+ }, {
3523
+ type: "plain_text" | "mrkdwn";
3524
+ text: string;
3525
+ emoji?: boolean | undefined;
3526
+ verbatim?: boolean | undefined;
3527
+ }>>;
3528
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3529
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
3530
+ text: z.ZodOptional<z.ZodString>;
3531
+ image_url: z.ZodOptional<z.ZodString>;
3532
+ alt_text: z.ZodOptional<z.ZodString>;
3533
+ emoji: z.ZodOptional<z.ZodBoolean>;
3534
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3535
+ }, "strip", z.ZodTypeAny, {
3536
+ type: "image" | "plain_text" | "mrkdwn";
3537
+ emoji?: boolean | undefined;
3538
+ text?: string | undefined;
3539
+ image_url?: string | undefined;
3540
+ verbatim?: boolean | undefined;
3541
+ alt_text?: string | undefined;
3542
+ }, {
3543
+ type: "image" | "plain_text" | "mrkdwn";
3544
+ emoji?: boolean | undefined;
3545
+ text?: string | undefined;
3546
+ image_url?: string | undefined;
3547
+ verbatim?: boolean | undefined;
3548
+ alt_text?: string | undefined;
3549
+ }>, "many">>;
3550
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3551
+ type: z.ZodString;
3552
+ text: z.ZodOptional<z.ZodObject<{
3553
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
3554
+ text: z.ZodString;
3555
+ emoji: z.ZodOptional<z.ZodBoolean>;
3556
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3557
+ }, "strip", z.ZodTypeAny, {
3558
+ type: "plain_text" | "mrkdwn";
3559
+ text: string;
3560
+ emoji?: boolean | undefined;
3561
+ verbatim?: boolean | undefined;
3562
+ }, {
3563
+ type: "plain_text" | "mrkdwn";
3564
+ text: string;
3565
+ emoji?: boolean | undefined;
3566
+ verbatim?: boolean | undefined;
3567
+ }>>;
3568
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3569
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
3570
+ text: z.ZodOptional<z.ZodString>;
3571
+ image_url: z.ZodOptional<z.ZodString>;
3572
+ alt_text: z.ZodOptional<z.ZodString>;
3573
+ emoji: z.ZodOptional<z.ZodBoolean>;
3574
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3575
+ }, "strip", z.ZodTypeAny, {
3576
+ type: "image" | "plain_text" | "mrkdwn";
3577
+ emoji?: boolean | undefined;
3578
+ text?: string | undefined;
3579
+ image_url?: string | undefined;
3580
+ verbatim?: boolean | undefined;
3581
+ alt_text?: string | undefined;
3582
+ }, {
3583
+ type: "image" | "plain_text" | "mrkdwn";
3584
+ emoji?: boolean | undefined;
3585
+ text?: string | undefined;
3586
+ image_url?: string | undefined;
3587
+ verbatim?: boolean | undefined;
3588
+ alt_text?: string | undefined;
3589
+ }>, "many">>;
3590
+ }, z.ZodTypeAny, "passthrough">>, "many">>;
3591
+ thread_ts: z.ZodOptional<z.ZodString>;
3592
+ reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3593
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3594
+ unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3595
+ unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3596
+ }, "strip", z.ZodTypeAny, {
3597
+ text: string;
3598
+ operation: "send_message";
3599
+ channel: string;
3600
+ reply_broadcast: boolean;
3601
+ unfurl_links: boolean;
3602
+ unfurl_media: boolean;
3603
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3604
+ username?: string | undefined;
3605
+ icon_emoji?: string | undefined;
3606
+ icon_url?: string | undefined;
3607
+ attachments?: {
3608
+ title?: string | undefined;
3609
+ text?: string | undefined;
3610
+ image_url?: string | undefined;
3611
+ fields?: {
3612
+ value: string;
3613
+ title: string;
3614
+ short?: boolean | undefined;
3615
+ }[] | undefined;
3616
+ color?: string | undefined;
3617
+ pretext?: string | undefined;
3618
+ author_name?: string | undefined;
3619
+ author_link?: string | undefined;
3620
+ author_icon?: string | undefined;
3621
+ title_link?: string | undefined;
3622
+ thumb_url?: string | undefined;
3623
+ footer?: string | undefined;
3624
+ footer_icon?: string | undefined;
3625
+ ts?: number | undefined;
3626
+ }[] | undefined;
3627
+ blocks?: z.objectOutputType<{
3628
+ type: z.ZodString;
3629
+ text: z.ZodOptional<z.ZodObject<{
3630
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
3631
+ text: z.ZodString;
3632
+ emoji: z.ZodOptional<z.ZodBoolean>;
3633
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3634
+ }, "strip", z.ZodTypeAny, {
3635
+ type: "plain_text" | "mrkdwn";
3636
+ text: string;
3637
+ emoji?: boolean | undefined;
3638
+ verbatim?: boolean | undefined;
3639
+ }, {
3640
+ type: "plain_text" | "mrkdwn";
3641
+ text: string;
3642
+ emoji?: boolean | undefined;
3643
+ verbatim?: boolean | undefined;
3644
+ }>>;
3645
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3646
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
3647
+ text: z.ZodOptional<z.ZodString>;
3648
+ image_url: z.ZodOptional<z.ZodString>;
3649
+ alt_text: z.ZodOptional<z.ZodString>;
3650
+ emoji: z.ZodOptional<z.ZodBoolean>;
3651
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3652
+ }, "strip", z.ZodTypeAny, {
3653
+ type: "image" | "plain_text" | "mrkdwn";
3654
+ emoji?: boolean | undefined;
3655
+ text?: string | undefined;
3656
+ image_url?: string | undefined;
3657
+ verbatim?: boolean | undefined;
3658
+ alt_text?: string | undefined;
3659
+ }, {
3660
+ type: "image" | "plain_text" | "mrkdwn";
3661
+ emoji?: boolean | undefined;
3662
+ text?: string | undefined;
3663
+ image_url?: string | undefined;
3664
+ verbatim?: boolean | undefined;
3665
+ alt_text?: string | undefined;
3666
+ }>, "many">>;
3667
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
3668
+ thread_ts?: string | undefined;
3669
+ }, {
3670
+ text: string;
3671
+ operation: "send_message";
3672
+ channel: string;
3673
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3674
+ username?: string | undefined;
3675
+ icon_emoji?: string | undefined;
3676
+ icon_url?: string | undefined;
3677
+ attachments?: {
3678
+ title?: string | undefined;
3679
+ text?: string | undefined;
3680
+ image_url?: string | undefined;
3681
+ fields?: {
3682
+ value: string;
3683
+ title: string;
3684
+ short?: boolean | undefined;
3685
+ }[] | undefined;
3686
+ color?: string | undefined;
3687
+ pretext?: string | undefined;
3688
+ author_name?: string | undefined;
3689
+ author_link?: string | undefined;
3690
+ author_icon?: string | undefined;
3691
+ title_link?: string | undefined;
3692
+ thumb_url?: string | undefined;
3693
+ footer?: string | undefined;
3694
+ footer_icon?: string | undefined;
3695
+ ts?: number | undefined;
3696
+ }[] | undefined;
3697
+ blocks?: z.objectInputType<{
3698
+ type: z.ZodString;
3699
+ text: z.ZodOptional<z.ZodObject<{
3700
+ type: z.ZodEnum<["plain_text", "mrkdwn"]>;
3701
+ text: z.ZodString;
3702
+ emoji: z.ZodOptional<z.ZodBoolean>;
3703
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3704
+ }, "strip", z.ZodTypeAny, {
3705
+ type: "plain_text" | "mrkdwn";
3706
+ text: string;
3707
+ emoji?: boolean | undefined;
3708
+ verbatim?: boolean | undefined;
3709
+ }, {
3710
+ type: "plain_text" | "mrkdwn";
3711
+ text: string;
3712
+ emoji?: boolean | undefined;
3713
+ verbatim?: boolean | undefined;
3714
+ }>>;
3715
+ elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
3716
+ type: z.ZodEnum<["plain_text", "mrkdwn", "image"]>;
3717
+ text: z.ZodOptional<z.ZodString>;
3718
+ image_url: z.ZodOptional<z.ZodString>;
3719
+ alt_text: z.ZodOptional<z.ZodString>;
3720
+ emoji: z.ZodOptional<z.ZodBoolean>;
3721
+ verbatim: z.ZodOptional<z.ZodBoolean>;
3722
+ }, "strip", z.ZodTypeAny, {
3723
+ type: "image" | "plain_text" | "mrkdwn";
3724
+ emoji?: boolean | undefined;
3725
+ text?: string | undefined;
3726
+ image_url?: string | undefined;
3727
+ verbatim?: boolean | undefined;
3728
+ alt_text?: string | undefined;
3729
+ }, {
3730
+ type: "image" | "plain_text" | "mrkdwn";
3731
+ emoji?: boolean | undefined;
3732
+ text?: string | undefined;
3733
+ image_url?: string | undefined;
3734
+ verbatim?: boolean | undefined;
3735
+ alt_text?: string | undefined;
3736
+ }>, "many">>;
3737
+ }, z.ZodTypeAny, "passthrough">[] | undefined;
3738
+ thread_ts?: string | undefined;
3739
+ reply_broadcast?: boolean | undefined;
3740
+ unfurl_links?: boolean | undefined;
3741
+ unfurl_media?: boolean | undefined;
3742
+ }>, z.ZodObject<{
3743
+ operation: z.ZodLiteral<"list_channels">;
3744
+ types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>;
3745
+ exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3746
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3747
+ cursor: z.ZodOptional<z.ZodString>;
3748
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3749
+ }, "strip", z.ZodTypeAny, {
3750
+ operation: "list_channels";
3751
+ types: ("public_channel" | "private_channel" | "mpim" | "im")[];
3752
+ exclude_archived: boolean;
3753
+ limit: number;
3754
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3755
+ cursor?: string | undefined;
3756
+ }, {
3757
+ operation: "list_channels";
3758
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3759
+ types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
3760
+ exclude_archived?: boolean | undefined;
3761
+ limit?: number | undefined;
3762
+ cursor?: string | undefined;
3763
+ }>, z.ZodObject<{
3764
+ operation: z.ZodLiteral<"get_channel_info">;
3765
+ channel: z.ZodString;
3766
+ include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3767
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3768
+ }, "strip", z.ZodTypeAny, {
3769
+ operation: "get_channel_info";
3770
+ channel: string;
3771
+ include_locale: boolean;
3772
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3773
+ }, {
3774
+ operation: "get_channel_info";
3775
+ channel: string;
3776
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3777
+ include_locale?: boolean | undefined;
3778
+ }>, z.ZodObject<{
3779
+ operation: z.ZodLiteral<"get_user_info">;
3780
+ user: z.ZodString;
3781
+ include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3782
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3783
+ }, "strip", z.ZodTypeAny, {
2820
3784
  user: string;
2821
- id: string;
2822
- username: string;
2823
- timestamp: number;
2824
- created: number;
2825
- mimetype: string;
2826
- filetype: string;
2827
- pretty_type: string;
2828
- editable: boolean;
2829
- size: number;
2830
- mode: string;
2831
- is_external: boolean;
2832
- external_type: string;
2833
- is_public: boolean;
2834
- public_url_shared: boolean;
2835
- display_as_bot: boolean;
2836
- url_private: string;
2837
- url_private_download: string;
2838
- permalink: string;
2839
- title?: string | undefined;
2840
- channels?: string[] | undefined;
2841
- permalink_public?: string | undefined;
2842
- shares?: {
2843
- public?: Record<string, {
2844
- ts: string;
2845
- team_id: string;
2846
- reply_count: number;
2847
- reply_users_count: number;
2848
- reply_users: string[];
2849
- channel_name: string;
2850
- }[]> | undefined;
2851
- private?: Record<string, {
2852
- ts: string;
2853
- team_id: string;
2854
- reply_count: number;
2855
- reply_users_count: number;
2856
- reply_users: string[];
2857
- channel_name: string;
2858
- }[]> | undefined;
2859
- } | undefined;
2860
- groups?: string[] | undefined;
2861
- ims?: string[] | undefined;
2862
- has_rich_preview?: boolean | undefined;
2863
- } | undefined;
2864
- }, {
2865
- success: boolean;
2866
- error: string;
2867
- operation: "upload_file";
2868
- ok: boolean;
2869
- file?: {
2870
- name: string;
3785
+ operation: "get_user_info";
3786
+ include_locale: boolean;
3787
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3788
+ }, {
2871
3789
  user: string;
2872
- id: string;
2873
- username: string;
2874
- timestamp: number;
2875
- created: number;
2876
- mimetype: string;
2877
- filetype: string;
2878
- pretty_type: string;
2879
- editable: boolean;
2880
- size: number;
2881
- mode: string;
2882
- is_external: boolean;
2883
- external_type: string;
2884
- is_public: boolean;
2885
- public_url_shared: boolean;
2886
- display_as_bot: boolean;
2887
- url_private: string;
2888
- url_private_download: string;
2889
- permalink: string;
2890
- title?: string | undefined;
2891
- channels?: string[] | undefined;
2892
- permalink_public?: string | undefined;
2893
- shares?: {
2894
- public?: Record<string, {
2895
- ts: string;
2896
- team_id: string;
2897
- reply_count: number;
2898
- reply_users_count: number;
2899
- reply_users: string[];
2900
- channel_name: string;
2901
- }[]> | undefined;
2902
- private?: Record<string, {
2903
- ts: string;
2904
- team_id: string;
2905
- reply_count: number;
2906
- reply_users_count: number;
2907
- reply_users: string[];
2908
- channel_name: string;
2909
- }[]> | undefined;
2910
- } | undefined;
2911
- groups?: string[] | undefined;
2912
- ims?: string[] | undefined;
2913
- has_rich_preview?: boolean | undefined;
2914
- } | undefined;
2915
- }>]>;
2916
- type SlackResult = z.output<typeof SlackResultSchema>;
2917
- type SlackParams = z.input<typeof SlackParamsSchema>;
2918
- export type SlackOperationResult<T extends SlackParams['operation']> = Extract<SlackResult, {
2919
- operation: T;
2920
- }>;
2921
- export declare class SlackBubble<T extends SlackParams = SlackParams> extends ServiceBubble<T, Extract<SlackResult, {
2922
- operation: T['operation'];
2923
- }>> {
2924
- testCredential(): Promise<boolean>;
2925
- static readonly type: "service";
2926
- static readonly service = "slack";
2927
- static readonly authType: "apikey";
2928
- static readonly bubbleName = "slack";
2929
- static readonly schema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
2930
- operation: z.ZodLiteral<"send_message">;
3790
+ operation: "get_user_info";
3791
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3792
+ include_locale?: boolean | undefined;
3793
+ }>, z.ZodObject<{
3794
+ operation: z.ZodLiteral<"list_users">;
3795
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3796
+ cursor: z.ZodOptional<z.ZodString>;
3797
+ include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3798
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3799
+ }, "strip", z.ZodTypeAny, {
3800
+ operation: "list_users";
3801
+ limit: number;
3802
+ include_locale: boolean;
3803
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3804
+ cursor?: string | undefined;
3805
+ }, {
3806
+ operation: "list_users";
3807
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3808
+ limit?: number | undefined;
3809
+ cursor?: string | undefined;
3810
+ include_locale?: boolean | undefined;
3811
+ }>, z.ZodObject<{
3812
+ operation: z.ZodLiteral<"get_conversation_history">;
2931
3813
  channel: z.ZodString;
2932
- text: z.ZodString;
2933
- username: z.ZodOptional<z.ZodString>;
2934
- icon_emoji: z.ZodOptional<z.ZodString>;
2935
- icon_url: z.ZodOptional<z.ZodString>;
3814
+ latest: z.ZodOptional<z.ZodString>;
3815
+ oldest: z.ZodOptional<z.ZodString>;
3816
+ inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3817
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3818
+ cursor: z.ZodOptional<z.ZodString>;
3819
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3820
+ }, "strip", z.ZodTypeAny, {
3821
+ inclusive: boolean;
3822
+ operation: "get_conversation_history";
3823
+ channel: string;
3824
+ limit: number;
3825
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3826
+ cursor?: string | undefined;
3827
+ latest?: string | undefined;
3828
+ oldest?: string | undefined;
3829
+ }, {
3830
+ operation: "get_conversation_history";
3831
+ channel: string;
3832
+ inclusive?: boolean | undefined;
3833
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3834
+ limit?: number | undefined;
3835
+ cursor?: string | undefined;
3836
+ latest?: string | undefined;
3837
+ oldest?: string | undefined;
3838
+ }>, z.ZodObject<{
3839
+ operation: z.ZodLiteral<"get_thread_replies">;
3840
+ channel: z.ZodString;
3841
+ ts: z.ZodString;
3842
+ latest: z.ZodOptional<z.ZodString>;
3843
+ oldest: z.ZodOptional<z.ZodString>;
3844
+ inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3845
+ limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3846
+ cursor: z.ZodOptional<z.ZodString>;
3847
+ credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3848
+ }, "strip", z.ZodTypeAny, {
3849
+ inclusive: boolean;
3850
+ ts: string;
3851
+ operation: "get_thread_replies";
3852
+ channel: string;
3853
+ limit: number;
3854
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3855
+ cursor?: string | undefined;
3856
+ latest?: string | undefined;
3857
+ oldest?: string | undefined;
3858
+ }, {
3859
+ ts: string;
3860
+ operation: "get_thread_replies";
3861
+ channel: string;
3862
+ inclusive?: boolean | undefined;
3863
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3864
+ limit?: number | undefined;
3865
+ cursor?: string | undefined;
3866
+ latest?: string | undefined;
3867
+ oldest?: string | undefined;
3868
+ }>, z.ZodObject<{
3869
+ operation: z.ZodLiteral<"update_message">;
3870
+ channel: z.ZodString;
3871
+ ts: z.ZodString;
3872
+ text: z.ZodOptional<z.ZodString>;
2936
3873
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
2937
3874
  color: z.ZodOptional<z.ZodString>;
2938
3875
  pretext: z.ZodOptional<z.ZodString>;
@@ -3120,22 +4057,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3120
4057
  alt_text?: string | undefined;
3121
4058
  }>, "many">>;
3122
4059
  }, z.ZodTypeAny, "passthrough">>, "many">>;
3123
- thread_ts: z.ZodOptional<z.ZodString>;
3124
- reply_broadcast: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3125
4060
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3126
- unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3127
- unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3128
- }, "strip", z.ZodTypeAny, {
3129
- text: string;
3130
- operation: "send_message";
4061
+ }, "strip", z.ZodTypeAny, {
4062
+ ts: string;
4063
+ operation: "update_message";
3131
4064
  channel: string;
3132
- reply_broadcast: boolean;
3133
- unfurl_links: boolean;
3134
- unfurl_media: boolean;
3135
4065
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3136
- username?: string | undefined;
3137
- icon_emoji?: string | undefined;
3138
- icon_url?: string | undefined;
4066
+ text?: string | undefined;
3139
4067
  attachments?: {
3140
4068
  title?: string | undefined;
3141
4069
  text?: string | undefined;
@@ -3197,15 +4125,12 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3197
4125
  alt_text?: string | undefined;
3198
4126
  }>, "many">>;
3199
4127
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3200
- thread_ts?: string | undefined;
3201
4128
  }, {
3202
- text: string;
3203
- operation: "send_message";
4129
+ ts: string;
4130
+ operation: "update_message";
3204
4131
  channel: string;
3205
4132
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3206
- username?: string | undefined;
3207
- icon_emoji?: string | undefined;
3208
- icon_url?: string | undefined;
4133
+ text?: string | undefined;
3209
4134
  attachments?: {
3210
4135
  title?: string | undefined;
3211
4136
  text?: string | undefined;
@@ -3267,207 +4192,102 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3267
4192
  alt_text?: string | undefined;
3268
4193
  }>, "many">>;
3269
4194
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3270
- thread_ts?: string | undefined;
3271
- reply_broadcast?: boolean | undefined;
3272
- unfurl_links?: boolean | undefined;
3273
- unfurl_media?: boolean | undefined;
3274
- }>, z.ZodObject<{
3275
- operation: z.ZodLiteral<"list_channels">;
3276
- types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodEnum<["public_channel", "private_channel", "mpim", "im"]>, "many">>>;
3277
- exclude_archived: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3278
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3279
- cursor: z.ZodOptional<z.ZodString>;
3280
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3281
- }, "strip", z.ZodTypeAny, {
3282
- limit: number;
3283
- operation: "list_channels";
3284
- types: ("public_channel" | "private_channel" | "mpim" | "im")[];
3285
- exclude_archived: boolean;
3286
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3287
- cursor?: string | undefined;
3288
- }, {
3289
- operation: "list_channels";
3290
- limit?: number | undefined;
3291
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3292
- types?: ("public_channel" | "private_channel" | "mpim" | "im")[] | undefined;
3293
- exclude_archived?: boolean | undefined;
3294
- cursor?: string | undefined;
3295
4195
  }>, z.ZodObject<{
3296
- operation: z.ZodLiteral<"get_channel_info">;
4196
+ operation: z.ZodLiteral<"delete_message">;
3297
4197
  channel: z.ZodString;
3298
- include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4198
+ ts: z.ZodString;
3299
4199
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3300
4200
  }, "strip", z.ZodTypeAny, {
3301
- operation: "get_channel_info";
4201
+ ts: string;
4202
+ operation: "delete_message";
3302
4203
  channel: string;
3303
- include_locale: boolean;
3304
4204
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3305
4205
  }, {
3306
- operation: "get_channel_info";
4206
+ ts: string;
4207
+ operation: "delete_message";
3307
4208
  channel: string;
3308
4209
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3309
- include_locale?: boolean | undefined;
3310
4210
  }>, z.ZodObject<{
3311
- operation: z.ZodLiteral<"get_user_info">;
3312
- user: z.ZodString;
3313
- include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4211
+ operation: z.ZodLiteral<"add_reaction">;
4212
+ name: z.ZodString;
4213
+ channel: z.ZodString;
4214
+ timestamp: z.ZodString;
3314
4215
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3315
4216
  }, "strip", z.ZodTypeAny, {
3316
- user: string;
3317
- operation: "get_user_info";
3318
- include_locale: boolean;
4217
+ name: string;
4218
+ operation: "add_reaction";
4219
+ channel: string;
4220
+ timestamp: string;
3319
4221
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3320
4222
  }, {
3321
- user: string;
3322
- operation: "get_user_info";
4223
+ name: string;
4224
+ operation: "add_reaction";
4225
+ channel: string;
4226
+ timestamp: string;
3323
4227
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3324
- include_locale?: boolean | undefined;
3325
4228
  }>, z.ZodObject<{
3326
- operation: z.ZodLiteral<"list_users">;
3327
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3328
- cursor: z.ZodOptional<z.ZodString>;
3329
- include_locale: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4229
+ operation: z.ZodLiteral<"remove_reaction">;
4230
+ name: z.ZodString;
4231
+ channel: z.ZodString;
4232
+ timestamp: z.ZodString;
3330
4233
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3331
4234
  }, "strip", z.ZodTypeAny, {
3332
- limit: number;
3333
- operation: "list_users";
3334
- include_locale: boolean;
4235
+ name: string;
4236
+ operation: "remove_reaction";
4237
+ channel: string;
4238
+ timestamp: string;
3335
4239
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3336
- cursor?: string | undefined;
3337
4240
  }, {
3338
- operation: "list_users";
3339
- limit?: number | undefined;
4241
+ name: string;
4242
+ operation: "remove_reaction";
4243
+ channel: string;
4244
+ timestamp: string;
3340
4245
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3341
- cursor?: string | undefined;
3342
- include_locale?: boolean | undefined;
3343
4246
  }>, z.ZodObject<{
3344
- operation: z.ZodLiteral<"get_conversation_history">;
4247
+ operation: z.ZodLiteral<"join_channel">;
3345
4248
  channel: z.ZodString;
3346
- latest: z.ZodOptional<z.ZodString>;
3347
- oldest: z.ZodOptional<z.ZodString>;
3348
- inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3349
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3350
- cursor: z.ZodOptional<z.ZodString>;
3351
4249
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3352
4250
  }, "strip", z.ZodTypeAny, {
3353
- inclusive: boolean;
3354
- limit: number;
3355
- operation: "get_conversation_history";
4251
+ operation: "join_channel";
3356
4252
  channel: string;
3357
4253
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3358
- cursor?: string | undefined;
3359
- latest?: string | undefined;
3360
- oldest?: string | undefined;
3361
4254
  }, {
3362
- operation: "get_conversation_history";
4255
+ operation: "join_channel";
3363
4256
  channel: string;
3364
- inclusive?: boolean | undefined;
3365
- limit?: number | undefined;
3366
4257
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3367
- cursor?: string | undefined;
3368
- latest?: string | undefined;
3369
- oldest?: string | undefined;
3370
4258
  }>, z.ZodObject<{
3371
- operation: z.ZodLiteral<"get_thread_replies">;
4259
+ operation: z.ZodLiteral<"upload_file">;
3372
4260
  channel: z.ZodString;
3373
- ts: z.ZodString;
3374
- latest: z.ZodOptional<z.ZodString>;
3375
- oldest: z.ZodOptional<z.ZodString>;
3376
- inclusive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3377
- limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
3378
- cursor: z.ZodOptional<z.ZodString>;
4261
+ file_path: z.ZodString;
4262
+ filename: z.ZodOptional<z.ZodString>;
4263
+ title: z.ZodOptional<z.ZodString>;
4264
+ initial_comment: z.ZodOptional<z.ZodString>;
4265
+ thread_ts: z.ZodOptional<z.ZodString>;
3379
4266
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3380
4267
  }, "strip", z.ZodTypeAny, {
3381
- inclusive: boolean;
3382
- limit: number;
3383
- ts: string;
3384
- operation: "get_thread_replies";
4268
+ operation: "upload_file";
3385
4269
  channel: string;
4270
+ file_path: string;
4271
+ title?: string | undefined;
3386
4272
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3387
- cursor?: string | undefined;
3388
- latest?: string | undefined;
3389
- oldest?: string | undefined;
4273
+ thread_ts?: string | undefined;
4274
+ filename?: string | undefined;
4275
+ initial_comment?: string | undefined;
3390
4276
  }, {
3391
- ts: string;
3392
- operation: "get_thread_replies";
4277
+ operation: "upload_file";
3393
4278
  channel: string;
3394
- inclusive?: boolean | undefined;
3395
- limit?: number | undefined;
4279
+ file_path: string;
4280
+ title?: string | undefined;
3396
4281
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3397
- cursor?: string | undefined;
3398
- latest?: string | undefined;
3399
- oldest?: string | undefined;
4282
+ thread_ts?: string | undefined;
4283
+ filename?: string | undefined;
4284
+ initial_comment?: string | undefined;
3400
4285
  }>, z.ZodObject<{
3401
- operation: z.ZodLiteral<"update_message">;
4286
+ operation: z.ZodLiteral<"schedule_message">;
3402
4287
  channel: z.ZodString;
3403
- ts: z.ZodString;
3404
- text: z.ZodOptional<z.ZodString>;
3405
- attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
3406
- color: z.ZodOptional<z.ZodString>;
3407
- pretext: z.ZodOptional<z.ZodString>;
3408
- author_name: z.ZodOptional<z.ZodString>;
3409
- author_link: z.ZodOptional<z.ZodString>;
3410
- author_icon: z.ZodOptional<z.ZodString>;
3411
- title: z.ZodOptional<z.ZodString>;
3412
- title_link: z.ZodOptional<z.ZodString>;
3413
- text: z.ZodOptional<z.ZodString>;
3414
- fields: z.ZodOptional<z.ZodArray<z.ZodObject<{
3415
- title: z.ZodString;
3416
- value: z.ZodString;
3417
- short: z.ZodOptional<z.ZodBoolean>;
3418
- }, "strip", z.ZodTypeAny, {
3419
- value: string;
3420
- title: string;
3421
- short?: boolean | undefined;
3422
- }, {
3423
- value: string;
3424
- title: string;
3425
- short?: boolean | undefined;
3426
- }>, "many">>;
3427
- image_url: z.ZodOptional<z.ZodString>;
3428
- thumb_url: z.ZodOptional<z.ZodString>;
3429
- footer: z.ZodOptional<z.ZodString>;
3430
- footer_icon: z.ZodOptional<z.ZodString>;
3431
- ts: z.ZodOptional<z.ZodNumber>;
3432
- }, "strip", z.ZodTypeAny, {
3433
- title?: string | undefined;
3434
- text?: string | undefined;
3435
- image_url?: string | undefined;
3436
- fields?: {
3437
- value: string;
3438
- title: string;
3439
- short?: boolean | undefined;
3440
- }[] | undefined;
3441
- color?: string | undefined;
3442
- pretext?: string | undefined;
3443
- author_name?: string | undefined;
3444
- author_link?: string | undefined;
3445
- author_icon?: string | undefined;
3446
- title_link?: string | undefined;
3447
- thumb_url?: string | undefined;
3448
- footer?: string | undefined;
3449
- footer_icon?: string | undefined;
3450
- ts?: number | undefined;
3451
- }, {
3452
- title?: string | undefined;
3453
- text?: string | undefined;
3454
- image_url?: string | undefined;
3455
- fields?: {
3456
- value: string;
3457
- title: string;
3458
- short?: boolean | undefined;
3459
- }[] | undefined;
3460
- color?: string | undefined;
3461
- pretext?: string | undefined;
3462
- author_name?: string | undefined;
3463
- author_link?: string | undefined;
3464
- author_icon?: string | undefined;
3465
- title_link?: string | undefined;
3466
- thumb_url?: string | undefined;
3467
- footer?: string | undefined;
3468
- footer_icon?: string | undefined;
3469
- ts?: number | undefined;
3470
- }>, "many">>;
4288
+ text: z.ZodString;
4289
+ post_at: z.ZodNumber;
4290
+ thread_ts: z.ZodOptional<z.ZodString>;
3471
4291
  blocks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3472
4292
  type: z.ZodString;
3473
4293
  text: z.ZodOptional<z.ZodObject<{
@@ -3589,33 +4409,17 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3589
4409
  alt_text?: string | undefined;
3590
4410
  }>, "many">>;
3591
4411
  }, z.ZodTypeAny, "passthrough">>, "many">>;
4412
+ unfurl_links: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
4413
+ unfurl_media: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
3592
4414
  credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3593
4415
  }, "strip", z.ZodTypeAny, {
3594
- ts: string;
3595
- operation: "update_message";
4416
+ text: string;
4417
+ operation: "schedule_message";
3596
4418
  channel: string;
3597
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3598
- text?: string | undefined;
3599
- attachments?: {
3600
- title?: string | undefined;
3601
- text?: string | undefined;
3602
- image_url?: string | undefined;
3603
- fields?: {
3604
- value: string;
3605
- title: string;
3606
- short?: boolean | undefined;
3607
- }[] | undefined;
3608
- color?: string | undefined;
3609
- pretext?: string | undefined;
3610
- author_name?: string | undefined;
3611
- author_link?: string | undefined;
3612
- author_icon?: string | undefined;
3613
- title_link?: string | undefined;
3614
- thumb_url?: string | undefined;
3615
- footer?: string | undefined;
3616
- footer_icon?: string | undefined;
3617
- ts?: number | undefined;
3618
- }[] | undefined;
4419
+ unfurl_links: boolean;
4420
+ unfurl_media: boolean;
4421
+ post_at: number;
4422
+ credentials?: Partial<Record<CredentialType, string>> | undefined;
3619
4423
  blocks?: z.objectOutputType<{
3620
4424
  type: z.ZodString;
3621
4425
  text: z.ZodOptional<z.ZodObject<{
@@ -3657,32 +4461,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3657
4461
  alt_text?: string | undefined;
3658
4462
  }>, "many">>;
3659
4463
  }, z.ZodTypeAny, "passthrough">[] | undefined;
4464
+ thread_ts?: string | undefined;
3660
4465
  }, {
3661
- ts: string;
3662
- operation: "update_message";
4466
+ text: string;
4467
+ operation: "schedule_message";
3663
4468
  channel: string;
4469
+ post_at: number;
3664
4470
  credentials?: Partial<Record<CredentialType, string>> | undefined;
3665
- text?: string | undefined;
3666
- attachments?: {
3667
- title?: string | undefined;
3668
- text?: string | undefined;
3669
- image_url?: string | undefined;
3670
- fields?: {
3671
- value: string;
3672
- title: string;
3673
- short?: boolean | undefined;
3674
- }[] | undefined;
3675
- color?: string | undefined;
3676
- pretext?: string | undefined;
3677
- author_name?: string | undefined;
3678
- author_link?: string | undefined;
3679
- author_icon?: string | undefined;
3680
- title_link?: string | undefined;
3681
- thumb_url?: string | undefined;
3682
- footer?: string | undefined;
3683
- footer_icon?: string | undefined;
3684
- ts?: number | undefined;
3685
- }[] | undefined;
3686
4471
  blocks?: z.objectInputType<{
3687
4472
  type: z.ZodString;
3688
4473
  text: z.ZodOptional<z.ZodObject<{
@@ -3724,84 +4509,9 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3724
4509
  alt_text?: string | undefined;
3725
4510
  }>, "many">>;
3726
4511
  }, z.ZodTypeAny, "passthrough">[] | undefined;
3727
- }>, z.ZodObject<{
3728
- operation: z.ZodLiteral<"delete_message">;
3729
- channel: z.ZodString;
3730
- ts: z.ZodString;
3731
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3732
- }, "strip", z.ZodTypeAny, {
3733
- ts: string;
3734
- operation: "delete_message";
3735
- channel: string;
3736
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3737
- }, {
3738
- ts: string;
3739
- operation: "delete_message";
3740
- channel: string;
3741
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3742
- }>, z.ZodObject<{
3743
- operation: z.ZodLiteral<"add_reaction">;
3744
- name: z.ZodString;
3745
- channel: z.ZodString;
3746
- timestamp: z.ZodString;
3747
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3748
- }, "strip", z.ZodTypeAny, {
3749
- name: string;
3750
- operation: "add_reaction";
3751
- channel: string;
3752
- timestamp: string;
3753
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3754
- }, {
3755
- name: string;
3756
- operation: "add_reaction";
3757
- channel: string;
3758
- timestamp: string;
3759
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3760
- }>, z.ZodObject<{
3761
- operation: z.ZodLiteral<"remove_reaction">;
3762
- name: z.ZodString;
3763
- channel: z.ZodString;
3764
- timestamp: z.ZodString;
3765
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3766
- }, "strip", z.ZodTypeAny, {
3767
- name: string;
3768
- operation: "remove_reaction";
3769
- channel: string;
3770
- timestamp: string;
3771
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3772
- }, {
3773
- name: string;
3774
- operation: "remove_reaction";
3775
- channel: string;
3776
- timestamp: string;
3777
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3778
- }>, z.ZodObject<{
3779
- operation: z.ZodLiteral<"upload_file">;
3780
- channel: z.ZodString;
3781
- file_path: z.ZodString;
3782
- filename: z.ZodOptional<z.ZodString>;
3783
- title: z.ZodOptional<z.ZodString>;
3784
- initial_comment: z.ZodOptional<z.ZodString>;
3785
- thread_ts: z.ZodOptional<z.ZodString>;
3786
- credentials: z.ZodOptional<z.ZodRecord<z.ZodNativeEnum<typeof CredentialType>, z.ZodString>>;
3787
- }, "strip", z.ZodTypeAny, {
3788
- operation: "upload_file";
3789
- channel: string;
3790
- file_path: string;
3791
- title?: string | undefined;
3792
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3793
- thread_ts?: string | undefined;
3794
- filename?: string | undefined;
3795
- initial_comment?: string | undefined;
3796
- }, {
3797
- operation: "upload_file";
3798
- channel: string;
3799
- file_path: string;
3800
- title?: string | undefined;
3801
- credentials?: Partial<Record<CredentialType, string>> | undefined;
3802
4512
  thread_ts?: string | undefined;
3803
- filename?: string | undefined;
3804
- initial_comment?: string | undefined;
4513
+ unfurl_links?: boolean | undefined;
4514
+ unfurl_media?: boolean | undefined;
3805
4515
  }>]>;
3806
4516
  static readonly resultSchema: z.ZodDiscriminatedUnion<"operation", [z.ZodObject<{
3807
4517
  operation: z.ZodLiteral<"send_message">;
@@ -3899,8 +4609,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3899
4609
  error: z.ZodString;
3900
4610
  success: z.ZodBoolean;
3901
4611
  }, "strip", z.ZodTypeAny, {
3902
- success: boolean;
3903
4612
  error: string;
4613
+ success: boolean;
3904
4614
  operation: "send_message";
3905
4615
  ok: boolean;
3906
4616
  message?: {
@@ -3932,8 +4642,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
3932
4642
  ts?: string | undefined;
3933
4643
  channel?: string | undefined;
3934
4644
  }, {
3935
- success: boolean;
3936
4645
  error: string;
4646
+ success: boolean;
3937
4647
  operation: "send_message";
3938
4648
  ok: boolean;
3939
4649
  message?: {
@@ -4093,8 +4803,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4093
4803
  error: z.ZodString;
4094
4804
  success: z.ZodBoolean;
4095
4805
  }, "strip", z.ZodTypeAny, {
4096
- success: boolean;
4097
4806
  error: string;
4807
+ success: boolean;
4098
4808
  operation: "list_channels";
4099
4809
  ok: boolean;
4100
4810
  response_metadata?: {
@@ -4135,8 +4845,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4135
4845
  num_members?: number | undefined;
4136
4846
  }[] | undefined;
4137
4847
  }, {
4138
- success: boolean;
4139
4848
  error: string;
4849
+ success: boolean;
4140
4850
  operation: "list_channels";
4141
4851
  ok: boolean;
4142
4852
  response_metadata?: {
@@ -4298,8 +5008,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4298
5008
  error: z.ZodString;
4299
5009
  success: z.ZodBoolean;
4300
5010
  }, "strip", z.ZodTypeAny, {
4301
- success: boolean;
4302
5011
  error: string;
5012
+ success: boolean;
4303
5013
  operation: "get_channel_info";
4304
5014
  ok: boolean;
4305
5015
  channel?: {
@@ -4337,8 +5047,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4337
5047
  num_members?: number | undefined;
4338
5048
  } | undefined;
4339
5049
  }, {
4340
- success: boolean;
4341
5050
  error: string;
5051
+ success: boolean;
4342
5052
  operation: "get_channel_info";
4343
5053
  ok: boolean;
4344
5054
  channel?: {
@@ -4476,13 +5186,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4476
5186
  }, "strip", z.ZodTypeAny, {
4477
5187
  name: string;
4478
5188
  id: string;
4479
- color?: string | undefined;
4480
- team_id?: string | undefined;
4481
- deleted?: boolean | undefined;
4482
- real_name?: string | undefined;
4483
- tz?: string | undefined;
4484
- tz_label?: string | undefined;
4485
- tz_offset?: number | undefined;
4486
5189
  profile?: {
4487
5190
  title?: string | undefined;
4488
5191
  email?: string | undefined;
@@ -4509,6 +5212,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4509
5212
  image_512?: string | undefined;
4510
5213
  image_1024?: string | undefined;
4511
5214
  } | undefined;
5215
+ color?: string | undefined;
5216
+ team_id?: string | undefined;
5217
+ deleted?: boolean | undefined;
5218
+ real_name?: string | undefined;
5219
+ tz?: string | undefined;
5220
+ tz_label?: string | undefined;
5221
+ tz_offset?: number | undefined;
4512
5222
  is_admin?: boolean | undefined;
4513
5223
  is_owner?: boolean | undefined;
4514
5224
  is_primary_owner?: boolean | undefined;
@@ -4521,13 +5231,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4521
5231
  }, {
4522
5232
  name: string;
4523
5233
  id: string;
4524
- color?: string | undefined;
4525
- team_id?: string | undefined;
4526
- deleted?: boolean | undefined;
4527
- real_name?: string | undefined;
4528
- tz?: string | undefined;
4529
- tz_label?: string | undefined;
4530
- tz_offset?: number | undefined;
4531
5234
  profile?: {
4532
5235
  title?: string | undefined;
4533
5236
  email?: string | undefined;
@@ -4554,6 +5257,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4554
5257
  image_512?: string | undefined;
4555
5258
  image_1024?: string | undefined;
4556
5259
  } | undefined;
5260
+ color?: string | undefined;
5261
+ team_id?: string | undefined;
5262
+ deleted?: boolean | undefined;
5263
+ real_name?: string | undefined;
5264
+ tz?: string | undefined;
5265
+ tz_label?: string | undefined;
5266
+ tz_offset?: number | undefined;
4557
5267
  is_admin?: boolean | undefined;
4558
5268
  is_owner?: boolean | undefined;
4559
5269
  is_primary_owner?: boolean | undefined;
@@ -4567,20 +5277,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4567
5277
  error: z.ZodString;
4568
5278
  success: z.ZodBoolean;
4569
5279
  }, "strip", z.ZodTypeAny, {
4570
- success: boolean;
4571
5280
  error: string;
5281
+ success: boolean;
4572
5282
  operation: "get_user_info";
4573
5283
  ok: boolean;
4574
5284
  user?: {
4575
5285
  name: string;
4576
5286
  id: string;
4577
- color?: string | undefined;
4578
- team_id?: string | undefined;
4579
- deleted?: boolean | undefined;
4580
- real_name?: string | undefined;
4581
- tz?: string | undefined;
4582
- tz_label?: string | undefined;
4583
- tz_offset?: number | undefined;
4584
5287
  profile?: {
4585
5288
  title?: string | undefined;
4586
5289
  email?: string | undefined;
@@ -4607,6 +5310,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4607
5310
  image_512?: string | undefined;
4608
5311
  image_1024?: string | undefined;
4609
5312
  } | undefined;
5313
+ color?: string | undefined;
5314
+ team_id?: string | undefined;
5315
+ deleted?: boolean | undefined;
5316
+ real_name?: string | undefined;
5317
+ tz?: string | undefined;
5318
+ tz_label?: string | undefined;
5319
+ tz_offset?: number | undefined;
4610
5320
  is_admin?: boolean | undefined;
4611
5321
  is_owner?: boolean | undefined;
4612
5322
  is_primary_owner?: boolean | undefined;
@@ -4618,20 +5328,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4618
5328
  has_2fa?: boolean | undefined;
4619
5329
  } | undefined;
4620
5330
  }, {
4621
- success: boolean;
4622
5331
  error: string;
5332
+ success: boolean;
4623
5333
  operation: "get_user_info";
4624
5334
  ok: boolean;
4625
5335
  user?: {
4626
5336
  name: string;
4627
5337
  id: string;
4628
- color?: string | undefined;
4629
- team_id?: string | undefined;
4630
- deleted?: boolean | undefined;
4631
- real_name?: string | undefined;
4632
- tz?: string | undefined;
4633
- tz_label?: string | undefined;
4634
- tz_offset?: number | undefined;
4635
5338
  profile?: {
4636
5339
  title?: string | undefined;
4637
5340
  email?: string | undefined;
@@ -4658,6 +5361,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4658
5361
  image_512?: string | undefined;
4659
5362
  image_1024?: string | undefined;
4660
5363
  } | undefined;
5364
+ color?: string | undefined;
5365
+ team_id?: string | undefined;
5366
+ deleted?: boolean | undefined;
5367
+ real_name?: string | undefined;
5368
+ tz?: string | undefined;
5369
+ tz_label?: string | undefined;
5370
+ tz_offset?: number | undefined;
4661
5371
  is_admin?: boolean | undefined;
4662
5372
  is_owner?: boolean | undefined;
4663
5373
  is_primary_owner?: boolean | undefined;
@@ -4769,13 +5479,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4769
5479
  }, "strip", z.ZodTypeAny, {
4770
5480
  name: string;
4771
5481
  id: string;
4772
- color?: string | undefined;
4773
- team_id?: string | undefined;
4774
- deleted?: boolean | undefined;
4775
- real_name?: string | undefined;
4776
- tz?: string | undefined;
4777
- tz_label?: string | undefined;
4778
- tz_offset?: number | undefined;
4779
5482
  profile?: {
4780
5483
  title?: string | undefined;
4781
5484
  email?: string | undefined;
@@ -4802,6 +5505,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4802
5505
  image_512?: string | undefined;
4803
5506
  image_1024?: string | undefined;
4804
5507
  } | undefined;
5508
+ color?: string | undefined;
5509
+ team_id?: string | undefined;
5510
+ deleted?: boolean | undefined;
5511
+ real_name?: string | undefined;
5512
+ tz?: string | undefined;
5513
+ tz_label?: string | undefined;
5514
+ tz_offset?: number | undefined;
4805
5515
  is_admin?: boolean | undefined;
4806
5516
  is_owner?: boolean | undefined;
4807
5517
  is_primary_owner?: boolean | undefined;
@@ -4814,13 +5524,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4814
5524
  }, {
4815
5525
  name: string;
4816
5526
  id: string;
4817
- color?: string | undefined;
4818
- team_id?: string | undefined;
4819
- deleted?: boolean | undefined;
4820
- real_name?: string | undefined;
4821
- tz?: string | undefined;
4822
- tz_label?: string | undefined;
4823
- tz_offset?: number | undefined;
4824
5527
  profile?: {
4825
5528
  title?: string | undefined;
4826
5529
  email?: string | undefined;
@@ -4847,6 +5550,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4847
5550
  image_512?: string | undefined;
4848
5551
  image_1024?: string | undefined;
4849
5552
  } | undefined;
5553
+ color?: string | undefined;
5554
+ team_id?: string | undefined;
5555
+ deleted?: boolean | undefined;
5556
+ real_name?: string | undefined;
5557
+ tz?: string | undefined;
5558
+ tz_label?: string | undefined;
5559
+ tz_offset?: number | undefined;
4850
5560
  is_admin?: boolean | undefined;
4851
5561
  is_owner?: boolean | undefined;
4852
5562
  is_primary_owner?: boolean | undefined;
@@ -4867,8 +5577,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4867
5577
  error: z.ZodString;
4868
5578
  success: z.ZodBoolean;
4869
5579
  }, "strip", z.ZodTypeAny, {
4870
- success: boolean;
4871
5580
  error: string;
5581
+ success: boolean;
4872
5582
  operation: "list_users";
4873
5583
  ok: boolean;
4874
5584
  response_metadata?: {
@@ -4877,13 +5587,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4877
5587
  members?: {
4878
5588
  name: string;
4879
5589
  id: string;
4880
- color?: string | undefined;
4881
- team_id?: string | undefined;
4882
- deleted?: boolean | undefined;
4883
- real_name?: string | undefined;
4884
- tz?: string | undefined;
4885
- tz_label?: string | undefined;
4886
- tz_offset?: number | undefined;
4887
5590
  profile?: {
4888
5591
  title?: string | undefined;
4889
5592
  email?: string | undefined;
@@ -4910,6 +5613,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4910
5613
  image_512?: string | undefined;
4911
5614
  image_1024?: string | undefined;
4912
5615
  } | undefined;
5616
+ color?: string | undefined;
5617
+ team_id?: string | undefined;
5618
+ deleted?: boolean | undefined;
5619
+ real_name?: string | undefined;
5620
+ tz?: string | undefined;
5621
+ tz_label?: string | undefined;
5622
+ tz_offset?: number | undefined;
4913
5623
  is_admin?: boolean | undefined;
4914
5624
  is_owner?: boolean | undefined;
4915
5625
  is_primary_owner?: boolean | undefined;
@@ -4921,8 +5631,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4921
5631
  has_2fa?: boolean | undefined;
4922
5632
  }[] | undefined;
4923
5633
  }, {
4924
- success: boolean;
4925
5634
  error: string;
5635
+ success: boolean;
4926
5636
  operation: "list_users";
4927
5637
  ok: boolean;
4928
5638
  response_metadata?: {
@@ -4931,13 +5641,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4931
5641
  members?: {
4932
5642
  name: string;
4933
5643
  id: string;
4934
- color?: string | undefined;
4935
- team_id?: string | undefined;
4936
- deleted?: boolean | undefined;
4937
- real_name?: string | undefined;
4938
- tz?: string | undefined;
4939
- tz_label?: string | undefined;
4940
- tz_offset?: number | undefined;
4941
5644
  profile?: {
4942
5645
  title?: string | undefined;
4943
5646
  email?: string | undefined;
@@ -4964,6 +5667,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
4964
5667
  image_512?: string | undefined;
4965
5668
  image_1024?: string | undefined;
4966
5669
  } | undefined;
5670
+ color?: string | undefined;
5671
+ team_id?: string | undefined;
5672
+ deleted?: boolean | undefined;
5673
+ real_name?: string | undefined;
5674
+ tz?: string | undefined;
5675
+ tz_label?: string | undefined;
5676
+ tz_offset?: number | undefined;
4967
5677
  is_admin?: boolean | undefined;
4968
5678
  is_owner?: boolean | undefined;
4969
5679
  is_primary_owner?: boolean | undefined;
@@ -5076,10 +5786,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5076
5786
  error: z.ZodString;
5077
5787
  success: z.ZodBoolean;
5078
5788
  }, "strip", z.ZodTypeAny, {
5079
- success: boolean;
5080
5789
  error: string;
5790
+ success: boolean;
5081
5791
  operation: "get_conversation_history";
5082
5792
  ok: boolean;
5793
+ response_metadata?: {
5794
+ next_cursor: string;
5795
+ } | undefined;
5083
5796
  messages?: {
5084
5797
  type: string;
5085
5798
  ts: string;
@@ -5106,15 +5819,15 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5106
5819
  count: number;
5107
5820
  }[] | undefined;
5108
5821
  }[] | undefined;
5109
- response_metadata?: {
5110
- next_cursor: string;
5111
- } | undefined;
5112
5822
  has_more?: boolean | undefined;
5113
5823
  }, {
5114
- success: boolean;
5115
5824
  error: string;
5825
+ success: boolean;
5116
5826
  operation: "get_conversation_history";
5117
5827
  ok: boolean;
5828
+ response_metadata?: {
5829
+ next_cursor: string;
5830
+ } | undefined;
5118
5831
  messages?: {
5119
5832
  type: string;
5120
5833
  ts: string;
@@ -5141,9 +5854,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5141
5854
  count: number;
5142
5855
  }[] | undefined;
5143
5856
  }[] | undefined;
5144
- response_metadata?: {
5145
- next_cursor: string;
5146
- } | undefined;
5147
5857
  has_more?: boolean | undefined;
5148
5858
  }>, z.ZodObject<{
5149
5859
  operation: z.ZodLiteral<"get_thread_replies">;
@@ -5247,10 +5957,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5247
5957
  error: z.ZodString;
5248
5958
  success: z.ZodBoolean;
5249
5959
  }, "strip", z.ZodTypeAny, {
5250
- success: boolean;
5251
5960
  error: string;
5961
+ success: boolean;
5252
5962
  operation: "get_thread_replies";
5253
5963
  ok: boolean;
5964
+ response_metadata?: {
5965
+ next_cursor: string;
5966
+ } | undefined;
5254
5967
  messages?: {
5255
5968
  type: string;
5256
5969
  ts: string;
@@ -5277,15 +5990,15 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5277
5990
  count: number;
5278
5991
  }[] | undefined;
5279
5992
  }[] | undefined;
5280
- response_metadata?: {
5281
- next_cursor: string;
5282
- } | undefined;
5283
5993
  has_more?: boolean | undefined;
5284
5994
  }, {
5285
- success: boolean;
5286
5995
  error: string;
5996
+ success: boolean;
5287
5997
  operation: "get_thread_replies";
5288
5998
  ok: boolean;
5999
+ response_metadata?: {
6000
+ next_cursor: string;
6001
+ } | undefined;
5289
6002
  messages?: {
5290
6003
  type: string;
5291
6004
  ts: string;
@@ -5312,9 +6025,6 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5312
6025
  count: number;
5313
6026
  }[] | undefined;
5314
6027
  }[] | undefined;
5315
- response_metadata?: {
5316
- next_cursor: string;
5317
- } | undefined;
5318
6028
  has_more?: boolean | undefined;
5319
6029
  }>, z.ZodObject<{
5320
6030
  operation: z.ZodLiteral<"update_message">;
@@ -5413,8 +6123,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5413
6123
  error: z.ZodString;
5414
6124
  success: z.ZodBoolean;
5415
6125
  }, "strip", z.ZodTypeAny, {
5416
- success: boolean;
5417
6126
  error: string;
6127
+ success: boolean;
5418
6128
  operation: "update_message";
5419
6129
  ok: boolean;
5420
6130
  message?: {
@@ -5447,8 +6157,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5447
6157
  ts?: string | undefined;
5448
6158
  channel?: string | undefined;
5449
6159
  }, {
5450
- success: boolean;
5451
6160
  error: string;
6161
+ success: boolean;
5452
6162
  operation: "update_message";
5453
6163
  ok: boolean;
5454
6164
  message?: {
@@ -5488,15 +6198,15 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5488
6198
  error: z.ZodString;
5489
6199
  success: z.ZodBoolean;
5490
6200
  }, "strip", z.ZodTypeAny, {
5491
- success: boolean;
5492
6201
  error: string;
6202
+ success: boolean;
5493
6203
  operation: "delete_message";
5494
6204
  ok: boolean;
5495
6205
  ts?: string | undefined;
5496
6206
  channel?: string | undefined;
5497
6207
  }, {
5498
- success: boolean;
5499
6208
  error: string;
6209
+ success: boolean;
5500
6210
  operation: "delete_message";
5501
6211
  ok: boolean;
5502
6212
  ts?: string | undefined;
@@ -5507,13 +6217,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5507
6217
  error: z.ZodString;
5508
6218
  success: z.ZodBoolean;
5509
6219
  }, "strip", z.ZodTypeAny, {
5510
- success: boolean;
5511
6220
  error: string;
6221
+ success: boolean;
5512
6222
  operation: "add_reaction";
5513
6223
  ok: boolean;
5514
6224
  }, {
5515
- success: boolean;
5516
6225
  error: string;
6226
+ success: boolean;
5517
6227
  operation: "add_reaction";
5518
6228
  ok: boolean;
5519
6229
  }>, z.ZodObject<{
@@ -5522,15 +6232,217 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5522
6232
  error: z.ZodString;
5523
6233
  success: z.ZodBoolean;
5524
6234
  }, "strip", z.ZodTypeAny, {
5525
- success: boolean;
5526
6235
  error: string;
6236
+ success: boolean;
5527
6237
  operation: "remove_reaction";
5528
6238
  ok: boolean;
5529
6239
  }, {
5530
- success: boolean;
5531
6240
  error: string;
6241
+ success: boolean;
5532
6242
  operation: "remove_reaction";
5533
6243
  ok: boolean;
6244
+ }>, z.ZodObject<{
6245
+ operation: z.ZodLiteral<"join_channel">;
6246
+ ok: z.ZodBoolean;
6247
+ channel: z.ZodOptional<z.ZodObject<{
6248
+ id: z.ZodString;
6249
+ name: z.ZodString;
6250
+ is_channel: z.ZodOptional<z.ZodBoolean>;
6251
+ is_group: z.ZodOptional<z.ZodBoolean>;
6252
+ is_im: z.ZodOptional<z.ZodBoolean>;
6253
+ is_mpim: z.ZodOptional<z.ZodBoolean>;
6254
+ is_private: z.ZodOptional<z.ZodBoolean>;
6255
+ created: z.ZodNumber;
6256
+ is_archived: z.ZodBoolean;
6257
+ is_general: z.ZodOptional<z.ZodBoolean>;
6258
+ unlinked: z.ZodOptional<z.ZodNumber>;
6259
+ name_normalized: z.ZodOptional<z.ZodString>;
6260
+ is_shared: z.ZodOptional<z.ZodBoolean>;
6261
+ is_ext_shared: z.ZodOptional<z.ZodBoolean>;
6262
+ is_org_shared: z.ZodOptional<z.ZodBoolean>;
6263
+ shared_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6264
+ pending_shared: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6265
+ pending_connected_team_ids: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6266
+ is_pending_ext_shared: z.ZodOptional<z.ZodBoolean>;
6267
+ is_member: z.ZodOptional<z.ZodBoolean>;
6268
+ is_open: z.ZodOptional<z.ZodBoolean>;
6269
+ topic: z.ZodOptional<z.ZodObject<{
6270
+ value: z.ZodString;
6271
+ creator: z.ZodString;
6272
+ last_set: z.ZodNumber;
6273
+ }, "strip", z.ZodTypeAny, {
6274
+ value: string;
6275
+ creator: string;
6276
+ last_set: number;
6277
+ }, {
6278
+ value: string;
6279
+ creator: string;
6280
+ last_set: number;
6281
+ }>>;
6282
+ purpose: z.ZodOptional<z.ZodObject<{
6283
+ value: z.ZodString;
6284
+ creator: z.ZodString;
6285
+ last_set: z.ZodNumber;
6286
+ }, "strip", z.ZodTypeAny, {
6287
+ value: string;
6288
+ creator: string;
6289
+ last_set: number;
6290
+ }, {
6291
+ value: string;
6292
+ creator: string;
6293
+ last_set: number;
6294
+ }>>;
6295
+ num_members: z.ZodOptional<z.ZodNumber>;
6296
+ }, "strip", z.ZodTypeAny, {
6297
+ name: string;
6298
+ id: string;
6299
+ created: number;
6300
+ is_archived: boolean;
6301
+ is_channel?: boolean | undefined;
6302
+ is_group?: boolean | undefined;
6303
+ is_im?: boolean | undefined;
6304
+ is_mpim?: boolean | undefined;
6305
+ is_private?: boolean | undefined;
6306
+ is_general?: boolean | undefined;
6307
+ unlinked?: number | undefined;
6308
+ name_normalized?: string | undefined;
6309
+ is_shared?: boolean | undefined;
6310
+ is_ext_shared?: boolean | undefined;
6311
+ is_org_shared?: boolean | undefined;
6312
+ shared_team_ids?: string[] | undefined;
6313
+ pending_shared?: string[] | undefined;
6314
+ pending_connected_team_ids?: string[] | undefined;
6315
+ is_pending_ext_shared?: boolean | undefined;
6316
+ is_member?: boolean | undefined;
6317
+ is_open?: boolean | undefined;
6318
+ topic?: {
6319
+ value: string;
6320
+ creator: string;
6321
+ last_set: number;
6322
+ } | undefined;
6323
+ purpose?: {
6324
+ value: string;
6325
+ creator: string;
6326
+ last_set: number;
6327
+ } | undefined;
6328
+ num_members?: number | undefined;
6329
+ }, {
6330
+ name: string;
6331
+ id: string;
6332
+ created: number;
6333
+ is_archived: boolean;
6334
+ is_channel?: boolean | undefined;
6335
+ is_group?: boolean | undefined;
6336
+ is_im?: boolean | undefined;
6337
+ is_mpim?: boolean | undefined;
6338
+ is_private?: boolean | undefined;
6339
+ is_general?: boolean | undefined;
6340
+ unlinked?: number | undefined;
6341
+ name_normalized?: string | undefined;
6342
+ is_shared?: boolean | undefined;
6343
+ is_ext_shared?: boolean | undefined;
6344
+ is_org_shared?: boolean | undefined;
6345
+ shared_team_ids?: string[] | undefined;
6346
+ pending_shared?: string[] | undefined;
6347
+ pending_connected_team_ids?: string[] | undefined;
6348
+ is_pending_ext_shared?: boolean | undefined;
6349
+ is_member?: boolean | undefined;
6350
+ is_open?: boolean | undefined;
6351
+ topic?: {
6352
+ value: string;
6353
+ creator: string;
6354
+ last_set: number;
6355
+ } | undefined;
6356
+ purpose?: {
6357
+ value: string;
6358
+ creator: string;
6359
+ last_set: number;
6360
+ } | undefined;
6361
+ num_members?: number | undefined;
6362
+ }>>;
6363
+ already_in_channel: z.ZodOptional<z.ZodBoolean>;
6364
+ error: z.ZodString;
6365
+ success: z.ZodBoolean;
6366
+ }, "strip", z.ZodTypeAny, {
6367
+ error: string;
6368
+ success: boolean;
6369
+ operation: "join_channel";
6370
+ ok: boolean;
6371
+ channel?: {
6372
+ name: string;
6373
+ id: string;
6374
+ created: number;
6375
+ is_archived: boolean;
6376
+ is_channel?: boolean | undefined;
6377
+ is_group?: boolean | undefined;
6378
+ is_im?: boolean | undefined;
6379
+ is_mpim?: boolean | undefined;
6380
+ is_private?: boolean | undefined;
6381
+ is_general?: boolean | undefined;
6382
+ unlinked?: number | undefined;
6383
+ name_normalized?: string | undefined;
6384
+ is_shared?: boolean | undefined;
6385
+ is_ext_shared?: boolean | undefined;
6386
+ is_org_shared?: boolean | undefined;
6387
+ shared_team_ids?: string[] | undefined;
6388
+ pending_shared?: string[] | undefined;
6389
+ pending_connected_team_ids?: string[] | undefined;
6390
+ is_pending_ext_shared?: boolean | undefined;
6391
+ is_member?: boolean | undefined;
6392
+ is_open?: boolean | undefined;
6393
+ topic?: {
6394
+ value: string;
6395
+ creator: string;
6396
+ last_set: number;
6397
+ } | undefined;
6398
+ purpose?: {
6399
+ value: string;
6400
+ creator: string;
6401
+ last_set: number;
6402
+ } | undefined;
6403
+ num_members?: number | undefined;
6404
+ } | undefined;
6405
+ already_in_channel?: boolean | undefined;
6406
+ }, {
6407
+ error: string;
6408
+ success: boolean;
6409
+ operation: "join_channel";
6410
+ ok: boolean;
6411
+ channel?: {
6412
+ name: string;
6413
+ id: string;
6414
+ created: number;
6415
+ is_archived: boolean;
6416
+ is_channel?: boolean | undefined;
6417
+ is_group?: boolean | undefined;
6418
+ is_im?: boolean | undefined;
6419
+ is_mpim?: boolean | undefined;
6420
+ is_private?: boolean | undefined;
6421
+ is_general?: boolean | undefined;
6422
+ unlinked?: number | undefined;
6423
+ name_normalized?: string | undefined;
6424
+ is_shared?: boolean | undefined;
6425
+ is_ext_shared?: boolean | undefined;
6426
+ is_org_shared?: boolean | undefined;
6427
+ shared_team_ids?: string[] | undefined;
6428
+ pending_shared?: string[] | undefined;
6429
+ pending_connected_team_ids?: string[] | undefined;
6430
+ is_pending_ext_shared?: boolean | undefined;
6431
+ is_member?: boolean | undefined;
6432
+ is_open?: boolean | undefined;
6433
+ topic?: {
6434
+ value: string;
6435
+ creator: string;
6436
+ last_set: number;
6437
+ } | undefined;
6438
+ purpose?: {
6439
+ value: string;
6440
+ creator: string;
6441
+ last_set: number;
6442
+ } | undefined;
6443
+ num_members?: number | undefined;
6444
+ } | undefined;
6445
+ already_in_channel?: boolean | undefined;
5534
6446
  }>, z.ZodObject<{
5535
6447
  operation: z.ZodLiteral<"upload_file">;
5536
6448
  ok: z.ZodBoolean;
@@ -5643,8 +6555,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5643
6555
  has_rich_preview: z.ZodOptional<z.ZodBoolean>;
5644
6556
  }, "strip", z.ZodTypeAny, {
5645
6557
  name: string;
5646
- user: string;
5647
6558
  id: string;
6559
+ user: string;
5648
6560
  username: string;
5649
6561
  timestamp: number;
5650
6562
  created: number;
@@ -5688,8 +6600,8 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5688
6600
  has_rich_preview?: boolean | undefined;
5689
6601
  }, {
5690
6602
  name: string;
5691
- user: string;
5692
6603
  id: string;
6604
+ user: string;
5693
6605
  username: string;
5694
6606
  timestamp: number;
5695
6607
  created: number;
@@ -5735,14 +6647,14 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5735
6647
  error: z.ZodString;
5736
6648
  success: z.ZodBoolean;
5737
6649
  }, "strip", z.ZodTypeAny, {
5738
- success: boolean;
5739
6650
  error: string;
6651
+ success: boolean;
5740
6652
  operation: "upload_file";
5741
6653
  ok: boolean;
5742
6654
  file?: {
5743
6655
  name: string;
5744
- user: string;
5745
6656
  id: string;
6657
+ user: string;
5746
6658
  username: string;
5747
6659
  timestamp: number;
5748
6660
  created: number;
@@ -5786,14 +6698,14 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5786
6698
  has_rich_preview?: boolean | undefined;
5787
6699
  } | undefined;
5788
6700
  }, {
5789
- success: boolean;
5790
6701
  error: string;
6702
+ success: boolean;
5791
6703
  operation: "upload_file";
5792
6704
  ok: boolean;
5793
6705
  file?: {
5794
6706
  name: string;
5795
- user: string;
5796
6707
  id: string;
6708
+ user: string;
5797
6709
  username: string;
5798
6710
  timestamp: number;
5799
6711
  created: number;
@@ -5836,11 +6748,35 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5836
6748
  ims?: string[] | undefined;
5837
6749
  has_rich_preview?: boolean | undefined;
5838
6750
  } | undefined;
6751
+ }>, z.ZodObject<{
6752
+ operation: z.ZodLiteral<"schedule_message">;
6753
+ ok: z.ZodBoolean;
6754
+ channel: z.ZodOptional<z.ZodString>;
6755
+ scheduled_message_id: z.ZodOptional<z.ZodString>;
6756
+ post_at: z.ZodOptional<z.ZodNumber>;
6757
+ error: z.ZodString;
6758
+ success: z.ZodBoolean;
6759
+ }, "strip", z.ZodTypeAny, {
6760
+ error: string;
6761
+ success: boolean;
6762
+ operation: "schedule_message";
6763
+ ok: boolean;
6764
+ channel?: string | undefined;
6765
+ post_at?: number | undefined;
6766
+ scheduled_message_id?: string | undefined;
6767
+ }, {
6768
+ error: string;
6769
+ success: boolean;
6770
+ operation: "schedule_message";
6771
+ ok: boolean;
6772
+ channel?: string | undefined;
6773
+ post_at?: number | undefined;
6774
+ scheduled_message_id?: string | undefined;
5839
6775
  }>]>;
5840
6776
  static readonly shortDescription = "Slack integration for messaging and workspace management";
5841
- static readonly longDescription = "\n Comprehensive Slack integration bubble for managing messages, channels, and users.\n Use cases:\n - Send messages to channels or direct messages\n - Retrieve channel information and list channels\n - Get user information and list workspace members\n - Manage conversation history and message operations\n - Add/remove reactions and manage message interactions\n \n Security Features:\n - Token-based authentication\n - Parameter validation and sanitization\n - Rate limiting awareness\n - Comprehensive error handling\n ";
6777
+ static readonly longDescription = "\nComprehensive Slack integration for messaging and workspace management.\nSupports both Bot tokens (xoxb-) and User tokens (xoxp-).\n\n## Token Types: Bot vs User\n\n| Aspect | Bot Token (xoxb-) | User Token (xoxp-) |\n|--------|-------------------|-------------------|\n| Identity | Acts as the bot | Acts as the authorizing user |\n| Channel access | Only channels bot is added to | All channels user can access |\n| Message deletion | Can only delete bot's own messages | Can delete any message user has permission for |\n| Message posting | Messages appear from the bot | Messages appear from the user |\n| Scope location | \"Bot Token Scopes\" section | \"User Token Scopes\" section |\n\nChoose **Bot token** for: Automations, notifications, bots that act independently\nChoose **User token** for: Acting on behalf of a user, accessing user's private channels\n\n## Required OAuth Scopes by Operation\n\nConfigure in your Slack App: OAuth & Permissions page\nOfficial docs: https://docs.slack.dev/reference/scopes/\n\n### Messaging Operations\n| Operation | Bot Token Scope | User Token Scope |\n|------------------|-----------------|------------------|\n| send_message | chat:write (+ chat:write.public for any public channel) | chat:write |\n| send_message (to user DM) | chat:write + im:write | chat:write + im:write |\n| schedule_message | chat:write | chat:write |\n| update_message | chat:write | chat:write |\n| delete_message | chat:write (own messages only) | chat:write (any deletable) |\n\n**Note on DMs**: When you pass a user ID (e.g., U12345678) as the channel, SlackBubble automatically opens a DM conversation with that user. This requires the `im:write` scope in addition to `chat:write`.\n\n### Channel & Conversation Operations\n| Operation | Bot Token Scope | User Token Scope |\n|--------------------------|-----------------|------------------|\n| list_channels | channels:read, groups:read | channels:read, groups:read |\n| get_channel_info | channels:read OR groups:read | channels:read OR groups:read |\n| join_channel | channels:join | channels:write |\n| get_conversation_history | channels:history, groups:history | channels:history, groups:history |\n| get_thread_replies | channels:history, groups:history | channels:history, groups:history |\n\n### User Operations\n| Operation | Bot Token Scope | User Token Scope |\n|---------------|-----------------|------------------|\n| list_users | users:read | users:read |\n| get_user_info | users:read | users:read |\n| (email field) | + users:read.email | + users:read.email |\n\n### Reaction & File Operations\n| Operation | Bot Token Scope | User Token Scope |\n|-----------------|-----------------|------------------|\n| add_reaction | reactions:write | reactions:write |\n| remove_reaction | reactions:write | reactions:write |\n| upload_file | files:write | files:write |\n\n### Direct Message (DM) Scopes\nFor operations on DMs and group DMs, add these additional scopes:\n| Scope | Purpose |\n|-------|---------|\n| im:read | Access direct message channel info |\n| im:write | Start direct message conversations |\n| im:history | Read direct message history |\n| mpim:read | Access group DM channel info |\n| mpim:write | Start group DM conversations |\n| mpim:history | Read group DM history |\n\n## Quick Setup Guide\n\n### For Bot Tokens (xoxb-)\n1. Go to https://api.slack.com/apps \u2192 select your app\n2. Navigate to \"OAuth & Permissions\"\n3. Scroll to \"Bot Token Scopes\" section \u2192 add required scopes\n4. Click \"Install to Workspace\" (or \"Reinstall\" if updating)\n5. Copy \"Bot User OAuth Token\" (starts with xoxb-)\n\n### For User Tokens (xoxp-)\n1. Go to https://api.slack.com/apps \u2192 select your app\n2. Navigate to \"OAuth & Permissions\"\n3. Scroll to \"User Token Scopes\" section \u2192 add required scopes\n4. Click \"Install to Workspace\" (or \"Reinstall\" if updating)\n5. Copy \"User OAuth Token\" (starts with xoxp-)\n\n## Minimum Recommended Scopes\nFor Bot Token: chat:write, channels:read, groups:read, users:read, channels:history\nFor User Token: chat:write, channels:read, groups:read, users:read, channels:history, channels:write\n\n## Setting Up Slack Triggers (Event Subscriptions)\n\nTo trigger BubbleFlow workflows from Slack events (like @mentions), you need to configure Event Subscriptions.\nOfficial docs: https://docs.slack.dev/apis/events-api/\n\n### Supported Trigger Events\n| Trigger Type | Slack Event | Required Scope |\n|--------------|-------------|----------------|\n| slack/bot_mentioned | app_mention | app_mentions:read |\n\n### Step-by-Step Event Subscriptions Setup\n\n**Step 1: Get your webhook URL from Bubble Lab**\n- In Bubble Lab, create a flow with a Slack trigger (e.g., slack/bot_mentioned)\n- Copy the webhook URL provided (format: https://api.bubblelab.ai/webhook/{userId}/{path})\n\n**Step 2: Enable Event Subscriptions in Slack**\n1. Go to https://api.slack.com/apps \u2192 select your app\n2. Click \"Event Subscriptions\" in the left sidebar\n3. Toggle \"Enable Events\" to ON\n\n**Step 3: Configure Request URL**\n1. Paste your Bubble Lab webhook URL in the \"Request URL\" field\n2. Slack will send a verification challenge to your URL\n3. Wait for the green \"Verified\" checkmark (Bubble Lab handles verification automatically)\n4. If verification fails, click \"Retry\" (your server may need a moment to respond)\n\n**Step 4: Subscribe to Bot Events**\n1. Scroll down to \"Subscribe to bot events\"\n2. Click \"Add Bot User Event\"\n3. Add the events you need:\n - For @mentions: add \"app_mention\"\n4. Click \"Save Changes\"\n\n**Step 5: Add Required OAuth Scopes**\n1. Go to \"OAuth & Permissions\" in the sidebar\n2. Under \"Bot Token Scopes\", add:\n - app_mentions:read (for app_mention events)\n3. Click \"Save\"\n\n**Step 6: Reinstall Your App**\n1. Go to \"Install App\" in the sidebar\n2. Click \"Reinstall to Workspace\"\n3. Authorize the new permissions\n\n### Troubleshooting Event Subscriptions\n- **Verification failed**: Ensure your webhook URL is correct and accessible\n- **Not receiving events**: Check that you added the correct scopes AND reinstalled the app\n- **Bot not responding**: Make sure the bot is invited to the channel where it's mentioned\n ";
5842
6778
  static readonly alias = "slack";
5843
- constructor(params?: T, context?: BubbleContext);
6779
+ constructor(params?: T, context?: BubbleContext, instanceId?: string);
5844
6780
  protected performAction(context?: BubbleContext): Promise<Extract<SlackResult, {
5845
6781
  operation: T['operation'];
5846
6782
  }>>;
@@ -5862,6 +6798,13 @@ export declare class SlackBubble<T extends SlackParams = SlackParams> extends Se
5862
6798
  private addReaction;
5863
6799
  private removeReaction;
5864
6800
  private uploadFile;
6801
+ private joinChannel;
6802
+ private scheduleMessage;
6803
+ /**
6804
+ * Opens a DM conversation with a user and returns the DM channel ID.
6805
+ * Required scope: im:write (for bot tokens) or im:write (for user tokens)
6806
+ */
6807
+ private openDmConversation;
5865
6808
  protected chooseCredential(): string | undefined;
5866
6809
  private makeSlackApiCall;
5867
6810
  }