@butlerbot/sdk 0.0.10-alpha.0 → 0.0.10-alpha.2

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.
@@ -198,6 +198,14 @@ export type BaseResponseMetadata = {
198
198
  /** The participant who generated this response */
199
199
  participantId?: string;
200
200
  };
201
+ /** A user message event */
202
+ export type UserMessageEvent = {
203
+ type: "user_message";
204
+ payload: MessagePayload;
205
+ metadata: BaseResponseMetadata & {
206
+ userId: string;
207
+ };
208
+ };
201
209
  export type MessageEvent = {
202
210
  type: "message";
203
211
  payload: MessagePayload;
@@ -1,4 +1,4 @@
1
- import { ConvoStatusEvent, FileEvent, MessageEvent, ModelMessageCost, ReasoningEvent, ResponseMetadata, ResponseStatusEvent, TokenUsage, ToolEvent } from "../../conversation/v3/conversation_v3";
1
+ import { ConvoStatusEvent, FileEvent, MessageEvent, ModelMessageCost, ReasoningEvent, ResponseMetadata, ResponseStatusEvent, TokenUsage, ToolEvent, UserMessageEvent } from "../../conversation/v3/conversation_v3";
2
2
  import { ErrorCode } from "../../error";
3
3
  export type AIChatResultFailV4 = {
4
4
  success: false;
@@ -13,6 +13,7 @@ export type AIChatResultV4 = AIChatResultFailV4 | AIChatResultSuccessV4;
13
13
  export type TokenUsageV4 = TokenUsage;
14
14
  export type ModelMessageCostV4 = ModelMessageCost;
15
15
  export type ResponseStatusMetadataV4 = ResponseMetadata;
16
+ export type UserMessageResponseV4 = UserMessageEvent;
16
17
  export type AIMessageResponseV4 = MessageEvent;
17
18
  export type AIReasoningResponseV4 = ReasoningEvent;
18
19
  export type AIFileResponseV4 = FileEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@butlerbot/sdk",
3
- "version": "0.0.10-alpha.0",
3
+ "version": "0.0.10-alpha.2",
4
4
  "description": "The official ButlerBot SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",