@vendasta/conversation 0.117.0 → 0.118.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.
- package/esm2022/lib/_internal/interfaces/ai-thought.interface.mjs +8 -0
- package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/message.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/ai-thought.mjs +36 -0
- package/esm2022/lib/_internal/objects/index.mjs +2 -1
- package/esm2022/lib/_internal/objects/message.mjs +13 -1
- package/fesm2022/vendasta-conversation.mjs +57 -10
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/ai-thought.interface.d.ts +5 -0
- package/lib/_internal/interfaces/index.d.ts +1 -0
- package/lib/_internal/interfaces/message.interface.d.ts +3 -0
- package/lib/_internal/objects/ai-thought.d.ts +10 -0
- package/lib/_internal/objects/index.d.ts +1 -0
- package/lib/_internal/objects/message.d.ts +3 -0
- package/package.json +1 -1
|
@@ -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
|
+
}
|
|
@@ -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;
|