@vendasta/conversation 0.60.0 → 0.62.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 (71) hide show
  1. package/{esm2020 → esm2022}/lib/_generated/host.service.mjs +4 -4
  2. package/esm2022/lib/_internal/conversation.api.service.mjs +232 -0
  3. package/{esm2020 → esm2022}/lib/_internal/enums/conversation.enum.mjs +2 -1
  4. package/esm2022/lib/_internal/inbox.api.service.mjs +53 -0
  5. package/esm2022/lib/_internal/interfaces/api.interface.mjs +2 -0
  6. package/{esm2020 → esm2022}/lib/_internal/interfaces/configuration.interface.mjs +1 -1
  7. package/esm2022/lib/_internal/interfaces/index.mjs +2 -0
  8. package/esm2022/lib/_internal/objects/annotations.mjs +32 -0
  9. package/esm2022/lib/_internal/objects/api.mjs +2764 -0
  10. package/esm2022/lib/_internal/objects/common.mjs +64 -0
  11. package/esm2022/lib/_internal/objects/configuration.mjs +123 -0
  12. package/esm2022/lib/_internal/objects/conversation-view.mjs +35 -0
  13. package/esm2022/lib/_internal/objects/conversation.mjs +173 -0
  14. package/esm2022/lib/_internal/objects/field-mask.mjs +28 -0
  15. package/esm2022/lib/_internal/objects/index.mjs +18 -0
  16. package/esm2022/lib/_internal/objects/message-template.mjs +43 -0
  17. package/esm2022/lib/_internal/objects/message.mjs +169 -0
  18. package/esm2022/lib/_internal/objects/participant.mjs +224 -0
  19. package/esm2022/lib/_internal/objects/widget.mjs +107 -0
  20. package/{fesm2020 → fesm2022}/vendasta-conversation.mjs +453 -32
  21. package/fesm2022/vendasta-conversation.mjs.map +1 -0
  22. package/lib/_internal/conversation.api.service.d.ts +7 -7
  23. package/lib/_internal/enums/conversation.enum.d.ts +2 -1
  24. package/lib/_internal/inbox.api.service.d.ts +2 -5
  25. package/lib/_internal/interfaces/api.interface.d.ts +15 -3
  26. package/lib/_internal/interfaces/configuration.interface.d.ts +2 -0
  27. package/lib/_internal/interfaces/index.d.ts +1 -1
  28. package/lib/_internal/objects/api.d.ts +31 -7
  29. package/lib/_internal/objects/configuration.d.ts +2 -0
  30. package/lib/_internal/objects/index.d.ts +1 -1
  31. package/package.json +7 -13
  32. package/esm2020/lib/_internal/conversation.api.service.mjs +0 -225
  33. package/esm2020/lib/_internal/inbox.api.service.mjs +0 -56
  34. package/esm2020/lib/_internal/interfaces/api.interface.mjs +0 -2
  35. package/esm2020/lib/_internal/interfaces/index.mjs +0 -2
  36. package/esm2020/lib/_internal/objects/annotations.mjs +0 -30
  37. package/esm2020/lib/_internal/objects/api.mjs +0 -2472
  38. package/esm2020/lib/_internal/objects/common.mjs +0 -60
  39. package/esm2020/lib/_internal/objects/configuration.mjs +0 -99
  40. package/esm2020/lib/_internal/objects/conversation-view.mjs +0 -33
  41. package/esm2020/lib/_internal/objects/conversation.mjs +0 -153
  42. package/esm2020/lib/_internal/objects/field-mask.mjs +0 -27
  43. package/esm2020/lib/_internal/objects/index.mjs +0 -18
  44. package/esm2020/lib/_internal/objects/message-template.mjs +0 -39
  45. package/esm2020/lib/_internal/objects/message.mjs +0 -149
  46. package/esm2020/lib/_internal/objects/participant.mjs +0 -192
  47. package/esm2020/lib/_internal/objects/widget.mjs +0 -93
  48. package/fesm2015/vendasta-conversation.mjs +0 -3807
  49. package/fesm2015/vendasta-conversation.mjs.map +0 -1
  50. package/fesm2020/vendasta-conversation.mjs.map +0 -1
  51. /package/{esm2020 → esm2022}/lib/_internal/enums/api.enum.mjs +0 -0
  52. /package/{esm2020 → esm2022}/lib/_internal/enums/common.enum.mjs +0 -0
  53. /package/{esm2020 → esm2022}/lib/_internal/enums/conversation-view.enum.mjs +0 -0
  54. /package/{esm2020 → esm2022}/lib/_internal/enums/evaluation.enum.mjs +0 -0
  55. /package/{esm2020 → esm2022}/lib/_internal/enums/index.mjs +0 -0
  56. /package/{esm2020 → esm2022}/lib/_internal/enums/message.enum.mjs +0 -0
  57. /package/{esm2020 → esm2022}/lib/_internal/enums/participant.enum.mjs +0 -0
  58. /package/{esm2020 → esm2022}/lib/_internal/enums/widget.enum.mjs +0 -0
  59. /package/{esm2020 → esm2022}/lib/_internal/index.mjs +0 -0
  60. /package/{esm2020 → esm2022}/lib/_internal/interfaces/annotations.interface.mjs +0 -0
  61. /package/{esm2020 → esm2022}/lib/_internal/interfaces/common.interface.mjs +0 -0
  62. /package/{esm2020 → esm2022}/lib/_internal/interfaces/conversation-view.interface.mjs +0 -0
  63. /package/{esm2020 → esm2022}/lib/_internal/interfaces/conversation.interface.mjs +0 -0
  64. /package/{esm2020 → esm2022}/lib/_internal/interfaces/field-mask.interface.mjs +0 -0
  65. /package/{esm2020 → esm2022}/lib/_internal/interfaces/message-template.interface.mjs +0 -0
  66. /package/{esm2020 → esm2022}/lib/_internal/interfaces/message.interface.mjs +0 -0
  67. /package/{esm2020 → esm2022}/lib/_internal/interfaces/participant.interface.mjs +0 -0
  68. /package/{esm2020 → esm2022}/lib/_internal/interfaces/widget.interface.mjs +0 -0
  69. /package/{esm2020 → esm2022}/lib/index.mjs +0 -0
  70. /package/{esm2020 → esm2022}/public_api.mjs +0 -0
  71. /package/{esm2020 → esm2022}/vendasta-conversation.mjs +0 -0
@@ -1,7 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable } from '@angular/core';
3
- import * as i1 from '@angular/common/http';
4
- import { HttpHeaders } from '@angular/common/http';
2
+ import { Injectable, inject } from '@angular/core';
3
+ import { HttpClient, HttpHeaders } from '@angular/common/http';
5
4
  import { map } from 'rxjs/operators';
6
5
 
7
6
  // *********************************
@@ -47,6 +46,7 @@ var ConversationChannel;
47
46
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_EMAIL"] = 6] = "CONVERSATION_CHANNEL_EMAIL";
48
47
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS"] = 7] = "CONVERSATION_CHANNEL_GOOGLE_BUSINESS_COMMUNICATIONS";
49
48
  ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_WEB_CHAT"] = 8] = "CONVERSATION_CHANNEL_WEB_CHAT";
49
+ ConversationChannel[ConversationChannel["CONVERSATION_CHANNEL_INSTAGRAM"] = 9] = "CONVERSATION_CHANNEL_INSTAGRAM";
50
50
  })(ConversationChannel || (ConversationChannel = {}));
51
51
  var PlatformLocation;
52
52
  (function (PlatformLocation) {
@@ -174,6 +174,8 @@ function enumStringToValue$a(enumRef, value) {
174
174
  return enumRef[value];
175
175
  }
176
176
  class NamespaceDetail {
177
+ participantType;
178
+ internalParticipantId;
177
179
  static fromProto(proto) {
178
180
  let m = new NamespaceDetail();
179
181
  m = Object.assign(m, proto);
@@ -200,6 +202,8 @@ class NamespaceDetail {
200
202
  }
201
203
  }
202
204
  class SubjectParticipant {
205
+ participantType;
206
+ internalParticipantId;
203
207
  static fromProto(proto) {
204
208
  let m = new SubjectParticipant();
205
209
  m = Object.assign(m, proto);
@@ -233,6 +237,21 @@ function enumStringToValue$9(enumRef, value) {
233
237
  return enumRef[value];
234
238
  }
235
239
  class Conversation {
240
+ conversationId;
241
+ channel;
242
+ externalConversationId;
243
+ created;
244
+ updated;
245
+ deleted;
246
+ participantIds;
247
+ latestMsgSentTime;
248
+ originLocation;
249
+ originLocationExternalId;
250
+ lastSeenByParticipant;
251
+ conversationViewIds;
252
+ subjectParticipantsKey;
253
+ subjectParticipants;
254
+ isOpen;
236
255
  static fromProto(proto) {
237
256
  let m = new Conversation();
238
257
  m = Object.assign(m, proto);
@@ -319,6 +338,9 @@ class Conversation {
319
338
  }
320
339
  }
321
340
  class ConversationKey {
341
+ subjectParticipants;
342
+ channel;
343
+ originLocationExternalId;
322
344
  static fromProto(proto) {
323
345
  let m = new ConversationKey();
324
346
  m = Object.assign(m, proto);
@@ -351,6 +373,8 @@ class ConversationKey {
351
373
  }
352
374
  }
353
375
  class LastSeenByParticipant {
376
+ participantId;
377
+ lastSeenTime;
354
378
  static fromProto(proto) {
355
379
  let m = new LastSeenByParticipant();
356
380
  m = Object.assign(m, proto);
@@ -384,6 +408,19 @@ function enumStringToValue$8(enumRef, value) {
384
408
  return enumRef[value];
385
409
  }
386
410
  class Message {
411
+ messageId;
412
+ externalMessageId;
413
+ conversationId;
414
+ participantId;
415
+ type;
416
+ body;
417
+ error;
418
+ created;
419
+ updated;
420
+ deleted;
421
+ media;
422
+ sendStatus;
423
+ channel;
387
424
  static fromProto(proto) {
388
425
  let m = new Message();
389
426
  m = Object.assign(m, proto);
@@ -458,6 +495,10 @@ class Message {
458
495
  }
459
496
  }
460
497
  class ParticipantMessageStatus {
498
+ participantId;
499
+ messageId;
500
+ status;
501
+ updated;
461
502
  static fromProto(proto) {
462
503
  let m = new ParticipantMessageStatus();
463
504
  m = Object.assign(m, proto);
@@ -493,6 +534,9 @@ class ParticipantMessageStatus {
493
534
  }
494
535
  }
495
536
  class SendStatus {
537
+ status;
538
+ reason;
539
+ created;
496
540
  static fromProto(proto) {
497
541
  let m = new SendStatus();
498
542
  m = Object.assign(m, proto);
@@ -532,6 +576,12 @@ function enumStringToValue$7(enumRef, value) {
532
576
  return enumRef[value];
533
577
  }
534
578
  class Address {
579
+ firstLineAddress;
580
+ secondLineAddress;
581
+ city;
582
+ state;
583
+ country;
584
+ zipCode;
535
585
  static fromProto(proto) {
536
586
  let m = new Address();
537
587
  m = Object.assign(m, proto);
@@ -567,6 +617,25 @@ class Address {
567
617
  }
568
618
  }
569
619
  class Participant {
620
+ participantId;
621
+ internalParticipantId;
622
+ partnerId;
623
+ accountGroupId;
624
+ location;
625
+ channel;
626
+ externalParticipantId;
627
+ name;
628
+ created;
629
+ updated;
630
+ deleted;
631
+ participantType;
632
+ email;
633
+ phoneNumber;
634
+ address;
635
+ isSubjectParticipant;
636
+ isParticipantInternalInfoDeleted;
637
+ profileImageUrl;
638
+ namespaceHierarchy;
570
639
  static fromProto(proto) {
571
640
  let m = new Participant();
572
641
  m = Object.assign(m, proto);
@@ -665,6 +734,13 @@ class Participant {
665
734
  }
666
735
  }
667
736
  class ParticipantKey {
737
+ internalParticipantId;
738
+ partnerId;
739
+ accountGroupId;
740
+ location;
741
+ channels;
742
+ participantType;
743
+ namespaceHierarchy;
668
744
  static fromProto(proto) {
669
745
  let m = new ParticipantKey();
670
746
  m = Object.assign(m, proto);
@@ -722,6 +798,8 @@ function enumStringToValue$6(enumRef, value) {
722
798
  return enumRef[value];
723
799
  }
724
800
  class Access {
801
+ scope;
802
+ public;
725
803
  static fromProto(proto) {
726
804
  let m = new Access();
727
805
  m = Object.assign(m, proto);
@@ -752,6 +830,18 @@ function enumStringToValue$5(enumRef, value) {
752
830
  return enumRef[value];
753
831
  }
754
832
  class Configuration {
833
+ subjectParticipant;
834
+ createdAt;
835
+ updatedAt;
836
+ availabilityMessage;
837
+ showAvailabilityMessage;
838
+ googleBusinessMessagesEnabled;
839
+ smsEnabled;
840
+ inboxProEnabled;
841
+ webChatEnabled;
842
+ facebookMessengerEnabled;
843
+ multiLocationEnabled;
844
+ instagramMessagingEnabled;
755
845
  static fromProto(proto) {
756
846
  let m = new Configuration();
757
847
  m = Object.assign(m, proto);
@@ -807,10 +897,19 @@ class Configuration {
807
897
  if (typeof this.multiLocationEnabled !== 'undefined') {
808
898
  toReturn['multiLocationEnabled'] = this.multiLocationEnabled;
809
899
  }
900
+ if (typeof this.instagramMessagingEnabled !== 'undefined') {
901
+ toReturn['instagramMessagingEnabled'] = this.instagramMessagingEnabled;
902
+ }
810
903
  return toReturn;
811
904
  }
812
905
  }
813
906
  class ProductFeature {
907
+ googleBusinessMessagesEnabled;
908
+ smsEnabled;
909
+ multiLocationEnabled;
910
+ webChatEnabled;
911
+ facebookMessengerEnabled;
912
+ instagramMessagingEnabled;
814
913
  static fromProto(proto) {
815
914
  let m = new ProductFeature();
816
915
  m = Object.assign(m, proto);
@@ -839,6 +938,9 @@ class ProductFeature {
839
938
  if (typeof this.facebookMessengerEnabled !== 'undefined') {
840
939
  toReturn['facebookMessengerEnabled'] = this.facebookMessengerEnabled;
841
940
  }
941
+ if (typeof this.instagramMessagingEnabled !== 'undefined') {
942
+ toReturn['instagramMessagingEnabled'] = this.instagramMessagingEnabled;
943
+ }
842
944
  return toReturn;
843
945
  }
844
946
  }
@@ -850,6 +952,8 @@ function enumStringToValue$4(enumRef, value) {
850
952
  return enumRef[value];
851
953
  }
852
954
  class View {
955
+ viewId;
956
+ created;
853
957
  static fromProto(proto) {
854
958
  let m = new View();
855
959
  m = Object.assign(m, proto);
@@ -883,6 +987,7 @@ function enumStringToValue$3(enumRef, value) {
883
987
  return enumRef[value];
884
988
  }
885
989
  class DataSources {
990
+ businessProfile;
886
991
  static fromProto(proto) {
887
992
  let m = new DataSources();
888
993
  m = Object.assign(m, proto);
@@ -903,6 +1008,19 @@ class DataSources {
903
1008
  }
904
1009
  }
905
1010
  class Widget {
1011
+ widgetId;
1012
+ name;
1013
+ namespace;
1014
+ color;
1015
+ allowedUrls;
1016
+ position;
1017
+ created;
1018
+ updated;
1019
+ isEnabled;
1020
+ welcomeMessage;
1021
+ textColor;
1022
+ accentColor;
1023
+ accentTextColor;
906
1024
  static fromProto(proto) {
907
1025
  let m = new Widget();
908
1026
  m = Object.assign(m, proto);
@@ -975,6 +1093,7 @@ function enumStringToValue$2(enumRef, value) {
975
1093
  return enumRef[value];
976
1094
  }
977
1095
  class FieldMask {
1096
+ paths;
978
1097
  static fromProto(proto) {
979
1098
  let m = new FieldMask();
980
1099
  m = Object.assign(m, proto);
@@ -1002,6 +1121,10 @@ function enumStringToValue$1(enumRef, value) {
1002
1121
  return enumRef[value];
1003
1122
  }
1004
1123
  class MessageTemplate {
1124
+ templateId;
1125
+ name;
1126
+ content;
1127
+ created;
1005
1128
  static fromProto(proto) {
1006
1129
  let m = new MessageTemplate();
1007
1130
  m = Object.assign(m, proto);
@@ -1041,6 +1164,9 @@ function enumStringToValue(enumRef, value) {
1041
1164
  return enumRef[value];
1042
1165
  }
1043
1166
  class AddConversationToConversationViewRequest {
1167
+ viewId;
1168
+ conversationId;
1169
+ participantId;
1044
1170
  static fromProto(proto) {
1045
1171
  let m = new AddConversationToConversationViewRequest();
1046
1172
  m = Object.assign(m, proto);
@@ -1067,6 +1193,8 @@ class AddConversationToConversationViewRequest {
1067
1193
  }
1068
1194
  }
1069
1195
  class AddMultiParticipantsRequest {
1196
+ conversationId;
1197
+ participants;
1070
1198
  static fromProto(proto) {
1071
1199
  let m = new AddMultiParticipantsRequest();
1072
1200
  m = Object.assign(m, proto);
@@ -1093,6 +1221,7 @@ class AddMultiParticipantsRequest {
1093
1221
  }
1094
1222
  }
1095
1223
  class AddMultiParticipantsResponse {
1224
+ participants;
1096
1225
  static fromProto(proto) {
1097
1226
  let m = new AddMultiParticipantsResponse();
1098
1227
  m = Object.assign(m, proto);
@@ -1116,6 +1245,8 @@ class AddMultiParticipantsResponse {
1116
1245
  }
1117
1246
  }
1118
1247
  class ConversationMessageCount {
1248
+ conversationId;
1249
+ count;
1119
1250
  static fromProto(proto) {
1120
1251
  let m = new ConversationMessageCount();
1121
1252
  m = Object.assign(m, proto);
@@ -1142,6 +1273,8 @@ class ConversationMessageCount {
1142
1273
  }
1143
1274
  }
1144
1275
  class LookupConversationsResponseConversations {
1276
+ conversation;
1277
+ participants;
1145
1278
  static fromProto(proto) {
1146
1279
  let m = new LookupConversationsResponseConversations();
1147
1280
  m = Object.assign(m, proto);
@@ -1171,6 +1304,8 @@ class LookupConversationsResponseConversations {
1171
1304
  }
1172
1305
  }
1173
1306
  class GetMultiConversationMessageCountResponseCountsEntry {
1307
+ key;
1308
+ value;
1174
1309
  static fromProto(proto) {
1175
1310
  let m = new GetMultiConversationMessageCountResponseCountsEntry();
1176
1311
  m = Object.assign(m, proto);
@@ -1197,6 +1332,13 @@ class GetMultiConversationMessageCountResponseCountsEntry {
1197
1332
  }
1198
1333
  }
1199
1334
  class CreateConversationRequest {
1335
+ participants;
1336
+ channel;
1337
+ externalConversationId;
1338
+ created;
1339
+ updated;
1340
+ originLocation;
1341
+ originLocationExternalId;
1200
1342
  static fromProto(proto) {
1201
1343
  let m = new CreateConversationRequest();
1202
1344
  m = Object.assign(m, proto);
@@ -1250,6 +1392,8 @@ class CreateConversationRequest {
1250
1392
  }
1251
1393
  }
1252
1394
  class CreateConversationResponse {
1395
+ conversation;
1396
+ participants;
1253
1397
  static fromProto(proto) {
1254
1398
  let m = new CreateConversationResponse();
1255
1399
  m = Object.assign(m, proto);
@@ -1279,6 +1423,8 @@ class CreateConversationResponse {
1279
1423
  }
1280
1424
  }
1281
1425
  class CreateMessageTemplateRequest {
1426
+ template;
1427
+ subjectParticipant;
1282
1428
  static fromProto(proto) {
1283
1429
  let m = new CreateMessageTemplateRequest();
1284
1430
  m = Object.assign(m, proto);
@@ -1308,6 +1454,7 @@ class CreateMessageTemplateRequest {
1308
1454
  }
1309
1455
  }
1310
1456
  class CreateMessageTemplateResponse {
1457
+ template;
1311
1458
  static fromProto(proto) {
1312
1459
  let m = new CreateMessageTemplateResponse();
1313
1460
  m = Object.assign(m, proto);
@@ -1331,6 +1478,8 @@ class CreateMessageTemplateResponse {
1331
1478
  }
1332
1479
  }
1333
1480
  class CreateMultiMessagesRequest {
1481
+ messages;
1482
+ lastSeen;
1334
1483
  static fromProto(proto) {
1335
1484
  let m = new CreateMultiMessagesRequest();
1336
1485
  m = Object.assign(m, proto);
@@ -1360,6 +1509,8 @@ class CreateMultiMessagesRequest {
1360
1509
  }
1361
1510
  }
1362
1511
  class CreateWidgetConversationRequest {
1512
+ widgetId;
1513
+ chatSourceUrl;
1363
1514
  static fromProto(proto) {
1364
1515
  let m = new CreateWidgetConversationRequest();
1365
1516
  m = Object.assign(m, proto);
@@ -1383,6 +1534,8 @@ class CreateWidgetConversationRequest {
1383
1534
  }
1384
1535
  }
1385
1536
  class CreateWidgetConversationResponse {
1537
+ widgetParticipantToken;
1538
+ conversation;
1386
1539
  static fromProto(proto) {
1387
1540
  let m = new CreateWidgetConversationResponse();
1388
1541
  m = Object.assign(m, proto);
@@ -1409,6 +1562,15 @@ class CreateWidgetConversationResponse {
1409
1562
  }
1410
1563
  }
1411
1564
  class CreateWidgetRequest {
1565
+ name;
1566
+ namespace;
1567
+ color;
1568
+ allowedUrls;
1569
+ welcomeMessage;
1570
+ dataSources;
1571
+ textColor;
1572
+ accentColor;
1573
+ accentTextColor;
1412
1574
  static fromProto(proto) {
1413
1575
  let m = new CreateWidgetRequest();
1414
1576
  m = Object.assign(m, proto);
@@ -1456,6 +1618,7 @@ class CreateWidgetRequest {
1456
1618
  }
1457
1619
  }
1458
1620
  class CreateWidgetResponse {
1621
+ widget;
1459
1622
  static fromProto(proto) {
1460
1623
  let m = new CreateWidgetResponse();
1461
1624
  m = Object.assign(m, proto);
@@ -1479,6 +1642,8 @@ class CreateWidgetResponse {
1479
1642
  }
1480
1643
  }
1481
1644
  class MetadataDataEntry {
1645
+ key;
1646
+ value;
1482
1647
  static fromProto(proto) {
1483
1648
  let m = new MetadataDataEntry();
1484
1649
  m = Object.assign(m, proto);
@@ -1502,6 +1667,7 @@ class MetadataDataEntry {
1502
1667
  }
1503
1668
  }
1504
1669
  class DeleteConversationRequest {
1670
+ conversationId;
1505
1671
  static fromProto(proto) {
1506
1672
  let m = new DeleteConversationRequest();
1507
1673
  m = Object.assign(m, proto);
@@ -1522,6 +1688,7 @@ class DeleteConversationRequest {
1522
1688
  }
1523
1689
  }
1524
1690
  class DeleteMessageRequest {
1691
+ messageId;
1525
1692
  static fromProto(proto) {
1526
1693
  let m = new DeleteMessageRequest();
1527
1694
  m = Object.assign(m, proto);
@@ -1542,6 +1709,7 @@ class DeleteMessageRequest {
1542
1709
  }
1543
1710
  }
1544
1711
  class DeleteMessageTemplateRequest {
1712
+ templateId;
1545
1713
  static fromProto(proto) {
1546
1714
  let m = new DeleteMessageTemplateRequest();
1547
1715
  m = Object.assign(m, proto);
@@ -1562,6 +1730,7 @@ class DeleteMessageTemplateRequest {
1562
1730
  }
1563
1731
  }
1564
1732
  class DeleteWidgetRequest {
1733
+ widgetId;
1565
1734
  static fromProto(proto) {
1566
1735
  let m = new DeleteWidgetRequest();
1567
1736
  m = Object.assign(m, proto);
@@ -1581,9 +1750,13 @@ class DeleteWidgetRequest {
1581
1750
  return toReturn;
1582
1751
  }
1583
1752
  }
1584
- class SearchConversationsResponseDetailedConversation {
1753
+ class GetMultiConversationDetailsResponseDetailedConversation {
1754
+ conversation;
1755
+ latestMessage;
1756
+ participants;
1757
+ summary;
1585
1758
  static fromProto(proto) {
1586
- let m = new SearchConversationsResponseDetailedConversation();
1759
+ let m = new GetMultiConversationDetailsResponseDetailedConversation();
1587
1760
  m = Object.assign(m, proto);
1588
1761
  if (proto.conversation) {
1589
1762
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -1613,12 +1786,18 @@ class SearchConversationsResponseDetailedConversation {
1613
1786
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
1614
1787
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
1615
1788
  }
1789
+ if (typeof this.summary !== 'undefined') {
1790
+ toReturn['summary'] = this.summary;
1791
+ }
1616
1792
  return toReturn;
1617
1793
  }
1618
1794
  }
1619
- class GetMultiConversationDetailsResponseDetailedConversation {
1795
+ class SearchConversationsResponseDetailedConversation {
1796
+ conversation;
1797
+ latestMessage;
1798
+ participants;
1620
1799
  static fromProto(proto) {
1621
- let m = new GetMultiConversationDetailsResponseDetailedConversation();
1800
+ let m = new SearchConversationsResponseDetailedConversation();
1622
1801
  m = Object.assign(m, proto);
1623
1802
  if (proto.conversation) {
1624
1803
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -1648,13 +1827,13 @@ class GetMultiConversationDetailsResponseDetailedConversation {
1648
1827
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
1649
1828
  toReturn['participants'] = 'toApiJson' in this.participants ? this.participants.toApiJson() : this.participants;
1650
1829
  }
1651
- if (typeof this.summary !== 'undefined') {
1652
- toReturn['summary'] = this.summary;
1653
- }
1654
1830
  return toReturn;
1655
1831
  }
1656
1832
  }
1657
1833
  class EvaluateResponseRequest {
1834
+ messageId;
1835
+ sentiment;
1836
+ comment;
1658
1837
  static fromProto(proto) {
1659
1838
  let m = new EvaluateResponseRequest();
1660
1839
  m = Object.assign(m, proto);
@@ -1684,6 +1863,7 @@ class EvaluateResponseRequest {
1684
1863
  }
1685
1864
  }
1686
1865
  class GetAvailableChannelsForConversationRequest {
1866
+ conversationId;
1687
1867
  static fromProto(proto) {
1688
1868
  let m = new GetAvailableChannelsForConversationRequest();
1689
1869
  m = Object.assign(m, proto);
@@ -1704,6 +1884,8 @@ class GetAvailableChannelsForConversationRequest {
1704
1884
  }
1705
1885
  }
1706
1886
  class GetAvailableChannelsForConversationResponse {
1887
+ channels;
1888
+ preferredChannel;
1707
1889
  static fromProto(proto) {
1708
1890
  let m = new GetAvailableChannelsForConversationResponse();
1709
1891
  m = Object.assign(m, proto);
@@ -1733,6 +1915,7 @@ class GetAvailableChannelsForConversationResponse {
1733
1915
  }
1734
1916
  }
1735
1917
  class GetConfigurationRequest {
1918
+ subjectParticipant;
1736
1919
  static fromProto(proto) {
1737
1920
  let m = new GetConfigurationRequest();
1738
1921
  m = Object.assign(m, proto);
@@ -1756,6 +1939,7 @@ class GetConfigurationRequest {
1756
1939
  }
1757
1940
  }
1758
1941
  class GetConfigurationResponse {
1942
+ configuration;
1759
1943
  static fromProto(proto) {
1760
1944
  let m = new GetConfigurationResponse();
1761
1945
  m = Object.assign(m, proto);
@@ -1779,6 +1963,7 @@ class GetConfigurationResponse {
1779
1963
  }
1780
1964
  }
1781
1965
  class GetConversationByKeyRequest {
1966
+ conversationKey;
1782
1967
  static fromProto(proto) {
1783
1968
  let m = new GetConversationByKeyRequest();
1784
1969
  m = Object.assign(m, proto);
@@ -1802,6 +1987,7 @@ class GetConversationByKeyRequest {
1802
1987
  }
1803
1988
  }
1804
1989
  class GetConversationByKeyResponse {
1990
+ conversation;
1805
1991
  static fromProto(proto) {
1806
1992
  let m = new GetConversationByKeyResponse();
1807
1993
  m = Object.assign(m, proto);
@@ -1824,7 +2010,50 @@ class GetConversationByKeyResponse {
1824
2010
  return toReturn;
1825
2011
  }
1826
2012
  }
2013
+ class GetConversationSummaryRequest {
2014
+ conversationId;
2015
+ static fromProto(proto) {
2016
+ let m = new GetConversationSummaryRequest();
2017
+ m = Object.assign(m, proto);
2018
+ return m;
2019
+ }
2020
+ constructor(kwargs) {
2021
+ if (!kwargs) {
2022
+ return;
2023
+ }
2024
+ Object.assign(this, kwargs);
2025
+ }
2026
+ toApiJson() {
2027
+ const toReturn = {};
2028
+ if (typeof this.conversationId !== 'undefined') {
2029
+ toReturn['conversationId'] = this.conversationId;
2030
+ }
2031
+ return toReturn;
2032
+ }
2033
+ }
2034
+ class GetConversationSummaryResponse {
2035
+ summary;
2036
+ static fromProto(proto) {
2037
+ let m = new GetConversationSummaryResponse();
2038
+ m = Object.assign(m, proto);
2039
+ return m;
2040
+ }
2041
+ constructor(kwargs) {
2042
+ if (!kwargs) {
2043
+ return;
2044
+ }
2045
+ Object.assign(this, kwargs);
2046
+ }
2047
+ toApiJson() {
2048
+ const toReturn = {};
2049
+ if (typeof this.summary !== 'undefined') {
2050
+ toReturn['summary'] = this.summary;
2051
+ }
2052
+ return toReturn;
2053
+ }
2054
+ }
1827
2055
  class GetConversationViewsRequest {
2056
+ participantId;
1828
2057
  static fromProto(proto) {
1829
2058
  let m = new GetConversationViewsRequest();
1830
2059
  m = Object.assign(m, proto);
@@ -1845,6 +2074,7 @@ class GetConversationViewsRequest {
1845
2074
  }
1846
2075
  }
1847
2076
  class GetConversationViewsResponse {
2077
+ views;
1848
2078
  static fromProto(proto) {
1849
2079
  let m = new GetConversationViewsResponse();
1850
2080
  m = Object.assign(m, proto);
@@ -1867,7 +2097,53 @@ class GetConversationViewsResponse {
1867
2097
  return toReturn;
1868
2098
  }
1869
2099
  }
2100
+ class GetForwardingEmailRequest {
2101
+ subjectParticipant;
2102
+ static fromProto(proto) {
2103
+ let m = new GetForwardingEmailRequest();
2104
+ m = Object.assign(m, proto);
2105
+ if (proto.subjectParticipant) {
2106
+ m.subjectParticipant = SubjectParticipant.fromProto(proto.subjectParticipant);
2107
+ }
2108
+ return m;
2109
+ }
2110
+ constructor(kwargs) {
2111
+ if (!kwargs) {
2112
+ return;
2113
+ }
2114
+ Object.assign(this, kwargs);
2115
+ }
2116
+ toApiJson() {
2117
+ const toReturn = {};
2118
+ if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
2119
+ toReturn['subjectParticipant'] = 'toApiJson' in this.subjectParticipant ? this.subjectParticipant.toApiJson() : this.subjectParticipant;
2120
+ }
2121
+ return toReturn;
2122
+ }
2123
+ }
2124
+ class GetForwardingEmailResponse {
2125
+ forwardingEmail;
2126
+ static fromProto(proto) {
2127
+ let m = new GetForwardingEmailResponse();
2128
+ m = Object.assign(m, proto);
2129
+ return m;
2130
+ }
2131
+ constructor(kwargs) {
2132
+ if (!kwargs) {
2133
+ return;
2134
+ }
2135
+ Object.assign(this, kwargs);
2136
+ }
2137
+ toApiJson() {
2138
+ const toReturn = {};
2139
+ if (typeof this.forwardingEmail !== 'undefined') {
2140
+ toReturn['forwardingEmail'] = this.forwardingEmail;
2141
+ }
2142
+ return toReturn;
2143
+ }
2144
+ }
1870
2145
  class GetMessageRequest {
2146
+ messageId;
1871
2147
  static fromProto(proto) {
1872
2148
  let m = new GetMessageRequest();
1873
2149
  m = Object.assign(m, proto);
@@ -1888,6 +2164,7 @@ class GetMessageRequest {
1888
2164
  }
1889
2165
  }
1890
2166
  class GetMessageTemplateRequest {
2167
+ templateId;
1891
2168
  static fromProto(proto) {
1892
2169
  let m = new GetMessageTemplateRequest();
1893
2170
  m = Object.assign(m, proto);
@@ -1908,6 +2185,7 @@ class GetMessageTemplateRequest {
1908
2185
  }
1909
2186
  }
1910
2187
  class GetMessageTemplateResponse {
2188
+ template;
1911
2189
  static fromProto(proto) {
1912
2190
  let m = new GetMessageTemplateResponse();
1913
2191
  m = Object.assign(m, proto);
@@ -1931,6 +2209,7 @@ class GetMessageTemplateResponse {
1931
2209
  }
1932
2210
  }
1933
2211
  class GetMultiConfigurationRequest {
2212
+ subjectParticipants;
1934
2213
  static fromProto(proto) {
1935
2214
  let m = new GetMultiConfigurationRequest();
1936
2215
  m = Object.assign(m, proto);
@@ -1954,6 +2233,7 @@ class GetMultiConfigurationRequest {
1954
2233
  }
1955
2234
  }
1956
2235
  class GetMultiConfigurationResponse {
2236
+ configurations;
1957
2237
  static fromProto(proto) {
1958
2238
  let m = new GetMultiConfigurationResponse();
1959
2239
  m = Object.assign(m, proto);
@@ -1977,6 +2257,8 @@ class GetMultiConfigurationResponse {
1977
2257
  }
1978
2258
  }
1979
2259
  class GetMultiConversationDetailsRequest {
2260
+ conversationIds;
2261
+ options;
1980
2262
  static fromProto(proto) {
1981
2263
  let m = new GetMultiConversationDetailsRequest();
1982
2264
  m = Object.assign(m, proto);
@@ -2003,6 +2285,7 @@ class GetMultiConversationDetailsRequest {
2003
2285
  }
2004
2286
  }
2005
2287
  class GetMultiConversationDetailsResponse {
2288
+ conversations;
2006
2289
  static fromProto(proto) {
2007
2290
  let m = new GetMultiConversationDetailsResponse();
2008
2291
  m = Object.assign(m, proto);
@@ -2026,6 +2309,7 @@ class GetMultiConversationDetailsResponse {
2026
2309
  }
2027
2310
  }
2028
2311
  class GetMultiConversationMessageCountRequest {
2312
+ conversationIds;
2029
2313
  static fromProto(proto) {
2030
2314
  let m = new GetMultiConversationMessageCountRequest();
2031
2315
  m = Object.assign(m, proto);
@@ -2046,6 +2330,8 @@ class GetMultiConversationMessageCountRequest {
2046
2330
  }
2047
2331
  }
2048
2332
  class GetMultiConversationMessageCountResponse {
2333
+ messageCounts;
2334
+ counts;
2049
2335
  static fromProto(proto) {
2050
2336
  let m = new GetMultiConversationMessageCountResponse();
2051
2337
  m = Object.assign(m, proto);
@@ -2075,6 +2361,9 @@ class GetMultiConversationMessageCountResponse {
2075
2361
  }
2076
2362
  }
2077
2363
  class GetMultiMessagesRequest {
2364
+ messageIds;
2365
+ conversationId;
2366
+ languageCode;
2078
2367
  static fromProto(proto) {
2079
2368
  let m = new GetMultiMessagesRequest();
2080
2369
  m = Object.assign(m, proto);
@@ -2101,6 +2390,7 @@ class GetMultiMessagesRequest {
2101
2390
  }
2102
2391
  }
2103
2392
  class GetMultiMessagesResponse {
2393
+ messages;
2104
2394
  static fromProto(proto) {
2105
2395
  let m = new GetMultiMessagesResponse();
2106
2396
  m = Object.assign(m, proto);
@@ -2124,6 +2414,8 @@ class GetMultiMessagesResponse {
2124
2414
  }
2125
2415
  }
2126
2416
  class GetMultiParticipantsRequest {
2417
+ participantIds;
2418
+ conversationId;
2127
2419
  static fromProto(proto) {
2128
2420
  let m = new GetMultiParticipantsRequest();
2129
2421
  m = Object.assign(m, proto);
@@ -2147,6 +2439,7 @@ class GetMultiParticipantsRequest {
2147
2439
  }
2148
2440
  }
2149
2441
  class GetMultiParticipantsResponse {
2442
+ participants;
2150
2443
  static fromProto(proto) {
2151
2444
  let m = new GetMultiParticipantsResponse();
2152
2445
  m = Object.assign(m, proto);
@@ -2170,6 +2463,7 @@ class GetMultiParticipantsResponse {
2170
2463
  }
2171
2464
  }
2172
2465
  class GetMultiWidgetMessagesRequest {
2466
+ messageIds;
2173
2467
  static fromProto(proto) {
2174
2468
  let m = new GetMultiWidgetMessagesRequest();
2175
2469
  m = Object.assign(m, proto);
@@ -2190,6 +2484,7 @@ class GetMultiWidgetMessagesRequest {
2190
2484
  }
2191
2485
  }
2192
2486
  class GetMultiWidgetMessagesResponse {
2487
+ messages;
2193
2488
  static fromProto(proto) {
2194
2489
  let m = new GetMultiWidgetMessagesResponse();
2195
2490
  m = Object.assign(m, proto);
@@ -2213,6 +2508,7 @@ class GetMultiWidgetMessagesResponse {
2213
2508
  }
2214
2509
  }
2215
2510
  class GetParticipantsByKeyRequest {
2511
+ participantKey;
2216
2512
  static fromProto(proto) {
2217
2513
  let m = new GetParticipantsByKeyRequest();
2218
2514
  m = Object.assign(m, proto);
@@ -2236,6 +2532,8 @@ class GetParticipantsByKeyRequest {
2236
2532
  }
2237
2533
  }
2238
2534
  class GetParticipantsByKeyResponse {
2535
+ participants;
2536
+ participant;
2239
2537
  static fromProto(proto) {
2240
2538
  let m = new GetParticipantsByKeyResponse();
2241
2539
  m = Object.assign(m, proto);
@@ -2265,6 +2563,7 @@ class GetParticipantsByKeyResponse {
2265
2563
  }
2266
2564
  }
2267
2565
  class GetWidgetConfigRequest {
2566
+ widgetId;
2268
2567
  static fromProto(proto) {
2269
2568
  let m = new GetWidgetConfigRequest();
2270
2569
  m = Object.assign(m, proto);
@@ -2285,6 +2584,13 @@ class GetWidgetConfigRequest {
2285
2584
  }
2286
2585
  }
2287
2586
  class GetWidgetConfigResponse {
2587
+ name;
2588
+ color;
2589
+ isEnabled;
2590
+ welcomeMessage;
2591
+ textColor;
2592
+ accentColor;
2593
+ accentTextColor;
2288
2594
  static fromProto(proto) {
2289
2595
  let m = new GetWidgetConfigResponse();
2290
2596
  m = Object.assign(m, proto);
@@ -2323,6 +2629,7 @@ class GetWidgetConfigResponse {
2323
2629
  }
2324
2630
  }
2325
2631
  class GetWidgetConversationResponse {
2632
+ conversation;
2326
2633
  static fromProto(proto) {
2327
2634
  let m = new GetWidgetConversationResponse();
2328
2635
  m = Object.assign(m, proto);
@@ -2346,6 +2653,7 @@ class GetWidgetConversationResponse {
2346
2653
  }
2347
2654
  }
2348
2655
  class GetWidgetRequest {
2656
+ widgetId;
2349
2657
  static fromProto(proto) {
2350
2658
  let m = new GetWidgetRequest();
2351
2659
  m = Object.assign(m, proto);
@@ -2366,6 +2674,7 @@ class GetWidgetRequest {
2366
2674
  }
2367
2675
  }
2368
2676
  class GetWidgetResponse {
2677
+ widget;
2369
2678
  static fromProto(proto) {
2370
2679
  let m = new GetWidgetResponse();
2371
2680
  m = Object.assign(m, proto);
@@ -2389,6 +2698,8 @@ class GetWidgetResponse {
2389
2698
  }
2390
2699
  }
2391
2700
  class ListMessageTemplateRequest {
2701
+ subjectParticipant;
2702
+ pagingOptions;
2392
2703
  static fromProto(proto) {
2393
2704
  let m = new ListMessageTemplateRequest();
2394
2705
  m = Object.assign(m, proto);
@@ -2418,6 +2729,8 @@ class ListMessageTemplateRequest {
2418
2729
  }
2419
2730
  }
2420
2731
  class ListMessageTemplateResponse {
2732
+ templates;
2733
+ pagingMetadata;
2421
2734
  static fromProto(proto) {
2422
2735
  let m = new ListMessageTemplateResponse();
2423
2736
  m = Object.assign(m, proto);
@@ -2447,6 +2760,7 @@ class ListMessageTemplateResponse {
2447
2760
  }
2448
2761
  }
2449
2762
  class ListMessagesRequestListMessagesFilters {
2763
+ conversationId;
2450
2764
  static fromProto(proto) {
2451
2765
  let m = new ListMessagesRequestListMessagesFilters();
2452
2766
  m = Object.assign(m, proto);
@@ -2467,6 +2781,8 @@ class ListMessagesRequestListMessagesFilters {
2467
2781
  }
2468
2782
  }
2469
2783
  class ListMessagesRequest {
2784
+ filters;
2785
+ pagingOptions;
2470
2786
  static fromProto(proto) {
2471
2787
  let m = new ListMessagesRequest();
2472
2788
  m = Object.assign(m, proto);
@@ -2496,6 +2812,8 @@ class ListMessagesRequest {
2496
2812
  }
2497
2813
  }
2498
2814
  class ListMessagesResponse {
2815
+ messages;
2816
+ pagingMetadata;
2499
2817
  static fromProto(proto) {
2500
2818
  let m = new ListMessagesResponse();
2501
2819
  m = Object.assign(m, proto);
@@ -2525,6 +2843,8 @@ class ListMessagesResponse {
2525
2843
  }
2526
2844
  }
2527
2845
  class ListWidgetsRequest {
2846
+ namespace;
2847
+ pagingOptions;
2528
2848
  static fromProto(proto) {
2529
2849
  let m = new ListWidgetsRequest();
2530
2850
  m = Object.assign(m, proto);
@@ -2551,6 +2871,8 @@ class ListWidgetsRequest {
2551
2871
  }
2552
2872
  }
2553
2873
  class ListWidgetsResponse {
2874
+ widgets;
2875
+ pagingMetadata;
2554
2876
  static fromProto(proto) {
2555
2877
  let m = new ListWidgetsResponse();
2556
2878
  m = Object.assign(m, proto);
@@ -2580,6 +2902,13 @@ class ListWidgetsResponse {
2580
2902
  }
2581
2903
  }
2582
2904
  class LookupConversationsRequestLookupConversationsFilters {
2905
+ internalParticipantId;
2906
+ location;
2907
+ channel;
2908
+ accountGroupId;
2909
+ externalConversationId;
2910
+ originLocation;
2911
+ originLocationExternalId;
2583
2912
  static fromProto(proto) {
2584
2913
  let m = new LookupConversationsRequestLookupConversationsFilters();
2585
2914
  m = Object.assign(m, proto);
@@ -2627,6 +2956,8 @@ class LookupConversationsRequestLookupConversationsFilters {
2627
2956
  }
2628
2957
  }
2629
2958
  class LookupConversationsRequest {
2959
+ filters;
2960
+ pagingOptions;
2630
2961
  static fromProto(proto) {
2631
2962
  let m = new LookupConversationsRequest();
2632
2963
  m = Object.assign(m, proto);
@@ -2656,6 +2987,8 @@ class LookupConversationsRequest {
2656
2987
  }
2657
2988
  }
2658
2989
  class LookupConversationsResponse {
2990
+ conversations;
2991
+ pagingMetadata;
2659
2992
  static fromProto(proto) {
2660
2993
  let m = new LookupConversationsResponse();
2661
2994
  m = Object.assign(m, proto);
@@ -2685,6 +3018,10 @@ class LookupConversationsResponse {
2685
3018
  }
2686
3019
  }
2687
3020
  class Media {
3021
+ mediaContentType;
3022
+ mediaLocationPath;
3023
+ mediaFileName;
3024
+ fileSize;
2688
3025
  static fromProto(proto) {
2689
3026
  let m = new Media();
2690
3027
  m = Object.assign(m, proto);
@@ -2717,6 +3054,8 @@ class Media {
2717
3054
  }
2718
3055
  }
2719
3056
  class Metadata {
3057
+ identifier;
3058
+ data;
2720
3059
  static fromProto(proto) {
2721
3060
  let m = new Metadata();
2722
3061
  m = Object.assign(m, proto);
@@ -2746,6 +3085,8 @@ class Metadata {
2746
3085
  }
2747
3086
  }
2748
3087
  class ReceiveMessageRequestMetadataEntry {
3088
+ key;
3089
+ value;
2749
3090
  static fromProto(proto) {
2750
3091
  let m = new ReceiveMessageRequestMetadataEntry();
2751
3092
  m = Object.assign(m, proto);
@@ -2769,6 +3110,8 @@ class ReceiveMessageRequestMetadataEntry {
2769
3110
  }
2770
3111
  }
2771
3112
  class PagedRequestOptions {
3113
+ cursor;
3114
+ pageSize;
2772
3115
  static fromProto(proto) {
2773
3116
  let m = new PagedRequestOptions();
2774
3117
  m = Object.assign(m, proto);
@@ -2792,6 +3135,9 @@ class PagedRequestOptions {
2792
3135
  }
2793
3136
  }
2794
3137
  class PagedResponseMetadata {
3138
+ nextCursor;
3139
+ hasMore;
3140
+ totalResults;
2795
3141
  static fromProto(proto) {
2796
3142
  let m = new PagedResponseMetadata();
2797
3143
  m = Object.assign(m, proto);
@@ -2821,6 +3167,18 @@ class PagedResponseMetadata {
2821
3167
  }
2822
3168
  }
2823
3169
  class ReceiveMessageRequest {
3170
+ senderId;
3171
+ recipientId;
3172
+ conversationId;
3173
+ messageId;
3174
+ body;
3175
+ channel;
3176
+ type;
3177
+ location;
3178
+ partnerId;
3179
+ accountGroupId;
3180
+ metadata;
3181
+ media;
2824
3182
  static fromProto(proto) {
2825
3183
  let m = new ReceiveMessageRequest();
2826
3184
  m = Object.assign(m, proto);
@@ -2886,6 +3244,9 @@ class ReceiveMessageRequest {
2886
3244
  }
2887
3245
  }
2888
3246
  class RemoveConversationFromConversationViewRequest {
3247
+ viewId;
3248
+ conversationId;
3249
+ participantId;
2889
3250
  static fromProto(proto) {
2890
3251
  let m = new RemoveConversationFromConversationViewRequest();
2891
3252
  m = Object.assign(m, proto);
@@ -2912,6 +3273,11 @@ class RemoveConversationFromConversationViewRequest {
2912
3273
  }
2913
3274
  }
2914
3275
  class SearchConversationsRequest {
3276
+ partnerId;
3277
+ accountGroupId;
3278
+ location;
3279
+ searchTerm;
3280
+ pagingOptions;
2915
3281
  static fromProto(proto) {
2916
3282
  let m = new SearchConversationsRequest();
2917
3283
  m = Object.assign(m, proto);
@@ -2950,6 +3316,8 @@ class SearchConversationsRequest {
2950
3316
  }
2951
3317
  }
2952
3318
  class SearchConversationsResponse {
3319
+ conversations;
3320
+ pagingMetadata;
2953
3321
  static fromProto(proto) {
2954
3322
  let m = new SearchConversationsResponse();
2955
3323
  m = Object.assign(m, proto);
@@ -2979,6 +3347,15 @@ class SearchConversationsResponse {
2979
3347
  }
2980
3348
  }
2981
3349
  class SendMessageRequest {
3350
+ sender;
3351
+ recipient;
3352
+ conversationId;
3353
+ type;
3354
+ body;
3355
+ metadata;
3356
+ originLocation;
3357
+ media;
3358
+ channel;
2982
3359
  static fromProto(proto) {
2983
3360
  let m = new SendMessageRequest();
2984
3361
  m = Object.assign(m, proto);
@@ -3044,6 +3421,8 @@ class SendMessageRequest {
3044
3421
  }
3045
3422
  }
3046
3423
  class SendMessageResponse {
3424
+ workflowId;
3425
+ messageId;
3047
3426
  static fromProto(proto) {
3048
3427
  let m = new SendMessageResponse();
3049
3428
  m = Object.assign(m, proto);
@@ -3067,6 +3446,10 @@ class SendMessageResponse {
3067
3446
  }
3068
3447
  }
3069
3448
  class SendWidgetMessageRequest {
3449
+ type;
3450
+ body;
3451
+ metadata;
3452
+ location;
3070
3453
  static fromProto(proto) {
3071
3454
  let m = new SendWidgetMessageRequest();
3072
3455
  m = Object.assign(m, proto);
@@ -3105,6 +3488,7 @@ class SendWidgetMessageRequest {
3105
3488
  }
3106
3489
  }
3107
3490
  class SendWidgetMessageResponse {
3491
+ messageId;
3108
3492
  static fromProto(proto) {
3109
3493
  let m = new SendWidgetMessageResponse();
3110
3494
  m = Object.assign(m, proto);
@@ -3125,6 +3509,9 @@ class SendWidgetMessageResponse {
3125
3509
  }
3126
3510
  }
3127
3511
  class SetLastSeenRequest {
3512
+ conversationId;
3513
+ participant;
3514
+ status;
3128
3515
  static fromProto(proto) {
3129
3516
  let m = new SetLastSeenRequest();
3130
3517
  m = Object.assign(m, proto);
@@ -3157,6 +3544,7 @@ class SetLastSeenRequest {
3157
3544
  }
3158
3545
  }
3159
3546
  class SetLastSeenResponse {
3547
+ participant;
3160
3548
  static fromProto(proto) {
3161
3549
  let m = new SetLastSeenResponse();
3162
3550
  m = Object.assign(m, proto);
@@ -3180,6 +3568,8 @@ class SetLastSeenResponse {
3180
3568
  }
3181
3569
  }
3182
3570
  class UpdateConversationRequest {
3571
+ conversation;
3572
+ fieldMask;
3183
3573
  static fromProto(proto) {
3184
3574
  let m = new UpdateConversationRequest();
3185
3575
  m = Object.assign(m, proto);
@@ -3209,6 +3599,7 @@ class UpdateConversationRequest {
3209
3599
  }
3210
3600
  }
3211
3601
  class UpdateConversationResponse {
3602
+ conversation;
3212
3603
  static fromProto(proto) {
3213
3604
  let m = new UpdateConversationResponse();
3214
3605
  m = Object.assign(m, proto);
@@ -3232,6 +3623,9 @@ class UpdateConversationResponse {
3232
3623
  }
3233
3624
  }
3234
3625
  class UpdateMessageStatusRequest {
3626
+ messageId;
3627
+ participantId;
3628
+ status;
3235
3629
  static fromProto(proto) {
3236
3630
  let m = new UpdateMessageStatusRequest();
3237
3631
  m = Object.assign(m, proto);
@@ -3261,6 +3655,8 @@ class UpdateMessageStatusRequest {
3261
3655
  }
3262
3656
  }
3263
3657
  class UpdateMessageTemplateRequest {
3658
+ template;
3659
+ fieldMask;
3264
3660
  static fromProto(proto) {
3265
3661
  let m = new UpdateMessageTemplateRequest();
3266
3662
  m = Object.assign(m, proto);
@@ -3290,6 +3686,7 @@ class UpdateMessageTemplateRequest {
3290
3686
  }
3291
3687
  }
3292
3688
  class UpdateMessageTemplateResponse {
3689
+ template;
3293
3690
  static fromProto(proto) {
3294
3691
  let m = new UpdateMessageTemplateResponse();
3295
3692
  m = Object.assign(m, proto);
@@ -3313,6 +3710,16 @@ class UpdateMessageTemplateResponse {
3313
3710
  }
3314
3711
  }
3315
3712
  class UpdateWidgetRequest {
3713
+ widgetId;
3714
+ name;
3715
+ color;
3716
+ allowedUrls;
3717
+ welcomeMessage;
3718
+ isEnabled;
3719
+ fieldMask;
3720
+ textColor;
3721
+ accentColor;
3722
+ accentTextColor;
3316
3723
  static fromProto(proto) {
3317
3724
  let m = new UpdateWidgetRequest();
3318
3725
  m = Object.assign(m, proto);
@@ -3363,6 +3770,7 @@ class UpdateWidgetRequest {
3363
3770
  }
3364
3771
  }
3365
3772
  class UpdateWidgetResponse {
3773
+ widget;
3366
3774
  static fromProto(proto) {
3367
3775
  let m = new UpdateWidgetResponse();
3368
3776
  m = Object.assign(m, proto);
@@ -3386,6 +3794,8 @@ class UpdateWidgetResponse {
3386
3794
  }
3387
3795
  }
3388
3796
  class UpsertConfigurationRequest {
3797
+ configuration;
3798
+ fieldMask;
3389
3799
  static fromProto(proto) {
3390
3800
  let m = new UpsertConfigurationRequest();
3391
3801
  m = Object.assign(m, proto);
@@ -3415,6 +3825,7 @@ class UpsertConfigurationRequest {
3415
3825
  }
3416
3826
  }
3417
3827
  class UpsertConfigurationResponse {
3828
+ configuration;
3418
3829
  static fromProto(proto) {
3419
3830
  let m = new UpsertConfigurationResponse();
3420
3831
  m = Object.assign(m, proto);
@@ -3438,6 +3849,9 @@ class UpsertConfigurationResponse {
3438
3849
  }
3439
3850
  }
3440
3851
  class UpsertProductFeatureRequest {
3852
+ productFeature;
3853
+ fieldMask;
3854
+ subjectParticipant;
3441
3855
  static fromProto(proto) {
3442
3856
  let m = new UpsertProductFeatureRequest();
3443
3857
  m = Object.assign(m, proto);
@@ -3473,6 +3887,7 @@ class UpsertProductFeatureRequest {
3473
3887
  }
3474
3888
  }
3475
3889
  class UpsertProductFeatureResponse {
3890
+ productFeature;
3476
3891
  static fromProto(proto) {
3477
3892
  let m = new UpsertProductFeatureResponse();
3478
3893
  m = Object.assign(m, proto);
@@ -3518,10 +3933,10 @@ class HostService {
3518
3933
  get hostWithScheme() {
3519
3934
  return 'https://' + this.host;
3520
3935
  }
3936
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3937
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: HostService, providedIn: 'root' });
3521
3938
  }
3522
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
3523
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, providedIn: 'root' });
3524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: HostService, decorators: [{
3939
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: HostService, decorators: [{
3525
3940
  type: Injectable,
3526
3941
  args: [{ providedIn: 'root' }]
3527
3942
  }] });
@@ -3533,11 +3948,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3533
3948
  // API Service.
3534
3949
  // *********************************
3535
3950
  class ConversationApiService {
3536
- constructor(http, hostService) {
3537
- this.http = http;
3538
- this.hostService = hostService;
3539
- this._host = this.hostService.hostWithScheme;
3540
- }
3951
+ hostService = inject(HostService);
3952
+ http = inject(HttpClient);
3953
+ _host = this.hostService.hostWithScheme;
3541
3954
  apiOptions() {
3542
3955
  return {
3543
3956
  headers: new HttpHeaders({
@@ -3735,13 +4148,23 @@ class ConversationApiService {
3735
4148
  return this.http.post(this._host + "/conversation.v1.ConversationService/GetMessageTemplate", request.toApiJson(), this.apiOptions())
3736
4149
  .pipe(map(resp => GetMessageTemplateResponse.fromProto(resp)));
3737
4150
  }
4151
+ getConversationSummary(r) {
4152
+ const request = (r.toApiJson) ? r : new GetConversationSummaryRequest(r);
4153
+ return this.http.post(this._host + "/conversation.v1.ConversationService/GetConversationSummary", request.toApiJson(), this.apiOptions())
4154
+ .pipe(map(resp => GetConversationSummaryResponse.fromProto(resp)));
4155
+ }
4156
+ getForwardingEmail(r) {
4157
+ const request = (r.toApiJson) ? r : new GetForwardingEmailRequest(r);
4158
+ return this.http.post(this._host + "/conversation.v1.ConversationService/GetForwardingEmail", request.toApiJson(), this.apiOptions())
4159
+ .pipe(map(resp => GetForwardingEmailResponse.fromProto(resp)));
4160
+ }
4161
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ConversationApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4162
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
3738
4163
  }
3739
- ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3740
- ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
3741
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ConversationApiService, decorators: [{
4164
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ConversationApiService, decorators: [{
3742
4165
  type: Injectable,
3743
4166
  args: [{ providedIn: 'root' }]
3744
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4167
+ }] });
3745
4168
 
3746
4169
  // *********************************
3747
4170
  // Code generated by sdkgen
@@ -3750,11 +4173,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3750
4173
  // API Service.
3751
4174
  // *********************************
3752
4175
  class InboxApiService {
3753
- constructor(http, hostService) {
3754
- this.http = http;
3755
- this.hostService = hostService;
3756
- this._host = this.hostService.hostWithScheme;
3757
- }
4176
+ hostService = inject(HostService);
4177
+ http = inject(HttpClient);
4178
+ _host = this.hostService.hostWithScheme;
3758
4179
  apiOptions() {
3759
4180
  return {
3760
4181
  headers: new HttpHeaders({
@@ -3783,13 +4204,13 @@ class InboxApiService {
3783
4204
  return this.http.post(this._host + "/conversation.v1.InboxService/UpsertProductFeature", request.toApiJson(), this.apiOptions())
3784
4205
  .pipe(map(resp => UpsertProductFeatureResponse.fromProto(resp)));
3785
4206
  }
4207
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InboxApiService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
4208
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InboxApiService, providedIn: 'root' });
3786
4209
  }
3787
- InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
3788
- InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, providedIn: 'root' });
3789
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InboxApiService, decorators: [{
4210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: InboxApiService, decorators: [{
3790
4211
  type: Injectable,
3791
4212
  args: [{ providedIn: 'root' }]
3792
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
4213
+ }] });
3793
4214
 
3794
4215
  // *********************************
3795
4216
  // Code generated by sdkgen
@@ -3802,5 +4223,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
3802
4223
  * Generated bundle index. Do not edit.
3803
4224
  */
3804
4225
 
3805
- export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, 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 };
4226
+ export { Access, AddConversationToConversationViewRequest, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMessageTemplateRequest, CreateMessageTemplateResponse, CreateMultiMessagesRequest, CreateWidgetConversationRequest, CreateWidgetConversationResponse, CreateWidgetRequest, CreateWidgetResponse, DataSources, DeleteConversationRequest, DeleteMessageRequest, DeleteMessageTemplateRequest, DeleteWidgetRequest, EvaluateResponseRequest, EvaluationSentiment, FieldMask, GetAvailableChannelsForConversationRequest, GetAvailableChannelsForConversationResponse, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetConversationSummaryRequest, GetConversationSummaryResponse, GetConversationViewsRequest, GetConversationViewsResponse, GetForwardingEmailRequest, GetForwardingEmailResponse, GetMessageRequest, GetMessageTemplateRequest, GetMessageTemplateResponse, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetMultiWidgetMessagesRequest, GetMultiWidgetMessagesResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GetWidgetConfigRequest, GetWidgetConfigResponse, GetWidgetConversationResponse, GetWidgetRequest, GetWidgetResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessageTemplateRequest, ListMessageTemplateResponse, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, ListWidgetsRequest, ListWidgetsResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Media, Message, MessageStatus, MessageTemplate, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, NamespaceDetail, 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 };
3806
4227
  //# sourceMappingURL=vendasta-conversation.mjs.map