From 8b081613a50821b8dfa8a1251d42337a20607411 Mon Sep 17 00:00:00 2001 From: Young-Jin Park Date: Wed, 24 Jul 2024 16:16:48 -0400 Subject: [PATCH] feat: add back compat alias for InputJsonDelta --- src/resources/index.ts | 1 + src/resources/messages.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/resources/index.ts b/src/resources/index.ts index 9b59bcbe..0c36e4b3 100644 --- a/src/resources/index.ts +++ b/src/resources/index.ts @@ -13,6 +13,7 @@ export { ContentBlockStartEvent, ContentBlockStopEvent, ImageBlockParam, + InputJsonDelta, InputJSONDelta, Message, MessageDeltaEvent, diff --git a/src/resources/messages.ts b/src/resources/messages.ts index 681c829c..e45f5b78 100644 --- a/src/resources/messages.ts +++ b/src/resources/messages.ts @@ -72,6 +72,8 @@ export namespace ImageBlockParam { } } +export type InputJsonDelta = InputJSONDelta; + export interface InputJSONDelta { partial_json: string; @@ -722,6 +724,7 @@ export namespace Messages { export import ContentBlockStartEvent = MessagesAPI.ContentBlockStartEvent; export import ContentBlockStopEvent = MessagesAPI.ContentBlockStopEvent; export import ImageBlockParam = MessagesAPI.ImageBlockParam; + export import InputJJsonDelta = MessagesAPI.InputJsonDelta; export import InputJSONDelta = MessagesAPI.InputJSONDelta; export import Message = MessagesAPI.Message; export import MessageDeltaEvent = MessagesAPI.MessageDeltaEvent;