@vendasta/conversation 0.76.0 → 0.77.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,5 +1,8 @@
1
1
  import { SubjectParticipantInterface } from './common.interface';
2
2
  import * as e from '../enums';
3
+ export interface AIConfigurationInterface {
4
+ aiResponseEnabled?: boolean;
5
+ }
3
6
  export interface ConversationInterface {
4
7
  conversationId?: string;
5
8
  channel?: e.ConversationChannel;
@@ -16,6 +19,7 @@ export interface ConversationInterface {
16
19
  subjectParticipantsKey?: string;
17
20
  subjectParticipants?: SubjectParticipantInterface[];
18
21
  isOpen?: boolean;
22
+ aiConfiguration?: AIConfigurationInterface;
19
23
  }
20
24
  export interface ConversationKeyInterface {
21
25
  subjectParticipants?: SubjectParticipantInterface[];
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetailInterface, SubjectParticipantInterface, } from './common.interface';
2
- export { ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
2
+ export { AIConfigurationInterface, ConversationInterface, ConversationKeyInterface, LastSeenByParticipantInterface, } from './conversation.interface';
3
3
  export { KeyValuePairInterface, MessageInterface, ParticipantMessageStatusInterface, SendStatusInterface, } from './message.interface';
4
4
  export { AddressInterface, ParticipantInterface, ParticipantKeyInterface, } from './participant.interface';
5
5
  export { AccessInterface, } from './annotations.interface';
@@ -2,6 +2,12 @@ import * as i from '../interfaces';
2
2
  import { SubjectParticipant } from './common';
3
3
  import * as e from '../enums';
4
4
  export declare function enumStringToValue<E>(enumRef: any, value: string): E;
5
+ export declare class AIConfiguration implements i.AIConfigurationInterface {
6
+ aiResponseEnabled: boolean;
7
+ static fromProto(proto: any): AIConfiguration;
8
+ constructor(kwargs?: i.AIConfigurationInterface);
9
+ toApiJson(): object;
10
+ }
5
11
  export declare class Conversation implements i.ConversationInterface {
6
12
  conversationId: string;
7
13
  channel: e.ConversationChannel;
@@ -18,6 +24,7 @@ export declare class Conversation implements i.ConversationInterface {
18
24
  subjectParticipantsKey: string;
19
25
  subjectParticipants: SubjectParticipant[];
20
26
  isOpen: boolean;
27
+ aiConfiguration: AIConfiguration;
21
28
  static fromProto(proto: any): Conversation;
22
29
  constructor(kwargs?: i.ConversationInterface);
23
30
  toApiJson(): object;
@@ -1,5 +1,5 @@
1
1
  export { NamespaceDetail, SubjectParticipant, } from './common';
2
- export { Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
2
+ export { AIConfiguration, Conversation, ConversationKey, LastSeenByParticipant, } from './conversation';
3
3
  export { KeyValuePair, Message, ParticipantMessageStatus, SendStatus, } from './message';
4
4
  export { Address, Participant, ParticipantKey, } from './participant';
5
5
  export { Access, } from './annotations';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendasta/conversation",
3
- "version": "0.76.0",
3
+ "version": "0.77.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"