@vendasta/conversation 0.117.0 → 0.119.0

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,3 +1,9 @@
1
+ export declare enum AIMode {
2
+ AI_MODE_UNSET = 0,
3
+ AI_MODE_FAST = 1,
4
+ AI_MODE_THINKING = 2,
5
+ AI_MODE_DEEP_RESEARCH = 3
6
+ }
1
7
  export declare enum GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType {
2
8
  ENTITY_TYPE_UNDEFINED = 0,
3
9
  ENTITY_TYPE_PARTNER = 1,
@@ -7,4 +7,4 @@ export { WidgetPosition, } from './widget.enum';
7
7
  export { EvaluationSentiment, } from './evaluation.enum';
8
8
  export { EventType, } from './event.enum';
9
9
  export { ExportStatus, } from './conversation-export.enum';
10
- export { GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, EvaluateResponseType, GetWidgetConfigResponseGreetingMessageType, MetadataIdentifier, SetLastSeenRequestStatus, Status, } from './api.enum';
10
+ export { AIMode, GetMessageTemplateRequestHydrationOptionsHydrationEntityEntityType, EvaluateResponseType, GetWidgetConfigResponseGreetingMessageType, MetadataIdentifier, SetLastSeenRequestStatus, Status, } from './api.enum';
@@ -0,0 +1,5 @@
1
+ export interface AIThoughtInterface {
2
+ sequenceNumber?: number;
3
+ thoughtType?: string;
4
+ content?: string;
5
+ }
@@ -517,6 +517,7 @@ export interface SearchConversationsResponseInterface {
517
517
  export interface SendMessageOptionsInterface {
518
518
  runSync?: boolean;
519
519
  skipMessageDelivery?: boolean;
520
+ aiMode?: e.AIMode;
520
521
  }
521
522
  export interface SendMessageRequestInterface {
522
523
  sender?: ParticipantInterface;
@@ -2,6 +2,7 @@ export { AISystemMessageInterface, GetAISystemMessageRequestInterface, GetAISyst
2
2
  export { KeyValuePairInterface, NamespaceDetailInterface, SubjectParticipantInterface, } from './common.interface';
3
3
  export { AIConfigurationInterface, ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, LatestMessageSentTimeBySubjectParticipantInterface, SubjectParticipantKeyInterface, } from './conversation.interface';
4
4
  export { UIButtonInterface, } from './ui-components.interface';
5
+ export { AIThoughtInterface, } from './ai-thought.interface';
5
6
  export { MessageInterface, ParticipantMessageStatusInterface, SendStatusInterface, UIComponentInterface, } from './message.interface';
6
7
  export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from './participant.interface';
7
8
  export { AccessInterface, MCPOptionsInterface, } from './annotations.interface';
@@ -1,3 +1,4 @@
1
+ import { AIThoughtInterface } from './ai-thought.interface';
1
2
  import { KeyValuePairInterface } from './common.interface';
2
3
  import { UIButtonInterface } from './ui-components.interface';
3
4
  import * as e from '../enums';
@@ -18,6 +19,8 @@ export interface MessageInterface {
18
19
  metadata?: KeyValuePairInterface[];
19
20
  originalContent?: string;
20
21
  uiComponents?: UIComponentInterface[];
22
+ aiThoughts?: AIThoughtInterface[];
23
+ aiThinkingDuration?: string;
21
24
  }
22
25
  export interface ParticipantMessageStatusInterface {
23
26
  participantId?: string;
@@ -0,0 +1,10 @@
1
+ import * as i from '../interfaces';
2
+ export declare function enumStringToValue<E>(enumRef: any, value: string): E;
3
+ export declare class AIThought implements i.AIThoughtInterface {
4
+ sequenceNumber: number;
5
+ thoughtType: string;
6
+ content: string;
7
+ static fromProto(proto: any): AIThought;
8
+ constructor(kwargs?: i.AIThoughtInterface);
9
+ toApiJson(): object;
10
+ }
@@ -840,6 +840,7 @@ export declare class SearchConversationsResponse implements i.SearchConversation
840
840
  export declare class SendMessageOptions implements i.SendMessageOptionsInterface {
841
841
  runSync: boolean;
842
842
  skipMessageDelivery: boolean;
843
+ aiMode: e.AIMode;
843
844
  static fromProto(proto: any): SendMessageOptions;
844
845
  constructor(kwargs?: i.SendMessageOptionsInterface);
845
846
  toApiJson(): object;
@@ -2,6 +2,7 @@ export { AISystemMessage, GetAISystemMessageRequest, GetAISystemMessageResponse,
2
2
  export { KeyValuePair, NamespaceDetail, SubjectParticipant, } from './common';
3
3
  export { AIConfiguration, Conversation, ConversationKey, LastSeenByParticipant, LatestMessageSentTimeBySubjectParticipant, SubjectParticipantKey, } from './conversation';
4
4
  export { UIButton, } from './ui-components';
5
+ export { AIThought, } from './ai-thought';
5
6
  export { Message, ParticipantMessageStatus, SendStatus, UIComponent, } from './message';
6
7
  export { Address, Participant, ParticipantKey, } from './participant';
7
8
  export { Access, MCPOptions, } from './annotations';
@@ -1,4 +1,5 @@
1
1
  import * as i from '../interfaces';
2
+ import { AIThought } from './ai-thought';
2
3
  import { KeyValuePair } from './common';
3
4
  import { UIButton } from './ui-components';
4
5
  import * as e from '../enums';
@@ -20,6 +21,8 @@ export declare class Message implements i.MessageInterface {
20
21
  metadata: KeyValuePair[];
21
22
  originalContent: string;
22
23
  uiComponents: UIComponent[];
24
+ aiThoughts: AIThought[];
25
+ aiThinkingDuration: string;
23
26
  static fromProto(proto: any): Message;
24
27
  constructor(kwargs?: i.MessageInterface);
25
28
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.117.0",
3
+ "version": "0.119.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"