@slack/bolt
Advanced tools
Comparing version 4.1.0 to 4.1.1
import type { AssistantThreadsSetStatusResponse, AssistantThreadsSetSuggestedPromptsResponse, AssistantThreadsSetTitleResponse } from '@slack/web-api'; | ||
import { type AssistantThreadContext, type AssistantThreadContextStore, type GetThreadContextFn, type SaveThreadContextFn } from './AssistantThreadContextStore'; | ||
import { type AssistantThreadContext, type AssistantThreadContextStore } from './AssistantThreadContextStore'; | ||
import type { AllMiddlewareArgs, AnyMiddlewareArgs, Middleware, SayFn, SlackEventMiddlewareArgs } from './types'; | ||
@@ -17,4 +17,4 @@ /** | ||
interface AssistantUtilityArgs { | ||
getThreadContext: GetThreadContextFn; | ||
saveThreadContext: SaveThreadContextFn; | ||
getThreadContext: GetThreadContextUtilFn; | ||
saveThreadContext: SaveThreadContextUtilFn; | ||
say: SayFn; | ||
@@ -25,2 +25,4 @@ setStatus: SetStatusFn; | ||
} | ||
type GetThreadContextUtilFn = () => Promise<AssistantThreadContext>; | ||
type SaveThreadContextUtilFn = () => Promise<void>; | ||
type SetStatusFn = (status: string) => Promise<AssistantThreadsSetStatusResponse>; | ||
@@ -27,0 +29,0 @@ type SetSuggestedPromptsFn = (params: SetSuggestedPromptsArguments) => Promise<AssistantThreadsSetSuggestedPromptsResponse>; |
@@ -195,3 +195,3 @@ "use strict"; | ||
return async (message) => { | ||
const threadContext = context.channel_id ? context : await args.getThreadContext(args); | ||
const threadContext = context.channel_id ? context : await args.getThreadContext(); | ||
const postMessageArgument = typeof message === 'string' ? { text: message, channel, thread_ts } : { ...message, channel, thread_ts }; | ||
@@ -198,0 +198,0 @@ if (threadContext) { |
{ | ||
"name": "@slack/bolt", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "A framework for building Slack apps, fast.", | ||
@@ -61,3 +61,3 @@ "author": "Slack Technologies, LLC", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "22.8.1", | ||
"@types/node": "22.9.3", | ||
"@types/sinon": "^7.0.11", | ||
@@ -64,0 +64,0 @@ "@types/tsscmp": "^1.0.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
515404
6899