@vendasta/conversation 0.26.0 → 0.28.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.
@@ -118,12 +118,6 @@ function enumStringToValue$6(enumRef, value) {
118
118
  return enumRef[value];
119
119
  }
120
120
  class Message {
121
- constructor(kwargs) {
122
- if (!kwargs) {
123
- return;
124
- }
125
- Object.assign(this, kwargs);
126
- }
127
121
  static fromProto(proto) {
128
122
  let m = new Message();
129
123
  m = Object.assign(m, proto);
@@ -141,6 +135,12 @@ class Message {
141
135
  }
142
136
  return m;
143
137
  }
138
+ constructor(kwargs) {
139
+ if (!kwargs) {
140
+ return;
141
+ }
142
+ Object.assign(this, kwargs);
143
+ }
144
144
  toApiJson() {
145
145
  const toReturn = {};
146
146
  if (typeof this.messageId !== 'undefined') {
@@ -180,12 +180,6 @@ class Message {
180
180
  }
181
181
  }
182
182
  class ParticipantMessageStatus {
183
- constructor(kwargs) {
184
- if (!kwargs) {
185
- return;
186
- }
187
- Object.assign(this, kwargs);
188
- }
189
183
  static fromProto(proto) {
190
184
  let m = new ParticipantMessageStatus();
191
185
  m = Object.assign(m, proto);
@@ -197,6 +191,12 @@ class ParticipantMessageStatus {
197
191
  }
198
192
  return m;
199
193
  }
194
+ constructor(kwargs) {
195
+ if (!kwargs) {
196
+ return;
197
+ }
198
+ Object.assign(this, kwargs);
199
+ }
200
200
  toApiJson() {
201
201
  const toReturn = {};
202
202
  if (typeof this.participantId !== 'undefined') {
@@ -222,12 +222,6 @@ function enumStringToValue$5(enumRef, value) {
222
222
  return enumRef[value];
223
223
  }
224
224
  class SubjectParticipant {
225
- constructor(kwargs) {
226
- if (!kwargs) {
227
- return;
228
- }
229
- Object.assign(this, kwargs);
230
- }
231
225
  static fromProto(proto) {
232
226
  let m = new SubjectParticipant();
233
227
  m = Object.assign(m, proto);
@@ -236,6 +230,12 @@ class SubjectParticipant {
236
230
  }
237
231
  return m;
238
232
  }
233
+ constructor(kwargs) {
234
+ if (!kwargs) {
235
+ return;
236
+ }
237
+ Object.assign(this, kwargs);
238
+ }
239
239
  toApiJson() {
240
240
  const toReturn = {};
241
241
  if (typeof this.participantType !== 'undefined') {
@@ -255,12 +255,6 @@ function enumStringToValue$4(enumRef, value) {
255
255
  return enumRef[value];
256
256
  }
257
257
  class Conversation {
258
- constructor(kwargs) {
259
- if (!kwargs) {
260
- return;
261
- }
262
- Object.assign(this, kwargs);
263
- }
264
258
  static fromProto(proto) {
265
259
  let m = new Conversation();
266
260
  m = Object.assign(m, proto);
@@ -287,6 +281,12 @@ class Conversation {
287
281
  }
288
282
  return m;
289
283
  }
284
+ constructor(kwargs) {
285
+ if (!kwargs) {
286
+ return;
287
+ }
288
+ Object.assign(this, kwargs);
289
+ }
290
290
  toApiJson() {
291
291
  const toReturn = {};
292
292
  if (typeof this.conversationId !== 'undefined') {
@@ -326,12 +326,6 @@ class Conversation {
326
326
  }
327
327
  }
328
328
  class ConversationKey {
329
- constructor(kwargs) {
330
- if (!kwargs) {
331
- return;
332
- }
333
- Object.assign(this, kwargs);
334
- }
335
329
  static fromProto(proto) {
336
330
  let m = new ConversationKey();
337
331
  m = Object.assign(m, proto);
@@ -343,6 +337,12 @@ class ConversationKey {
343
337
  }
344
338
  return m;
345
339
  }
340
+ constructor(kwargs) {
341
+ if (!kwargs) {
342
+ return;
343
+ }
344
+ Object.assign(this, kwargs);
345
+ }
346
346
  toApiJson() {
347
347
  const toReturn = {};
348
348
  if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
@@ -358,12 +358,6 @@ class ConversationKey {
358
358
  }
359
359
  }
360
360
  class LastSeenByParticipant {
361
- constructor(kwargs) {
362
- if (!kwargs) {
363
- return;
364
- }
365
- Object.assign(this, kwargs);
366
- }
367
361
  static fromProto(proto) {
368
362
  let m = new LastSeenByParticipant();
369
363
  m = Object.assign(m, proto);
@@ -372,6 +366,12 @@ class LastSeenByParticipant {
372
366
  }
373
367
  return m;
374
368
  }
369
+ constructor(kwargs) {
370
+ if (!kwargs) {
371
+ return;
372
+ }
373
+ Object.assign(this, kwargs);
374
+ }
375
375
  toApiJson() {
376
376
  const toReturn = {};
377
377
  if (typeof this.participantId !== 'undefined') {
@@ -391,17 +391,17 @@ function enumStringToValue$3(enumRef, value) {
391
391
  return enumRef[value];
392
392
  }
393
393
  class Address {
394
+ static fromProto(proto) {
395
+ let m = new Address();
396
+ m = Object.assign(m, proto);
397
+ return m;
398
+ }
394
399
  constructor(kwargs) {
395
400
  if (!kwargs) {
396
401
  return;
397
402
  }
398
403
  Object.assign(this, kwargs);
399
404
  }
400
- static fromProto(proto) {
401
- let m = new Address();
402
- m = Object.assign(m, proto);
403
- return m;
404
- }
405
405
  toApiJson() {
406
406
  const toReturn = {};
407
407
  if (typeof this.firstLineAddress !== 'undefined') {
@@ -426,12 +426,6 @@ class Address {
426
426
  }
427
427
  }
428
428
  class Participant {
429
- constructor(kwargs) {
430
- if (!kwargs) {
431
- return;
432
- }
433
- Object.assign(this, kwargs);
434
- }
435
429
  static fromProto(proto) {
436
430
  let m = new Participant();
437
431
  m = Object.assign(m, proto);
@@ -458,6 +452,12 @@ class Participant {
458
452
  }
459
453
  return m;
460
454
  }
455
+ constructor(kwargs) {
456
+ if (!kwargs) {
457
+ return;
458
+ }
459
+ Object.assign(this, kwargs);
460
+ }
461
461
  toApiJson() {
462
462
  const toReturn = {};
463
463
  if (typeof this.participantId !== 'undefined') {
@@ -518,12 +518,6 @@ class Participant {
518
518
  }
519
519
  }
520
520
  class ParticipantKey {
521
- constructor(kwargs) {
522
- if (!kwargs) {
523
- return;
524
- }
525
- Object.assign(this, kwargs);
526
- }
527
521
  static fromProto(proto) {
528
522
  let m = new ParticipantKey();
529
523
  m = Object.assign(m, proto);
@@ -538,6 +532,12 @@ class ParticipantKey {
538
532
  }
539
533
  return m;
540
534
  }
535
+ constructor(kwargs) {
536
+ if (!kwargs) {
537
+ return;
538
+ }
539
+ Object.assign(this, kwargs);
540
+ }
541
541
  toApiJson() {
542
542
  const toReturn = {};
543
543
  if (typeof this.internalParticipantId !== 'undefined') {
@@ -569,17 +569,17 @@ function enumStringToValue$2(enumRef, value) {
569
569
  return enumRef[value];
570
570
  }
571
571
  class Access {
572
+ static fromProto(proto) {
573
+ let m = new Access();
574
+ m = Object.assign(m, proto);
575
+ return m;
576
+ }
572
577
  constructor(kwargs) {
573
578
  if (!kwargs) {
574
579
  return;
575
580
  }
576
581
  Object.assign(this, kwargs);
577
582
  }
578
- static fromProto(proto) {
579
- let m = new Access();
580
- m = Object.assign(m, proto);
581
- return m;
582
- }
583
583
  toApiJson() {
584
584
  const toReturn = {};
585
585
  if (typeof this.scope !== 'undefined') {
@@ -599,12 +599,6 @@ function enumStringToValue$1(enumRef, value) {
599
599
  return enumRef[value];
600
600
  }
601
601
  class Configuration {
602
- constructor(kwargs) {
603
- if (!kwargs) {
604
- return;
605
- }
606
- Object.assign(this, kwargs);
607
- }
608
602
  static fromProto(proto) {
609
603
  let m = new Configuration();
610
604
  m = Object.assign(m, proto);
@@ -619,6 +613,12 @@ class Configuration {
619
613
  }
620
614
  return m;
621
615
  }
616
+ constructor(kwargs) {
617
+ if (!kwargs) {
618
+ return;
619
+ }
620
+ Object.assign(this, kwargs);
621
+ }
622
622
  toApiJson() {
623
623
  const toReturn = {};
624
624
  if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
@@ -647,12 +647,6 @@ function enumStringToValue(enumRef, value) {
647
647
  return enumRef[value];
648
648
  }
649
649
  class AddMultiParticipantsRequest {
650
- constructor(kwargs) {
651
- if (!kwargs) {
652
- return;
653
- }
654
- Object.assign(this, kwargs);
655
- }
656
650
  static fromProto(proto) {
657
651
  let m = new AddMultiParticipantsRequest();
658
652
  m = Object.assign(m, proto);
@@ -661,6 +655,12 @@ class AddMultiParticipantsRequest {
661
655
  }
662
656
  return m;
663
657
  }
658
+ constructor(kwargs) {
659
+ if (!kwargs) {
660
+ return;
661
+ }
662
+ Object.assign(this, kwargs);
663
+ }
664
664
  toApiJson() {
665
665
  const toReturn = {};
666
666
  if (typeof this.conversationId !== 'undefined') {
@@ -673,12 +673,6 @@ class AddMultiParticipantsRequest {
673
673
  }
674
674
  }
675
675
  class AddMultiParticipantsResponse {
676
- constructor(kwargs) {
677
- if (!kwargs) {
678
- return;
679
- }
680
- Object.assign(this, kwargs);
681
- }
682
676
  static fromProto(proto) {
683
677
  let m = new AddMultiParticipantsResponse();
684
678
  m = Object.assign(m, proto);
@@ -687,6 +681,12 @@ class AddMultiParticipantsResponse {
687
681
  }
688
682
  return m;
689
683
  }
684
+ constructor(kwargs) {
685
+ if (!kwargs) {
686
+ return;
687
+ }
688
+ Object.assign(this, kwargs);
689
+ }
690
690
  toApiJson() {
691
691
  const toReturn = {};
692
692
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -696,12 +696,6 @@ class AddMultiParticipantsResponse {
696
696
  }
697
697
  }
698
698
  class ConversationMessageCount {
699
- constructor(kwargs) {
700
- if (!kwargs) {
701
- return;
702
- }
703
- Object.assign(this, kwargs);
704
- }
705
699
  static fromProto(proto) {
706
700
  let m = new ConversationMessageCount();
707
701
  m = Object.assign(m, proto);
@@ -710,6 +704,12 @@ class ConversationMessageCount {
710
704
  }
711
705
  return m;
712
706
  }
707
+ constructor(kwargs) {
708
+ if (!kwargs) {
709
+ return;
710
+ }
711
+ Object.assign(this, kwargs);
712
+ }
713
713
  toApiJson() {
714
714
  const toReturn = {};
715
715
  if (typeof this.conversationId !== 'undefined') {
@@ -722,12 +722,6 @@ class ConversationMessageCount {
722
722
  }
723
723
  }
724
724
  class LookupConversationsResponseConversations {
725
- constructor(kwargs) {
726
- if (!kwargs) {
727
- return;
728
- }
729
- Object.assign(this, kwargs);
730
- }
731
725
  static fromProto(proto) {
732
726
  let m = new LookupConversationsResponseConversations();
733
727
  m = Object.assign(m, proto);
@@ -739,6 +733,12 @@ class LookupConversationsResponseConversations {
739
733
  }
740
734
  return m;
741
735
  }
736
+ constructor(kwargs) {
737
+ if (!kwargs) {
738
+ return;
739
+ }
740
+ Object.assign(this, kwargs);
741
+ }
742
742
  toApiJson() {
743
743
  const toReturn = {};
744
744
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -751,12 +751,6 @@ class LookupConversationsResponseConversations {
751
751
  }
752
752
  }
753
753
  class GetMultiConversationMessageCountResponseCountsEntry {
754
- constructor(kwargs) {
755
- if (!kwargs) {
756
- return;
757
- }
758
- Object.assign(this, kwargs);
759
- }
760
754
  static fromProto(proto) {
761
755
  let m = new GetMultiConversationMessageCountResponseCountsEntry();
762
756
  m = Object.assign(m, proto);
@@ -765,6 +759,12 @@ class GetMultiConversationMessageCountResponseCountsEntry {
765
759
  }
766
760
  return m;
767
761
  }
762
+ constructor(kwargs) {
763
+ if (!kwargs) {
764
+ return;
765
+ }
766
+ Object.assign(this, kwargs);
767
+ }
768
768
  toApiJson() {
769
769
  const toReturn = {};
770
770
  if (typeof this.key !== 'undefined') {
@@ -777,12 +777,6 @@ class GetMultiConversationMessageCountResponseCountsEntry {
777
777
  }
778
778
  }
779
779
  class CreateConversationRequest {
780
- constructor(kwargs) {
781
- if (!kwargs) {
782
- return;
783
- }
784
- Object.assign(this, kwargs);
785
- }
786
780
  static fromProto(proto) {
787
781
  let m = new CreateConversationRequest();
788
782
  m = Object.assign(m, proto);
@@ -803,6 +797,12 @@ class CreateConversationRequest {
803
797
  }
804
798
  return m;
805
799
  }
800
+ constructor(kwargs) {
801
+ if (!kwargs) {
802
+ return;
803
+ }
804
+ Object.assign(this, kwargs);
805
+ }
806
806
  toApiJson() {
807
807
  const toReturn = {};
808
808
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -830,12 +830,6 @@ class CreateConversationRequest {
830
830
  }
831
831
  }
832
832
  class CreateConversationResponse {
833
- constructor(kwargs) {
834
- if (!kwargs) {
835
- return;
836
- }
837
- Object.assign(this, kwargs);
838
- }
839
833
  static fromProto(proto) {
840
834
  let m = new CreateConversationResponse();
841
835
  m = Object.assign(m, proto);
@@ -847,6 +841,12 @@ class CreateConversationResponse {
847
841
  }
848
842
  return m;
849
843
  }
844
+ constructor(kwargs) {
845
+ if (!kwargs) {
846
+ return;
847
+ }
848
+ Object.assign(this, kwargs);
849
+ }
850
850
  toApiJson() {
851
851
  const toReturn = {};
852
852
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -859,12 +859,6 @@ class CreateConversationResponse {
859
859
  }
860
860
  }
861
861
  class CreateMultiMessagesRequest {
862
- constructor(kwargs) {
863
- if (!kwargs) {
864
- return;
865
- }
866
- Object.assign(this, kwargs);
867
- }
868
862
  static fromProto(proto) {
869
863
  let m = new CreateMultiMessagesRequest();
870
864
  m = Object.assign(m, proto);
@@ -876,6 +870,12 @@ class CreateMultiMessagesRequest {
876
870
  }
877
871
  return m;
878
872
  }
873
+ constructor(kwargs) {
874
+ if (!kwargs) {
875
+ return;
876
+ }
877
+ Object.assign(this, kwargs);
878
+ }
879
879
  toApiJson() {
880
880
  const toReturn = {};
881
881
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -888,17 +888,17 @@ class CreateMultiMessagesRequest {
888
888
  }
889
889
  }
890
890
  class MetadataDataEntry {
891
+ static fromProto(proto) {
892
+ let m = new MetadataDataEntry();
893
+ m = Object.assign(m, proto);
894
+ return m;
895
+ }
891
896
  constructor(kwargs) {
892
897
  if (!kwargs) {
893
898
  return;
894
899
  }
895
900
  Object.assign(this, kwargs);
896
901
  }
897
- static fromProto(proto) {
898
- let m = new MetadataDataEntry();
899
- m = Object.assign(m, proto);
900
- return m;
901
- }
902
902
  toApiJson() {
903
903
  const toReturn = {};
904
904
  if (typeof this.key !== 'undefined') {
@@ -911,17 +911,17 @@ class MetadataDataEntry {
911
911
  }
912
912
  }
913
913
  class DeleteConversationRequest {
914
+ static fromProto(proto) {
915
+ let m = new DeleteConversationRequest();
916
+ m = Object.assign(m, proto);
917
+ return m;
918
+ }
914
919
  constructor(kwargs) {
915
920
  if (!kwargs) {
916
921
  return;
917
922
  }
918
923
  Object.assign(this, kwargs);
919
924
  }
920
- static fromProto(proto) {
921
- let m = new DeleteConversationRequest();
922
- m = Object.assign(m, proto);
923
- return m;
924
- }
925
925
  toApiJson() {
926
926
  const toReturn = {};
927
927
  if (typeof this.conversationId !== 'undefined') {
@@ -931,17 +931,17 @@ class DeleteConversationRequest {
931
931
  }
932
932
  }
933
933
  class DeleteMessageRequest {
934
+ static fromProto(proto) {
935
+ let m = new DeleteMessageRequest();
936
+ m = Object.assign(m, proto);
937
+ return m;
938
+ }
934
939
  constructor(kwargs) {
935
940
  if (!kwargs) {
936
941
  return;
937
942
  }
938
943
  Object.assign(this, kwargs);
939
944
  }
940
- static fromProto(proto) {
941
- let m = new DeleteMessageRequest();
942
- m = Object.assign(m, proto);
943
- return m;
944
- }
945
945
  toApiJson() {
946
946
  const toReturn = {};
947
947
  if (typeof this.messageId !== 'undefined') {
@@ -950,15 +950,9 @@ class DeleteMessageRequest {
950
950
  return toReturn;
951
951
  }
952
952
  }
953
- class SearchConversationsResponseDetailedConversation {
954
- constructor(kwargs) {
955
- if (!kwargs) {
956
- return;
957
- }
958
- Object.assign(this, kwargs);
959
- }
953
+ class GetMultiConversationDetailsResponseDetailedConversation {
960
954
  static fromProto(proto) {
961
- let m = new SearchConversationsResponseDetailedConversation();
955
+ let m = new GetMultiConversationDetailsResponseDetailedConversation();
962
956
  m = Object.assign(m, proto);
963
957
  if (proto.conversation) {
964
958
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -971,6 +965,12 @@ class SearchConversationsResponseDetailedConversation {
971
965
  }
972
966
  return m;
973
967
  }
968
+ constructor(kwargs) {
969
+ if (!kwargs) {
970
+ return;
971
+ }
972
+ Object.assign(this, kwargs);
973
+ }
974
974
  toApiJson() {
975
975
  const toReturn = {};
976
976
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -985,15 +985,9 @@ class SearchConversationsResponseDetailedConversation {
985
985
  return toReturn;
986
986
  }
987
987
  }
988
- class GetMultiConversationDetailsResponseDetailedConversation {
989
- constructor(kwargs) {
990
- if (!kwargs) {
991
- return;
992
- }
993
- Object.assign(this, kwargs);
994
- }
988
+ class SearchConversationsResponseDetailedConversation {
995
989
  static fromProto(proto) {
996
- let m = new GetMultiConversationDetailsResponseDetailedConversation();
990
+ let m = new SearchConversationsResponseDetailedConversation();
997
991
  m = Object.assign(m, proto);
998
992
  if (proto.conversation) {
999
993
  m.conversation = Conversation.fromProto(proto.conversation);
@@ -1006,6 +1000,12 @@ class GetMultiConversationDetailsResponseDetailedConversation {
1006
1000
  }
1007
1001
  return m;
1008
1002
  }
1003
+ constructor(kwargs) {
1004
+ if (!kwargs) {
1005
+ return;
1006
+ }
1007
+ Object.assign(this, kwargs);
1008
+ }
1009
1009
  toApiJson() {
1010
1010
  const toReturn = {};
1011
1011
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -1021,12 +1021,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
1021
1021
  }
1022
1022
  }
1023
1023
  class GetConfigurationRequest {
1024
- constructor(kwargs) {
1025
- if (!kwargs) {
1026
- return;
1027
- }
1028
- Object.assign(this, kwargs);
1029
- }
1030
1024
  static fromProto(proto) {
1031
1025
  let m = new GetConfigurationRequest();
1032
1026
  m = Object.assign(m, proto);
@@ -1035,6 +1029,12 @@ class GetConfigurationRequest {
1035
1029
  }
1036
1030
  return m;
1037
1031
  }
1032
+ constructor(kwargs) {
1033
+ if (!kwargs) {
1034
+ return;
1035
+ }
1036
+ Object.assign(this, kwargs);
1037
+ }
1038
1038
  toApiJson() {
1039
1039
  const toReturn = {};
1040
1040
  if (typeof this.subjectParticipant !== 'undefined' && this.subjectParticipant !== null) {
@@ -1044,12 +1044,6 @@ class GetConfigurationRequest {
1044
1044
  }
1045
1045
  }
1046
1046
  class GetConfigurationResponse {
1047
- constructor(kwargs) {
1048
- if (!kwargs) {
1049
- return;
1050
- }
1051
- Object.assign(this, kwargs);
1052
- }
1053
1047
  static fromProto(proto) {
1054
1048
  let m = new GetConfigurationResponse();
1055
1049
  m = Object.assign(m, proto);
@@ -1058,6 +1052,12 @@ class GetConfigurationResponse {
1058
1052
  }
1059
1053
  return m;
1060
1054
  }
1055
+ constructor(kwargs) {
1056
+ if (!kwargs) {
1057
+ return;
1058
+ }
1059
+ Object.assign(this, kwargs);
1060
+ }
1061
1061
  toApiJson() {
1062
1062
  const toReturn = {};
1063
1063
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -1067,12 +1067,6 @@ class GetConfigurationResponse {
1067
1067
  }
1068
1068
  }
1069
1069
  class GetConversationByKeyRequest {
1070
- constructor(kwargs) {
1071
- if (!kwargs) {
1072
- return;
1073
- }
1074
- Object.assign(this, kwargs);
1075
- }
1076
1070
  static fromProto(proto) {
1077
1071
  let m = new GetConversationByKeyRequest();
1078
1072
  m = Object.assign(m, proto);
@@ -1081,6 +1075,12 @@ class GetConversationByKeyRequest {
1081
1075
  }
1082
1076
  return m;
1083
1077
  }
1078
+ constructor(kwargs) {
1079
+ if (!kwargs) {
1080
+ return;
1081
+ }
1082
+ Object.assign(this, kwargs);
1083
+ }
1084
1084
  toApiJson() {
1085
1085
  const toReturn = {};
1086
1086
  if (typeof this.conversationKey !== 'undefined' && this.conversationKey !== null) {
@@ -1090,12 +1090,6 @@ class GetConversationByKeyRequest {
1090
1090
  }
1091
1091
  }
1092
1092
  class GetConversationByKeyResponse {
1093
- constructor(kwargs) {
1094
- if (!kwargs) {
1095
- return;
1096
- }
1097
- Object.assign(this, kwargs);
1098
- }
1099
1093
  static fromProto(proto) {
1100
1094
  let m = new GetConversationByKeyResponse();
1101
1095
  m = Object.assign(m, proto);
@@ -1104,6 +1098,12 @@ class GetConversationByKeyResponse {
1104
1098
  }
1105
1099
  return m;
1106
1100
  }
1101
+ constructor(kwargs) {
1102
+ if (!kwargs) {
1103
+ return;
1104
+ }
1105
+ Object.assign(this, kwargs);
1106
+ }
1107
1107
  toApiJson() {
1108
1108
  const toReturn = {};
1109
1109
  if (typeof this.conversation !== 'undefined' && this.conversation !== null) {
@@ -1113,17 +1113,17 @@ class GetConversationByKeyResponse {
1113
1113
  }
1114
1114
  }
1115
1115
  class GetMessageRequest {
1116
+ static fromProto(proto) {
1117
+ let m = new GetMessageRequest();
1118
+ m = Object.assign(m, proto);
1119
+ return m;
1120
+ }
1116
1121
  constructor(kwargs) {
1117
1122
  if (!kwargs) {
1118
1123
  return;
1119
1124
  }
1120
1125
  Object.assign(this, kwargs);
1121
1126
  }
1122
- static fromProto(proto) {
1123
- let m = new GetMessageRequest();
1124
- m = Object.assign(m, proto);
1125
- return m;
1126
- }
1127
1127
  toApiJson() {
1128
1128
  const toReturn = {};
1129
1129
  if (typeof this.messageId !== 'undefined') {
@@ -1132,33 +1132,73 @@ class GetMessageRequest {
1132
1132
  return toReturn;
1133
1133
  }
1134
1134
  }
1135
- class GetMultiConversationDetailsRequest {
1135
+ class GetMultiConfigurationRequest {
1136
+ static fromProto(proto) {
1137
+ let m = new GetMultiConfigurationRequest();
1138
+ m = Object.assign(m, proto);
1139
+ if (proto.subjectParticipants) {
1140
+ m.subjectParticipants = proto.subjectParticipants.map(SubjectParticipant.fromProto);
1141
+ }
1142
+ return m;
1143
+ }
1136
1144
  constructor(kwargs) {
1137
1145
  if (!kwargs) {
1138
1146
  return;
1139
1147
  }
1140
1148
  Object.assign(this, kwargs);
1141
1149
  }
1150
+ toApiJson() {
1151
+ const toReturn = {};
1152
+ if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
1153
+ toReturn['subjectParticipants'] = 'toApiJson' in this.subjectParticipants ? this.subjectParticipants.toApiJson() : this.subjectParticipants;
1154
+ }
1155
+ return toReturn;
1156
+ }
1157
+ }
1158
+ class GetMultiConfigurationResponse {
1142
1159
  static fromProto(proto) {
1143
- let m = new GetMultiConversationDetailsRequest();
1160
+ let m = new GetMultiConfigurationResponse();
1144
1161
  m = Object.assign(m, proto);
1162
+ if (proto.configurations) {
1163
+ m.configurations = proto.configurations.map(Configuration.fromProto);
1164
+ }
1145
1165
  return m;
1146
1166
  }
1167
+ constructor(kwargs) {
1168
+ if (!kwargs) {
1169
+ return;
1170
+ }
1171
+ Object.assign(this, kwargs);
1172
+ }
1147
1173
  toApiJson() {
1148
1174
  const toReturn = {};
1149
- if (typeof this.conversationIds !== 'undefined') {
1150
- toReturn['conversationIds'] = this.conversationIds;
1175
+ if (typeof this.configurations !== 'undefined' && this.configurations !== null) {
1176
+ toReturn['configurations'] = 'toApiJson' in this.configurations ? this.configurations.toApiJson() : this.configurations;
1151
1177
  }
1152
1178
  return toReturn;
1153
1179
  }
1154
1180
  }
1155
- class GetMultiConversationDetailsResponse {
1181
+ class GetMultiConversationDetailsRequest {
1182
+ static fromProto(proto) {
1183
+ let m = new GetMultiConversationDetailsRequest();
1184
+ m = Object.assign(m, proto);
1185
+ return m;
1186
+ }
1156
1187
  constructor(kwargs) {
1157
1188
  if (!kwargs) {
1158
1189
  return;
1159
1190
  }
1160
1191
  Object.assign(this, kwargs);
1161
1192
  }
1193
+ toApiJson() {
1194
+ const toReturn = {};
1195
+ if (typeof this.conversationIds !== 'undefined') {
1196
+ toReturn['conversationIds'] = this.conversationIds;
1197
+ }
1198
+ return toReturn;
1199
+ }
1200
+ }
1201
+ class GetMultiConversationDetailsResponse {
1162
1202
  static fromProto(proto) {
1163
1203
  let m = new GetMultiConversationDetailsResponse();
1164
1204
  m = Object.assign(m, proto);
@@ -1167,6 +1207,12 @@ class GetMultiConversationDetailsResponse {
1167
1207
  }
1168
1208
  return m;
1169
1209
  }
1210
+ constructor(kwargs) {
1211
+ if (!kwargs) {
1212
+ return;
1213
+ }
1214
+ Object.assign(this, kwargs);
1215
+ }
1170
1216
  toApiJson() {
1171
1217
  const toReturn = {};
1172
1218
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1176,17 +1222,17 @@ class GetMultiConversationDetailsResponse {
1176
1222
  }
1177
1223
  }
1178
1224
  class GetMultiConversationMessageCountRequest {
1225
+ static fromProto(proto) {
1226
+ let m = new GetMultiConversationMessageCountRequest();
1227
+ m = Object.assign(m, proto);
1228
+ return m;
1229
+ }
1179
1230
  constructor(kwargs) {
1180
1231
  if (!kwargs) {
1181
1232
  return;
1182
1233
  }
1183
1234
  Object.assign(this, kwargs);
1184
1235
  }
1185
- static fromProto(proto) {
1186
- let m = new GetMultiConversationMessageCountRequest();
1187
- m = Object.assign(m, proto);
1188
- return m;
1189
- }
1190
1236
  toApiJson() {
1191
1237
  const toReturn = {};
1192
1238
  if (typeof this.conversationIds !== 'undefined') {
@@ -1196,12 +1242,6 @@ class GetMultiConversationMessageCountRequest {
1196
1242
  }
1197
1243
  }
1198
1244
  class GetMultiConversationMessageCountResponse {
1199
- constructor(kwargs) {
1200
- if (!kwargs) {
1201
- return;
1202
- }
1203
- Object.assign(this, kwargs);
1204
- }
1205
1245
  static fromProto(proto) {
1206
1246
  let m = new GetMultiConversationMessageCountResponse();
1207
1247
  m = Object.assign(m, proto);
@@ -1213,6 +1253,12 @@ class GetMultiConversationMessageCountResponse {
1213
1253
  }
1214
1254
  return m;
1215
1255
  }
1256
+ constructor(kwargs) {
1257
+ if (!kwargs) {
1258
+ return;
1259
+ }
1260
+ Object.assign(this, kwargs);
1261
+ }
1216
1262
  toApiJson() {
1217
1263
  const toReturn = {};
1218
1264
  if (typeof this.messageCounts !== 'undefined' && this.messageCounts !== null) {
@@ -1225,17 +1271,17 @@ class GetMultiConversationMessageCountResponse {
1225
1271
  }
1226
1272
  }
1227
1273
  class GetMultiMessagesRequest {
1274
+ static fromProto(proto) {
1275
+ let m = new GetMultiMessagesRequest();
1276
+ m = Object.assign(m, proto);
1277
+ return m;
1278
+ }
1228
1279
  constructor(kwargs) {
1229
1280
  if (!kwargs) {
1230
1281
  return;
1231
1282
  }
1232
1283
  Object.assign(this, kwargs);
1233
1284
  }
1234
- static fromProto(proto) {
1235
- let m = new GetMultiMessagesRequest();
1236
- m = Object.assign(m, proto);
1237
- return m;
1238
- }
1239
1285
  toApiJson() {
1240
1286
  const toReturn = {};
1241
1287
  if (typeof this.messageIds !== 'undefined') {
@@ -1248,12 +1294,6 @@ class GetMultiMessagesRequest {
1248
1294
  }
1249
1295
  }
1250
1296
  class GetMultiMessagesResponse {
1251
- constructor(kwargs) {
1252
- if (!kwargs) {
1253
- return;
1254
- }
1255
- Object.assign(this, kwargs);
1256
- }
1257
1297
  static fromProto(proto) {
1258
1298
  let m = new GetMultiMessagesResponse();
1259
1299
  m = Object.assign(m, proto);
@@ -1262,6 +1302,12 @@ class GetMultiMessagesResponse {
1262
1302
  }
1263
1303
  return m;
1264
1304
  }
1305
+ constructor(kwargs) {
1306
+ if (!kwargs) {
1307
+ return;
1308
+ }
1309
+ Object.assign(this, kwargs);
1310
+ }
1265
1311
  toApiJson() {
1266
1312
  const toReturn = {};
1267
1313
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1271,17 +1317,17 @@ class GetMultiMessagesResponse {
1271
1317
  }
1272
1318
  }
1273
1319
  class GetMultiParticipantsRequest {
1320
+ static fromProto(proto) {
1321
+ let m = new GetMultiParticipantsRequest();
1322
+ m = Object.assign(m, proto);
1323
+ return m;
1324
+ }
1274
1325
  constructor(kwargs) {
1275
1326
  if (!kwargs) {
1276
1327
  return;
1277
1328
  }
1278
1329
  Object.assign(this, kwargs);
1279
1330
  }
1280
- static fromProto(proto) {
1281
- let m = new GetMultiParticipantsRequest();
1282
- m = Object.assign(m, proto);
1283
- return m;
1284
- }
1285
1331
  toApiJson() {
1286
1332
  const toReturn = {};
1287
1333
  if (typeof this.participantIds !== 'undefined') {
@@ -1294,12 +1340,6 @@ class GetMultiParticipantsRequest {
1294
1340
  }
1295
1341
  }
1296
1342
  class GetMultiParticipantsResponse {
1297
- constructor(kwargs) {
1298
- if (!kwargs) {
1299
- return;
1300
- }
1301
- Object.assign(this, kwargs);
1302
- }
1303
1343
  static fromProto(proto) {
1304
1344
  let m = new GetMultiParticipantsResponse();
1305
1345
  m = Object.assign(m, proto);
@@ -1308,6 +1348,12 @@ class GetMultiParticipantsResponse {
1308
1348
  }
1309
1349
  return m;
1310
1350
  }
1351
+ constructor(kwargs) {
1352
+ if (!kwargs) {
1353
+ return;
1354
+ }
1355
+ Object.assign(this, kwargs);
1356
+ }
1311
1357
  toApiJson() {
1312
1358
  const toReturn = {};
1313
1359
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1317,12 +1363,6 @@ class GetMultiParticipantsResponse {
1317
1363
  }
1318
1364
  }
1319
1365
  class GetParticipantsByKeyRequest {
1320
- constructor(kwargs) {
1321
- if (!kwargs) {
1322
- return;
1323
- }
1324
- Object.assign(this, kwargs);
1325
- }
1326
1366
  static fromProto(proto) {
1327
1367
  let m = new GetParticipantsByKeyRequest();
1328
1368
  m = Object.assign(m, proto);
@@ -1331,6 +1371,12 @@ class GetParticipantsByKeyRequest {
1331
1371
  }
1332
1372
  return m;
1333
1373
  }
1374
+ constructor(kwargs) {
1375
+ if (!kwargs) {
1376
+ return;
1377
+ }
1378
+ Object.assign(this, kwargs);
1379
+ }
1334
1380
  toApiJson() {
1335
1381
  const toReturn = {};
1336
1382
  if (typeof this.participantKey !== 'undefined' && this.participantKey !== null) {
@@ -1340,12 +1386,6 @@ class GetParticipantsByKeyRequest {
1340
1386
  }
1341
1387
  }
1342
1388
  class GetParticipantsByKeyResponse {
1343
- constructor(kwargs) {
1344
- if (!kwargs) {
1345
- return;
1346
- }
1347
- Object.assign(this, kwargs);
1348
- }
1349
1389
  static fromProto(proto) {
1350
1390
  let m = new GetParticipantsByKeyResponse();
1351
1391
  m = Object.assign(m, proto);
@@ -1354,6 +1394,12 @@ class GetParticipantsByKeyResponse {
1354
1394
  }
1355
1395
  return m;
1356
1396
  }
1397
+ constructor(kwargs) {
1398
+ if (!kwargs) {
1399
+ return;
1400
+ }
1401
+ Object.assign(this, kwargs);
1402
+ }
1357
1403
  toApiJson() {
1358
1404
  const toReturn = {};
1359
1405
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1363,17 +1409,17 @@ class GetParticipantsByKeyResponse {
1363
1409
  }
1364
1410
  }
1365
1411
  class ListMessagesRequestListMessagesFilters {
1412
+ static fromProto(proto) {
1413
+ let m = new ListMessagesRequestListMessagesFilters();
1414
+ m = Object.assign(m, proto);
1415
+ return m;
1416
+ }
1366
1417
  constructor(kwargs) {
1367
1418
  if (!kwargs) {
1368
1419
  return;
1369
1420
  }
1370
1421
  Object.assign(this, kwargs);
1371
1422
  }
1372
- static fromProto(proto) {
1373
- let m = new ListMessagesRequestListMessagesFilters();
1374
- m = Object.assign(m, proto);
1375
- return m;
1376
- }
1377
1423
  toApiJson() {
1378
1424
  const toReturn = {};
1379
1425
  if (typeof this.conversationId !== 'undefined') {
@@ -1383,12 +1429,6 @@ class ListMessagesRequestListMessagesFilters {
1383
1429
  }
1384
1430
  }
1385
1431
  class ListMessagesRequest {
1386
- constructor(kwargs) {
1387
- if (!kwargs) {
1388
- return;
1389
- }
1390
- Object.assign(this, kwargs);
1391
- }
1392
1432
  static fromProto(proto) {
1393
1433
  let m = new ListMessagesRequest();
1394
1434
  m = Object.assign(m, proto);
@@ -1400,6 +1440,12 @@ class ListMessagesRequest {
1400
1440
  }
1401
1441
  return m;
1402
1442
  }
1443
+ constructor(kwargs) {
1444
+ if (!kwargs) {
1445
+ return;
1446
+ }
1447
+ Object.assign(this, kwargs);
1448
+ }
1403
1449
  toApiJson() {
1404
1450
  const toReturn = {};
1405
1451
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1412,12 +1458,6 @@ class ListMessagesRequest {
1412
1458
  }
1413
1459
  }
1414
1460
  class ListMessagesResponse {
1415
- constructor(kwargs) {
1416
- if (!kwargs) {
1417
- return;
1418
- }
1419
- Object.assign(this, kwargs);
1420
- }
1421
1461
  static fromProto(proto) {
1422
1462
  let m = new ListMessagesResponse();
1423
1463
  m = Object.assign(m, proto);
@@ -1429,6 +1469,12 @@ class ListMessagesResponse {
1429
1469
  }
1430
1470
  return m;
1431
1471
  }
1472
+ constructor(kwargs) {
1473
+ if (!kwargs) {
1474
+ return;
1475
+ }
1476
+ Object.assign(this, kwargs);
1477
+ }
1432
1478
  toApiJson() {
1433
1479
  const toReturn = {};
1434
1480
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1441,12 +1487,6 @@ class ListMessagesResponse {
1441
1487
  }
1442
1488
  }
1443
1489
  class LookupConversationsRequestLookupConversationsFilters {
1444
- constructor(kwargs) {
1445
- if (!kwargs) {
1446
- return;
1447
- }
1448
- Object.assign(this, kwargs);
1449
- }
1450
1490
  static fromProto(proto) {
1451
1491
  let m = new LookupConversationsRequestLookupConversationsFilters();
1452
1492
  m = Object.assign(m, proto);
@@ -1461,6 +1501,12 @@ class LookupConversationsRequestLookupConversationsFilters {
1461
1501
  }
1462
1502
  return m;
1463
1503
  }
1504
+ constructor(kwargs) {
1505
+ if (!kwargs) {
1506
+ return;
1507
+ }
1508
+ Object.assign(this, kwargs);
1509
+ }
1464
1510
  toApiJson() {
1465
1511
  const toReturn = {};
1466
1512
  if (typeof this.internalParticipantId !== 'undefined') {
@@ -1488,12 +1534,6 @@ class LookupConversationsRequestLookupConversationsFilters {
1488
1534
  }
1489
1535
  }
1490
1536
  class LookupConversationsRequest {
1491
- constructor(kwargs) {
1492
- if (!kwargs) {
1493
- return;
1494
- }
1495
- Object.assign(this, kwargs);
1496
- }
1497
1537
  static fromProto(proto) {
1498
1538
  let m = new LookupConversationsRequest();
1499
1539
  m = Object.assign(m, proto);
@@ -1505,6 +1545,12 @@ class LookupConversationsRequest {
1505
1545
  }
1506
1546
  return m;
1507
1547
  }
1548
+ constructor(kwargs) {
1549
+ if (!kwargs) {
1550
+ return;
1551
+ }
1552
+ Object.assign(this, kwargs);
1553
+ }
1508
1554
  toApiJson() {
1509
1555
  const toReturn = {};
1510
1556
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1517,12 +1563,6 @@ class LookupConversationsRequest {
1517
1563
  }
1518
1564
  }
1519
1565
  class LookupConversationsResponse {
1520
- constructor(kwargs) {
1521
- if (!kwargs) {
1522
- return;
1523
- }
1524
- Object.assign(this, kwargs);
1525
- }
1526
1566
  static fromProto(proto) {
1527
1567
  let m = new LookupConversationsResponse();
1528
1568
  m = Object.assign(m, proto);
@@ -1534,6 +1574,12 @@ class LookupConversationsResponse {
1534
1574
  }
1535
1575
  return m;
1536
1576
  }
1577
+ constructor(kwargs) {
1578
+ if (!kwargs) {
1579
+ return;
1580
+ }
1581
+ Object.assign(this, kwargs);
1582
+ }
1537
1583
  toApiJson() {
1538
1584
  const toReturn = {};
1539
1585
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1546,12 +1592,6 @@ class LookupConversationsResponse {
1546
1592
  }
1547
1593
  }
1548
1594
  class Metadata {
1549
- constructor(kwargs) {
1550
- if (!kwargs) {
1551
- return;
1552
- }
1553
- Object.assign(this, kwargs);
1554
- }
1555
1595
  static fromProto(proto) {
1556
1596
  let m = new Metadata();
1557
1597
  m = Object.assign(m, proto);
@@ -1563,6 +1603,12 @@ class Metadata {
1563
1603
  }
1564
1604
  return m;
1565
1605
  }
1606
+ constructor(kwargs) {
1607
+ if (!kwargs) {
1608
+ return;
1609
+ }
1610
+ Object.assign(this, kwargs);
1611
+ }
1566
1612
  toApiJson() {
1567
1613
  const toReturn = {};
1568
1614
  if (typeof this.identifier !== 'undefined') {
@@ -1575,17 +1621,17 @@ class Metadata {
1575
1621
  }
1576
1622
  }
1577
1623
  class ReceiveMessageRequestMetadataEntry {
1624
+ static fromProto(proto) {
1625
+ let m = new ReceiveMessageRequestMetadataEntry();
1626
+ m = Object.assign(m, proto);
1627
+ return m;
1628
+ }
1578
1629
  constructor(kwargs) {
1579
1630
  if (!kwargs) {
1580
1631
  return;
1581
1632
  }
1582
1633
  Object.assign(this, kwargs);
1583
1634
  }
1584
- static fromProto(proto) {
1585
- let m = new ReceiveMessageRequestMetadataEntry();
1586
- m = Object.assign(m, proto);
1587
- return m;
1588
- }
1589
1635
  toApiJson() {
1590
1636
  const toReturn = {};
1591
1637
  if (typeof this.key !== 'undefined') {
@@ -1598,17 +1644,17 @@ class ReceiveMessageRequestMetadataEntry {
1598
1644
  }
1599
1645
  }
1600
1646
  class PagedRequestOptions {
1647
+ static fromProto(proto) {
1648
+ let m = new PagedRequestOptions();
1649
+ m = Object.assign(m, proto);
1650
+ return m;
1651
+ }
1601
1652
  constructor(kwargs) {
1602
1653
  if (!kwargs) {
1603
1654
  return;
1604
1655
  }
1605
1656
  Object.assign(this, kwargs);
1606
1657
  }
1607
- static fromProto(proto) {
1608
- let m = new PagedRequestOptions();
1609
- m = Object.assign(m, proto);
1610
- return m;
1611
- }
1612
1658
  toApiJson() {
1613
1659
  const toReturn = {};
1614
1660
  if (typeof this.cursor !== 'undefined') {
@@ -1621,17 +1667,17 @@ class PagedRequestOptions {
1621
1667
  }
1622
1668
  }
1623
1669
  class PagedResponseMetadata {
1670
+ static fromProto(proto) {
1671
+ let m = new PagedResponseMetadata();
1672
+ m = Object.assign(m, proto);
1673
+ return m;
1674
+ }
1624
1675
  constructor(kwargs) {
1625
1676
  if (!kwargs) {
1626
1677
  return;
1627
1678
  }
1628
1679
  Object.assign(this, kwargs);
1629
1680
  }
1630
- static fromProto(proto) {
1631
- let m = new PagedResponseMetadata();
1632
- m = Object.assign(m, proto);
1633
- return m;
1634
- }
1635
1681
  toApiJson() {
1636
1682
  const toReturn = {};
1637
1683
  if (typeof this.nextCursor !== 'undefined') {
@@ -1644,12 +1690,6 @@ class PagedResponseMetadata {
1644
1690
  }
1645
1691
  }
1646
1692
  class ReceiveMessageRequest {
1647
- constructor(kwargs) {
1648
- if (!kwargs) {
1649
- return;
1650
- }
1651
- Object.assign(this, kwargs);
1652
- }
1653
1693
  static fromProto(proto) {
1654
1694
  let m = new ReceiveMessageRequest();
1655
1695
  m = Object.assign(m, proto);
@@ -1667,6 +1707,12 @@ class ReceiveMessageRequest {
1667
1707
  }
1668
1708
  return m;
1669
1709
  }
1710
+ constructor(kwargs) {
1711
+ if (!kwargs) {
1712
+ return;
1713
+ }
1714
+ Object.assign(this, kwargs);
1715
+ }
1670
1716
  toApiJson() {
1671
1717
  const toReturn = {};
1672
1718
  if (typeof this.senderId !== 'undefined') {
@@ -1709,12 +1755,6 @@ class ReceiveMessageRequest {
1709
1755
  }
1710
1756
  }
1711
1757
  class SearchConversationsRequest {
1712
- constructor(kwargs) {
1713
- if (!kwargs) {
1714
- return;
1715
- }
1716
- Object.assign(this, kwargs);
1717
- }
1718
1758
  static fromProto(proto) {
1719
1759
  let m = new SearchConversationsRequest();
1720
1760
  m = Object.assign(m, proto);
@@ -1726,6 +1766,12 @@ class SearchConversationsRequest {
1726
1766
  }
1727
1767
  return m;
1728
1768
  }
1769
+ constructor(kwargs) {
1770
+ if (!kwargs) {
1771
+ return;
1772
+ }
1773
+ Object.assign(this, kwargs);
1774
+ }
1729
1775
  toApiJson() {
1730
1776
  const toReturn = {};
1731
1777
  if (typeof this.partnerId !== 'undefined') {
@@ -1747,12 +1793,6 @@ class SearchConversationsRequest {
1747
1793
  }
1748
1794
  }
1749
1795
  class SearchConversationsResponse {
1750
- constructor(kwargs) {
1751
- if (!kwargs) {
1752
- return;
1753
- }
1754
- Object.assign(this, kwargs);
1755
- }
1756
1796
  static fromProto(proto) {
1757
1797
  let m = new SearchConversationsResponse();
1758
1798
  m = Object.assign(m, proto);
@@ -1764,6 +1804,12 @@ class SearchConversationsResponse {
1764
1804
  }
1765
1805
  return m;
1766
1806
  }
1807
+ constructor(kwargs) {
1808
+ if (!kwargs) {
1809
+ return;
1810
+ }
1811
+ Object.assign(this, kwargs);
1812
+ }
1767
1813
  toApiJson() {
1768
1814
  const toReturn = {};
1769
1815
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1776,12 +1822,6 @@ class SearchConversationsResponse {
1776
1822
  }
1777
1823
  }
1778
1824
  class SendMessageRequest {
1779
- constructor(kwargs) {
1780
- if (!kwargs) {
1781
- return;
1782
- }
1783
- Object.assign(this, kwargs);
1784
- }
1785
1825
  static fromProto(proto) {
1786
1826
  let m = new SendMessageRequest();
1787
1827
  m = Object.assign(m, proto);
@@ -1802,6 +1842,12 @@ class SendMessageRequest {
1802
1842
  }
1803
1843
  return m;
1804
1844
  }
1845
+ constructor(kwargs) {
1846
+ if (!kwargs) {
1847
+ return;
1848
+ }
1849
+ Object.assign(this, kwargs);
1850
+ }
1805
1851
  toApiJson() {
1806
1852
  const toReturn = {};
1807
1853
  if (typeof this.sender !== 'undefined' && this.sender !== null) {
@@ -1829,17 +1875,17 @@ class SendMessageRequest {
1829
1875
  }
1830
1876
  }
1831
1877
  class SendMessageResponse {
1878
+ static fromProto(proto) {
1879
+ let m = new SendMessageResponse();
1880
+ m = Object.assign(m, proto);
1881
+ return m;
1882
+ }
1832
1883
  constructor(kwargs) {
1833
1884
  if (!kwargs) {
1834
1885
  return;
1835
1886
  }
1836
1887
  Object.assign(this, kwargs);
1837
1888
  }
1838
- static fromProto(proto) {
1839
- let m = new SendMessageResponse();
1840
- m = Object.assign(m, proto);
1841
- return m;
1842
- }
1843
1889
  toApiJson() {
1844
1890
  const toReturn = {};
1845
1891
  if (typeof this.workflowId !== 'undefined') {
@@ -1849,12 +1895,6 @@ class SendMessageResponse {
1849
1895
  }
1850
1896
  }
1851
1897
  class SetLastSeenRequest {
1852
- constructor(kwargs) {
1853
- if (!kwargs) {
1854
- return;
1855
- }
1856
- Object.assign(this, kwargs);
1857
- }
1858
1898
  static fromProto(proto) {
1859
1899
  let m = new SetLastSeenRequest();
1860
1900
  m = Object.assign(m, proto);
@@ -1866,6 +1906,12 @@ class SetLastSeenRequest {
1866
1906
  }
1867
1907
  return m;
1868
1908
  }
1909
+ constructor(kwargs) {
1910
+ if (!kwargs) {
1911
+ return;
1912
+ }
1913
+ Object.assign(this, kwargs);
1914
+ }
1869
1915
  toApiJson() {
1870
1916
  const toReturn = {};
1871
1917
  if (typeof this.conversationId !== 'undefined') {
@@ -1881,12 +1927,6 @@ class SetLastSeenRequest {
1881
1927
  }
1882
1928
  }
1883
1929
  class SetLastSeenResponse {
1884
- constructor(kwargs) {
1885
- if (!kwargs) {
1886
- return;
1887
- }
1888
- Object.assign(this, kwargs);
1889
- }
1890
1930
  static fromProto(proto) {
1891
1931
  let m = new SetLastSeenResponse();
1892
1932
  m = Object.assign(m, proto);
@@ -1895,6 +1935,12 @@ class SetLastSeenResponse {
1895
1935
  }
1896
1936
  return m;
1897
1937
  }
1938
+ constructor(kwargs) {
1939
+ if (!kwargs) {
1940
+ return;
1941
+ }
1942
+ Object.assign(this, kwargs);
1943
+ }
1898
1944
  toApiJson() {
1899
1945
  const toReturn = {};
1900
1946
  if (typeof this.participant !== 'undefined' && this.participant !== null) {
@@ -1904,12 +1950,6 @@ class SetLastSeenResponse {
1904
1950
  }
1905
1951
  }
1906
1952
  class UpdateMessageStatusRequest {
1907
- constructor(kwargs) {
1908
- if (!kwargs) {
1909
- return;
1910
- }
1911
- Object.assign(this, kwargs);
1912
- }
1913
1953
  static fromProto(proto) {
1914
1954
  let m = new UpdateMessageStatusRequest();
1915
1955
  m = Object.assign(m, proto);
@@ -1918,6 +1958,12 @@ class UpdateMessageStatusRequest {
1918
1958
  }
1919
1959
  return m;
1920
1960
  }
1961
+ constructor(kwargs) {
1962
+ if (!kwargs) {
1963
+ return;
1964
+ }
1965
+ Object.assign(this, kwargs);
1966
+ }
1921
1967
  toApiJson() {
1922
1968
  const toReturn = {};
1923
1969
  if (typeof this.messageId !== 'undefined') {
@@ -1933,12 +1979,6 @@ class UpdateMessageStatusRequest {
1933
1979
  }
1934
1980
  }
1935
1981
  class UpsertConfigurationRequest {
1936
- constructor(kwargs) {
1937
- if (!kwargs) {
1938
- return;
1939
- }
1940
- Object.assign(this, kwargs);
1941
- }
1942
1982
  static fromProto(proto) {
1943
1983
  let m = new UpsertConfigurationRequest();
1944
1984
  m = Object.assign(m, proto);
@@ -1947,6 +1987,12 @@ class UpsertConfigurationRequest {
1947
1987
  }
1948
1988
  return m;
1949
1989
  }
1990
+ constructor(kwargs) {
1991
+ if (!kwargs) {
1992
+ return;
1993
+ }
1994
+ Object.assign(this, kwargs);
1995
+ }
1950
1996
  toApiJson() {
1951
1997
  const toReturn = {};
1952
1998
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -1956,12 +2002,6 @@ class UpsertConfigurationRequest {
1956
2002
  }
1957
2003
  }
1958
2004
  class UpsertConfigurationResponse {
1959
- constructor(kwargs) {
1960
- if (!kwargs) {
1961
- return;
1962
- }
1963
- Object.assign(this, kwargs);
1964
- }
1965
2005
  static fromProto(proto) {
1966
2006
  let m = new UpsertConfigurationResponse();
1967
2007
  m = Object.assign(m, proto);
@@ -1970,6 +2010,12 @@ class UpsertConfigurationResponse {
1970
2010
  }
1971
2011
  return m;
1972
2012
  }
2013
+ constructor(kwargs) {
2014
+ if (!kwargs) {
2015
+ return;
2016
+ }
2017
+ Object.assign(this, kwargs);
2018
+ }
1973
2019
  toApiJson() {
1974
2020
  const toReturn = {};
1975
2021
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -1998,9 +2044,9 @@ class HostService {
1998
2044
  return 'https://' + this.host;
1999
2045
  }
2000
2046
  }
2001
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2002
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, providedIn: 'root' });
2003
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, decorators: [{
2047
+ HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2048
+ HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, providedIn: 'root' });
2049
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: HostService, decorators: [{
2004
2050
  type: Injectable,
2005
2051
  args: [{ providedIn: 'root' }]
2006
2052
  }] });
@@ -2111,9 +2157,9 @@ class ConversationApiService {
2111
2157
  .pipe(map(resp => GetParticipantsByKeyResponse.fromProto(resp)));
2112
2158
  }
2113
2159
  }
2114
- ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2115
- ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
2116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, decorators: [{
2160
+ ConversationApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2161
+ ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
2162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ConversationApiService, decorators: [{
2117
2163
  type: Injectable,
2118
2164
  args: [{ providedIn: 'root' }]
2119
2165
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2138,15 +2184,20 @@ class InboxApiService {
2138
2184
  return this.http.post(this._host + "/conversation.v1.InboxService/GetConfiguration", request.toApiJson(), this.apiOptions())
2139
2185
  .pipe(map(resp => GetConfigurationResponse.fromProto(resp)));
2140
2186
  }
2187
+ getMultiConfiguration(r) {
2188
+ const request = (r.toApiJson) ? r : new GetMultiConfigurationRequest(r);
2189
+ return this.http.post(this._host + "/conversation.v1.InboxService/GetMultiConfiguration", request.toApiJson(), this.apiOptions())
2190
+ .pipe(map(resp => GetMultiConfigurationResponse.fromProto(resp)));
2191
+ }
2141
2192
  upsertConfiguration(r) {
2142
2193
  const request = (r.toApiJson) ? r : new UpsertConfigurationRequest(r);
2143
2194
  return this.http.post(this._host + "/conversation.v1.InboxService/UpsertConfiguration", request.toApiJson(), this.apiOptions())
2144
2195
  .pipe(map(resp => UpsertConfigurationResponse.fromProto(resp)));
2145
2196
  }
2146
2197
  }
2147
- InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2148
- InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, providedIn: 'root' });
2149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, decorators: [{
2198
+ InboxApiService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: InboxApiService, deps: [{ token: i1.HttpClient }, { token: HostService }], target: i0.ɵɵFactoryTarget.Injectable });
2199
+ InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: InboxApiService, providedIn: 'root' });
2200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: InboxApiService, decorators: [{
2150
2201
  type: Injectable,
2151
2202
  args: [{ providedIn: 'root' }]
2152
2203
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2157,5 +2208,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImpor
2157
2208
  * Generated bundle index. Do not edit.
2158
2209
  */
2159
2210
 
2160
- export { Access, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse };
2211
+ export { Access, AddMultiParticipantsRequest, AddMultiParticipantsResponse, Address, Configuration, Conversation, ConversationApiService, ConversationChannel, ConversationKey, ConversationMessageCount, CreateConversationRequest, CreateConversationResponse, CreateMultiMessagesRequest, DeleteConversationRequest, DeleteMessageRequest, GetConfigurationRequest, GetConfigurationResponse, GetConversationByKeyRequest, GetConversationByKeyResponse, GetMessageRequest, GetMultiConfigurationRequest, GetMultiConfigurationResponse, GetMultiConversationDetailsRequest, GetMultiConversationDetailsResponse, GetMultiConversationDetailsResponseDetailedConversation, GetMultiConversationMessageCountRequest, GetMultiConversationMessageCountResponse, GetMultiConversationMessageCountResponseCountsEntry, GetMultiMessagesRequest, GetMultiMessagesResponse, GetMultiParticipantsRequest, GetMultiParticipantsResponse, GetParticipantsByKeyRequest, GetParticipantsByKeyResponse, GlobalParticipantType, InboxApiService, LastSeenByParticipant, ListMessagesRequest, ListMessagesRequestListMessagesFilters, ListMessagesResponse, LookupConversationsRequest, LookupConversationsRequestLookupConversationsFilters, LookupConversationsResponse, LookupConversationsResponseConversations, Message, MessageStatus, MessageType, Metadata, MetadataDataEntry, MetadataIdentifier, PagedRequestOptions, PagedResponseMetadata, Participant, ParticipantKey, ParticipantMessageStatus, ParticipantType, PlatformLocation, ReceiveMessageRequest, ReceiveMessageRequestMetadataEntry, SearchConversationsRequest, SearchConversationsResponse, SearchConversationsResponseDetailedConversation, SendMessageRequest, SendMessageResponse, SetLastSeenRequest, SetLastSeenRequestStatus, SetLastSeenResponse, SubjectParticipant, UpdateMessageStatusRequest, UpsertConfigurationRequest, UpsertConfigurationResponse };
2161
2212
  //# sourceMappingURL=vendasta-conversation.mjs.map