@hachther/akilio-widget 0.5.0 → 0.6.1

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.
@@ -1,4 +1,4 @@
1
- import type { AkilioAuthConfig, AkilioChatRequest, AkilioChatResponse, AkilioCommerceEvent, AkilioConversationResponse, AkilioFeedbackRating, AkilioProjectConfig } from '../types';
1
+ import type { AkilioAuthConfig, AkilioChatRequest, AkilioChatResponse, AkilioChatStreamHandlers, AkilioCommerceEvent, AkilioConversationResponse, AkilioFeedbackRating, AkilioProjectConfig } from '../types';
2
2
  export interface AkilioClientOptions {
3
3
  apiBaseUrl: string;
4
4
  auth?: AkilioAuthConfig;
@@ -22,9 +22,11 @@ export declare class AkilioClient {
22
22
  private execute;
23
23
  private publicRequest;
24
24
  private authenticatedRequest;
25
+ private authenticatedResponse;
25
26
  getProjectConfig(projectKey: string): Promise<AkilioProjectConfig>;
26
27
  prepareWidgetToken(projectKey: string, subject?: string): Promise<void>;
27
28
  sendMessage(projectKey: string, subject: string | undefined, request: AkilioChatRequest): Promise<AkilioChatResponse>;
29
+ sendMessageStream(projectKey: string, subject: string | undefined, request: AkilioChatRequest, handlers?: AkilioChatStreamHandlers, signal?: AbortSignal): Promise<AkilioChatResponse>;
28
30
  getConversation(projectKey: string, subject: string | undefined, conversationId: string): Promise<AkilioConversationResponse>;
29
31
  deleteConversation(projectKey: string, subject: string | undefined, conversationId: string): Promise<void>;
30
32
  sendCommerceEvent(projectKey: string, subject: string | undefined, event: AkilioCommerceEvent): Promise<void>;
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  export interface AkilioMarkProps {
3
3
  className?: string;
4
4
  primaryColor?: string;
5
+ style?: React.CSSProperties;
5
6
  }
6
- declare function AkilioMark({ className, primaryColor }: AkilioMarkProps): React.JSX.Element;
7
+ declare function AkilioMark({ className, primaryColor, style }: AkilioMarkProps): React.JSX.Element;
7
8
  export default AkilioMark;