@vendasta/conversation 0.67.0 → 0.69.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.
Files changed (31) hide show
  1. package/esm2022/lib/_generated/host.service.mjs +3 -3
  2. package/esm2022/lib/_internal/ai-system-message.api.service.mjs +46 -0
  3. package/esm2022/lib/_internal/conversation.api.service.mjs +3 -3
  4. package/esm2022/lib/_internal/email.api.service.mjs +3 -3
  5. package/esm2022/lib/_internal/enums/api.enum.mjs +7 -1
  6. package/esm2022/lib/_internal/enums/index.mjs +2 -2
  7. package/esm2022/lib/_internal/inbox.api.service.mjs +3 -3
  8. package/esm2022/lib/_internal/index.mjs +2 -1
  9. package/esm2022/lib/_internal/interfaces/aisystemmessage.interface.mjs +8 -0
  10. package/esm2022/lib/_internal/interfaces/api.interface.mjs +1 -1
  11. package/esm2022/lib/_internal/interfaces/index.mjs +1 -1
  12. package/esm2022/lib/_internal/interfaces/widget.interface.mjs +1 -1
  13. package/esm2022/lib/_internal/objects/aisystemmessage.mjs +172 -0
  14. package/esm2022/lib/_internal/objects/api.mjs +91 -9
  15. package/esm2022/lib/_internal/objects/index.mjs +3 -2
  16. package/esm2022/lib/_internal/objects/widget.mjs +9 -1
  17. package/fesm2022/vendasta-conversation.mjs +355 -47
  18. package/fesm2022/vendasta-conversation.mjs.map +1 -1
  19. package/lib/_internal/ai-system-message.api.service.d.ts +16 -0
  20. package/lib/_internal/enums/api.enum.d.ts +5 -0
  21. package/lib/_internal/enums/index.d.ts +1 -1
  22. package/lib/_internal/index.d.ts +1 -0
  23. package/lib/_internal/interfaces/aisystemmessage.interface.d.ts +24 -0
  24. package/lib/_internal/interfaces/api.interface.d.ts +16 -3
  25. package/lib/_internal/interfaces/index.d.ts +2 -1
  26. package/lib/_internal/interfaces/widget.interface.d.ts +2 -0
  27. package/lib/_internal/objects/aisystemmessage.d.ts +44 -0
  28. package/lib/_internal/objects/api.d.ts +26 -7
  29. package/lib/_internal/objects/index.d.ts +2 -1
  30. package/lib/_internal/objects/widget.d.ts +2 -0
  31. package/package.json +1 -1
@@ -160,6 +160,12 @@ var SetLastSeenRequestStatus;
160
160
  SetLastSeenRequestStatus[SetLastSeenRequestStatus["SET_LAST_SEEN_REQUEST_STATUS_READ"] = 0] = "SET_LAST_SEEN_REQUEST_STATUS_READ";
161
161
  SetLastSeenRequestStatus[SetLastSeenRequestStatus["SET_LAST_SEEN_REQUEST_STATUS_UNREAD"] = 1] = "SET_LAST_SEEN_REQUEST_STATUS_UNREAD";
162
162
  })(SetLastSeenRequestStatus || (SetLastSeenRequestStatus = {}));
163
+ var Status;
164
+ (function (Status) {
165
+ Status[Status["ERROR"] = 0] = "ERROR";
166
+ Status[Status["WARNING"] = 1] = "WARNING";
167
+ Status[Status["INFO"] = 2] = "INFO";
168
+ })(Status || (Status = {}));
163
169
 
164
170
  // *********************************
165
171
  // Code generated by sdkgen
@@ -168,7 +174,7 @@ var SetLastSeenRequestStatus;
168
174
  // Enums Index.
169
175
  // *********************************
170
176
 
171
- function enumStringToValue$a(enumRef, value) {
177
+ function enumStringToValue$b(enumRef, value) {
172
178
  if (typeof value === 'number') {
173
179
  return value;
174
180
  }
@@ -181,7 +187,7 @@ class NamespaceDetail {
181
187
  let m = new NamespaceDetail();
182
188
  m = Object.assign(m, proto);
183
189
  if (proto.participantType) {
184
- m.participantType = enumStringToValue$a(GlobalParticipantType, proto.participantType);
190
+ m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
185
191
  }
186
192
  return m;
187
193
  }
@@ -209,7 +215,7 @@ class SubjectParticipant {
209
215
  let m = new SubjectParticipant();
210
216
  m = Object.assign(m, proto);
211
217
  if (proto.participantType) {
212
- m.participantType = enumStringToValue$a(GlobalParticipantType, proto.participantType);
218
+ m.participantType = enumStringToValue$b(GlobalParticipantType, proto.participantType);
213
219
  }
214
220
  return m;
215
221
  }
@@ -231,7 +237,7 @@ class SubjectParticipant {
231
237
  }
232
238
  }
233
239
 
234
- function enumStringToValue$9(enumRef, value) {
240
+ function enumStringToValue$a(enumRef, value) {
235
241
  if (typeof value === 'number') {
236
242
  return value;
237
243
  }
@@ -257,7 +263,7 @@ class Conversation {
257
263
  let m = new Conversation();
258
264
  m = Object.assign(m, proto);
259
265
  if (proto.channel) {
260
- m.channel = enumStringToValue$9(ConversationChannel, proto.channel);
266
+ m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
261
267
  }
262
268
  if (proto.created) {
263
269
  m.created = new Date(proto.created);
@@ -272,7 +278,7 @@ class Conversation {
272
278
  m.latestMsgSentTime = new Date(proto.latestMsgSentTime);
273
279
  }
274
280
  if (proto.originLocation) {
275
- m.originLocation = enumStringToValue$9(PlatformLocation, proto.originLocation);
281
+ m.originLocation = enumStringToValue$a(PlatformLocation, proto.originLocation);
276
282
  }
277
283
  if (proto.lastSeenByParticipant) {
278
284
  m.lastSeenByParticipant = proto.lastSeenByParticipant.map(LastSeenByParticipant.fromProto);
@@ -349,7 +355,7 @@ class ConversationKey {
349
355
  m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
350
356
  }
351
357
  if (proto.channel) {
352
- m.channel = enumStringToValue$9(ConversationChannel, proto.channel);
358
+ m.channel = enumStringToValue$a(ConversationChannel, proto.channel);
353
359
  }
354
360
  return m;
355
361
  }
@@ -402,7 +408,7 @@ class LastSeenByParticipant {
402
408
  }
403
409
  }
404
410
 
405
- function enumStringToValue$8(enumRef, value) {
411
+ function enumStringToValue$9(enumRef, value) {
406
412
  if (typeof value === 'number') {
407
413
  return value;
408
414
  }
@@ -453,7 +459,7 @@ class Message {
453
459
  let m = new Message();
454
460
  m = Object.assign(m, proto);
455
461
  if (proto.type) {
456
- m.type = enumStringToValue$8(MessageType, proto.type);
462
+ m.type = enumStringToValue$9(MessageType, proto.type);
457
463
  }
458
464
  if (proto.created) {
459
465
  m.created = new Date(proto.created);
@@ -468,7 +474,7 @@ class Message {
468
474
  m.sendStatus = SendStatus.fromProto(proto.sendStatus);
469
475
  }
470
476
  if (proto.channel) {
471
- m.channel = enumStringToValue$8(ConversationChannel, proto.channel);
477
+ m.channel = enumStringToValue$9(ConversationChannel, proto.channel);
472
478
  }
473
479
  if (proto.metadata) {
474
480
  m.metadata = proto.metadata.map(KeyValuePair.fromProto);
@@ -540,7 +546,7 @@ class ParticipantMessageStatus {
540
546
  let m = new ParticipantMessageStatus();
541
547
  m = Object.assign(m, proto);
542
548
  if (proto.status) {
543
- m.status = enumStringToValue$8(MessageStatus, proto.status);
549
+ m.status = enumStringToValue$9(MessageStatus, proto.status);
544
550
  }
545
551
  if (proto.updated) {
546
552
  m.updated = new Date(proto.updated);
@@ -578,7 +584,7 @@ class SendStatus {
578
584
  let m = new SendStatus();
579
585
  m = Object.assign(m, proto);
580
586
  if (proto.status) {
581
- m.status = enumStringToValue$8(MessageStatus, proto.status);
587
+ m.status = enumStringToValue$9(MessageStatus, proto.status);
582
588
  }
583
589
  if (proto.created) {
584
590
  m.created = new Date(proto.created);
@@ -606,7 +612,7 @@ class SendStatus {
606
612
  }
607
613
  }
608
614
 
609
- function enumStringToValue$7(enumRef, value) {
615
+ function enumStringToValue$8(enumRef, value) {
610
616
  if (typeof value === 'number') {
611
617
  return value;
612
618
  }
@@ -677,10 +683,10 @@ class Participant {
677
683
  let m = new Participant();
678
684
  m = Object.assign(m, proto);
679
685
  if (proto.location) {
680
- m.location = enumStringToValue$7(PlatformLocation, proto.location);
686
+ m.location = enumStringToValue$8(PlatformLocation, proto.location);
681
687
  }
682
688
  if (proto.channel) {
683
- m.channel = enumStringToValue$7(ConversationChannel, proto.channel);
689
+ m.channel = enumStringToValue$8(ConversationChannel, proto.channel);
684
690
  }
685
691
  if (proto.created) {
686
692
  m.created = new Date(proto.created);
@@ -692,7 +698,7 @@ class Participant {
692
698
  m.deleted = new Date(proto.deleted);
693
699
  }
694
700
  if (proto.participantType) {
695
- m.participantType = enumStringToValue$7(ParticipantType, proto.participantType);
701
+ m.participantType = enumStringToValue$8(ParticipantType, proto.participantType);
696
702
  }
697
703
  if (proto.address) {
698
704
  m.address = Address.fromProto(proto.address);
@@ -782,13 +788,13 @@ class ParticipantKey {
782
788
  let m = new ParticipantKey();
783
789
  m = Object.assign(m, proto);
784
790
  if (proto.location) {
785
- m.location = enumStringToValue$7(PlatformLocation, proto.location);
791
+ m.location = enumStringToValue$8(PlatformLocation, proto.location);
786
792
  }
787
793
  if (proto.channels) {
788
- m.channels = proto.channels.map((v) => enumStringToValue$7(ConversationChannel, v));
794
+ m.channels = proto.channels.map((v) => enumStringToValue$8(ConversationChannel, v));
789
795
  }
790
796
  if (proto.participantType) {
791
- m.participantType = enumStringToValue$7(GlobalParticipantType, proto.participantType);
797
+ m.participantType = enumStringToValue$8(GlobalParticipantType, proto.participantType);
792
798
  }
793
799
  if (proto.namespaceHierarchy) {
794
800
  m.namespaceHierarchy = proto.namespaceHierarchy.map(NamespaceDetail.fromProto);
@@ -828,7 +834,7 @@ class ParticipantKey {
828
834
  }
829
835
  }
830
836
 
831
- function enumStringToValue$6(enumRef, value) {
837
+ function enumStringToValue$7(enumRef, value) {
832
838
  if (typeof value === 'number') {
833
839
  return value;
834
840
  }
@@ -860,7 +866,7 @@ class Access {
860
866
  }
861
867
  }
862
868
 
863
- function enumStringToValue$5(enumRef, value) {
869
+ function enumStringToValue$6(enumRef, value) {
864
870
  if (typeof value === 'number') {
865
871
  return value;
866
872
  }
@@ -982,7 +988,7 @@ class ProductFeature {
982
988
  }
983
989
  }
984
990
 
985
- function enumStringToValue$4(enumRef, value) {
991
+ function enumStringToValue$5(enumRef, value) {
986
992
  if (typeof value === 'number') {
987
993
  return value;
988
994
  }
@@ -1017,7 +1023,7 @@ class View {
1017
1023
  }
1018
1024
  }
1019
1025
 
1020
- function enumStringToValue$3(enumRef, value) {
1026
+ function enumStringToValue$4(enumRef, value) {
1021
1027
  if (typeof value === 'number') {
1022
1028
  return value;
1023
1029
  }
@@ -1025,6 +1031,7 @@ function enumStringToValue$3(enumRef, value) {
1025
1031
  }
1026
1032
  class DataSources {
1027
1033
  businessProfile;
1034
+ businessWebsite;
1028
1035
  static fromProto(proto) {
1029
1036
  let m = new DataSources();
1030
1037
  m = Object.assign(m, proto);
@@ -1041,6 +1048,9 @@ class DataSources {
1041
1048
  if (typeof this.businessProfile !== 'undefined') {
1042
1049
  toReturn['businessProfile'] = this.businessProfile;
1043
1050
  }
1051
+ if (typeof this.businessWebsite !== 'undefined') {
1052
+ toReturn['businessWebsite'] = this.businessWebsite;
1053
+ }
1044
1054
  return toReturn;
1045
1055
  }
1046
1056
  }
@@ -1058,11 +1068,12 @@ class Widget {
1058
1068
  textColor;
1059
1069
  accentColor;
1060
1070
  accentTextColor;
1071
+ skipContactCapture;
1061
1072
  static fromProto(proto) {
1062
1073
  let m = new Widget();
1063
1074
  m = Object.assign(m, proto);
1064
1075
  if (proto.position) {
1065
- m.position = enumStringToValue$3(WidgetPosition, proto.position);
1076
+ m.position = enumStringToValue$4(WidgetPosition, proto.position);
1066
1077
  }
1067
1078
  if (proto.created) {
1068
1079
  m.created = new Date(proto.created);
@@ -1119,11 +1130,14 @@ class Widget {
1119
1130
  if (typeof this.accentTextColor !== 'undefined') {
1120
1131
  toReturn['accentTextColor'] = this.accentTextColor;
1121
1132
  }
1133
+ if (typeof this.skipContactCapture !== 'undefined') {
1134
+ toReturn['skipContactCapture'] = this.skipContactCapture;
1135
+ }
1122
1136
  return toReturn;
1123
1137
  }
1124
1138
  }
1125
1139
 
1126
- function enumStringToValue$2(enumRef, value) {
1140
+ function enumStringToValue$3(enumRef, value) {
1127
1141
  if (typeof value === 'number') {
1128
1142
  return value;
1129
1143
  }
@@ -1151,7 +1165,7 @@ class FieldMask {
1151
1165
  }
1152
1166
  }
1153
1167
 
1154
- function enumStringToValue$1(enumRef, value) {
1168
+ function enumStringToValue$2(enumRef, value) {
1155
1169
  if (typeof value === 'number') {
1156
1170
  return value;
1157
1171
  }
@@ -1194,6 +1208,178 @@ class MessageTemplate {
1194
1208
  }
1195
1209
  }
1196
1210
 
1211
+ function enumStringToValue$1(enumRef, value) {
1212
+ if (typeof value === 'number') {
1213
+ return value;
1214
+ }
1215
+ return enumRef[value];
1216
+ }
1217
+ class AISystemMessage {
1218
+ systemMessageId;
1219
+ systemMessageBody;
1220
+ iamUserId;
1221
+ updated;
1222
+ static fromProto(proto) {
1223
+ let m = new AISystemMessage();
1224
+ m = Object.assign(m, proto);
1225
+ if (proto.updated) {
1226
+ m.updated = new Date(proto.updated);
1227
+ }
1228
+ return m;
1229
+ }
1230
+ constructor(kwargs) {
1231
+ if (!kwargs) {
1232
+ return;
1233
+ }
1234
+ Object.assign(this, kwargs);
1235
+ }
1236
+ toApiJson() {
1237
+ const toReturn = {};
1238
+ if (typeof this.systemMessageId !== 'undefined') {
1239
+ toReturn['systemMessageId'] = this.systemMessageId;
1240
+ }
1241
+ if (typeof this.systemMessageBody !== 'undefined') {
1242
+ toReturn['systemMessageBody'] = this.systemMessageBody;
1243
+ }
1244
+ if (typeof this.iamUserId !== 'undefined') {
1245
+ toReturn['iamUserId'] = this.iamUserId;
1246
+ }
1247
+ if (typeof this.updated !== 'undefined' && this.updated !== null) {
1248
+ toReturn['updated'] = 'toApiJson' in this.updated ? this.updated.toApiJson() : this.updated;
1249
+ }
1250
+ return toReturn;
1251
+ }
1252
+ }
1253
+ class GetAISystemMessageRequest {
1254
+ systemMessageId;
1255
+ static fromProto(proto) {
1256
+ let m = new GetAISystemMessageRequest();
1257
+ m = Object.assign(m, proto);
1258
+ return m;
1259
+ }
1260
+ constructor(kwargs) {
1261
+ if (!kwargs) {
1262
+ return;
1263
+ }
1264
+ Object.assign(this, kwargs);
1265
+ }
1266
+ toApiJson() {
1267
+ const toReturn = {};
1268
+ if (typeof this.systemMessageId !== 'undefined') {
1269
+ toReturn['systemMessageId'] = this.systemMessageId;
1270
+ }
1271
+ return toReturn;
1272
+ }
1273
+ }
1274
+ class GetAISystemMessageResponse {
1275
+ systemMessage;
1276
+ static fromProto(proto) {
1277
+ let m = new GetAISystemMessageResponse();
1278
+ m = Object.assign(m, proto);
1279
+ if (proto.systemMessage) {
1280
+ m.systemMessage = AISystemMessage.fromProto(proto.systemMessage);
1281
+ }
1282
+ return m;
1283
+ }
1284
+ constructor(kwargs) {
1285
+ if (!kwargs) {
1286
+ return;
1287
+ }
1288
+ Object.assign(this, kwargs);
1289
+ }
1290
+ toApiJson() {
1291
+ const toReturn = {};
1292
+ if (typeof this.systemMessage !== 'undefined' && this.systemMessage !== null) {
1293
+ toReturn['systemMessage'] = 'toApiJson' in this.systemMessage ? this.systemMessage.toApiJson() : this.systemMessage;
1294
+ }
1295
+ return toReturn;
1296
+ }
1297
+ }
1298
+ class ListAISystemMessagesRequest {
1299
+ cursor;
1300
+ pageSize;
1301
+ static fromProto(proto) {
1302
+ let m = new ListAISystemMessagesRequest();
1303
+ m = Object.assign(m, proto);
1304
+ if (proto.pageSize) {
1305
+ m.pageSize = parseInt(proto.pageSize, 10);
1306
+ }
1307
+ return m;
1308
+ }
1309
+ constructor(kwargs) {
1310
+ if (!kwargs) {
1311
+ return;
1312
+ }
1313
+ Object.assign(this, kwargs);
1314
+ }
1315
+ toApiJson() {
1316
+ const toReturn = {};
1317
+ if (typeof this.cursor !== 'undefined') {
1318
+ toReturn['cursor'] = this.cursor;
1319
+ }
1320
+ if (typeof this.pageSize !== 'undefined') {
1321
+ toReturn['pageSize'] = this.pageSize;
1322
+ }
1323
+ return toReturn;
1324
+ }
1325
+ }
1326
+ class ListAISystemMessagesResponse {
1327
+ aiSystemMessages;
1328
+ nextCursor;
1329
+ hasMore;
1330
+ static fromProto(proto) {
1331
+ let m = new ListAISystemMessagesResponse();
1332
+ m = Object.assign(m, proto);
1333
+ if (proto.aiSystemMessages) {
1334
+ m.aiSystemMessages = proto.aiSystemMessages.map(AISystemMessage.fromProto);
1335
+ }
1336
+ return m;
1337
+ }
1338
+ constructor(kwargs) {
1339
+ if (!kwargs) {
1340
+ return;
1341
+ }
1342
+ Object.assign(this, kwargs);
1343
+ }
1344
+ toApiJson() {
1345
+ const toReturn = {};
1346
+ if (typeof this.aiSystemMessages !== 'undefined' && this.aiSystemMessages !== null) {
1347
+ toReturn['aiSystemMessages'] = 'toApiJson' in this.aiSystemMessages ? this.aiSystemMessages.toApiJson() : this.aiSystemMessages;
1348
+ }
1349
+ if (typeof this.nextCursor !== 'undefined') {
1350
+ toReturn['nextCursor'] = this.nextCursor;
1351
+ }
1352
+ if (typeof this.hasMore !== 'undefined') {
1353
+ toReturn['hasMore'] = this.hasMore;
1354
+ }
1355
+ return toReturn;
1356
+ }
1357
+ }
1358
+ class UpsertAISystemMessageRequest {
1359
+ systemMessage;
1360
+ static fromProto(proto) {
1361
+ let m = new UpsertAISystemMessageRequest();
1362
+ m = Object.assign(m, proto);
1363
+ if (proto.systemMessage) {
1364
+ m.systemMessage = AISystemMessage.fromProto(proto.systemMessage);
1365
+ }
1366
+ return m;
1367
+ }
1368
+ constructor(kwargs) {
1369
+ if (!kwargs) {
1370
+ return;
1371
+ }
1372
+ Object.assign(this, kwargs);
1373
+ }
1374
+ toApiJson() {
1375
+ const toReturn = {};
1376
+ if (typeof this.systemMessage !== 'undefined' && this.systemMessage !== null) {
1377
+ toReturn['systemMessage'] = 'toApiJson' in this.systemMessage ? this.systemMessage.toApiJson() : this.systemMessage;
1378
+ }
1379
+ return toReturn;
1380
+ }
1381
+ }
1382
+
1197
1383
  function enumStringToValue(enumRef, value) {
1198
1384
  if (typeof value === 'number') {
1199
1385
  return value;
@@ -1314,6 +1500,69 @@ class CapturedLead {
1314
1500
  return toReturn;
1315
1501
  }
1316
1502
  }
1503
+ class ChannelAvailability {
1504
+ channel;
1505
+ isAvailable;
1506
+ statuses;
1507
+ static fromProto(proto) {
1508
+ let m = new ChannelAvailability();
1509
+ m = Object.assign(m, proto);
1510
+ if (proto.channel) {
1511
+ m.channel = enumStringToValue(ConversationChannel, proto.channel);
1512
+ }
1513
+ if (proto.statuses) {
1514
+ m.statuses = proto.statuses.map(ChannelStatus.fromProto);
1515
+ }
1516
+ return m;
1517
+ }
1518
+ constructor(kwargs) {
1519
+ if (!kwargs) {
1520
+ return;
1521
+ }
1522
+ Object.assign(this, kwargs);
1523
+ }
1524
+ toApiJson() {
1525
+ const toReturn = {};
1526
+ if (typeof this.channel !== 'undefined') {
1527
+ toReturn['channel'] = this.channel;
1528
+ }
1529
+ if (typeof this.isAvailable !== 'undefined') {
1530
+ toReturn['isAvailable'] = this.isAvailable;
1531
+ }
1532
+ if (typeof this.statuses !== 'undefined' && this.statuses !== null) {
1533
+ toReturn['statuses'] = 'toApiJson' in this.statuses ? this.statuses.toApiJson() : this.statuses;
1534
+ }
1535
+ return toReturn;
1536
+ }
1537
+ }
1538
+ class ChannelStatus {
1539
+ status;
1540
+ i18nKey;
1541
+ static fromProto(proto) {
1542
+ let m = new ChannelStatus();
1543
+ m = Object.assign(m, proto);
1544
+ if (proto.status) {
1545
+ m.status = enumStringToValue(Status, proto.status);
1546
+ }
1547
+ return m;
1548
+ }
1549
+ constructor(kwargs) {
1550
+ if (!kwargs) {
1551
+ return;
1552
+ }
1553
+ Object.assign(this, kwargs);
1554
+ }
1555
+ toApiJson() {
1556
+ const toReturn = {};
1557
+ if (typeof this.status !== 'undefined') {
1558
+ toReturn['status'] = this.status;
1559
+ }
1560
+ if (typeof this.i18nKey !== 'undefined') {
1561
+ toReturn['i18nKey'] = this.i18nKey;
1562
+ }
1563
+ return toReturn;
1564
+ }
1565
+ }
1317
1566
  class ConversationMessageCount {
1318
1567
  conversationId;
1319
1568
  count;
@@ -1641,6 +1890,7 @@ class CreateWidgetRequest {
1641
1890
  textColor;
1642
1891
  accentColor;
1643
1892
  accentTextColor;
1893
+ skipContactCapture;
1644
1894
  static fromProto(proto) {
1645
1895
  let m = new CreateWidgetRequest();
1646
1896
  m = Object.assign(m, proto);
@@ -1684,6 +1934,9 @@ class CreateWidgetRequest {
1684
1934
  if (typeof this.accentTextColor !== 'undefined') {
1685
1935
  toReturn['accentTextColor'] = this.accentTextColor;
1686
1936
  }
1937
+ if (typeof this.skipContactCapture !== 'undefined') {
1938
+ toReturn['skipContactCapture'] = this.skipContactCapture;
1939
+ }
1687
1940
  return toReturn;
1688
1941
  }
1689
1942
  }
@@ -1820,12 +2073,13 @@ class DeleteWidgetRequest {
1820
2073
  return toReturn;
1821
2074
  }
1822
2075
  }
1823
- class SearchConversationsResponseDetailedConversation {
2076
+ class GetMultiConversationDetailsResponseDetailedConversation {
1824
2077
  conversation;
1825
2078
  latestMessage;
1826
2079
  participants;
2080
+ summary;
1827
2081
  static fromProto(proto) {
1828
- let m = new SearchConversationsResponseDetailedConversation();
2082
+ let m = new GetMultiConversationDetailsResponseDetailedConversation();
1829
2083
  m = Object.assign(m, proto);
1830
2084
  if (proto.conversation) {
1831
2085
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -1855,16 +2109,18 @@ class SearchConversationsResponseDetailedConversation {
1855
2109
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
1856
2110
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
1857
2111
  }
2112
+ if (typeof this.summary !== 'undefined') {
2113
+ toReturn['summary'] = this.summary;
2114
+ }
1858
2115
  return toReturn;
1859
2116
  }
1860
2117
  }
1861
- class GetMultiConversationDetailsResponseDetailedConversation {
2118
+ class SearchConversationsResponseDetailedConversation {
1862
2119
  conversation;
1863
2120
  latestMessage;
1864
2121
  participants;
1865
- summary;
1866
2122
  static fromProto(proto) {
1867
- let m = new GetMultiConversationDetailsResponseDetailedConversation();
2123
+ let m = new SearchConversationsResponseDetailedConversation();
1868
2124
  m = Object.assign(m, proto);
1869
2125
  if (proto.conversation) {
1870
2126
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -1894,9 +2150,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
1894
2150
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
1895
2151
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
1896
2152
  }
1897
- if (typeof this.summary !== 'undefined') {
1898
- toReturn['summary'] = this.summary;
1899
- }
1900
2153
  return toReturn;
1901
2154
  }
1902
2155
  }
@@ -1956,6 +2209,7 @@ class GetAvailableChannelsForConversationRequest {
1956
2209
  class GetAvailableChannelsForConversationResponse {
1957
2210
  channels;
1958
2211
  preferredChannel;
2212
+ channelAvailabilities;
1959
2213
  static fromProto(proto) {
1960
2214
  let m = new GetAvailableChannelsForConversationResponse();
1961
2215
  m = Object.assign(m, proto);
@@ -1965,6 +2219,9 @@ class GetAvailableChannelsForConversationResponse {
1965
2219
  if (proto.preferredChannel) {
1966
2220
  m.preferredChannel = enumStringToValue(ConversationChannel, proto.preferredChannel);
1967
2221
  }
2222
+ if (proto.channelAvailabilities) {
2223
+ m.channelAvailabilities = proto.channelAvailabilities.map(ChannelAvailability.fromProto);
2224
+ }
1968
2225
  return m;
1969
2226
  }
1970
2227
  constructor(kwargs) {
@@ -1981,6 +2238,9 @@ class GetAvailableChannelsForConversationResponse {
1981
2238
  if (typeof this.preferredChannel !== 'undefined') {
1982
2239
  toReturn['preferredChannel'] = this.preferredChannel;
1983
2240
  }
2241
+ if (typeof this.channelAvailabilities !== 'undefined' && this.channelAvailabilities !== null) {
2242
+ toReturn['channelAvailabilities'] = 'toApiJson' in this.channelAvailabilities ? this.channelAvailabilities.toApiJson() : this.channelAvailabilities;
2243
+ }
1984
2244
  return toReturn;
1985
2245
  }
1986
2246
  }
@@ -2689,6 +2949,7 @@ class GetWidgetConfigResponse {
2689
2949
  textColor;
2690
2950
  accentColor;
2691
2951
  accentTextColor;
2952
+ skipContactCapture;
2692
2953
  static fromProto(proto) {
2693
2954
  let m = new GetWidgetConfigResponse();
2694
2955
  m = Object.assign(m, proto);
@@ -2723,6 +2984,9 @@ class GetWidgetConfigResponse {
2723
2984
  if (typeof this.accentTextColor !== 'undefined') {
2724
2985
  toReturn['accentTextColor'] = this.accentTextColor;
2725
2986
  }
2987
+ if (typeof this.skipContactCapture !== 'undefined') {
2988
+ toReturn['skipContactCapture'] = this.skipContactCapture;
2989
+ }
2726
2990
  return toReturn;
2727
2991
  }
2728
2992
  }
@@ -3894,6 +4158,7 @@ class UpdateWidgetRequest {
3894
4158
  textColor;
3895
4159
  accentColor;
3896
4160
  accentTextColor;
4161
+ skipContactCapture;
3897
4162
  static fromProto(proto) {
3898
4163
  let m = new UpdateWidgetRequest();
3899
4164
  m = Object.assign(m, proto);
@@ -3940,6 +4205,9 @@ class UpdateWidgetRequest {
3940
4205
  if (typeof this.accentTextColor !== 'undefined') {
3941
4206
  toReturn['accentTextColor'] = this.accentTextColor;
3942
4207
  }
4208
+ if (typeof this.skipContactCapture !== 'undefined') {
4209
+ toReturn['skipContactCapture'] = this.skipContactCapture;
4210
+ }
3943
4211
  return toReturn;
3944
4212
  }
3945
4213
  }
@@ -4107,10 +4375,50 @@ class HostService {
4107
4375
  get hostWithScheme() {
4108
4376
  return 'https://' + this.host;
4109
4377
  }
4110
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4111
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: HostService, providedIn: 'root' });
4378
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4379
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, providedIn: 'root' });
4380
+ }
4381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: HostService, decorators: [{
4382
+ type: Injectable,
4383
+ args: [{ providedIn: 'root' }]
4384
+ }] });
4385
+
4386
+ // *********************************
4387
+ // Code generated by sdkgen
4388
+ // DO NOT EDIT!.
4389
+ //
4390
+ // API Service.
4391
+ // *********************************
4392
+ class AISystemMessageApiService {
4393
+ hostService = inject(HostService);
4394
+ http = inject(HttpClient);
4395
+ _host = this.hostService.hostWithScheme;
4396
+ apiOptions() {
4397
+ return {
4398
+ headers: new HttpHeaders({
4399
+ 'Content-Type': 'application/json'
4400
+ }),
4401
+ withCredentials: true
4402
+ };
4403
+ }
4404
+ upsertAiSystemMessage(r) {
4405
+ const request = (r.toApiJson) ? r : new UpsertAISystemMessageRequest(r);
4406
+ return this.http.post(this._host + "/conversation.v1.AISystemMessageService/UpsertAISystemMessage", request.toApiJson(), { ...this.apiOptions(), observe: 'response' });
4407
+ }
4408
+ getAiSystemMessage(r) {
4409
+ const request = (r.toApiJson) ? r : new GetAISystemMessageRequest(r);
4410
+ return this.http.post(this._host + "/conversation.v1.AISystemMessageService/GetAISystemMessage", request.toApiJson(), this.apiOptions())
4411
+ .pipe(map(resp => GetAISystemMessageResponse.fromProto(resp)));
4412
+ }
4413
+ listAiSystemMessages(r) {
4414
+ const request = (r.toApiJson) ? r : new ListAISystemMessagesRequest(r);
4415
+ return this.http.post(this._host + "/conversation.v1.AISystemMessageService/ListAISystemMessages", request.toApiJson(), this.apiOptions())
4416
+ .pipe(map(resp => ListAISystemMessagesResponse.fromProto(resp)));
4417
+ }
4418
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4419
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, providedIn: 'root' });
4112
4420
  }
4113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: HostService, decorators: [{
4421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AISystemMessageApiService, decorators: [{
4114
4422
  type: Injectable,
4115
4423
  args: [{ providedIn: 'root' }]
4116
4424
  }] });
@@ -4332,10 +4640,10 @@ class ConversationApiService {
4332
4640
  return this.http.post(this._host + "/conversation.v1.ConversationService/NewInboxLeadCaptured", request.toApiJson(), this.apiOptions())
4333
4641
  .pipe(map(resp => NewInboxLeadCapturedResponse.fromProto(resp)));
4334
4642
  }
4335
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4336
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
4643
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4644
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
4337
4645
  }
4338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: ConversationApiService, decorators: [{
4646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: ConversationApiService, decorators: [{
4339
4647
  type: Injectable,
4340
4648
  args: [{ providedIn: 'root' }]
4341
4649
  }] });
@@ -4363,10 +4671,10 @@ class EmailApiService {
4363
4671
  return this.http.post(this._host + "/conversation.v1.EmailService/GetOwnerEmail", request.toApiJson(), this.apiOptions())
4364
4672
  .pipe(map(resp => GetOwnerEmailResponse.fromProto(resp)));
4365
4673
  }
4366
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EmailApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4367
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EmailApiService, providedIn: 'root' });
4674
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4675
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, providedIn: 'root' });
4368
4676
  }
4369
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: EmailApiService, decorators: [{
4677
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: EmailApiService, decorators: [{
4370
4678
  type: Injectable,
4371
4679
  args: [{ providedIn: 'root' }]
4372
4680
  }] });
@@ -4409,10 +4717,10 @@ class InboxApiService {
4409
4717
  return this.http.post(this._host + "/conversation.v1.InboxService/UpsertProductFeature", request.toApiJson(), this.apiOptions())
4410
4718
  .pipe(map(resp => UpsertProductFeatureResponse.fromProto(resp)));
4411
4719
  }
4412
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: InboxApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4413
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: InboxApiService, providedIn: 'root' });
4720
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4721
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, providedIn: 'root' });
4414
4722
  }
4415
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImport: i0, type: InboxApiService, decorators: [{
4723
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: InboxApiService, decorators: [{
4416
4724
  type: Injectable,
4417
4725
  args: [{ providedIn: 'root' }]
4418
4726
  }] });
@@ -4428,5 +4736,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.10", ngImpo
4428
4736
  * Generated bundle index. Do not edit.
4429
4737
  */
4430
4738
 
4431
- export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, KeyValuePair, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
4739
+ export { AISystemMessage, AISystemMessageApiService, Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, CapturedLead, ChannelAvailability, ChannelStatus, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EmailApiService, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAISystemMessageRequest, GetAISystemMessageResponse, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageOptions, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetOwnerEmailRequest, GetOwnerEmailResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, KeyValuePair, LastSeenByParticipant, ListAISystemMessagesRequest, ListAISystemMessagesResponse, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, NewInboxLeadCapturedRequest, NewInboxLeadCapturedResponse, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ProductFeature, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, RemoveConversationFromConversationViewRequest, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SendStatus, SendWidgetMessageRequest, SendWidgetMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SortDirection, Status, SubjectParticipant, UpdateConversationRequest, UpdateConversationResponse, UpdateMessageStatusRequest, UpdateMessageTemplateRequest, UpdateMessageTemplateResponse, UpdateWidgetRequest, UpdateWidgetResponse, UpsertAISystemMessageRequest, UpsertConfigurationRequest, UpsertConfigurationResponse, UpsertProductFeatureRequest, UpsertProductFeatureResponse, View, ViewType, Widget, WidgetPosition };
4432
4740
  //# sourceMappingURL=vendasta-conversation.mjs.map