@vendasta/conversation 0.98.0 → 0.99.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/api.interface.mjs +1 -1
- package/esm2022/lib/_internal/interfaces/conversation.interface.mjs +1 -1
- package/esm2022/lib/_internal/objects/api.mjs +9 -2
- package/esm2022/lib/_internal/objects/conversation.mjs +9 -2
- package/fesm2022/vendasta-conversation.mjs +14 -0
- package/fesm2022/vendasta-conversation.mjs.map +1 -1
- package/lib/_internal/interfaces/api.interface.d.ts +2 -1
- package/lib/_internal/interfaces/conversation.interface.d.ts +2 -1
- package/lib/_internal/objects/api.d.ts +2 -1
- package/lib/_internal/objects/conversation.d.ts +2 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ import { MessageInterface } from './message.interface';
|
|
|
7
7
|
import { MessageTemplateInterface } from './message-template.interface';
|
|
8
8
|
import { ParticipantInterface, ParticipantKeyInterface } from './participant.interface';
|
|
9
9
|
import { ResponseEvaluationInterface } from './evaluation.interface';
|
|
10
|
-
import { SubjectParticipantInterface, NamespaceDetailInterface } from './common.interface';
|
|
10
|
+
import { SubjectParticipantInterface, KeyValuePairInterface, NamespaceDetailInterface } from './common.interface';
|
|
11
11
|
import { ViewInterface } from './conversation-view.interface';
|
|
12
12
|
import * as e from '../enums';
|
|
13
13
|
export interface AddConversationToConversationViewRequestInterface {
|
|
@@ -77,6 +77,7 @@ export interface CreateWidgetConversationRequestInterface {
|
|
|
77
77
|
widgetId?: string;
|
|
78
78
|
chatSourceUrl?: string;
|
|
79
79
|
greetingMessage?: string;
|
|
80
|
+
metadata?: KeyValuePairInterface[];
|
|
80
81
|
}
|
|
81
82
|
export interface CreateWidgetConversationResponseInterface {
|
|
82
83
|
widgetParticipantToken?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubjectParticipantInterface } from './common.interface';
|
|
1
|
+
import { SubjectParticipantInterface, KeyValuePairInterface } from './common.interface';
|
|
2
2
|
import * as e from '../enums';
|
|
3
3
|
export interface AIConfigurationInterface {
|
|
4
4
|
aiResponseEnabled?: boolean;
|
|
@@ -24,6 +24,7 @@ export interface ConversationInterface {
|
|
|
24
24
|
latestMsgSentTimeBySubjectParticipant?: LatestMessageSentTimeBySubjectParticipantInterface[];
|
|
25
25
|
subjectParticipantKey?: SubjectParticipantKeyInterface;
|
|
26
26
|
latestRelevantActivityTime?: Date;
|
|
27
|
+
metadata?: KeyValuePairInterface[];
|
|
27
28
|
}
|
|
28
29
|
export interface ConversationKeyInterface {
|
|
29
30
|
subjectParticipants?: SubjectParticipantInterface[];
|
|
@@ -8,7 +8,7 @@ import { Message } from './message';
|
|
|
8
8
|
import { MessageTemplate } from './message-template';
|
|
9
9
|
import { Participant, ParticipantKey } from './participant';
|
|
10
10
|
import { ResponseEvaluation } from './evaluation';
|
|
11
|
-
import { SubjectParticipant, NamespaceDetail } from './common';
|
|
11
|
+
import { SubjectParticipant, KeyValuePair, NamespaceDetail } from './common';
|
|
12
12
|
import { View } from './conversation-view';
|
|
13
13
|
import * as e from '../enums';
|
|
14
14
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
@@ -121,6 +121,7 @@ export declare class CreateWidgetConversationRequest implements i.CreateWidgetCo
|
|
|
121
121
|
widgetId: string;
|
|
122
122
|
chatSourceUrl: string;
|
|
123
123
|
greetingMessage: string;
|
|
124
|
+
metadata: KeyValuePair[];
|
|
124
125
|
static fromProto(proto: any): CreateWidgetConversationRequest;
|
|
125
126
|
constructor(kwargs?: i.CreateWidgetConversationRequestInterface);
|
|
126
127
|
toApiJson(): object;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i from '../interfaces';
|
|
2
|
-
import { SubjectParticipant } from './common';
|
|
2
|
+
import { SubjectParticipant, KeyValuePair } from './common';
|
|
3
3
|
import * as e from '../enums';
|
|
4
4
|
export declare function enumStringToValue<E>(enumRef: any, value: string): E;
|
|
5
5
|
export declare class AIConfiguration implements i.AIConfigurationInterface {
|
|
@@ -29,6 +29,7 @@ export declare class Conversation implements i.ConversationInterface {
|
|
|
29
29
|
latestMsgSentTimeBySubjectParticipant: LatestMessageSentTimeBySubjectParticipant[];
|
|
30
30
|
subjectParticipantKey: SubjectParticipantKey;
|
|
31
31
|
latestRelevantActivityTime: Date;
|
|
32
|
+
metadata: KeyValuePair[];
|
|
32
33
|
static fromProto(proto: any): Conversation;
|
|
33
34
|
constructor(kwargs?: i.ConversationInterface);
|
|
34
35
|
toApiJson(): object;
|