@twilio/conversations 2.5.0-rc.0 → 2.5.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.
@@ -4285,11 +4285,13 @@ this.Twilio.Conversations = (function (exports) {
4285
4285
  }, {
4286
4286
  key: "trace",
4287
4287
  value: function trace() {
4288
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4289
- args[_key] = arguments[_key];
4290
- }
4288
+ if (log$a.getLevel() == log$a.levels.TRACE) {
4289
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
4290
+ args[_key] = arguments[_key];
4291
+ }
4291
4292
 
4292
- log$a.trace.apply(null, prepareLine$1(this.prefix + "T", args));
4293
+ log$a.debug.apply(null, prepareLine$1(this.prefix + "T", args));
4294
+ }
4293
4295
  }
4294
4296
  }, {
4295
4297
  key: "debug",
@@ -4340,11 +4342,13 @@ this.Twilio.Conversations = (function (exports) {
4340
4342
  }, {
4341
4343
  key: "trace",
4342
4344
  value: function trace() {
4343
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
4344
- args[_key6] = arguments[_key6];
4345
- }
4345
+ if (log$a.getLevel() == log$a.levels.TRACE) {
4346
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
4347
+ args[_key6] = arguments[_key6];
4348
+ }
4346
4349
 
4347
- log$a.trace.apply(null, prepareLine$1("T", args));
4350
+ log$a.debug.apply(null, prepareLine$1("T", args));
4351
+ }
4348
4352
  }
4349
4353
  }, {
4350
4354
  key: "debug",
@@ -20668,11 +20672,13 @@ this.Twilio.Conversations = (function (exports) {
20668
20672
  }, {
20669
20673
  key: "trace",
20670
20674
  value: function trace() {
20671
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
20672
- args[_key] = arguments[_key];
20673
- }
20675
+ if (log.getLevel() == log.levels.TRACE) {
20676
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
20677
+ args[_key] = arguments[_key];
20678
+ }
20674
20679
 
20675
- log.trace.apply(null, prepareLine("T", args));
20680
+ log.debug.apply(null, prepareLine("T", args));
20681
+ }
20676
20682
  }
20677
20683
  }, {
20678
20684
  key: "debug",
@@ -32078,10 +32084,10 @@ this.Twilio.Conversations = (function (exports) {
32078
32084
  browser$2.LiveQuery = LiveQuery;
32079
32085
  browser$2.Paginator = Paginator;
32080
32086
  var SyncClient = browser$2.SyncClient = Client;
32081
- browser$2.SyncDocument = SyncDocument;
32087
+ var SyncDocument_1 = browser$2.SyncDocument = SyncDocument;
32082
32088
  browser$2.SyncList = SyncList;
32083
32089
  browser$2.SyncListItem = SyncListItem;
32084
- browser$2.SyncMap = SyncMap;
32090
+ var SyncMap_1 = browser$2.SyncMap = SyncMap;
32085
32091
  browser$2.SyncMapItem = SyncMapItem;
32086
32092
  browser$2.SyncStream = SyncStream;
32087
32093
 
@@ -34129,11 +34135,13 @@ this.Twilio.Conversations = (function (exports) {
34129
34135
  value:
34130
34136
  /* eslint-disable @typescript-eslint/explicit-module-boundary-types */
34131
34137
  function trace() {
34132
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34133
- args[_key] = arguments[_key];
34134
- }
34138
+ if (log__namespace.getLevel() == log__namespace.levels.TRACE) {
34139
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
34140
+ args[_key] = arguments[_key];
34141
+ }
34135
34142
 
34136
- log__namespace.trace.apply(null, prepareLine(this.prefix + "T", args));
34143
+ log__namespace.debug.apply(null, prepareLine(this.prefix + "T", args));
34144
+ }
34137
34145
  }
34138
34146
  }, {
34139
34147
  key: "debug",
@@ -34184,11 +34192,13 @@ this.Twilio.Conversations = (function (exports) {
34184
34192
  }, {
34185
34193
  key: "trace",
34186
34194
  value: function trace() {
34187
- for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
34188
- args[_key6] = arguments[_key6];
34189
- }
34195
+ if (log__namespace.getLevel() == log__namespace.levels.TRACE) {
34196
+ for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
34197
+ args[_key6] = arguments[_key6];
34198
+ }
34190
34199
 
34191
- log__namespace.trace.apply(null, prepareLine("T", args));
34200
+ log__namespace.debug.apply(null, prepareLine("T", args));
34201
+ }
34192
34202
  }
34193
34203
  }, {
34194
34204
  key: "debug",
@@ -34888,7 +34898,7 @@ this.Twilio.Conversations = (function (exports) {
34888
34898
  return Network;
34889
34899
  }();
34890
34900
 
34891
- var version = "0.6.7-rc.0";
34901
+ var version = "0.6.7";
34892
34902
 
34893
34903
  var _class;
34894
34904
 
@@ -35462,8 +35472,9 @@ this.Twilio.Conversations = (function (exports) {
35462
35472
  }
35463
35473
 
35464
35474
  this.state.isTyping = true;
35465
- this.emit("typingStarted", this);
35466
- this.conversation.emit("typingStarted", this);
35475
+ this.emit(Participant.typingStarted, this);
35476
+ this.conversation.emit(Conversation.typingStarted, this); // @fixme layering violation
35477
+
35467
35478
  this.state.typingTimeout = Number(setTimeout(function () {
35468
35479
  return _this2._endTyping();
35469
35480
  }, timeout));
@@ -35482,8 +35493,8 @@ this.Twilio.Conversations = (function (exports) {
35482
35493
  }
35483
35494
 
35484
35495
  this.state.isTyping = false;
35485
- this.emit("typingEnded", this);
35486
- this.conversation.emit("typingEnded", this);
35496
+ this.emit(Participant.typingEnded, this);
35497
+ this.conversation.emit(Conversation.typingEnded, this);
35487
35498
  clearInterval(this.state.typingTimeout);
35488
35499
  this.state.typingTimeout = null;
35489
35500
  }
@@ -35542,7 +35553,7 @@ this.Twilio.Conversations = (function (exports) {
35542
35553
  }
35543
35554
 
35544
35555
  if (updateReasons.length > 0) {
35545
- this.emit("updated", {
35556
+ this.emit(Participant.updated, {
35546
35557
  participant: this,
35547
35558
  updateReasons: updateReasons
35548
35559
  });
@@ -35678,7 +35689,8 @@ this.Twilio.Conversations = (function (exports) {
35678
35689
 
35679
35690
  var _super = _createSuper$7(Participants);
35680
35691
 
35681
- function Participants(conversation, participants, links, configuration, services) {
35692
+ // passed in from Conversation
35693
+ function Participants(conversation, participants, links, services) {
35682
35694
  var _this;
35683
35695
 
35684
35696
  _classCallCheck$4(this, Participants);
@@ -35690,7 +35702,6 @@ this.Twilio.Conversations = (function (exports) {
35690
35702
  _this.conversation = conversation;
35691
35703
  _this.participants = participants;
35692
35704
  _this.links = links;
35693
- _this.configuration = configuration;
35694
35705
  _this.services = services;
35695
35706
  return _this;
35696
35707
  }
@@ -35741,14 +35752,14 @@ this.Twilio.Conversations = (function (exports) {
35741
35752
  mode: "open_existing"
35742
35753
  }) : Promise.resolve(arg);
35743
35754
  return this.rosterEntityPromise = this.rosterEntityPromise || participantsMapPromise.then(function (rosterMap) {
35744
- rosterMap.on("itemAdded", function (args) {
35755
+ rosterMap.on(SyncMap_1.itemAdded, function (args) {
35745
35756
  log$5.debug(_this2.conversation.sid + " itemAdded: " + args.item.key);
35746
35757
 
35747
35758
  _this2.upsertParticipant(args.item.key, args.item.data).then(function (participant) {
35748
- _this2.emit("participantJoined", participant);
35759
+ _this2.emit(Conversation.participantJoined, participant);
35749
35760
  });
35750
35761
  });
35751
- rosterMap.on("itemRemoved", function (args) {
35762
+ rosterMap.on(SyncMap_1.itemRemoved, function (args) {
35752
35763
  log$5.debug(_this2.conversation.sid + " itemRemoved: " + args.key);
35753
35764
  var participantSid = args.key;
35754
35765
 
@@ -35764,12 +35775,14 @@ this.Twilio.Conversations = (function (exports) {
35764
35775
  return;
35765
35776
  }
35766
35777
 
35767
- _this2.emit("participantLeft", leftParticipant);
35778
+ _this2.emit(Conversation.participantLeft, leftParticipant);
35768
35779
  });
35769
- rosterMap.on("itemUpdated", function (args) {
35780
+ rosterMap.on(SyncMap_1.itemUpdated, function (args) {
35770
35781
  log$5.debug(_this2.conversation.sid + " itemUpdated: " + args.item.key);
35771
35782
 
35772
- _this2.upsertParticipant(args.item.key, args.item.data);
35783
+ _this2.upsertParticipant(args.item.key, args.item.data).catch(function (e) {
35784
+ return log$5.error(e);
35785
+ });
35773
35786
  });
35774
35787
  var participantsPromises = [];
35775
35788
 
@@ -35863,8 +35876,8 @@ this.Twilio.Conversations = (function (exports) {
35863
35876
  };
35864
35877
  participant = new Participant(data, participantSid, this.conversation, links, this.services);
35865
35878
  this.participants.set(participantSid, participant);
35866
- participant.on("updated", function (args) {
35867
- return _this3.emit("participantUpdated", args);
35879
+ participant.on(Participant.updated, function (args) {
35880
+ return _this3.emit(Conversation.participantUpdated, args);
35868
35881
  });
35869
35882
  return _context3.abrupt("return", participant);
35870
35883
 
@@ -37528,7 +37541,7 @@ this.Twilio.Conversations = (function (exports) {
37528
37541
  var _getParticipant = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee() {
37529
37542
  var _this3 = this;
37530
37543
 
37531
- var participant, errorMesage;
37544
+ var participant, errorMessage;
37532
37545
  return _regeneratorRuntime$1.wrap(function _callee$(_context) {
37533
37546
  while (1) {
37534
37547
  switch (_context.prev = _context.next) {
@@ -37573,26 +37586,26 @@ this.Twilio.Conversations = (function (exports) {
37573
37586
  return _context.abrupt("return", participant);
37574
37587
 
37575
37588
  case 11:
37576
- errorMesage = "Participant with ";
37589
+ errorMessage = "Participant with ";
37577
37590
 
37578
37591
  if (this.state.participantSid) {
37579
- errorMesage += "SID '" + this.state.participantSid + "' ";
37592
+ errorMessage += "SID '" + this.state.participantSid + "' ";
37580
37593
  }
37581
37594
 
37582
37595
  if (this.state.author) {
37583
37596
  if (this.state.participantSid) {
37584
- errorMesage += "or ";
37597
+ errorMessage += "or ";
37585
37598
  }
37586
37599
 
37587
- errorMesage += "identity '" + this.state.author + "' ";
37600
+ errorMessage += "identity '" + this.state.author + "' ";
37588
37601
  }
37589
37602
 
37590
- if (errorMesage === "Participant with ") {
37591
- errorMesage = "Participant ";
37603
+ if (errorMessage === "Participant with ") {
37604
+ errorMessage = "Participant ";
37592
37605
  }
37593
37606
 
37594
- errorMesage += "was not found";
37595
- throw new Error(errorMesage);
37607
+ errorMessage += "was not found";
37608
+ throw new Error(errorMessage);
37596
37609
 
37597
37610
  case 17:
37598
37611
  case "end":
@@ -39255,32 +39268,39 @@ this.Twilio.Conversations = (function (exports) {
39255
39268
  participants: _this._links.participants
39256
39269
  };
39257
39270
  _this._participants = new Map();
39258
- _this._participantsEntity = new Participants(_assertThisInitialized$3(_this), _this._participants, participantsLinks, _this._configuration, _this._services);
39271
+ _this._participantsEntity = new Participants(_assertThisInitialized$3(_this), _this._participants, // state leak
39272
+ participantsLinks, _this._services);
39259
39273
 
39260
- _this._participantsEntity.on("participantJoined", function (participant) {
39261
- return _this.emit("participantJoined", participant);
39274
+ _this._participantsEntity.on(Conversation.participantJoined, function (participant) {
39275
+ return (// @todo update participants map here??
39276
+ _this.emit(Conversation.participantJoined, participant)
39277
+ );
39262
39278
  });
39263
39279
 
39264
- _this._participantsEntity.on("participantLeft", function (participant) {
39265
- return _this.emit("participantLeft", participant);
39280
+ _this._participantsEntity.on(Conversation.participantLeft, function (participant) {
39281
+ return (// @todo update participants map here??
39282
+ _this.emit(Conversation.participantLeft, participant)
39283
+ );
39266
39284
  });
39267
39285
 
39268
- _this._participantsEntity.on("participantUpdated", function (args) {
39269
- return _this.emit("participantUpdated", args);
39286
+ _this._participantsEntity.on(Conversation.participantUpdated, function (args) {
39287
+ return (// @todo update participants map here??
39288
+ _this.emit(Conversation.participantUpdated, args)
39289
+ );
39270
39290
  });
39271
39291
 
39272
39292
  _this._messagesEntity = new Messages(_assertThisInitialized$3(_this), configuration, services);
39273
39293
 
39274
- _this._messagesEntity.on("messageAdded", function (message) {
39294
+ _this._messagesEntity.on(Conversation.messageAdded, function (message) {
39275
39295
  return _this._onMessageAdded(message);
39276
39296
  });
39277
39297
 
39278
- _this._messagesEntity.on("messageUpdated", function (args) {
39279
- return _this.emit("messageUpdated", args);
39298
+ _this._messagesEntity.on(Conversation.messageUpdated, function (args) {
39299
+ return _this.emit(Conversation.messageUpdated, args);
39280
39300
  });
39281
39301
 
39282
- _this._messagesEntity.on("messageRemoved", function (message) {
39283
- return _this.emit("messageRemoved", message);
39302
+ _this._messagesEntity.on(Conversation.messageRemoved, function (message) {
39303
+ return _this.emit(Conversation.messageRemoved, message);
39284
39304
  });
39285
39305
 
39286
39306
  return _this;
@@ -39383,7 +39403,7 @@ this.Twilio.Conversations = (function (exports) {
39383
39403
  return (_this$_internalState$3 = this._internalState.notificationLevel) !== null && _this$_internalState$3 !== void 0 ? _this$_internalState$3 : "default";
39384
39404
  }
39385
39405
  /**
39386
- * Conversation bindings. Undocumented feature (for now).
39406
+ * Conversation bindings. An undocumented feature (for now).
39387
39407
  * @internal
39388
39408
  */
39389
39409
 
@@ -40365,18 +40385,19 @@ this.Twilio.Conversations = (function (exports) {
40365
40385
  }()
40366
40386
  /**
40367
40387
  * Get recipients of all messages in the conversation.
40388
+ * @param options Optional configuration, set pageSize to request a specific pagination page size. Page size specifies a number of messages to include in a single batch. Each message may include multiple recipients.
40368
40389
  */
40369
40390
 
40370
40391
  }, {
40371
40392
  key: "getMessageRecipients",
40372
40393
  value: function () {
40373
- var _getMessageRecipients = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee24() {
40394
+ var _getMessageRecipients = _asyncToGenerator$1( /*#__PURE__*/_regeneratorRuntime$1.mark(function _callee24(options) {
40374
40395
  return _regeneratorRuntime$1.wrap(function _callee24$(_context24) {
40375
40396
  while (1) {
40376
40397
  switch (_context24.prev = _context24.next) {
40377
40398
  case 0:
40378
40399
  _context24.next = 2;
40379
- return this._services.messageRecipientsClient.getRecipientsFromConversation(this.sid);
40400
+ return this._services.messageRecipientsClient.getRecipientsFromConversation(this.sid, options);
40380
40401
 
40381
40402
  case 2:
40382
40403
  return _context24.abrupt("return", _context24.sent);
@@ -40389,7 +40410,7 @@ this.Twilio.Conversations = (function (exports) {
40389
40410
  }, _callee24, this);
40390
40411
  }));
40391
40412
 
40392
- function getMessageRecipients() {
40413
+ function getMessageRecipients(_x19) {
40393
40414
  return _getMessageRecipients.apply(this, arguments);
40394
40415
  }
40395
40416
 
@@ -40398,7 +40419,7 @@ this.Twilio.Conversations = (function (exports) {
40398
40419
  /**
40399
40420
  * Load and subscribe to this conversation and do not subscribe to its
40400
40421
  * participants and messages. This or _subscribeStreams will need to be called
40401
- * before any events on conversation will fire.
40422
+ * before any events in the conversation will fire.
40402
40423
  * @internal
40403
40424
  */
40404
40425
 
@@ -40431,12 +40452,12 @@ this.Twilio.Conversations = (function (exports) {
40431
40452
  case 6:
40432
40453
  this._entity = _context25.sent;
40433
40454
 
40434
- this._entity.on("updated", function (args) {
40455
+ this._entity.on(SyncDocument_1.updated, function (args) {
40435
40456
  return _this2._update(args.data);
40436
40457
  });
40437
40458
 
40438
- this._entity.on("removed", function () {
40439
- return _this2.emit("removed", _this2);
40459
+ this._entity.on(SyncDocument_1.removed, function () {
40460
+ return _this2.emit(Conversation.removed, _this2);
40440
40461
  });
40441
40462
 
40442
40463
  this._update(this._entity.data);
@@ -40604,22 +40625,16 @@ this.Twilio.Conversations = (function (exports) {
40604
40625
  while (1) {
40605
40626
  switch (_context28.prev = _context28.next) {
40606
40627
  case 0:
40607
- if (!this._entity) {
40608
- _context28.next = 5;
40609
- break;
40610
- }
40628
+ if (this._entity) {
40629
+ this._entity.close();
40611
40630
 
40612
- _context28.next = 3;
40613
- return this._entity.close();
40614
-
40615
- case 3:
40616
- this._entity = null;
40617
- this._entityPromise = null;
40631
+ this._entity = null;
40632
+ this._entityPromise = null;
40633
+ }
40618
40634
 
40619
- case 5:
40620
40635
  return _context28.abrupt("return", Promise.all([this._participantsEntity.unsubscribe(), this._messagesEntity.unsubscribe()]));
40621
40636
 
40622
- case 6:
40637
+ case 2:
40623
40638
  case "end":
40624
40639
  return _context28.stop();
40625
40640
  }
@@ -40788,7 +40803,7 @@ this.Twilio.Conversations = (function (exports) {
40788
40803
  }
40789
40804
 
40790
40805
  if (updateReasons.size > 0) {
40791
- this.emit("updated", {
40806
+ this.emit(Conversation.updated, {
40792
40807
  conversation: this,
40793
40808
  updateReasons: _toConsumableArray$1(updateReasons)
40794
40809
  });
@@ -40820,7 +40835,7 @@ this.Twilio.Conversations = (function (exports) {
40820
40835
  _iterator.f();
40821
40836
  }
40822
40837
 
40823
- this.emit("messageAdded", message);
40838
+ this.emit(Conversation.messageAdded, message);
40824
40839
  }
40825
40840
  /**
40826
40841
  * Set last read message index.
@@ -40853,7 +40868,7 @@ this.Twilio.Conversations = (function (exports) {
40853
40868
  }, _callee29, this);
40854
40869
  }));
40855
40870
 
40856
- function _setLastReadMessageIndex(_x19) {
40871
+ function _setLastReadMessageIndex(_x20) {
40857
40872
  return _setLastReadMessageIndex2.apply(this, arguments);
40858
40873
  }
40859
40874
 
@@ -40933,7 +40948,7 @@ this.Twilio.Conversations = (function (exports) {
40933
40948
 
40934
40949
  __decorate$1([validateTypesAsync_1(nonEmptyString_1, optionalJson), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [String, Object]), __metadata$1("design:returntype", Promise)], Conversation.prototype, "add", null);
40935
40950
 
40936
- __decorate$1([validateTypesAsync_1(nonEmptyString_1, nonEmptyString_1, optionalJson), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [String, String, Object, Object]), __metadata$1("design:returntype", Promise)], Conversation.prototype, "addNonChatParticipant", null);
40951
+ __decorate$1([validateTypesAsync_1(nonEmptyString_1, nonEmptyString_1, optionalJson, optionalJson), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [String, String, Object, Object]), __metadata$1("design:returntype", Promise)], Conversation.prototype, "addNonChatParticipant", null);
40937
40952
 
40938
40953
  __decorate$1([validateTypesAsync_1(nonNegativeInteger_1), __metadata$1("design:type", Function), __metadata$1("design:paramtypes", [Number]), __metadata$1("design:returntype", Promise)], Conversation.prototype, "advanceLastReadMessageIndex", null);
40939
40954
 
@@ -41130,7 +41145,7 @@ this.Twilio.Conversations = (function (exports) {
41130
41145
  return addConversation;
41131
41146
  }()
41132
41147
  /**
41133
- * Fetch conversations list and instantiate all necessary objects
41148
+ * Fetch conversations' list and instantiate all necessary objects
41134
41149
  */
41135
41150
 
41136
41151
  }, {
@@ -41151,12 +41166,12 @@ this.Twilio.Conversations = (function (exports) {
41151
41166
 
41152
41167
  case 3:
41153
41168
  map = _context2.sent;
41154
- map.on("itemAdded", function (args) {
41169
+ map.on(SyncMap_1.itemAdded, function (args) {
41155
41170
  log$1.debug("itemAdded: ".concat(args.item.key));
41156
41171
 
41157
41172
  _this2._upsertConversation("sync", args.item.key, args.item.data);
41158
41173
  });
41159
- map.on("itemRemoved", function (args) {
41174
+ map.on(SyncMap_1.itemRemoved, function (args) {
41160
41175
  log$1.debug("itemRemoved: ".concat(args.key));
41161
41176
  var sid = args.key;
41162
41177
 
@@ -41182,7 +41197,7 @@ this.Twilio.Conversations = (function (exports) {
41182
41197
 
41183
41198
  conversation.emit("removed", conversation);
41184
41199
  });
41185
- map.on("itemUpdated", function (args) {
41200
+ map.on(SyncMap_1.itemUpdated, function (args) {
41186
41201
  log$1.debug("itemUpdated: ".concat(args.item.key));
41187
41202
 
41188
41203
  _this2._upsertConversation("sync", args.item.key, args.item.data);
@@ -42296,7 +42311,7 @@ this.Twilio.Conversations = (function (exports) {
42296
42311
  this.data = data.data || {};
42297
42312
  });
42298
42313
 
42299
- var version = "2.5.0-rc.0";
42314
+ var version = "2.5.0";
42300
42315
 
42301
42316
  function _isNativeFunction(fn) {
42302
42317
  return Function.toString.call(fn).indexOf("[native code]") !== -1;
@@ -43377,7 +43392,7 @@ this.Twilio.Conversations = (function (exports) {
43377
43392
  while (1) {
43378
43393
  switch (_context2.prev = _context2.next) {
43379
43394
  case 0:
43380
- url = new UriBuilder$1(this._configuration.links.conversations).path(conversationSid).path("MessageRecipients").arg("PageToken", (_paginatorOptions$pag = paginatorOptions === null || paginatorOptions === void 0 ? void 0 : paginatorOptions.pageToken) !== null && _paginatorOptions$pag !== void 0 ? _paginatorOptions$pag : "").arg("PageSize", (_paginatorOptions$pag2 = paginatorOptions === null || paginatorOptions === void 0 ? void 0 : paginatorOptions.pageSize) !== null && _paginatorOptions$pag2 !== void 0 ? _paginatorOptions$pag2 : "").build();
43395
+ url = new UriBuilder$1(this._configuration.links.conversations).path(conversationSid).path("MessageRecipients").arg("PageToken", (_paginatorOptions$pag = paginatorOptions === null || paginatorOptions === void 0 ? void 0 : paginatorOptions.pageToken) !== null && _paginatorOptions$pag !== void 0 ? _paginatorOptions$pag : undefined).arg("PageSize", (_paginatorOptions$pag2 = paginatorOptions === null || paginatorOptions === void 0 ? void 0 : paginatorOptions.pageSize) !== null && _paginatorOptions$pag2 !== void 0 ? _paginatorOptions$pag2 : undefined).build();
43381
43396
  _context2.next = 3;
43382
43397
  return this._services.commandExecutor.fetchResource(url);
43383
43398
 
@@ -43709,7 +43724,7 @@ this.Twilio.Conversations = (function (exports) {
43709
43724
  */
43710
43725
 
43711
43726
  /**
43712
- * Returned Conversations instance is not yet fully initialized. Calling any
43727
+ * Returned Conversations Client instance is not yet fully initialized. Calling any
43713
43728
  * operations will block until it is. Use connection events to monitor when
43714
43729
  * client becomes fully available (connectionStateChanged with state
43715
43730
  * 'connected') or not available (connectionStateChange with state 'denied',
@@ -43799,16 +43814,16 @@ this.Twilio.Conversations = (function (exports) {
43799
43814
 
43800
43815
  _this._services.twilsockClient = _this._options.twilsockClient = (_this$_options$twilso = _this._options.twilsockClient) !== null && _this$_options$twilso !== void 0 ? _this$_options$twilso : new browser$4.TwilsockClient(fpaToken, productId, _this._options);
43801
43816
 
43802
- _this._services.twilsockClient.on("tokenAboutToExpire", function () {
43803
- return _this.emit("tokenAboutToExpire");
43817
+ _this._services.twilsockClient.on(Client_1.tokenAboutToExpire, function () {
43818
+ return _this.emit(Client_1.tokenAboutToExpire);
43804
43819
  });
43805
43820
 
43806
- _this._services.twilsockClient.on("tokenExpired", function () {
43807
- return _this.emit("tokenExpired");
43821
+ _this._services.twilsockClient.on(Client_1.tokenExpired, function () {
43822
+ return _this.emit(Client_1.tokenExpired);
43808
43823
  });
43809
43824
 
43810
- _this._services.twilsockClient.on("connectionError", function (error) {
43811
- return _this.emit("connectionError", error);
43825
+ _this._services.twilsockClient.on(Client_1.connectionError, function (error) {
43826
+ return _this.emit(Client_1.connectionError, error);
43812
43827
  });
43813
43828
 
43814
43829
  _this._services.twilsockClient.on("stateChanged", function (state) {
@@ -43817,7 +43832,7 @@ this.Twilio.Conversations = (function (exports) {
43817
43832
  if (state !== _this.connectionState) {
43818
43833
  _this.connectionState = state;
43819
43834
 
43820
- _this.emit("connectionStateChanged", _this.connectionState);
43835
+ _this.emit(Client_1.connectionStateChanged, _this.connectionState);
43821
43836
  }
43822
43837
  });
43823
43838
 
@@ -43835,9 +43850,9 @@ this.Twilio.Conversations = (function (exports) {
43835
43850
  var emitFailed = function emitFailed(error) {
43836
43851
  _this._rejectEnsureReady(error);
43837
43852
 
43838
- _this.emit("stateChanged", "failed");
43853
+ _this.emit(Client_1.stateChanged, "failed");
43839
43854
 
43840
- _this.emit("initFailed", {
43855
+ _this.emit(Client_1.initFailed, {
43841
43856
  error: error
43842
43857
  });
43843
43858
  };
@@ -43890,9 +43905,9 @@ this.Twilio.Conversations = (function (exports) {
43890
43905
 
43891
43906
  _this._rejectEnsureReady(connectionError);
43892
43907
 
43893
- _this.emit("stateChanged", "failed");
43908
+ _this.emit(Client_1.stateChanged, "failed");
43894
43909
 
43895
- _this.emit("initFailed", {
43910
+ _this.emit(Client_1.initFailed, {
43896
43911
  error: connectionError
43897
43912
  });
43898
43913
 
@@ -44420,7 +44435,7 @@ this.Twilio.Conversations = (function (exports) {
44420
44435
  return removePushRegistrations;
44421
44436
  }()
44422
44437
  /**
44423
- * Current version of the Conversations client.
44438
+ * Parse a push notification payload.
44424
44439
  */
44425
44440
 
44426
44441
  }, {
@@ -44757,8 +44772,8 @@ this.Twilio.Conversations = (function (exports) {
44757
44772
 
44758
44773
  this._resolveEnsureReady();
44759
44774
 
44760
- this.emit("stateChanged", "initialized");
44761
- this.emit("initialized");
44775
+ this.emit(Client_1.stateChanged, "initialized");
44776
+ this.emit(Client_1.initialized);
44762
44777
 
44763
44778
  case 36:
44764
44779
  case "end":