@blinkdotnew/sdk 2.0.2 → 2.0.3

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.
package/dist/index.d.mts CHANGED
@@ -836,7 +836,7 @@ declare class HttpClient {
836
836
  signal?: AbortSignal;
837
837
  }): Promise<BlinkResponse<any>>;
838
838
  /**
839
- * Stream AI text generation with Vercel AI SDK data stream format
839
+ * Stream AI text generation - uses Vercel AI SDK's pipeUIMessageStreamToResponse (Data Stream Protocol)
840
840
  */
841
841
  streamAiText(prompt: string, options: {
842
842
  model?: string | undefined;
@@ -860,7 +860,7 @@ declare class HttpClient {
860
860
  signal?: AbortSignal;
861
861
  }): Promise<BlinkResponse<any>>;
862
862
  /**
863
- * Stream AI object generation with Vercel AI SDK data stream format
863
+ * Stream AI object generation - uses Vercel AI SDK's pipeTextStreamToResponse
864
864
  */
865
865
  streamAiObject(prompt: string, options: {
866
866
  model?: string | undefined;
@@ -941,10 +941,10 @@ declare class HttpClient {
941
941
  private parseResponse;
942
942
  private handleErrorResponse;
943
943
  /**
944
- * Parse Vercel AI SDK data stream format
945
- * Handles text chunks (0:"text"), partial objects (2:[...]), and metadata (d:, e:)
944
+ * Parse Vercel AI SDK v5 Data Stream Protocol (Server-Sent Events)
945
+ * Supports all event types from the UI Message Stream protocol
946
946
  */
947
- private parseDataStream;
947
+ private parseDataStreamProtocol;
948
948
  }
949
949
 
950
950
  /**
package/dist/index.d.ts CHANGED
@@ -836,7 +836,7 @@ declare class HttpClient {
836
836
  signal?: AbortSignal;
837
837
  }): Promise<BlinkResponse<any>>;
838
838
  /**
839
- * Stream AI text generation with Vercel AI SDK data stream format
839
+ * Stream AI text generation - uses Vercel AI SDK's pipeUIMessageStreamToResponse (Data Stream Protocol)
840
840
  */
841
841
  streamAiText(prompt: string, options: {
842
842
  model?: string | undefined;
@@ -860,7 +860,7 @@ declare class HttpClient {
860
860
  signal?: AbortSignal;
861
861
  }): Promise<BlinkResponse<any>>;
862
862
  /**
863
- * Stream AI object generation with Vercel AI SDK data stream format
863
+ * Stream AI object generation - uses Vercel AI SDK's pipeTextStreamToResponse
864
864
  */
865
865
  streamAiObject(prompt: string, options: {
866
866
  model?: string | undefined;
@@ -941,10 +941,10 @@ declare class HttpClient {
941
941
  private parseResponse;
942
942
  private handleErrorResponse;
943
943
  /**
944
- * Parse Vercel AI SDK data stream format
945
- * Handles text chunks (0:"text"), partial objects (2:[...]), and metadata (d:, e:)
944
+ * Parse Vercel AI SDK v5 Data Stream Protocol (Server-Sent Events)
945
+ * Supports all event types from the UI Message Stream protocol
946
946
  */
947
- private parseDataStream;
947
+ private parseDataStreamProtocol;
948
948
  }
949
949
 
950
950
  /**