@paymanai/payman-ask-sdk 1.2.18 → 1.2.20

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
@@ -49,6 +49,8 @@ type MessageDisplay = {
49
49
  activeThinkingText?: string;
50
50
  /** All thinking accumulated across blocks (for post-stream display) */
51
51
  allThinkingText?: string;
52
+ /** True while RAG image URLs are being resolved after the final response is shown */
53
+ isResolvingImages?: boolean;
52
54
  };
53
55
  type SessionParams = {
54
56
  id?: string;
@@ -64,6 +66,8 @@ type APIConfig = {
64
66
  headers?: Record<string, string>;
65
67
  /** API endpoint for streaming (default: /api/workflows/ask/stream) */
66
68
  streamEndpoint?: string;
69
+ /** API endpoint for resolving RAG image URLs (default: /api/playground/ask/resolve-image-urls) */
70
+ resolveImagesEndpoint?: string;
67
71
  };
68
72
  type ChatConfig = {
69
73
  /** API configuration - required for the library to make calls */
@@ -416,6 +420,8 @@ type OtpInputProps = {
416
420
  maxLength: number;
417
421
  /** Disabled state */
418
422
  disabled?: boolean;
423
+ /** Transient error state — triggers red borders + shake */
424
+ error?: boolean;
419
425
  };
420
426
  type UserActionModalProps = {
421
427
  /** Whether the modal is open */
package/dist/index.d.ts CHANGED
@@ -49,6 +49,8 @@ type MessageDisplay = {
49
49
  activeThinkingText?: string;
50
50
  /** All thinking accumulated across blocks (for post-stream display) */
51
51
  allThinkingText?: string;
52
+ /** True while RAG image URLs are being resolved after the final response is shown */
53
+ isResolvingImages?: boolean;
52
54
  };
53
55
  type SessionParams = {
54
56
  id?: string;
@@ -64,6 +66,8 @@ type APIConfig = {
64
66
  headers?: Record<string, string>;
65
67
  /** API endpoint for streaming (default: /api/workflows/ask/stream) */
66
68
  streamEndpoint?: string;
69
+ /** API endpoint for resolving RAG image URLs (default: /api/playground/ask/resolve-image-urls) */
70
+ resolveImagesEndpoint?: string;
67
71
  };
68
72
  type ChatConfig = {
69
73
  /** API configuration - required for the library to make calls */
@@ -416,6 +420,8 @@ type OtpInputProps = {
416
420
  maxLength: number;
417
421
  /** Disabled state */
418
422
  disabled?: boolean;
423
+ /** Transient error state — triggers red borders + shake */
424
+ error?: boolean;
419
425
  };
420
426
  type UserActionModalProps = {
421
427
  /** Whether the modal is open */