@vendasta/conversation 0.27.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') {
@@ -951,12 +951,6 @@ class DeleteMessageRequest {
951
951
  }
952
952
  }
953
953
  class GetMultiConversationDetailsResponseDetailedConversation {
954
- constructor(kwargs) {
955
- if (!kwargs) {
956
- return;
957
- }
958
- Object.assign(this, kwargs);
959
- }
960
954
  static fromProto(proto) {
961
955
  let m = new GetMultiConversationDetailsResponseDetailedConversation();
962
956
  m = Object.assign(m, proto);
@@ -971,6 +965,12 @@ class GetMultiConversationDetailsResponseDetailedConversation {
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) {
@@ -986,12 +986,6 @@ class GetMultiConversationDetailsResponseDetailedConversation {
986
986
  }
987
987
  }
988
988
  class SearchConversationsResponseDetailedConversation {
989
- constructor(kwargs) {
990
- if (!kwargs) {
991
- return;
992
- }
993
- Object.assign(this, kwargs);
994
- }
995
989
  static fromProto(proto) {
996
990
  let m = new SearchConversationsResponseDetailedConversation();
997
991
  m = Object.assign(m, proto);
@@ -1006,6 +1000,12 @@ class SearchConversationsResponseDetailedConversation {
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 SearchConversationsResponseDetailedConversation {
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') {
@@ -1133,12 +1133,6 @@ class GetMessageRequest {
1133
1133
  }
1134
1134
  }
1135
1135
  class GetMultiConfigurationRequest {
1136
- constructor(kwargs) {
1137
- if (!kwargs) {
1138
- return;
1139
- }
1140
- Object.assign(this, kwargs);
1141
- }
1142
1136
  static fromProto(proto) {
1143
1137
  let m = new GetMultiConfigurationRequest();
1144
1138
  m = Object.assign(m, proto);
@@ -1147,6 +1141,12 @@ class GetMultiConfigurationRequest {
1147
1141
  }
1148
1142
  return m;
1149
1143
  }
1144
+ constructor(kwargs) {
1145
+ if (!kwargs) {
1146
+ return;
1147
+ }
1148
+ Object.assign(this, kwargs);
1149
+ }
1150
1150
  toApiJson() {
1151
1151
  const toReturn = {};
1152
1152
  if (typeof this.subjectParticipants !== 'undefined' && this.subjectParticipants !== null) {
@@ -1156,12 +1156,6 @@ class GetMultiConfigurationRequest {
1156
1156
  }
1157
1157
  }
1158
1158
  class GetMultiConfigurationResponse {
1159
- constructor(kwargs) {
1160
- if (!kwargs) {
1161
- return;
1162
- }
1163
- Object.assign(this, kwargs);
1164
- }
1165
1159
  static fromProto(proto) {
1166
1160
  let m = new GetMultiConfigurationResponse();
1167
1161
  m = Object.assign(m, proto);
@@ -1170,6 +1164,12 @@ class GetMultiConfigurationResponse {
1170
1164
  }
1171
1165
  return m;
1172
1166
  }
1167
+ constructor(kwargs) {
1168
+ if (!kwargs) {
1169
+ return;
1170
+ }
1171
+ Object.assign(this, kwargs);
1172
+ }
1173
1173
  toApiJson() {
1174
1174
  const toReturn = {};
1175
1175
  if (typeof this.configurations !== 'undefined' && this.configurations !== null) {
@@ -1179,17 +1179,17 @@ class GetMultiConfigurationResponse {
1179
1179
  }
1180
1180
  }
1181
1181
  class GetMultiConversationDetailsRequest {
1182
+ static fromProto(proto) {
1183
+ let m = new GetMultiConversationDetailsRequest();
1184
+ m = Object.assign(m, proto);
1185
+ return m;
1186
+ }
1182
1187
  constructor(kwargs) {
1183
1188
  if (!kwargs) {
1184
1189
  return;
1185
1190
  }
1186
1191
  Object.assign(this, kwargs);
1187
1192
  }
1188
- static fromProto(proto) {
1189
- let m = new GetMultiConversationDetailsRequest();
1190
- m = Object.assign(m, proto);
1191
- return m;
1192
- }
1193
1193
  toApiJson() {
1194
1194
  const toReturn = {};
1195
1195
  if (typeof this.conversationIds !== 'undefined') {
@@ -1199,12 +1199,6 @@ class GetMultiConversationDetailsRequest {
1199
1199
  }
1200
1200
  }
1201
1201
  class GetMultiConversationDetailsResponse {
1202
- constructor(kwargs) {
1203
- if (!kwargs) {
1204
- return;
1205
- }
1206
- Object.assign(this, kwargs);
1207
- }
1208
1202
  static fromProto(proto) {
1209
1203
  let m = new GetMultiConversationDetailsResponse();
1210
1204
  m = Object.assign(m, proto);
@@ -1213,6 +1207,12 @@ class GetMultiConversationDetailsResponse {
1213
1207
  }
1214
1208
  return m;
1215
1209
  }
1210
+ constructor(kwargs) {
1211
+ if (!kwargs) {
1212
+ return;
1213
+ }
1214
+ Object.assign(this, kwargs);
1215
+ }
1216
1216
  toApiJson() {
1217
1217
  const toReturn = {};
1218
1218
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1222,17 +1222,17 @@ class GetMultiConversationDetailsResponse {
1222
1222
  }
1223
1223
  }
1224
1224
  class GetMultiConversationMessageCountRequest {
1225
+ static fromProto(proto) {
1226
+ let m = new GetMultiConversationMessageCountRequest();
1227
+ m = Object.assign(m, proto);
1228
+ return m;
1229
+ }
1225
1230
  constructor(kwargs) {
1226
1231
  if (!kwargs) {
1227
1232
  return;
1228
1233
  }
1229
1234
  Object.assign(this, kwargs);
1230
1235
  }
1231
- static fromProto(proto) {
1232
- let m = new GetMultiConversationMessageCountRequest();
1233
- m = Object.assign(m, proto);
1234
- return m;
1235
- }
1236
1236
  toApiJson() {
1237
1237
  const toReturn = {};
1238
1238
  if (typeof this.conversationIds !== 'undefined') {
@@ -1242,12 +1242,6 @@ class GetMultiConversationMessageCountRequest {
1242
1242
  }
1243
1243
  }
1244
1244
  class GetMultiConversationMessageCountResponse {
1245
- constructor(kwargs) {
1246
- if (!kwargs) {
1247
- return;
1248
- }
1249
- Object.assign(this, kwargs);
1250
- }
1251
1245
  static fromProto(proto) {
1252
1246
  let m = new GetMultiConversationMessageCountResponse();
1253
1247
  m = Object.assign(m, proto);
@@ -1259,6 +1253,12 @@ class GetMultiConversationMessageCountResponse {
1259
1253
  }
1260
1254
  return m;
1261
1255
  }
1256
+ constructor(kwargs) {
1257
+ if (!kwargs) {
1258
+ return;
1259
+ }
1260
+ Object.assign(this, kwargs);
1261
+ }
1262
1262
  toApiJson() {
1263
1263
  const toReturn = {};
1264
1264
  if (typeof this.messageCounts !== 'undefined' && this.messageCounts !== null) {
@@ -1271,17 +1271,17 @@ class GetMultiConversationMessageCountResponse {
1271
1271
  }
1272
1272
  }
1273
1273
  class GetMultiMessagesRequest {
1274
+ static fromProto(proto) {
1275
+ let m = new GetMultiMessagesRequest();
1276
+ m = Object.assign(m, proto);
1277
+ return m;
1278
+ }
1274
1279
  constructor(kwargs) {
1275
1280
  if (!kwargs) {
1276
1281
  return;
1277
1282
  }
1278
1283
  Object.assign(this, kwargs);
1279
1284
  }
1280
- static fromProto(proto) {
1281
- let m = new GetMultiMessagesRequest();
1282
- m = Object.assign(m, proto);
1283
- return m;
1284
- }
1285
1285
  toApiJson() {
1286
1286
  const toReturn = {};
1287
1287
  if (typeof this.messageIds !== 'undefined') {
@@ -1294,12 +1294,6 @@ class GetMultiMessagesRequest {
1294
1294
  }
1295
1295
  }
1296
1296
  class GetMultiMessagesResponse {
1297
- constructor(kwargs) {
1298
- if (!kwargs) {
1299
- return;
1300
- }
1301
- Object.assign(this, kwargs);
1302
- }
1303
1297
  static fromProto(proto) {
1304
1298
  let m = new GetMultiMessagesResponse();
1305
1299
  m = Object.assign(m, proto);
@@ -1308,6 +1302,12 @@ class GetMultiMessagesResponse {
1308
1302
  }
1309
1303
  return m;
1310
1304
  }
1305
+ constructor(kwargs) {
1306
+ if (!kwargs) {
1307
+ return;
1308
+ }
1309
+ Object.assign(this, kwargs);
1310
+ }
1311
1311
  toApiJson() {
1312
1312
  const toReturn = {};
1313
1313
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1317,17 +1317,17 @@ class GetMultiMessagesResponse {
1317
1317
  }
1318
1318
  }
1319
1319
  class GetMultiParticipantsRequest {
1320
+ static fromProto(proto) {
1321
+ let m = new GetMultiParticipantsRequest();
1322
+ m = Object.assign(m, proto);
1323
+ return m;
1324
+ }
1320
1325
  constructor(kwargs) {
1321
1326
  if (!kwargs) {
1322
1327
  return;
1323
1328
  }
1324
1329
  Object.assign(this, kwargs);
1325
1330
  }
1326
- static fromProto(proto) {
1327
- let m = new GetMultiParticipantsRequest();
1328
- m = Object.assign(m, proto);
1329
- return m;
1330
- }
1331
1331
  toApiJson() {
1332
1332
  const toReturn = {};
1333
1333
  if (typeof this.participantIds !== 'undefined') {
@@ -1340,12 +1340,6 @@ class GetMultiParticipantsRequest {
1340
1340
  }
1341
1341
  }
1342
1342
  class GetMultiParticipantsResponse {
1343
- constructor(kwargs) {
1344
- if (!kwargs) {
1345
- return;
1346
- }
1347
- Object.assign(this, kwargs);
1348
- }
1349
1343
  static fromProto(proto) {
1350
1344
  let m = new GetMultiParticipantsResponse();
1351
1345
  m = Object.assign(m, proto);
@@ -1354,6 +1348,12 @@ class GetMultiParticipantsResponse {
1354
1348
  }
1355
1349
  return m;
1356
1350
  }
1351
+ constructor(kwargs) {
1352
+ if (!kwargs) {
1353
+ return;
1354
+ }
1355
+ Object.assign(this, kwargs);
1356
+ }
1357
1357
  toApiJson() {
1358
1358
  const toReturn = {};
1359
1359
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1363,12 +1363,6 @@ class GetMultiParticipantsResponse {
1363
1363
  }
1364
1364
  }
1365
1365
  class GetParticipantsByKeyRequest {
1366
- constructor(kwargs) {
1367
- if (!kwargs) {
1368
- return;
1369
- }
1370
- Object.assign(this, kwargs);
1371
- }
1372
1366
  static fromProto(proto) {
1373
1367
  let m = new GetParticipantsByKeyRequest();
1374
1368
  m = Object.assign(m, proto);
@@ -1377,6 +1371,12 @@ class GetParticipantsByKeyRequest {
1377
1371
  }
1378
1372
  return m;
1379
1373
  }
1374
+ constructor(kwargs) {
1375
+ if (!kwargs) {
1376
+ return;
1377
+ }
1378
+ Object.assign(this, kwargs);
1379
+ }
1380
1380
  toApiJson() {
1381
1381
  const toReturn = {};
1382
1382
  if (typeof this.participantKey !== 'undefined' && this.participantKey !== null) {
@@ -1386,12 +1386,6 @@ class GetParticipantsByKeyRequest {
1386
1386
  }
1387
1387
  }
1388
1388
  class GetParticipantsByKeyResponse {
1389
- constructor(kwargs) {
1390
- if (!kwargs) {
1391
- return;
1392
- }
1393
- Object.assign(this, kwargs);
1394
- }
1395
1389
  static fromProto(proto) {
1396
1390
  let m = new GetParticipantsByKeyResponse();
1397
1391
  m = Object.assign(m, proto);
@@ -1400,6 +1394,12 @@ class GetParticipantsByKeyResponse {
1400
1394
  }
1401
1395
  return m;
1402
1396
  }
1397
+ constructor(kwargs) {
1398
+ if (!kwargs) {
1399
+ return;
1400
+ }
1401
+ Object.assign(this, kwargs);
1402
+ }
1403
1403
  toApiJson() {
1404
1404
  const toReturn = {};
1405
1405
  if (typeof this.participants !== 'undefined' && this.participants !== null) {
@@ -1409,17 +1409,17 @@ class GetParticipantsByKeyResponse {
1409
1409
  }
1410
1410
  }
1411
1411
  class ListMessagesRequestListMessagesFilters {
1412
+ static fromProto(proto) {
1413
+ let m = new ListMessagesRequestListMessagesFilters();
1414
+ m = Object.assign(m, proto);
1415
+ return m;
1416
+ }
1412
1417
  constructor(kwargs) {
1413
1418
  if (!kwargs) {
1414
1419
  return;
1415
1420
  }
1416
1421
  Object.assign(this, kwargs);
1417
1422
  }
1418
- static fromProto(proto) {
1419
- let m = new ListMessagesRequestListMessagesFilters();
1420
- m = Object.assign(m, proto);
1421
- return m;
1422
- }
1423
1423
  toApiJson() {
1424
1424
  const toReturn = {};
1425
1425
  if (typeof this.conversationId !== 'undefined') {
@@ -1429,12 +1429,6 @@ class ListMessagesRequestListMessagesFilters {
1429
1429
  }
1430
1430
  }
1431
1431
  class ListMessagesRequest {
1432
- constructor(kwargs) {
1433
- if (!kwargs) {
1434
- return;
1435
- }
1436
- Object.assign(this, kwargs);
1437
- }
1438
1432
  static fromProto(proto) {
1439
1433
  let m = new ListMessagesRequest();
1440
1434
  m = Object.assign(m, proto);
@@ -1446,6 +1440,12 @@ class ListMessagesRequest {
1446
1440
  }
1447
1441
  return m;
1448
1442
  }
1443
+ constructor(kwargs) {
1444
+ if (!kwargs) {
1445
+ return;
1446
+ }
1447
+ Object.assign(this, kwargs);
1448
+ }
1449
1449
  toApiJson() {
1450
1450
  const toReturn = {};
1451
1451
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1458,12 +1458,6 @@ class ListMessagesRequest {
1458
1458
  }
1459
1459
  }
1460
1460
  class ListMessagesResponse {
1461
- constructor(kwargs) {
1462
- if (!kwargs) {
1463
- return;
1464
- }
1465
- Object.assign(this, kwargs);
1466
- }
1467
1461
  static fromProto(proto) {
1468
1462
  let m = new ListMessagesResponse();
1469
1463
  m = Object.assign(m, proto);
@@ -1475,6 +1469,12 @@ class ListMessagesResponse {
1475
1469
  }
1476
1470
  return m;
1477
1471
  }
1472
+ constructor(kwargs) {
1473
+ if (!kwargs) {
1474
+ return;
1475
+ }
1476
+ Object.assign(this, kwargs);
1477
+ }
1478
1478
  toApiJson() {
1479
1479
  const toReturn = {};
1480
1480
  if (typeof this.messages !== 'undefined' && this.messages !== null) {
@@ -1487,12 +1487,6 @@ class ListMessagesResponse {
1487
1487
  }
1488
1488
  }
1489
1489
  class LookupConversationsRequestLookupConversationsFilters {
1490
- constructor(kwargs) {
1491
- if (!kwargs) {
1492
- return;
1493
- }
1494
- Object.assign(this, kwargs);
1495
- }
1496
1490
  static fromProto(proto) {
1497
1491
  let m = new LookupConversationsRequestLookupConversationsFilters();
1498
1492
  m = Object.assign(m, proto);
@@ -1507,6 +1501,12 @@ class LookupConversationsRequestLookupConversationsFilters {
1507
1501
  }
1508
1502
  return m;
1509
1503
  }
1504
+ constructor(kwargs) {
1505
+ if (!kwargs) {
1506
+ return;
1507
+ }
1508
+ Object.assign(this, kwargs);
1509
+ }
1510
1510
  toApiJson() {
1511
1511
  const toReturn = {};
1512
1512
  if (typeof this.internalParticipantId !== 'undefined') {
@@ -1534,12 +1534,6 @@ class LookupConversationsRequestLookupConversationsFilters {
1534
1534
  }
1535
1535
  }
1536
1536
  class LookupConversationsRequest {
1537
- constructor(kwargs) {
1538
- if (!kwargs) {
1539
- return;
1540
- }
1541
- Object.assign(this, kwargs);
1542
- }
1543
1537
  static fromProto(proto) {
1544
1538
  let m = new LookupConversationsRequest();
1545
1539
  m = Object.assign(m, proto);
@@ -1551,6 +1545,12 @@ class LookupConversationsRequest {
1551
1545
  }
1552
1546
  return m;
1553
1547
  }
1548
+ constructor(kwargs) {
1549
+ if (!kwargs) {
1550
+ return;
1551
+ }
1552
+ Object.assign(this, kwargs);
1553
+ }
1554
1554
  toApiJson() {
1555
1555
  const toReturn = {};
1556
1556
  if (typeof this.filters !== 'undefined' && this.filters !== null) {
@@ -1563,12 +1563,6 @@ class LookupConversationsRequest {
1563
1563
  }
1564
1564
  }
1565
1565
  class LookupConversationsResponse {
1566
- constructor(kwargs) {
1567
- if (!kwargs) {
1568
- return;
1569
- }
1570
- Object.assign(this, kwargs);
1571
- }
1572
1566
  static fromProto(proto) {
1573
1567
  let m = new LookupConversationsResponse();
1574
1568
  m = Object.assign(m, proto);
@@ -1580,6 +1574,12 @@ class LookupConversationsResponse {
1580
1574
  }
1581
1575
  return m;
1582
1576
  }
1577
+ constructor(kwargs) {
1578
+ if (!kwargs) {
1579
+ return;
1580
+ }
1581
+ Object.assign(this, kwargs);
1582
+ }
1583
1583
  toApiJson() {
1584
1584
  const toReturn = {};
1585
1585
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1592,12 +1592,6 @@ class LookupConversationsResponse {
1592
1592
  }
1593
1593
  }
1594
1594
  class Metadata {
1595
- constructor(kwargs) {
1596
- if (!kwargs) {
1597
- return;
1598
- }
1599
- Object.assign(this, kwargs);
1600
- }
1601
1595
  static fromProto(proto) {
1602
1596
  let m = new Metadata();
1603
1597
  m = Object.assign(m, proto);
@@ -1609,6 +1603,12 @@ class Metadata {
1609
1603
  }
1610
1604
  return m;
1611
1605
  }
1606
+ constructor(kwargs) {
1607
+ if (!kwargs) {
1608
+ return;
1609
+ }
1610
+ Object.assign(this, kwargs);
1611
+ }
1612
1612
  toApiJson() {
1613
1613
  const toReturn = {};
1614
1614
  if (typeof this.identifier !== 'undefined') {
@@ -1621,17 +1621,17 @@ class Metadata {
1621
1621
  }
1622
1622
  }
1623
1623
  class ReceiveMessageRequestMetadataEntry {
1624
+ static fromProto(proto) {
1625
+ let m = new ReceiveMessageRequestMetadataEntry();
1626
+ m = Object.assign(m, proto);
1627
+ return m;
1628
+ }
1624
1629
  constructor(kwargs) {
1625
1630
  if (!kwargs) {
1626
1631
  return;
1627
1632
  }
1628
1633
  Object.assign(this, kwargs);
1629
1634
  }
1630
- static fromProto(proto) {
1631
- let m = new ReceiveMessageRequestMetadataEntry();
1632
- m = Object.assign(m, proto);
1633
- return m;
1634
- }
1635
1635
  toApiJson() {
1636
1636
  const toReturn = {};
1637
1637
  if (typeof this.key !== 'undefined') {
@@ -1644,17 +1644,17 @@ class ReceiveMessageRequestMetadataEntry {
1644
1644
  }
1645
1645
  }
1646
1646
  class PagedRequestOptions {
1647
+ static fromProto(proto) {
1648
+ let m = new PagedRequestOptions();
1649
+ m = Object.assign(m, proto);
1650
+ return m;
1651
+ }
1647
1652
  constructor(kwargs) {
1648
1653
  if (!kwargs) {
1649
1654
  return;
1650
1655
  }
1651
1656
  Object.assign(this, kwargs);
1652
1657
  }
1653
- static fromProto(proto) {
1654
- let m = new PagedRequestOptions();
1655
- m = Object.assign(m, proto);
1656
- return m;
1657
- }
1658
1658
  toApiJson() {
1659
1659
  const toReturn = {};
1660
1660
  if (typeof this.cursor !== 'undefined') {
@@ -1667,17 +1667,17 @@ class PagedRequestOptions {
1667
1667
  }
1668
1668
  }
1669
1669
  class PagedResponseMetadata {
1670
+ static fromProto(proto) {
1671
+ let m = new PagedResponseMetadata();
1672
+ m = Object.assign(m, proto);
1673
+ return m;
1674
+ }
1670
1675
  constructor(kwargs) {
1671
1676
  if (!kwargs) {
1672
1677
  return;
1673
1678
  }
1674
1679
  Object.assign(this, kwargs);
1675
1680
  }
1676
- static fromProto(proto) {
1677
- let m = new PagedResponseMetadata();
1678
- m = Object.assign(m, proto);
1679
- return m;
1680
- }
1681
1681
  toApiJson() {
1682
1682
  const toReturn = {};
1683
1683
  if (typeof this.nextCursor !== 'undefined') {
@@ -1690,12 +1690,6 @@ class PagedResponseMetadata {
1690
1690
  }
1691
1691
  }
1692
1692
  class ReceiveMessageRequest {
1693
- constructor(kwargs) {
1694
- if (!kwargs) {
1695
- return;
1696
- }
1697
- Object.assign(this, kwargs);
1698
- }
1699
1693
  static fromProto(proto) {
1700
1694
  let m = new ReceiveMessageRequest();
1701
1695
  m = Object.assign(m, proto);
@@ -1713,6 +1707,12 @@ class ReceiveMessageRequest {
1713
1707
  }
1714
1708
  return m;
1715
1709
  }
1710
+ constructor(kwargs) {
1711
+ if (!kwargs) {
1712
+ return;
1713
+ }
1714
+ Object.assign(this, kwargs);
1715
+ }
1716
1716
  toApiJson() {
1717
1717
  const toReturn = {};
1718
1718
  if (typeof this.senderId !== 'undefined') {
@@ -1755,12 +1755,6 @@ class ReceiveMessageRequest {
1755
1755
  }
1756
1756
  }
1757
1757
  class SearchConversationsRequest {
1758
- constructor(kwargs) {
1759
- if (!kwargs) {
1760
- return;
1761
- }
1762
- Object.assign(this, kwargs);
1763
- }
1764
1758
  static fromProto(proto) {
1765
1759
  let m = new SearchConversationsRequest();
1766
1760
  m = Object.assign(m, proto);
@@ -1772,6 +1766,12 @@ class SearchConversationsRequest {
1772
1766
  }
1773
1767
  return m;
1774
1768
  }
1769
+ constructor(kwargs) {
1770
+ if (!kwargs) {
1771
+ return;
1772
+ }
1773
+ Object.assign(this, kwargs);
1774
+ }
1775
1775
  toApiJson() {
1776
1776
  const toReturn = {};
1777
1777
  if (typeof this.partnerId !== 'undefined') {
@@ -1793,12 +1793,6 @@ class SearchConversationsRequest {
1793
1793
  }
1794
1794
  }
1795
1795
  class SearchConversationsResponse {
1796
- constructor(kwargs) {
1797
- if (!kwargs) {
1798
- return;
1799
- }
1800
- Object.assign(this, kwargs);
1801
- }
1802
1796
  static fromProto(proto) {
1803
1797
  let m = new SearchConversationsResponse();
1804
1798
  m = Object.assign(m, proto);
@@ -1810,6 +1804,12 @@ class SearchConversationsResponse {
1810
1804
  }
1811
1805
  return m;
1812
1806
  }
1807
+ constructor(kwargs) {
1808
+ if (!kwargs) {
1809
+ return;
1810
+ }
1811
+ Object.assign(this, kwargs);
1812
+ }
1813
1813
  toApiJson() {
1814
1814
  const toReturn = {};
1815
1815
  if (typeof this.conversations !== 'undefined' && this.conversations !== null) {
@@ -1822,12 +1822,6 @@ class SearchConversationsResponse {
1822
1822
  }
1823
1823
  }
1824
1824
  class SendMessageRequest {
1825
- constructor(kwargs) {
1826
- if (!kwargs) {
1827
- return;
1828
- }
1829
- Object.assign(this, kwargs);
1830
- }
1831
1825
  static fromProto(proto) {
1832
1826
  let m = new SendMessageRequest();
1833
1827
  m = Object.assign(m, proto);
@@ -1848,6 +1842,12 @@ class SendMessageRequest {
1848
1842
  }
1849
1843
  return m;
1850
1844
  }
1845
+ constructor(kwargs) {
1846
+ if (!kwargs) {
1847
+ return;
1848
+ }
1849
+ Object.assign(this, kwargs);
1850
+ }
1851
1851
  toApiJson() {
1852
1852
  const toReturn = {};
1853
1853
  if (typeof this.sender !== 'undefined' && this.sender !== null) {
@@ -1875,17 +1875,17 @@ class SendMessageRequest {
1875
1875
  }
1876
1876
  }
1877
1877
  class SendMessageResponse {
1878
+ static fromProto(proto) {
1879
+ let m = new SendMessageResponse();
1880
+ m = Object.assign(m, proto);
1881
+ return m;
1882
+ }
1878
1883
  constructor(kwargs) {
1879
1884
  if (!kwargs) {
1880
1885
  return;
1881
1886
  }
1882
1887
  Object.assign(this, kwargs);
1883
1888
  }
1884
- static fromProto(proto) {
1885
- let m = new SendMessageResponse();
1886
- m = Object.assign(m, proto);
1887
- return m;
1888
- }
1889
1889
  toApiJson() {
1890
1890
  const toReturn = {};
1891
1891
  if (typeof this.workflowId !== 'undefined') {
@@ -1895,12 +1895,6 @@ class SendMessageResponse {
1895
1895
  }
1896
1896
  }
1897
1897
  class SetLastSeenRequest {
1898
- constructor(kwargs) {
1899
- if (!kwargs) {
1900
- return;
1901
- }
1902
- Object.assign(this, kwargs);
1903
- }
1904
1898
  static fromProto(proto) {
1905
1899
  let m = new SetLastSeenRequest();
1906
1900
  m = Object.assign(m, proto);
@@ -1912,6 +1906,12 @@ class SetLastSeenRequest {
1912
1906
  }
1913
1907
  return m;
1914
1908
  }
1909
+ constructor(kwargs) {
1910
+ if (!kwargs) {
1911
+ return;
1912
+ }
1913
+ Object.assign(this, kwargs);
1914
+ }
1915
1915
  toApiJson() {
1916
1916
  const toReturn = {};
1917
1917
  if (typeof this.conversationId !== 'undefined') {
@@ -1927,12 +1927,6 @@ class SetLastSeenRequest {
1927
1927
  }
1928
1928
  }
1929
1929
  class SetLastSeenResponse {
1930
- constructor(kwargs) {
1931
- if (!kwargs) {
1932
- return;
1933
- }
1934
- Object.assign(this, kwargs);
1935
- }
1936
1930
  static fromProto(proto) {
1937
1931
  let m = new SetLastSeenResponse();
1938
1932
  m = Object.assign(m, proto);
@@ -1941,6 +1935,12 @@ class SetLastSeenResponse {
1941
1935
  }
1942
1936
  return m;
1943
1937
  }
1938
+ constructor(kwargs) {
1939
+ if (!kwargs) {
1940
+ return;
1941
+ }
1942
+ Object.assign(this, kwargs);
1943
+ }
1944
1944
  toApiJson() {
1945
1945
  const toReturn = {};
1946
1946
  if (typeof this.participant !== 'undefined' && this.participant !== null) {
@@ -1950,12 +1950,6 @@ class SetLastSeenResponse {
1950
1950
  }
1951
1951
  }
1952
1952
  class UpdateMessageStatusRequest {
1953
- constructor(kwargs) {
1954
- if (!kwargs) {
1955
- return;
1956
- }
1957
- Object.assign(this, kwargs);
1958
- }
1959
1953
  static fromProto(proto) {
1960
1954
  let m = new UpdateMessageStatusRequest();
1961
1955
  m = Object.assign(m, proto);
@@ -1964,6 +1958,12 @@ class UpdateMessageStatusRequest {
1964
1958
  }
1965
1959
  return m;
1966
1960
  }
1961
+ constructor(kwargs) {
1962
+ if (!kwargs) {
1963
+ return;
1964
+ }
1965
+ Object.assign(this, kwargs);
1966
+ }
1967
1967
  toApiJson() {
1968
1968
  const toReturn = {};
1969
1969
  if (typeof this.messageId !== 'undefined') {
@@ -1979,12 +1979,6 @@ class UpdateMessageStatusRequest {
1979
1979
  }
1980
1980
  }
1981
1981
  class UpsertConfigurationRequest {
1982
- constructor(kwargs) {
1983
- if (!kwargs) {
1984
- return;
1985
- }
1986
- Object.assign(this, kwargs);
1987
- }
1988
1982
  static fromProto(proto) {
1989
1983
  let m = new UpsertConfigurationRequest();
1990
1984
  m = Object.assign(m, proto);
@@ -1993,6 +1987,12 @@ class UpsertConfigurationRequest {
1993
1987
  }
1994
1988
  return m;
1995
1989
  }
1990
+ constructor(kwargs) {
1991
+ if (!kwargs) {
1992
+ return;
1993
+ }
1994
+ Object.assign(this, kwargs);
1995
+ }
1996
1996
  toApiJson() {
1997
1997
  const toReturn = {};
1998
1998
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -2002,12 +2002,6 @@ class UpsertConfigurationRequest {
2002
2002
  }
2003
2003
  }
2004
2004
  class UpsertConfigurationResponse {
2005
- constructor(kwargs) {
2006
- if (!kwargs) {
2007
- return;
2008
- }
2009
- Object.assign(this, kwargs);
2010
- }
2011
2005
  static fromProto(proto) {
2012
2006
  let m = new UpsertConfigurationResponse();
2013
2007
  m = Object.assign(m, proto);
@@ -2016,6 +2010,12 @@ class UpsertConfigurationResponse {
2016
2010
  }
2017
2011
  return m;
2018
2012
  }
2013
+ constructor(kwargs) {
2014
+ if (!kwargs) {
2015
+ return;
2016
+ }
2017
+ Object.assign(this, kwargs);
2018
+ }
2019
2019
  toApiJson() {
2020
2020
  const toReturn = {};
2021
2021
  if (typeof this.configuration !== 'undefined' && this.configuration !== null) {
@@ -2044,9 +2044,9 @@ class HostService {
2044
2044
  return 'https://' + this.host;
2045
2045
  }
2046
2046
  }
2047
- HostService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2048
- HostService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: HostService, providedIn: 'root' });
2049
- 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: [{
2050
2050
  type: Injectable,
2051
2051
  args: [{ providedIn: 'root' }]
2052
2052
  }] });
@@ -2157,9 +2157,9 @@ class ConversationApiService {
2157
2157
  .pipe(map(resp => GetParticipantsByKeyResponse.fromProto(resp)));
2158
2158
  }
2159
2159
  }
2160
- 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 });
2161
- ConversationApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: ConversationApiService, providedIn: 'root' });
2162
- 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: [{
2163
2163
  type: Injectable,
2164
2164
  args: [{ providedIn: 'root' }]
2165
2165
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });
@@ -2195,9 +2195,9 @@ class InboxApiService {
2195
2195
  .pipe(map(resp => UpsertConfigurationResponse.fromProto(resp)));
2196
2196
  }
2197
2197
  }
2198
- 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 });
2199
- InboxApiService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: InboxApiService, providedIn: 'root' });
2200
- 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: [{
2201
2201
  type: Injectable,
2202
2202
  args: [{ providedIn: 'root' }]
2203
2203
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HostService }]; } });