@vendasta/conversation 0.21.0 → 0.23.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.
@@ -23,6 +23,7 @@ var MessageType;
23
23
  (function (MessageType) {
24
24
  MessageType[MessageType["MESSAGE_TYPE_MESSAGE"] = 0] = "MESSAGE_TYPE_MESSAGE";
25
25
  MessageType[MessageType["MESSAGE_TYPE_MEDIA"] = 1] = "MESSAGE_TYPE_MEDIA";
26
+ MessageType[MessageType["MESSAGE_TYPE_SYSTEM"] = 2] = "MESSAGE_TYPE_SYSTEM";
26
27
  })(MessageType || (MessageType = {}));
27
28
 
28
29
  // *********************************
@@ -66,6 +67,7 @@ var GlobalParticipantType;
66
67
  GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT"] = 5] = "GLOBAL_PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT";
67
68
  GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_DIGITAL_AGENT"] = 6] = "GLOBAL_PARTICIPANT_TYPE_DIGITAL_AGENT";
68
69
  GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_VENDOR"] = 7] = "GLOBAL_PARTICIPANT_TYPE_VENDOR";
70
+ GlobalParticipantType[GlobalParticipantType["GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "GLOBAL_PARTICIPANT_TYPE_OPENAI_BOT";
69
71
  })(GlobalParticipantType || (GlobalParticipantType = {}));
70
72
  var ParticipantType;
71
73
  (function (ParticipantType) {
@@ -77,6 +79,7 @@ var ParticipantType;
77
79
  ParticipantType[ParticipantType["PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT"] = 5] = "PARTICIPANT_TYPE_IAM_TEMPORARY_SUBJECT";
78
80
  ParticipantType[ParticipantType["PARTICIPANT_TYPE_DIGITAL_AGENT"] = 6] = "PARTICIPANT_TYPE_DIGITAL_AGENT";
79
81
  ParticipantType[ParticipantType["PARTICIPANT_TYPE_VENDOR"] = 7] = "PARTICIPANT_TYPE_VENDOR";
82
+ ParticipantType[ParticipantType["PARTICIPANT_TYPE_OPENAI_BOT"] = 8] = "PARTICIPANT_TYPE_OPENAI_BOT";
80
83
  })(ParticipantType || (ParticipantType = {}));
81
84
 
82
85
  // *********************************
@@ -1581,6 +1584,9 @@ class SendMessageRequest {
1581
1584
  if (proto.metadata) {
1582
1585
  m.metadata = proto.metadata.map(Metadata.fromProto);
1583
1586
  }
1587
+ if (proto.originLocation) {
1588
+ m.originLocation = enumStringToValue(PlatformLocation, proto.originLocation);
1589
+ }
1584
1590
  return m;
1585
1591
  }
1586
1592
  toApiJson() {
@@ -1603,6 +1609,9 @@ class SendMessageRequest {
1603
1609
  if (typeof this.metadata !== 'undefined' && this.metadata !== null) {
1604
1610
  toReturn['metadata'] = 'toApiJson' in this.metadata ? this.metadata.toApiJson() : this.metadata;
1605
1611
  }
1612
+ if (typeof this.originLocation !== 'undefined') {
1613
+ toReturn['originLocation'] = this.originLocation;
1614
+ }
1606
1615
  return toReturn;
1607
1616
  }
1608
1617
  }