@vendasta/conversation 0.98.0 → 0.100.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.
@@ -9,7 +9,8 @@ export declare enum GlobalParticipantType {
9
9
  GLOBAL_PARTICIPANT_TYPE_VENDOR = 7,
10
10
  GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT = 8,
11
11
  GLOBAL_PARTICIPANT_TYPE_ANONYMOUS = 9,
12
- GLOBAL_PARTICIPANT_TYPE_GROUP = 10
12
+ GLOBAL_PARTICIPANT_TYPE_GROUP = 10,
13
+ GLOBAL_PARTICIPANT_TYPE_AI_ASSISTANT = 11
13
14
  }
14
15
  export declare enum SortDirection {
15
16
  SORT_DIRECTION_DESCENDING = 0,
@@ -9,7 +9,8 @@ export declare enum ConversationChannel {
9
9
  CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS = 7,
10
10
  CONVERSATION_CHANNEL_WEB_CHAT = 8,
11
11
  CONVERSATION_CHANNEL_INSTAGRAM = 9,
12
- CONVERSATION_CHANNEL_WHATSAPP = 10
12
+ CONVERSATION_CHANNEL_WHATSAPP = 10,
13
+ CONVERSATION_CHANNEL_AI_ASSISTANT = 11
13
14
  }
14
15
  export declare enum PlatformLocation {
15
16
  PLATFORM_LOCATION_UNDEFINED = 0,
@@ -4,5 +4,6 @@ export declare enum EventType {
4
4
  EVENT_TYPE_CAMPAIGN = 3,
5
5
  EVENT_TYPE_REVIEW_REQUEST = 4,
6
6
  EVENT_TYPE_FORM_SUBMISSION = 5,
7
- EVENT_TYPE_PHONE_CALL = 6
7
+ EVENT_TYPE_PHONE_CALL = 6,
8
+ EVENT_TYPE_SMS_SUBSCRIBED = 7
8
9
  }
@@ -9,5 +9,6 @@ export declare enum ParticipantType {
9
9
  PARTICIPANT_TYPE_VENDOR = 7,
10
10
  PARTICIPANT_TYPE_OPENAI_BOT = 8,
11
11
  PARTICIPANT_TYPE_ANONYMOUS = 9,
12
- PARTICIPANT_TYPE_GROUP = 10
12
+ PARTICIPANT_TYPE_GROUP = 10,
13
+ PARTICIPANT_TYPE_AI_ASSISTANT = 11
13
14
  }
@@ -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,8 @@ export interface ConversationInterface {
24
24
  latestMsgSentTimeBySubjectParticipant?: LatestMessageSentTimeBySubjectParticipantInterface[];
25
25
  subjectParticipantKey?: SubjectParticipantKeyInterface;
26
26
  latestRelevantActivityTime?: Date;
27
+ metadata?: KeyValuePairInterface[];
28
+ instanceId?: string;
27
29
  }
28
30
  export interface ConversationKeyInterface {
29
31
  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,8 @@ export declare class Conversation implements i.ConversationInterface {
29
29
  latestMsgSentTimeBySubjectParticipant: LatestMessageSentTimeBySubjectParticipant[];
30
30
  subjectParticipantKey: SubjectParticipantKey;
31
31
  latestRelevantActivityTime: Date;
32
+ metadata: KeyValuePair[];
33
+ instanceId: string;
32
34
  static fromProto(proto: any): Conversation;
33
35
  constructor(kwargs?: i.ConversationInterface);
34
36
  toApiJson(): object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.98.0",
3
+ "version": "0.100.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"