stream-chat 6.7.0 → 6.7.1

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.
@@ -720,7 +720,9 @@ var ChannelState = /*#__PURE__*/function () {
720
720
  this.threads[messageToRemove.parent_id] = threadMessages;
721
721
  isRemoved = removed;
722
722
  } else {
723
- var messageSetIndex = this.findMessageSetIndex(messageToRemove);
723
+ var _messageToRemove$mess;
724
+
725
+ var messageSetIndex = (_messageToRemove$mess = messageToRemove.messageSetIndex) !== null && _messageToRemove$mess !== void 0 ? _messageToRemove$mess : this.findMessageSetIndex(messageToRemove);
724
726
 
725
727
  if (messageSetIndex !== -1) {
726
728
  var _this$removeMessageFr3 = this.removeMessageFromArray(this.messageSets[messageSetIndex].messages, messageToRemove),
@@ -3418,6 +3420,41 @@ var Channel = /*#__PURE__*/function () {
3418
3420
 
3419
3421
  return removeShadowBan;
3420
3422
  }()
3423
+ /**
3424
+ * createCall - creates a call for the current channel
3425
+ *
3426
+ * @param {CreateCallOptions} options
3427
+ * @returns {Promise<CreateCallResponse>}
3428
+ */
3429
+
3430
+ }, {
3431
+ key: "createCall",
3432
+ value: function () {
3433
+ var _createCall = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(options) {
3434
+ return _regeneratorRuntime.wrap(function _callee38$(_context38) {
3435
+ while (1) {
3436
+ switch (_context38.prev = _context38.next) {
3437
+ case 0:
3438
+ _context38.next = 2;
3439
+ return this.getClient().post(this._channelURL() + '/call', options);
3440
+
3441
+ case 2:
3442
+ return _context38.abrupt("return", _context38.sent);
3443
+
3444
+ case 3:
3445
+ case "end":
3446
+ return _context38.stop();
3447
+ }
3448
+ }
3449
+ }, _callee38, this);
3450
+ }));
3451
+
3452
+ function createCall(_x37) {
3453
+ return _createCall.apply(this, arguments);
3454
+ }
3455
+
3456
+ return createCall;
3457
+ }()
3421
3458
  /**
3422
3459
  * on - Listen to events on this channel.
3423
3460
  *
@@ -3500,7 +3537,7 @@ var Channel = /*#__PURE__*/function () {
3500
3537
  }, {
3501
3538
  key: "_handleChannelEvent",
3502
3539
  value: function _handleChannelEvent(event) {
3503
- var _event$user, _event$user2, _event$user3, _event$user5, _event$user6, _event$member, _event$user9;
3540
+ var _event$user, _event$user2, _event$user3, _event$user5, _event$user6, _event$channel, _event$member, _event$user9;
3504
3541
 
3505
3542
  var channel = this;
3506
3543
 
@@ -3615,7 +3652,22 @@ var Channel = /*#__PURE__*/function () {
3615
3652
  break;
3616
3653
 
3617
3654
  case 'channel.truncated':
3618
- channelState.clearMessages();
3655
+ if ((_event$channel = event.channel) !== null && _event$channel !== void 0 && _event$channel.truncated_at) {
3656
+ var truncatedAt = +new Date(event.channel.truncated_at);
3657
+ channelState.messageSets.forEach(function (messageSet, messageSetIndex) {
3658
+ messageSet.messages.forEach(function (_ref2) {
3659
+ var createdAt = _ref2.created_at,
3660
+ id = _ref2.id;
3661
+ if (truncatedAt > +createdAt) channelState.removeMessage({
3662
+ id: id,
3663
+ messageSetIndex: messageSetIndex
3664
+ });
3665
+ });
3666
+ });
3667
+ } else {
3668
+ channelState.clearMessages();
3669
+ }
3670
+
3619
3671
  channelState.unreadCount = 0; // system messages don't increment unread counts
3620
3672
 
3621
3673
  if (event.message) {
@@ -3645,11 +3697,11 @@ var Channel = /*#__PURE__*/function () {
3645
3697
 
3646
3698
  case 'channel.updated':
3647
3699
  if (event.channel) {
3648
- var _event$channel$hidden, _event$channel, _channel$data, _event$channel$own_ca, _event$channel2, _channel$data2;
3700
+ var _event$channel$hidden, _event$channel2, _channel$data, _event$channel$own_ca, _event$channel3, _channel$data2;
3649
3701
 
3650
3702
  channel.data = _objectSpread$5(_objectSpread$5({}, event.channel), {}, {
3651
- hidden: (_event$channel$hidden = (_event$channel = event.channel) === null || _event$channel === void 0 ? void 0 : _event$channel.hidden) !== null && _event$channel$hidden !== void 0 ? _event$channel$hidden : (_channel$data = channel.data) === null || _channel$data === void 0 ? void 0 : _channel$data.hidden,
3652
- own_capabilities: (_event$channel$own_ca = (_event$channel2 = event.channel) === null || _event$channel2 === void 0 ? void 0 : _event$channel2.own_capabilities) !== null && _event$channel$own_ca !== void 0 ? _event$channel$own_ca : (_channel$data2 = channel.data) === null || _channel$data2 === void 0 ? void 0 : _channel$data2.own_capabilities
3703
+ hidden: (_event$channel$hidden = (_event$channel2 = event.channel) === null || _event$channel2 === void 0 ? void 0 : _event$channel2.hidden) !== null && _event$channel$hidden !== void 0 ? _event$channel$hidden : (_channel$data = channel.data) === null || _channel$data === void 0 ? void 0 : _channel$data.hidden,
3704
+ own_capabilities: (_event$channel$own_ca = (_event$channel3 = event.channel) === null || _event$channel3 === void 0 ? void 0 : _event$channel3.own_capabilities) !== null && _event$channel$own_ca !== void 0 ? _event$channel$own_ca : (_channel$data2 = channel.data) === null || _channel$data2 === void 0 ? void 0 : _channel$data2.own_capabilities
3653
3705
  });
3654
3706
  }
3655
3707
 
@@ -9002,6 +9054,45 @@ var StreamChat = /*#__PURE__*/function () {
9002
9054
 
9003
9055
  return unflagUser;
9004
9056
  }()
9057
+ /**
9058
+ * getCallToken - retrieves the auth token needed to join a call
9059
+ *
9060
+ * @param {string} callID
9061
+ * @param {object} options
9062
+ * @returns {Promise<GetCallTokenResponse>}
9063
+ */
9064
+
9065
+ }, {
9066
+ key: "getCallToken",
9067
+ value: function () {
9068
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(callID) {
9069
+ var options,
9070
+ _args42 = arguments;
9071
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9072
+ while (1) {
9073
+ switch (_context42.prev = _context42.next) {
9074
+ case 0:
9075
+ options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9076
+ _context42.next = 3;
9077
+ return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
9078
+
9079
+ case 3:
9080
+ return _context42.abrupt("return", _context42.sent);
9081
+
9082
+ case 4:
9083
+ case "end":
9084
+ return _context42.stop();
9085
+ }
9086
+ }
9087
+ }, _callee42, this);
9088
+ }));
9089
+
9090
+ function getCallToken(_x55) {
9091
+ return _getCallToken.apply(this, arguments);
9092
+ }
9093
+
9094
+ return getCallToken;
9095
+ }()
9005
9096
  /**
9006
9097
  * _queryFlags - Query flags.
9007
9098
  *
@@ -9019,30 +9110,30 @@ var StreamChat = /*#__PURE__*/function () {
9019
9110
  }, {
9020
9111
  key: "_queryFlags",
9021
9112
  value: function () {
9022
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
9113
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
9023
9114
  var filterConditions,
9024
9115
  options,
9025
- _args42 = arguments;
9026
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9116
+ _args43 = arguments;
9117
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9027
9118
  while (1) {
9028
- switch (_context42.prev = _context42.next) {
9119
+ switch (_context43.prev = _context43.next) {
9029
9120
  case 0:
9030
- filterConditions = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
9031
- options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9032
- _context42.next = 4;
9121
+ filterConditions = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
9122
+ options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9123
+ _context43.next = 4;
9033
9124
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
9034
9125
  filter_conditions: filterConditions
9035
9126
  }, options));
9036
9127
 
9037
9128
  case 4:
9038
- return _context42.abrupt("return", _context42.sent);
9129
+ return _context43.abrupt("return", _context43.sent);
9039
9130
 
9040
9131
  case 5:
9041
9132
  case "end":
9042
- return _context42.stop();
9133
+ return _context43.stop();
9043
9134
  }
9044
9135
  }
9045
- }, _callee42, this);
9136
+ }, _callee43, this);
9046
9137
  }));
9047
9138
 
9048
9139
  function _queryFlags() {
@@ -9068,30 +9159,30 @@ var StreamChat = /*#__PURE__*/function () {
9068
9159
  }, {
9069
9160
  key: "_queryFlagReports",
9070
9161
  value: function () {
9071
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
9162
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
9072
9163
  var filterConditions,
9073
9164
  options,
9074
- _args43 = arguments;
9075
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9165
+ _args44 = arguments;
9166
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9076
9167
  while (1) {
9077
- switch (_context43.prev = _context43.next) {
9168
+ switch (_context44.prev = _context44.next) {
9078
9169
  case 0:
9079
- filterConditions = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
9080
- options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9081
- _context43.next = 4;
9170
+ filterConditions = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
9171
+ options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9172
+ _context44.next = 4;
9082
9173
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
9083
9174
  filter_conditions: filterConditions
9084
9175
  }, options));
9085
9176
 
9086
9177
  case 4:
9087
- return _context43.abrupt("return", _context43.sent);
9178
+ return _context44.abrupt("return", _context44.sent);
9088
9179
 
9089
9180
  case 5:
9090
9181
  case "end":
9091
- return _context43.stop();
9182
+ return _context44.stop();
9092
9183
  }
9093
9184
  }
9094
- }, _callee43, this);
9185
+ }, _callee44, this);
9095
9186
  }));
9096
9187
 
9097
9188
  function _queryFlagReports() {
@@ -9118,31 +9209,31 @@ var StreamChat = /*#__PURE__*/function () {
9118
9209
  }, {
9119
9210
  key: "_reviewFlagReport",
9120
9211
  value: function () {
9121
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(id, reviewResult) {
9212
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(id, reviewResult) {
9122
9213
  var options,
9123
- _args44 = arguments;
9124
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9214
+ _args45 = arguments;
9215
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9125
9216
  while (1) {
9126
- switch (_context44.prev = _context44.next) {
9217
+ switch (_context45.prev = _context45.next) {
9127
9218
  case 0:
9128
- options = _args44.length > 2 && _args44[2] !== undefined ? _args44[2] : {};
9129
- _context44.next = 3;
9219
+ options = _args45.length > 2 && _args45[2] !== undefined ? _args45[2] : {};
9220
+ _context45.next = 3;
9130
9221
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
9131
9222
  review_result: reviewResult
9132
9223
  }, options));
9133
9224
 
9134
9225
  case 3:
9135
- return _context44.abrupt("return", _context44.sent);
9226
+ return _context45.abrupt("return", _context45.sent);
9136
9227
 
9137
9228
  case 4:
9138
9229
  case "end":
9139
- return _context44.stop();
9230
+ return _context45.stop();
9140
9231
  }
9141
9232
  }
9142
- }, _callee44, this);
9233
+ }, _callee45, this);
9143
9234
  }));
9144
9235
 
9145
- function _reviewFlagReport(_x55, _x56) {
9236
+ function _reviewFlagReport(_x56, _x57) {
9146
9237
  return _reviewFlagReport2.apply(this, arguments);
9147
9238
  }
9148
9239
 
@@ -9164,31 +9255,31 @@ var StreamChat = /*#__PURE__*/function () {
9164
9255
  }, {
9165
9256
  key: "_unblockMessage",
9166
9257
  value: function () {
9167
- var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetMessageID) {
9258
+ var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetMessageID) {
9168
9259
  var options,
9169
- _args45 = arguments;
9170
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9260
+ _args46 = arguments;
9261
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9171
9262
  while (1) {
9172
- switch (_context45.prev = _context45.next) {
9263
+ switch (_context46.prev = _context46.next) {
9173
9264
  case 0:
9174
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9175
- _context45.next = 3;
9265
+ options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9266
+ _context46.next = 3;
9176
9267
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
9177
9268
  target_message_id: targetMessageID
9178
9269
  }, options));
9179
9270
 
9180
9271
  case 3:
9181
- return _context45.abrupt("return", _context45.sent);
9272
+ return _context46.abrupt("return", _context46.sent);
9182
9273
 
9183
9274
  case 4:
9184
9275
  case "end":
9185
- return _context45.stop();
9276
+ return _context46.stop();
9186
9277
  }
9187
9278
  }
9188
- }, _callee45, this);
9279
+ }, _callee46, this);
9189
9280
  }));
9190
9281
 
9191
- function _unblockMessage(_x57) {
9282
+ function _unblockMessage(_x58) {
9192
9283
  return _unblockMessage2.apply(this, arguments);
9193
9284
  }
9194
9285
 
@@ -9215,23 +9306,23 @@ var StreamChat = /*#__PURE__*/function () {
9215
9306
  * @return {Promise<APIResponse>}
9216
9307
  */
9217
9308
  function () {
9218
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
9309
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9219
9310
  var data,
9220
- _args46 = arguments;
9221
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9311
+ _args47 = arguments;
9312
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9222
9313
  while (1) {
9223
- switch (_context46.prev = _context46.next) {
9314
+ switch (_context47.prev = _context47.next) {
9224
9315
  case 0:
9225
- data = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
9226
- _context46.next = 3;
9316
+ data = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9317
+ _context47.next = 3;
9227
9318
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
9228
9319
 
9229
9320
  case 3:
9230
9321
  case "end":
9231
- return _context46.stop();
9322
+ return _context47.stop();
9232
9323
  }
9233
9324
  }
9234
- }, _callee46, this);
9325
+ }, _callee47, this);
9235
9326
  }));
9236
9327
 
9237
9328
  function markChannelsRead() {
@@ -9306,28 +9397,28 @@ var StreamChat = /*#__PURE__*/function () {
9306
9397
  }, {
9307
9398
  key: "translateMessage",
9308
9399
  value: function () {
9309
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(messageId, language) {
9310
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9400
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(messageId, language) {
9401
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9311
9402
  while (1) {
9312
- switch (_context47.prev = _context47.next) {
9403
+ switch (_context48.prev = _context48.next) {
9313
9404
  case 0:
9314
- _context47.next = 2;
9405
+ _context48.next = 2;
9315
9406
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
9316
9407
  language: language
9317
9408
  });
9318
9409
 
9319
9410
  case 2:
9320
- return _context47.abrupt("return", _context47.sent);
9411
+ return _context48.abrupt("return", _context48.sent);
9321
9412
 
9322
9413
  case 3:
9323
9414
  case "end":
9324
- return _context47.stop();
9415
+ return _context48.stop();
9325
9416
  }
9326
9417
  }
9327
- }, _callee47, this);
9418
+ }, _callee48, this);
9328
9419
  }));
9329
9420
 
9330
- function translateMessage(_x58, _x59) {
9421
+ function translateMessage(_x59, _x60) {
9331
9422
  return _translateMessage.apply(this, arguments);
9332
9423
  }
9333
9424
 
@@ -9429,14 +9520,14 @@ var StreamChat = /*#__PURE__*/function () {
9429
9520
  }, {
9430
9521
  key: "updateMessage",
9431
9522
  value: function () {
9432
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(message, userId, options) {
9523
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(message, userId, options) {
9433
9524
  var clonedMessage, reservedMessageFields;
9434
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9525
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9435
9526
  while (1) {
9436
- switch (_context48.prev = _context48.next) {
9527
+ switch (_context49.prev = _context49.next) {
9437
9528
  case 0:
9438
9529
  if (message.id) {
9439
- _context48.next = 2;
9530
+ _context49.next = 2;
9440
9531
  break;
9441
9532
  }
9442
9533
 
@@ -9473,23 +9564,23 @@ var StreamChat = /*#__PURE__*/function () {
9473
9564
  });
9474
9565
  }
9475
9566
 
9476
- _context48.next = 10;
9567
+ _context49.next = 10;
9477
9568
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
9478
9569
  message: clonedMessage
9479
9570
  }, options));
9480
9571
 
9481
9572
  case 10:
9482
- return _context48.abrupt("return", _context48.sent);
9573
+ return _context49.abrupt("return", _context49.sent);
9483
9574
 
9484
9575
  case 11:
9485
9576
  case "end":
9486
- return _context48.stop();
9577
+ return _context49.stop();
9487
9578
  }
9488
9579
  }
9489
- }, _callee48, this);
9580
+ }, _callee49, this);
9490
9581
  }));
9491
9582
 
9492
- function updateMessage(_x60, _x61, _x62) {
9583
+ function updateMessage(_x61, _x62, _x63) {
9493
9584
  return _updateMessage.apply(this, arguments);
9494
9585
  }
9495
9586
 
@@ -9512,14 +9603,14 @@ var StreamChat = /*#__PURE__*/function () {
9512
9603
  }, {
9513
9604
  key: "partialUpdateMessage",
9514
9605
  value: function () {
9515
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(id, partialMessageObject, userId, options) {
9606
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(id, partialMessageObject, userId, options) {
9516
9607
  var user;
9517
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9608
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9518
9609
  while (1) {
9519
- switch (_context49.prev = _context49.next) {
9610
+ switch (_context50.prev = _context50.next) {
9520
9611
  case 0:
9521
9612
  if (id) {
9522
- _context49.next = 2;
9613
+ _context50.next = 2;
9523
9614
  break;
9524
9615
  }
9525
9616
 
@@ -9534,23 +9625,23 @@ var StreamChat = /*#__PURE__*/function () {
9534
9625
  };
9535
9626
  }
9536
9627
 
9537
- _context49.next = 6;
9628
+ _context50.next = 6;
9538
9629
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
9539
9630
  user: user
9540
9631
  }));
9541
9632
 
9542
9633
  case 6:
9543
- return _context49.abrupt("return", _context49.sent);
9634
+ return _context50.abrupt("return", _context50.sent);
9544
9635
 
9545
9636
  case 7:
9546
9637
  case "end":
9547
- return _context49.stop();
9638
+ return _context50.stop();
9548
9639
  }
9549
9640
  }
9550
- }, _callee49, this);
9641
+ }, _callee50, this);
9551
9642
  }));
9552
9643
 
9553
- function partialUpdateMessage(_x63, _x64, _x65, _x66) {
9644
+ function partialUpdateMessage(_x64, _x65, _x66, _x67) {
9554
9645
  return _partialUpdateMessage.apply(this, arguments);
9555
9646
  }
9556
9647
 
@@ -9559,11 +9650,11 @@ var StreamChat = /*#__PURE__*/function () {
9559
9650
  }, {
9560
9651
  key: "deleteMessage",
9561
9652
  value: function () {
9562
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(messageID, hardDelete) {
9653
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageID, hardDelete) {
9563
9654
  var params;
9564
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9655
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9565
9656
  while (1) {
9566
- switch (_context50.prev = _context50.next) {
9657
+ switch (_context51.prev = _context51.next) {
9567
9658
  case 0:
9568
9659
  params = {};
9569
9660
 
@@ -9573,21 +9664,21 @@ var StreamChat = /*#__PURE__*/function () {
9573
9664
  };
9574
9665
  }
9575
9666
 
9576
- _context50.next = 4;
9667
+ _context51.next = 4;
9577
9668
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
9578
9669
 
9579
9670
  case 4:
9580
- return _context50.abrupt("return", _context50.sent);
9671
+ return _context51.abrupt("return", _context51.sent);
9581
9672
 
9582
9673
  case 5:
9583
9674
  case "end":
9584
- return _context50.stop();
9675
+ return _context51.stop();
9585
9676
  }
9586
9677
  }
9587
- }, _callee50, this);
9678
+ }, _callee51, this);
9588
9679
  }));
9589
9680
 
9590
- function deleteMessage(_x67, _x68) {
9681
+ function deleteMessage(_x68, _x69) {
9591
9682
  return _deleteMessage.apply(this, arguments);
9592
9683
  }
9593
9684
 
@@ -9596,26 +9687,26 @@ var StreamChat = /*#__PURE__*/function () {
9596
9687
  }, {
9597
9688
  key: "getMessage",
9598
9689
  value: function () {
9599
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageID) {
9600
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9690
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageID) {
9691
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9601
9692
  while (1) {
9602
- switch (_context51.prev = _context51.next) {
9693
+ switch (_context52.prev = _context52.next) {
9603
9694
  case 0:
9604
- _context51.next = 2;
9695
+ _context52.next = 2;
9605
9696
  return this.get(this.baseURL + "/messages/".concat(messageID));
9606
9697
 
9607
9698
  case 2:
9608
- return _context51.abrupt("return", _context51.sent);
9699
+ return _context52.abrupt("return", _context52.sent);
9609
9700
 
9610
9701
  case 3:
9611
9702
  case "end":
9612
- return _context51.stop();
9703
+ return _context52.stop();
9613
9704
  }
9614
9705
  }
9615
- }, _callee51, this);
9706
+ }, _callee52, this);
9616
9707
  }));
9617
9708
 
9618
- function getMessage(_x69) {
9709
+ function getMessage(_x70) {
9619
9710
  return _getMessage.apply(this, arguments);
9620
9711
  }
9621
9712
 
@@ -9624,7 +9715,7 @@ var StreamChat = /*#__PURE__*/function () {
9624
9715
  }, {
9625
9716
  key: "getUserAgent",
9626
9717
  value: function getUserAgent() {
9627
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.0");
9718
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.1");
9628
9719
  }
9629
9720
  }, {
9630
9721
  key: "setUserAgent",
@@ -9819,28 +9910,28 @@ var StreamChat = /*#__PURE__*/function () {
9819
9910
  }, {
9820
9911
  key: "sendUserCustomEvent",
9821
9912
  value: function () {
9822
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(targetUserID, event) {
9823
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9913
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(targetUserID, event) {
9914
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9824
9915
  while (1) {
9825
- switch (_context52.prev = _context52.next) {
9916
+ switch (_context53.prev = _context53.next) {
9826
9917
  case 0:
9827
- _context52.next = 2;
9918
+ _context53.next = 2;
9828
9919
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
9829
9920
  event: event
9830
9921
  });
9831
9922
 
9832
9923
  case 2:
9833
- return _context52.abrupt("return", _context52.sent);
9924
+ return _context53.abrupt("return", _context53.sent);
9834
9925
 
9835
9926
  case 3:
9836
9927
  case "end":
9837
- return _context52.stop();
9928
+ return _context53.stop();
9838
9929
  }
9839
9930
  }
9840
- }, _callee52, this);
9931
+ }, _callee53, this);
9841
9932
  }));
9842
9933
 
9843
- function sendUserCustomEvent(_x70, _x71) {
9934
+ function sendUserCustomEvent(_x71, _x72) {
9844
9935
  return _sendUserCustomEvent.apply(this, arguments);
9845
9936
  }
9846
9937
 
@@ -9908,32 +9999,32 @@ var StreamChat = /*#__PURE__*/function () {
9908
9999
  }, {
9909
10000
  key: "createSegment",
9910
10001
  value: function () {
9911
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(params) {
10002
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(params) {
9912
10003
  var _yield$this$post, segment;
9913
10004
 
9914
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
10005
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9915
10006
  while (1) {
9916
- switch (_context53.prev = _context53.next) {
10007
+ switch (_context54.prev = _context54.next) {
9917
10008
  case 0:
9918
- _context53.next = 2;
10009
+ _context54.next = 2;
9919
10010
  return this.post(this.baseURL + "/segments", {
9920
10011
  segment: params
9921
10012
  });
9922
10013
 
9923
10014
  case 2:
9924
- _yield$this$post = _context53.sent;
10015
+ _yield$this$post = _context54.sent;
9925
10016
  segment = _yield$this$post.segment;
9926
- return _context53.abrupt("return", segment);
10017
+ return _context54.abrupt("return", segment);
9927
10018
 
9928
10019
  case 5:
9929
10020
  case "end":
9930
- return _context53.stop();
10021
+ return _context54.stop();
9931
10022
  }
9932
10023
  }
9933
- }, _callee53, this);
10024
+ }, _callee54, this);
9934
10025
  }));
9935
10026
 
9936
- function createSegment(_x72) {
10027
+ function createSegment(_x73) {
9937
10028
  return _createSegment.apply(this, arguments);
9938
10029
  }
9939
10030
 
@@ -9950,30 +10041,30 @@ var StreamChat = /*#__PURE__*/function () {
9950
10041
  }, {
9951
10042
  key: "getSegment",
9952
10043
  value: function () {
9953
- var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id) {
10044
+ var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id) {
9954
10045
  var _yield$this$get, segment;
9955
10046
 
9956
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10047
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9957
10048
  while (1) {
9958
- switch (_context54.prev = _context54.next) {
10049
+ switch (_context55.prev = _context55.next) {
9959
10050
  case 0:
9960
- _context54.next = 2;
10051
+ _context55.next = 2;
9961
10052
  return this.get(this.baseURL + "/segments/".concat(id));
9962
10053
 
9963
10054
  case 2:
9964
- _yield$this$get = _context54.sent;
10055
+ _yield$this$get = _context55.sent;
9965
10056
  segment = _yield$this$get.segment;
9966
- return _context54.abrupt("return", segment);
10057
+ return _context55.abrupt("return", segment);
9967
10058
 
9968
10059
  case 5:
9969
10060
  case "end":
9970
- return _context54.stop();
10061
+ return _context55.stop();
9971
10062
  }
9972
10063
  }
9973
- }, _callee54, this);
10064
+ }, _callee55, this);
9974
10065
  }));
9975
10066
 
9976
- function getSegment(_x73) {
10067
+ function getSegment(_x74) {
9977
10068
  return _getSegment.apply(this, arguments);
9978
10069
  }
9979
10070
 
@@ -9989,30 +10080,30 @@ var StreamChat = /*#__PURE__*/function () {
9989
10080
  }, {
9990
10081
  key: "listSegments",
9991
10082
  value: function () {
9992
- var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(options) {
10083
+ var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(options) {
9993
10084
  var _yield$this$get2, segments;
9994
10085
 
9995
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10086
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
9996
10087
  while (1) {
9997
- switch (_context55.prev = _context55.next) {
10088
+ switch (_context56.prev = _context56.next) {
9998
10089
  case 0:
9999
- _context55.next = 2;
10090
+ _context56.next = 2;
10000
10091
  return this.get(this.baseURL + "/segments", options);
10001
10092
 
10002
10093
  case 2:
10003
- _yield$this$get2 = _context55.sent;
10094
+ _yield$this$get2 = _context56.sent;
10004
10095
  segments = _yield$this$get2.segments;
10005
- return _context55.abrupt("return", segments);
10096
+ return _context56.abrupt("return", segments);
10006
10097
 
10007
10098
  case 5:
10008
10099
  case "end":
10009
- return _context55.stop();
10100
+ return _context56.stop();
10010
10101
  }
10011
10102
  }
10012
- }, _callee55, this);
10103
+ }, _callee56, this);
10013
10104
  }));
10014
10105
 
10015
- function listSegments(_x74) {
10106
+ function listSegments(_x75) {
10016
10107
  return _listSegments.apply(this, arguments);
10017
10108
  }
10018
10109
 
@@ -10030,32 +10121,32 @@ var StreamChat = /*#__PURE__*/function () {
10030
10121
  }, {
10031
10122
  key: "updateSegment",
10032
10123
  value: function () {
10033
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(id, params) {
10124
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, params) {
10034
10125
  var _yield$this$put, segment;
10035
10126
 
10036
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10127
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10037
10128
  while (1) {
10038
- switch (_context56.prev = _context56.next) {
10129
+ switch (_context57.prev = _context57.next) {
10039
10130
  case 0:
10040
- _context56.next = 2;
10131
+ _context57.next = 2;
10041
10132
  return this.put(this.baseURL + "/segments/".concat(id), {
10042
10133
  segment: params
10043
10134
  });
10044
10135
 
10045
10136
  case 2:
10046
- _yield$this$put = _context56.sent;
10137
+ _yield$this$put = _context57.sent;
10047
10138
  segment = _yield$this$put.segment;
10048
- return _context56.abrupt("return", segment);
10139
+ return _context57.abrupt("return", segment);
10049
10140
 
10050
10141
  case 5:
10051
10142
  case "end":
10052
- return _context56.stop();
10143
+ return _context57.stop();
10053
10144
  }
10054
10145
  }
10055
- }, _callee56, this);
10146
+ }, _callee57, this);
10056
10147
  }));
10057
10148
 
10058
- function updateSegment(_x75, _x76) {
10149
+ function updateSegment(_x76, _x77) {
10059
10150
  return _updateSegment.apply(this, arguments);
10060
10151
  }
10061
10152
 
@@ -10072,22 +10163,22 @@ var StreamChat = /*#__PURE__*/function () {
10072
10163
  }, {
10073
10164
  key: "deleteSegment",
10074
10165
  value: function () {
10075
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id) {
10076
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10166
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(id) {
10167
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10077
10168
  while (1) {
10078
- switch (_context57.prev = _context57.next) {
10169
+ switch (_context58.prev = _context58.next) {
10079
10170
  case 0:
10080
- return _context57.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10171
+ return _context58.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10081
10172
 
10082
10173
  case 1:
10083
10174
  case "end":
10084
- return _context57.stop();
10175
+ return _context58.stop();
10085
10176
  }
10086
10177
  }
10087
- }, _callee57, this);
10178
+ }, _callee58, this);
10088
10179
  }));
10089
10180
 
10090
- function deleteSegment(_x77) {
10181
+ function deleteSegment(_x78) {
10091
10182
  return _deleteSegment.apply(this, arguments);
10092
10183
  }
10093
10184
 
@@ -10104,32 +10195,32 @@ var StreamChat = /*#__PURE__*/function () {
10104
10195
  }, {
10105
10196
  key: "createCampaign",
10106
10197
  value: function () {
10107
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
10198
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(params) {
10108
10199
  var _yield$this$post2, campaign;
10109
10200
 
10110
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10201
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10111
10202
  while (1) {
10112
- switch (_context58.prev = _context58.next) {
10203
+ switch (_context59.prev = _context59.next) {
10113
10204
  case 0:
10114
- _context58.next = 2;
10205
+ _context59.next = 2;
10115
10206
  return this.post(this.baseURL + "/campaigns", {
10116
10207
  campaign: params
10117
10208
  });
10118
10209
 
10119
10210
  case 2:
10120
- _yield$this$post2 = _context58.sent;
10211
+ _yield$this$post2 = _context59.sent;
10121
10212
  campaign = _yield$this$post2.campaign;
10122
- return _context58.abrupt("return", campaign);
10213
+ return _context59.abrupt("return", campaign);
10123
10214
 
10124
10215
  case 5:
10125
10216
  case "end":
10126
- return _context58.stop();
10217
+ return _context59.stop();
10127
10218
  }
10128
10219
  }
10129
- }, _callee58, this);
10220
+ }, _callee59, this);
10130
10221
  }));
10131
10222
 
10132
- function createCampaign(_x78) {
10223
+ function createCampaign(_x79) {
10133
10224
  return _createCampaign.apply(this, arguments);
10134
10225
  }
10135
10226
 
@@ -10146,30 +10237,30 @@ var StreamChat = /*#__PURE__*/function () {
10146
10237
  }, {
10147
10238
  key: "getCampaign",
10148
10239
  value: function () {
10149
- var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id) {
10240
+ var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
10150
10241
  var _yield$this$get3, campaign;
10151
10242
 
10152
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10243
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10153
10244
  while (1) {
10154
- switch (_context59.prev = _context59.next) {
10245
+ switch (_context60.prev = _context60.next) {
10155
10246
  case 0:
10156
- _context59.next = 2;
10247
+ _context60.next = 2;
10157
10248
  return this.get(this.baseURL + "/campaigns/".concat(id));
10158
10249
 
10159
10250
  case 2:
10160
- _yield$this$get3 = _context59.sent;
10251
+ _yield$this$get3 = _context60.sent;
10161
10252
  campaign = _yield$this$get3.campaign;
10162
- return _context59.abrupt("return", campaign);
10253
+ return _context60.abrupt("return", campaign);
10163
10254
 
10164
10255
  case 5:
10165
10256
  case "end":
10166
- return _context59.stop();
10257
+ return _context60.stop();
10167
10258
  }
10168
10259
  }
10169
- }, _callee59, this);
10260
+ }, _callee60, this);
10170
10261
  }));
10171
10262
 
10172
- function getCampaign(_x79) {
10263
+ function getCampaign(_x80) {
10173
10264
  return _getCampaign.apply(this, arguments);
10174
10265
  }
10175
10266
 
@@ -10185,30 +10276,30 @@ var StreamChat = /*#__PURE__*/function () {
10185
10276
  }, {
10186
10277
  key: "listCampaigns",
10187
10278
  value: function () {
10188
- var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(options) {
10279
+ var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(options) {
10189
10280
  var _yield$this$get4, campaigns;
10190
10281
 
10191
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10282
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10192
10283
  while (1) {
10193
- switch (_context60.prev = _context60.next) {
10284
+ switch (_context61.prev = _context61.next) {
10194
10285
  case 0:
10195
- _context60.next = 2;
10286
+ _context61.next = 2;
10196
10287
  return this.get(this.baseURL + "/campaigns", options);
10197
10288
 
10198
10289
  case 2:
10199
- _yield$this$get4 = _context60.sent;
10290
+ _yield$this$get4 = _context61.sent;
10200
10291
  campaigns = _yield$this$get4.campaigns;
10201
- return _context60.abrupt("return", campaigns);
10292
+ return _context61.abrupt("return", campaigns);
10202
10293
 
10203
10294
  case 5:
10204
10295
  case "end":
10205
- return _context60.stop();
10296
+ return _context61.stop();
10206
10297
  }
10207
10298
  }
10208
- }, _callee60, this);
10299
+ }, _callee61, this);
10209
10300
  }));
10210
10301
 
10211
- function listCampaigns(_x80) {
10302
+ function listCampaigns(_x81) {
10212
10303
  return _listCampaigns.apply(this, arguments);
10213
10304
  }
10214
10305
 
@@ -10226,32 +10317,32 @@ var StreamChat = /*#__PURE__*/function () {
10226
10317
  }, {
10227
10318
  key: "updateCampaign",
10228
10319
  value: function () {
10229
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id, params) {
10320
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id, params) {
10230
10321
  var _yield$this$put2, campaign;
10231
10322
 
10232
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10323
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10233
10324
  while (1) {
10234
- switch (_context61.prev = _context61.next) {
10325
+ switch (_context62.prev = _context62.next) {
10235
10326
  case 0:
10236
- _context61.next = 2;
10327
+ _context62.next = 2;
10237
10328
  return this.put(this.baseURL + "/campaigns/".concat(id), {
10238
10329
  campaign: params
10239
10330
  });
10240
10331
 
10241
10332
  case 2:
10242
- _yield$this$put2 = _context61.sent;
10333
+ _yield$this$put2 = _context62.sent;
10243
10334
  campaign = _yield$this$put2.campaign;
10244
- return _context61.abrupt("return", campaign);
10335
+ return _context62.abrupt("return", campaign);
10245
10336
 
10246
10337
  case 5:
10247
10338
  case "end":
10248
- return _context61.stop();
10339
+ return _context62.stop();
10249
10340
  }
10250
10341
  }
10251
- }, _callee61, this);
10342
+ }, _callee62, this);
10252
10343
  }));
10253
10344
 
10254
- function updateCampaign(_x81, _x82) {
10345
+ function updateCampaign(_x82, _x83) {
10255
10346
  return _updateCampaign.apply(this, arguments);
10256
10347
  }
10257
10348
 
@@ -10268,22 +10359,22 @@ var StreamChat = /*#__PURE__*/function () {
10268
10359
  }, {
10269
10360
  key: "deleteCampaign",
10270
10361
  value: function () {
10271
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id) {
10272
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10362
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id) {
10363
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10273
10364
  while (1) {
10274
- switch (_context62.prev = _context62.next) {
10365
+ switch (_context63.prev = _context63.next) {
10275
10366
  case 0:
10276
- return _context62.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
10367
+ return _context63.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
10277
10368
 
10278
10369
  case 1:
10279
10370
  case "end":
10280
- return _context62.stop();
10371
+ return _context63.stop();
10281
10372
  }
10282
10373
  }
10283
- }, _callee62, this);
10374
+ }, _callee63, this);
10284
10375
  }));
10285
10376
 
10286
- function deleteCampaign(_x83) {
10377
+ function deleteCampaign(_x84) {
10287
10378
  return _deleteCampaign.apply(this, arguments);
10288
10379
  }
10289
10380
 
@@ -10301,33 +10392,33 @@ var StreamChat = /*#__PURE__*/function () {
10301
10392
  }, {
10302
10393
  key: "scheduleCampaign",
10303
10394
  value: function () {
10304
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
10395
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
10305
10396
  var scheduledFor, _yield$this$patch, campaign;
10306
10397
 
10307
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10398
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10308
10399
  while (1) {
10309
- switch (_context63.prev = _context63.next) {
10400
+ switch (_context64.prev = _context64.next) {
10310
10401
  case 0:
10311
10402
  scheduledFor = params.scheduledFor;
10312
- _context63.next = 3;
10403
+ _context64.next = 3;
10313
10404
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
10314
10405
  scheduled_for: scheduledFor
10315
10406
  });
10316
10407
 
10317
10408
  case 3:
10318
- _yield$this$patch = _context63.sent;
10409
+ _yield$this$patch = _context64.sent;
10319
10410
  campaign = _yield$this$patch.campaign;
10320
- return _context63.abrupt("return", campaign);
10411
+ return _context64.abrupt("return", campaign);
10321
10412
 
10322
10413
  case 6:
10323
10414
  case "end":
10324
- return _context63.stop();
10415
+ return _context64.stop();
10325
10416
  }
10326
10417
  }
10327
- }, _callee63, this);
10418
+ }, _callee64, this);
10328
10419
  }));
10329
10420
 
10330
- function scheduleCampaign(_x84, _x85) {
10421
+ function scheduleCampaign(_x85, _x86) {
10331
10422
  return _scheduleCampaign.apply(this, arguments);
10332
10423
  }
10333
10424
 
@@ -10344,30 +10435,30 @@ var StreamChat = /*#__PURE__*/function () {
10344
10435
  }, {
10345
10436
  key: "stopCampaign",
10346
10437
  value: function () {
10347
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
10438
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10348
10439
  var _yield$this$patch2, campaign;
10349
10440
 
10350
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10441
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10351
10442
  while (1) {
10352
- switch (_context64.prev = _context64.next) {
10443
+ switch (_context65.prev = _context65.next) {
10353
10444
  case 0:
10354
- _context64.next = 2;
10445
+ _context65.next = 2;
10355
10446
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
10356
10447
 
10357
10448
  case 2:
10358
- _yield$this$patch2 = _context64.sent;
10449
+ _yield$this$patch2 = _context65.sent;
10359
10450
  campaign = _yield$this$patch2.campaign;
10360
- return _context64.abrupt("return", campaign);
10451
+ return _context65.abrupt("return", campaign);
10361
10452
 
10362
10453
  case 5:
10363
10454
  case "end":
10364
- return _context64.stop();
10455
+ return _context65.stop();
10365
10456
  }
10366
10457
  }
10367
- }, _callee64, this);
10458
+ }, _callee65, this);
10368
10459
  }));
10369
10460
 
10370
- function stopCampaign(_x86) {
10461
+ function stopCampaign(_x87) {
10371
10462
  return _stopCampaign.apply(this, arguments);
10372
10463
  }
10373
10464
 
@@ -10384,30 +10475,30 @@ var StreamChat = /*#__PURE__*/function () {
10384
10475
  }, {
10385
10476
  key: "resumeCampaign",
10386
10477
  value: function () {
10387
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10478
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
10388
10479
  var _yield$this$patch3, campaign;
10389
10480
 
10390
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10481
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10391
10482
  while (1) {
10392
- switch (_context65.prev = _context65.next) {
10483
+ switch (_context66.prev = _context66.next) {
10393
10484
  case 0:
10394
- _context65.next = 2;
10485
+ _context66.next = 2;
10395
10486
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
10396
10487
 
10397
10488
  case 2:
10398
- _yield$this$patch3 = _context65.sent;
10489
+ _yield$this$patch3 = _context66.sent;
10399
10490
  campaign = _yield$this$patch3.campaign;
10400
- return _context65.abrupt("return", campaign);
10491
+ return _context66.abrupt("return", campaign);
10401
10492
 
10402
10493
  case 5:
10403
10494
  case "end":
10404
- return _context65.stop();
10495
+ return _context66.stop();
10405
10496
  }
10406
10497
  }
10407
- }, _callee65, this);
10498
+ }, _callee66, this);
10408
10499
  }));
10409
10500
 
10410
- function resumeCampaign(_x87) {
10501
+ function resumeCampaign(_x88) {
10411
10502
  return _resumeCampaign.apply(this, arguments);
10412
10503
  }
10413
10504
 
@@ -10425,30 +10516,30 @@ var StreamChat = /*#__PURE__*/function () {
10425
10516
  }, {
10426
10517
  key: "testCampaign",
10427
10518
  value: function () {
10428
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
10519
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id, params) {
10429
10520
  var users;
10430
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10521
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10431
10522
  while (1) {
10432
- switch (_context66.prev = _context66.next) {
10523
+ switch (_context67.prev = _context67.next) {
10433
10524
  case 0:
10434
10525
  users = params.users;
10435
- _context66.next = 3;
10526
+ _context67.next = 3;
10436
10527
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
10437
10528
  users: users
10438
10529
  });
10439
10530
 
10440
10531
  case 3:
10441
- return _context66.abrupt("return", _context66.sent);
10532
+ return _context67.abrupt("return", _context67.sent);
10442
10533
 
10443
10534
  case 4:
10444
10535
  case "end":
10445
- return _context66.stop();
10536
+ return _context67.stop();
10446
10537
  }
10447
10538
  }
10448
- }, _callee66, this);
10539
+ }, _callee67, this);
10449
10540
  }));
10450
10541
 
10451
- function testCampaign(_x88, _x89) {
10542
+ function testCampaign(_x89, _x90) {
10452
10543
  return _testCampaign.apply(this, arguments);
10453
10544
  }
10454
10545
 
@@ -10464,24 +10555,24 @@ var StreamChat = /*#__PURE__*/function () {
10464
10555
  }, {
10465
10556
  key: "enrichURL",
10466
10557
  value: function () {
10467
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(url) {
10468
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10558
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(url) {
10559
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10469
10560
  while (1) {
10470
- switch (_context67.prev = _context67.next) {
10561
+ switch (_context68.prev = _context68.next) {
10471
10562
  case 0:
10472
- return _context67.abrupt("return", this.get(this.baseURL + "/og", {
10563
+ return _context68.abrupt("return", this.get(this.baseURL + "/og", {
10473
10564
  url: url
10474
10565
  }));
10475
10566
 
10476
10567
  case 1:
10477
10568
  case "end":
10478
- return _context67.stop();
10569
+ return _context68.stop();
10479
10570
  }
10480
10571
  }
10481
- }, _callee67, this);
10572
+ }, _callee68, this);
10482
10573
  }));
10483
10574
 
10484
- function enrichURL(_x90) {
10575
+ function enrichURL(_x91) {
10485
10576
  return _enrichURL.apply(this, arguments);
10486
10577
  }
10487
10578
 
@@ -10498,22 +10589,22 @@ var StreamChat = /*#__PURE__*/function () {
10498
10589
  }, {
10499
10590
  key: "getTask",
10500
10591
  value: function () {
10501
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
10502
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10592
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
10593
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10503
10594
  while (1) {
10504
- switch (_context68.prev = _context68.next) {
10595
+ switch (_context69.prev = _context69.next) {
10505
10596
  case 0:
10506
- return _context68.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10597
+ return _context69.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10507
10598
 
10508
10599
  case 1:
10509
10600
  case "end":
10510
- return _context68.stop();
10601
+ return _context69.stop();
10511
10602
  }
10512
10603
  }
10513
- }, _callee68, this);
10604
+ }, _callee69, this);
10514
10605
  }));
10515
10606
 
10516
- function getTask(_x91) {
10607
+ function getTask(_x92) {
10517
10608
  return _getTask.apply(this, arguments);
10518
10609
  }
10519
10610
 
@@ -10531,31 +10622,31 @@ var StreamChat = /*#__PURE__*/function () {
10531
10622
  }, {
10532
10623
  key: "deleteChannels",
10533
10624
  value: function () {
10534
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(cids) {
10625
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(cids) {
10535
10626
  var options,
10536
- _args69 = arguments;
10537
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10627
+ _args70 = arguments;
10628
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10538
10629
  while (1) {
10539
- switch (_context69.prev = _context69.next) {
10630
+ switch (_context70.prev = _context70.next) {
10540
10631
  case 0:
10541
- options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
10542
- _context69.next = 3;
10632
+ options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
10633
+ _context70.next = 3;
10543
10634
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
10544
10635
  cids: cids
10545
10636
  }, options));
10546
10637
 
10547
10638
  case 3:
10548
- return _context69.abrupt("return", _context69.sent);
10639
+ return _context70.abrupt("return", _context70.sent);
10549
10640
 
10550
10641
  case 4:
10551
10642
  case "end":
10552
- return _context69.stop();
10643
+ return _context70.stop();
10553
10644
  }
10554
10645
  }
10555
- }, _callee69, this);
10646
+ }, _callee70, this);
10556
10647
  }));
10557
10648
 
10558
- function deleteChannels(_x92) {
10649
+ function deleteChannels(_x93) {
10559
10650
  return _deleteChannels.apply(this, arguments);
10560
10651
  }
10561
10652
 
@@ -10573,13 +10664,13 @@ var StreamChat = /*#__PURE__*/function () {
10573
10664
  }, {
10574
10665
  key: "deleteUsers",
10575
10666
  value: function () {
10576
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(user_ids, options) {
10577
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10667
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(user_ids, options) {
10668
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10578
10669
  while (1) {
10579
- switch (_context70.prev = _context70.next) {
10670
+ switch (_context71.prev = _context71.next) {
10580
10671
  case 0:
10581
10672
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
10582
- _context70.next = 2;
10673
+ _context71.next = 2;
10583
10674
  break;
10584
10675
  }
10585
10676
 
@@ -10587,7 +10678,7 @@ var StreamChat = /*#__PURE__*/function () {
10587
10678
 
10588
10679
  case 2:
10589
10680
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
10590
- _context70.next = 4;
10681
+ _context71.next = 4;
10591
10682
  break;
10592
10683
  }
10593
10684
 
@@ -10595,30 +10686,30 @@ var StreamChat = /*#__PURE__*/function () {
10595
10686
 
10596
10687
  case 4:
10597
10688
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
10598
- _context70.next = 6;
10689
+ _context71.next = 6;
10599
10690
  break;
10600
10691
  }
10601
10692
 
10602
10693
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
10603
10694
 
10604
10695
  case 6:
10605
- _context70.next = 8;
10696
+ _context71.next = 8;
10606
10697
  return this.post(this.baseURL + "/users/delete", _objectSpread({
10607
10698
  user_ids: user_ids
10608
10699
  }, options));
10609
10700
 
10610
10701
  case 8:
10611
- return _context70.abrupt("return", _context70.sent);
10702
+ return _context71.abrupt("return", _context71.sent);
10612
10703
 
10613
10704
  case 9:
10614
10705
  case "end":
10615
- return _context70.stop();
10706
+ return _context71.stop();
10616
10707
  }
10617
10708
  }
10618
- }, _callee70, this);
10709
+ }, _callee71, this);
10619
10710
  }));
10620
10711
 
10621
- function deleteUsers(_x93, _x94) {
10712
+ function deleteUsers(_x94, _x95) {
10622
10713
  return _deleteUsers.apply(this, arguments);
10623
10714
  }
10624
10715
 
@@ -10639,28 +10730,28 @@ var StreamChat = /*#__PURE__*/function () {
10639
10730
  }, {
10640
10731
  key: "_createImportURL",
10641
10732
  value: function () {
10642
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filename) {
10643
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10733
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(filename) {
10734
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10644
10735
  while (1) {
10645
- switch (_context71.prev = _context71.next) {
10736
+ switch (_context72.prev = _context72.next) {
10646
10737
  case 0:
10647
- _context71.next = 2;
10738
+ _context72.next = 2;
10648
10739
  return this.post(this.baseURL + "/import_urls", {
10649
10740
  filename: filename
10650
10741
  });
10651
10742
 
10652
10743
  case 2:
10653
- return _context71.abrupt("return", _context71.sent);
10744
+ return _context72.abrupt("return", _context72.sent);
10654
10745
 
10655
10746
  case 3:
10656
10747
  case "end":
10657
- return _context71.stop();
10748
+ return _context72.stop();
10658
10749
  }
10659
10750
  }
10660
- }, _callee71, this);
10751
+ }, _callee72, this);
10661
10752
  }));
10662
10753
 
10663
- function _createImportURL(_x95) {
10754
+ function _createImportURL(_x96) {
10664
10755
  return _createImportURL2.apply(this, arguments);
10665
10756
  }
10666
10757
 
@@ -10682,33 +10773,33 @@ var StreamChat = /*#__PURE__*/function () {
10682
10773
  }, {
10683
10774
  key: "_createImport",
10684
10775
  value: function () {
10685
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(path) {
10776
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(path) {
10686
10777
  var options,
10687
- _args72 = arguments;
10688
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10778
+ _args73 = arguments;
10779
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10689
10780
  while (1) {
10690
- switch (_context72.prev = _context72.next) {
10781
+ switch (_context73.prev = _context73.next) {
10691
10782
  case 0:
10692
- options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {
10783
+ options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {
10693
10784
  mode: 'upsert'
10694
10785
  };
10695
- _context72.next = 3;
10786
+ _context73.next = 3;
10696
10787
  return this.post(this.baseURL + "/imports", _objectSpread({
10697
10788
  path: path
10698
10789
  }, options));
10699
10790
 
10700
10791
  case 3:
10701
- return _context72.abrupt("return", _context72.sent);
10792
+ return _context73.abrupt("return", _context73.sent);
10702
10793
 
10703
10794
  case 4:
10704
10795
  case "end":
10705
- return _context72.stop();
10796
+ return _context73.stop();
10706
10797
  }
10707
10798
  }
10708
- }, _callee72, this);
10799
+ }, _callee73, this);
10709
10800
  }));
10710
10801
 
10711
- function _createImport(_x96) {
10802
+ function _createImport(_x97) {
10712
10803
  return _createImport2.apply(this, arguments);
10713
10804
  }
10714
10805
 
@@ -10730,26 +10821,26 @@ var StreamChat = /*#__PURE__*/function () {
10730
10821
  }, {
10731
10822
  key: "_getImport",
10732
10823
  value: function () {
10733
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id) {
10734
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10824
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
10825
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10735
10826
  while (1) {
10736
- switch (_context73.prev = _context73.next) {
10827
+ switch (_context74.prev = _context74.next) {
10737
10828
  case 0:
10738
- _context73.next = 2;
10829
+ _context74.next = 2;
10739
10830
  return this.get(this.baseURL + "/imports/".concat(id));
10740
10831
 
10741
10832
  case 2:
10742
- return _context73.abrupt("return", _context73.sent);
10833
+ return _context74.abrupt("return", _context74.sent);
10743
10834
 
10744
10835
  case 3:
10745
10836
  case "end":
10746
- return _context73.stop();
10837
+ return _context74.stop();
10747
10838
  }
10748
10839
  }
10749
- }, _callee73, this);
10840
+ }, _callee74, this);
10750
10841
  }));
10751
10842
 
10752
- function _getImport(_x97) {
10843
+ function _getImport(_x98) {
10753
10844
  return _getImport2.apply(this, arguments);
10754
10845
  }
10755
10846
 
@@ -10771,26 +10862,26 @@ var StreamChat = /*#__PURE__*/function () {
10771
10862
  }, {
10772
10863
  key: "_listImports",
10773
10864
  value: function () {
10774
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(options) {
10775
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10865
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(options) {
10866
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
10776
10867
  while (1) {
10777
- switch (_context74.prev = _context74.next) {
10868
+ switch (_context75.prev = _context75.next) {
10778
10869
  case 0:
10779
- _context74.next = 2;
10870
+ _context75.next = 2;
10780
10871
  return this.get(this.baseURL + "/imports", options);
10781
10872
 
10782
10873
  case 2:
10783
- return _context74.abrupt("return", _context74.sent);
10874
+ return _context75.abrupt("return", _context75.sent);
10784
10875
 
10785
10876
  case 3:
10786
10877
  case "end":
10787
- return _context74.stop();
10878
+ return _context75.stop();
10788
10879
  }
10789
10880
  }
10790
- }, _callee74, this);
10881
+ }, _callee75, this);
10791
10882
  }));
10792
10883
 
10793
- function _listImports(_x98) {
10884
+ function _listImports(_x99) {
10794
10885
  return _listImports2.apply(this, arguments);
10795
10886
  }
10796
10887
 
@@ -10809,28 +10900,28 @@ var StreamChat = /*#__PURE__*/function () {
10809
10900
  }, {
10810
10901
  key: "upsertPushProvider",
10811
10902
  value: function () {
10812
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(pushProvider) {
10813
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
10903
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(pushProvider) {
10904
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
10814
10905
  while (1) {
10815
- switch (_context75.prev = _context75.next) {
10906
+ switch (_context76.prev = _context76.next) {
10816
10907
  case 0:
10817
- _context75.next = 2;
10908
+ _context76.next = 2;
10818
10909
  return this.post(this.baseURL + "/push_providers", {
10819
10910
  push_provider: pushProvider
10820
10911
  });
10821
10912
 
10822
10913
  case 2:
10823
- return _context75.abrupt("return", _context75.sent);
10914
+ return _context76.abrupt("return", _context76.sent);
10824
10915
 
10825
10916
  case 3:
10826
10917
  case "end":
10827
- return _context75.stop();
10918
+ return _context76.stop();
10828
10919
  }
10829
10920
  }
10830
- }, _callee75, this);
10921
+ }, _callee76, this);
10831
10922
  }));
10832
10923
 
10833
- function upsertPushProvider(_x99) {
10924
+ function upsertPushProvider(_x100) {
10834
10925
  return _upsertPushProvider.apply(this, arguments);
10835
10926
  }
10836
10927
 
@@ -10849,28 +10940,28 @@ var StreamChat = /*#__PURE__*/function () {
10849
10940
  }, {
10850
10941
  key: "deletePushProvider",
10851
10942
  value: function () {
10852
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(_ref8) {
10943
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(_ref8) {
10853
10944
  var type, name;
10854
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
10945
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
10855
10946
  while (1) {
10856
- switch (_context76.prev = _context76.next) {
10947
+ switch (_context77.prev = _context77.next) {
10857
10948
  case 0:
10858
10949
  type = _ref8.type, name = _ref8.name;
10859
- _context76.next = 3;
10950
+ _context77.next = 3;
10860
10951
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
10861
10952
 
10862
10953
  case 3:
10863
- return _context76.abrupt("return", _context76.sent);
10954
+ return _context77.abrupt("return", _context77.sent);
10864
10955
 
10865
10956
  case 4:
10866
10957
  case "end":
10867
- return _context76.stop();
10958
+ return _context77.stop();
10868
10959
  }
10869
10960
  }
10870
- }, _callee76, this);
10961
+ }, _callee77, this);
10871
10962
  }));
10872
10963
 
10873
- function deletePushProvider(_x100) {
10964
+ function deletePushProvider(_x101) {
10874
10965
  return _deletePushProvider.apply(this, arguments);
10875
10966
  }
10876
10967
 
@@ -10887,23 +10978,23 @@ var StreamChat = /*#__PURE__*/function () {
10887
10978
  }, {
10888
10979
  key: "listPushProviders",
10889
10980
  value: function () {
10890
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77() {
10891
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
10981
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78() {
10982
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
10892
10983
  while (1) {
10893
- switch (_context77.prev = _context77.next) {
10984
+ switch (_context78.prev = _context78.next) {
10894
10985
  case 0:
10895
- _context77.next = 2;
10986
+ _context78.next = 2;
10896
10987
  return this.get(this.baseURL + "/push_providers");
10897
10988
 
10898
10989
  case 2:
10899
- return _context77.abrupt("return", _context77.sent);
10990
+ return _context78.abrupt("return", _context78.sent);
10900
10991
 
10901
10992
  case 3:
10902
10993
  case "end":
10903
- return _context77.stop();
10994
+ return _context78.stop();
10904
10995
  }
10905
10996
  }
10906
- }, _callee77, this);
10997
+ }, _callee78, this);
10907
10998
  }));
10908
10999
 
10909
11000
  function listPushProviders() {