@twilio/conversations 1.3.0-rc7 → 2.0.0-rc.3
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.
- package/CHANGELOG.md +201 -0
- package/README.md +5 -5
- package/dist/browser.js +7866 -0
- package/dist/browser.js.map +1 -0
- package/dist/docs/assets/css/main.css +2660 -0
- package/dist/docs/assets/images/icons.png +0 -0
- package/dist/docs/assets/images/icons@2x.png +0 -0
- package/dist/docs/assets/images/widgets.png +0 -0
- package/dist/docs/assets/images/widgets@2x.png +0 -0
- package/dist/docs/assets/js/main.js +248 -0
- package/dist/docs/assets/js/search.js +1 -0
- package/dist/docs/classes/AggregatedDeliveryReceipt.html +3286 -0
- package/dist/docs/classes/Client.html +4181 -0
- package/dist/docs/classes/Conversation.html +4397 -0
- package/dist/docs/classes/DetailedDeliveryReceipt.html +3265 -0
- package/dist/docs/classes/Media.html +3295 -0
- package/dist/docs/classes/Message.html +3713 -0
- package/dist/docs/classes/MessageBuilder.html +3280 -0
- package/dist/docs/classes/Participant.html +3517 -0
- package/dist/docs/classes/PushNotification.html +3232 -0
- package/dist/docs/classes/RestPaginator.html +3262 -0
- package/dist/docs/classes/UnsentMessage.html +3144 -0
- package/dist/docs/classes/User.html +3451 -0
- package/dist/docs/index.html +3387 -212
- package/dist/docs/interfaces/ClientOptions.html +3136 -0
- package/dist/docs/interfaces/ConversationState.html +3152 -0
- package/dist/docs/interfaces/CreateConversationOptions.html +3168 -0
- package/dist/docs/interfaces/LastMessage.html +3152 -0
- package/dist/docs/interfaces/Paginator.html +3243 -0
- package/dist/docs/interfaces/PushNotificationData.html +3168 -0
- package/dist/docs/interfaces/SendEmailOptions.html +3136 -0
- package/dist/docs/interfaces/SendMediaOptions.html +3169 -0
- package/dist/docs/modules.html +3418 -0
- package/dist/lib.d.ts +1944 -0
- package/dist/lib.js +7866 -0
- package/dist/lib.js.map +1 -0
- package/dist/post-install.js +29 -0
- package/dist/react-native.js +4031 -0
- package/dist/react-native.js.map +1 -0
- package/dist/twilio-conversations.js +40905 -0
- package/dist/twilio-conversations.min.js +156 -0
- package/package.json +59 -48
- package/.circleci/config.yml +0 -650
- package/.deepsource.toml +0 -6
- package/.env.example +0 -13
- package/browser/aggregateddeliveryreceipt.js +0 -152
- package/browser/client.js +0 -991
- package/browser/configuration.js +0 -80
- package/browser/conversation.js +0 -1826
- package/browser/data/conversations.js +0 -665
- package/browser/data/messages.js +0 -522
- package/browser/data/participants.js +0 -411
- package/browser/data/users.js +0 -281
- package/browser/detaileddeliveryreceipt.js +0 -44
- package/browser/index.js +0 -4
- package/browser/interfaces/limits.js +0 -3
- package/browser/interfaces/notificationtypes.js +0 -21
- package/browser/interfaces/paginator.js +0 -53
- package/browser/interfaces/responsecodes.js +0 -20
- package/browser/interfaces/transport.js +0 -3
- package/browser/logger.js +0 -141
- package/browser/media.js +0 -198
- package/browser/message.js +0 -685
- package/browser/participant.js +0 -415
- package/browser/pushnotification.js +0 -49
- package/browser/restpaginator.js +0 -74
- package/browser/services/network.js +0 -223
- package/browser/services/readhorizon.js +0 -181
- package/browser/services/typingindicator.js +0 -142
- package/browser/session.js +0 -505
- package/browser/sessionerror.js +0 -93
- package/browser/sri.json +0 -1
- package/browser/synclist.js +0 -90
- package/browser/synclistdescriptor.js +0 -29
- package/browser/syncpaginator.js +0 -63
- package/browser/user.js +0 -431
- package/browser/util/deferred.js +0 -56
- package/browser/util/index.js +0 -108
- package/dist/@twilio/conversations.js +0 -35565
- package/dist/@twilio/conversations.min.js +0 -204
- package/dist/docs/AggregatedDeliveryReceipt.html +0 -948
- package/dist/docs/Client.html +0 -5075
- package/dist/docs/Conversation.html +0 -6018
- package/dist/docs/DetailedDeliveryReceipt.html +0 -641
- package/dist/docs/Media.html +0 -694
- package/dist/docs/Message.html +0 -1934
- package/dist/docs/Paginator.html +0 -605
- package/dist/docs/Participant.html +0 -1510
- package/dist/docs/PushNotification.html +0 -836
- package/dist/docs/SessionError.html +0 -379
- package/dist/docs/User.html +0 -1315
- package/dist/docs/classes.list.html +0 -4431
- package/dist/docs/fonts/glyphicons-halflings-regular.eot +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.svg +0 -288
- package/dist/docs/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.woff +0 -0
- package/dist/docs/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/dist/docs/img/glyphicons-halflings-white.png +0 -0
- package/dist/docs/img/glyphicons-halflings.png +0 -0
- package/dist/docs/quicksearch.html +0 -31
- package/dist/docs/scripts/docstrap.lib.js +0 -11
- package/dist/docs/scripts/fulltext-search-ui.js +0 -89
- package/dist/docs/scripts/fulltext-search.js +0 -36
- package/dist/docs/scripts/lunr.min.js +0 -6
- package/dist/docs/scripts/prettify/Apache-License-2.0.txt +0 -202
- package/dist/docs/scripts/prettify/jquery.min.js +0 -6
- package/dist/docs/scripts/prettify/lang-css.js +0 -21
- package/dist/docs/scripts/prettify/prettify.js +0 -496
- package/dist/docs/scripts/sunlight.js +0 -1157
- package/dist/docs/scripts/toc.js +0 -203
- package/dist/docs/styles/darkstrap.css +0 -960
- package/dist/docs/styles/prettify-tomorrow.css +0 -132
- package/dist/docs/styles/site.cerulean.css +0 -7008
- package/dist/docs/styles/site.cosmo.css +0 -7061
- package/dist/docs/styles/site.cyborg.css +0 -7048
- package/dist/docs/styles/site.darkly.css +0 -7171
- package/dist/docs/styles/site.darkstrap.css +0 -5638
- package/dist/docs/styles/site.dibs-bootstrap.css +0 -5899
- package/dist/docs/styles/site.flatly.css +0 -7147
- package/dist/docs/styles/site.journal.css +0 -6973
- package/dist/docs/styles/site.lumen.css +0 -7298
- package/dist/docs/styles/site.paper.css +0 -7623
- package/dist/docs/styles/site.readable.css +0 -6997
- package/dist/docs/styles/site.sandstone.css +0 -7035
- package/dist/docs/styles/site.simplex.css +0 -7023
- package/dist/docs/styles/site.slate.css +0 -7343
- package/dist/docs/styles/site.spacelab.css +0 -7055
- package/dist/docs/styles/site.superhero.css +0 -7131
- package/dist/docs/styles/site.united.css +0 -6895
- package/dist/docs/styles/site.yeti.css +0 -7195
- package/dist/docs/styles/sunlight.dark.css +0 -345
- package/dist/docs/styles/sunlight.default.css +0 -344
- package/dist/sri.json +0 -1
- package/lib/aggregateddeliveryreceipt.d.ts +0 -98
- package/lib/aggregateddeliveryreceipt.js +0 -112
- package/lib/client.d.ts +0 -317
- package/lib/client.js +0 -633
- package/lib/configuration.d.ts +0 -21
- package/lib/configuration.js +0 -41
- package/lib/conversation.d.ts +0 -460
- package/lib/conversation.js +0 -940
- package/lib/data/conversations.d.ts +0 -57
- package/lib/data/conversations.js +0 -318
- package/lib/data/messages.d.ts +0 -75
- package/lib/data/messages.js +0 -208
- package/lib/data/participants.d.ts +0 -94
- package/lib/data/participants.js +0 -204
- package/lib/data/users.d.ts +0 -42
- package/lib/data/users.js +0 -113
- package/lib/detaileddeliveryreceipt.d.ts +0 -45
- package/lib/detaileddeliveryreceipt.js +0 -34
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -3
- package/lib/interfaces/limits.d.ts +0 -8
- package/lib/interfaces/limits.js +0 -2
- package/lib/interfaces/notificationtypes.d.ts +0 -8
- package/lib/interfaces/notificationtypes.js +0 -11
- package/lib/interfaces/paginator.d.ts +0 -52
- package/lib/interfaces/paginator.js +0 -28
- package/lib/interfaces/responsecodes.d.ts +0 -8
- package/lib/interfaces/responsecodes.js +0 -10
- package/lib/interfaces/transport.d.ts +0 -13
- package/lib/interfaces/transport.js +0 -2
- package/lib/logger.d.ts +0 -18
- package/lib/logger.js +0 -35
- package/lib/media.d.ts +0 -52
- package/lib/media.js +0 -69
- package/lib/message.d.ts +0 -136
- package/lib/message.js +0 -305
- package/lib/participant.d.ts +0 -142
- package/lib/participant.js +0 -219
- package/lib/pushnotification.d.ts +0 -48
- package/lib/pushnotification.js +0 -39
- package/lib/restpaginator.d.ts +0 -19
- package/lib/restpaginator.js +0 -36
- package/lib/services/network.d.ts +0 -22
- package/lib/services/network.js +0 -87
- package/lib/services/readhorizon.d.ts +0 -28
- package/lib/services/readhorizon.js +0 -112
- package/lib/services/typingindicator.d.ts +0 -50
- package/lib/services/typingindicator.js +0 -102
- package/lib/session.d.ts +0 -63
- package/lib/session.js +0 -213
- package/lib/sessionerror.d.ts +0 -12
- package/lib/sessionerror.js +0 -24
- package/lib/sri.json +0 -1
- package/lib/synclist.d.ts +0 -24
- package/lib/synclist.js +0 -28
- package/lib/synclistdescriptor.d.ts +0 -27
- package/lib/synclistdescriptor.js +0 -19
- package/lib/syncpaginator.d.ts +0 -22
- package/lib/syncpaginator.js +0 -37
- package/lib/user.d.ts +0 -98
- package/lib/user.js +0 -219
- package/lib/util/deferred.d.ts +0 -12
- package/lib/util/deferred.js +0 -22
- package/lib/util/index.d.ts +0 -28
- package/lib/util/index.js +0 -82
- package/tools/rtd-sdk-cdn-pin/.gitrepo +0 -12
- package/tools/rtd-sdk-cdn-pin/README.md +0 -54
- package/tools/rtd-sdk-cdn-pin/bintray-settings.xml.template +0 -16
- package/tools/rtd-sdk-cdn-pin/cdn-common/cdn-prepare.sh +0 -67
- package/tools/rtd-sdk-cdn-pin/cdn-pin-latest.sh +0 -19
- package/tools/rtd-sdk-cdn-pin/cdn-pin.sh +0 -19
- package/tools/rtd-sdk-cdn-pin/cdn-upload.sh +0 -13
- package/tools/rtd-sdk-cdn-pin/fetch/common/fetch-bintray-android.sh +0 -34
- package/tools/rtd-sdk-cdn-pin/fetch/common/fetch-npm.sh +0 -18
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-chat-android.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-chat-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-conversations-android.sh +0 -6
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-conversations-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-sync-android.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch/twilio-sync-js.sh +0 -5
- package/tools/rtd-sdk-cdn-pin/fetch-artifact.sh +0 -26
- package/tools/sdk-release-tool/.gitrepo +0 -12
- package/tools/sdk-release-tool/Makefile +0 -49
- package/tools/sdk-release-tool/README.md +0 -275
- package/tools/sdk-release-tool/delete +0 -3
- package/tools/sdk-release-tool/download +0 -3
- package/tools/sdk-release-tool/get-cors +0 -3
- package/tools/sdk-release-tool/list +0 -3
- package/tools/sdk-release-tool/pin +0 -3
- package/tools/sdk-release-tool/pin-latest +0 -3
- package/tools/sdk-release-tool/requirements.txt +0 -4
- package/tools/sdk-release-tool/sdk-release-tool +0 -3
- package/tools/sdk-release-tool/sdk_release_tools/__init__.py +0 -0
- package/tools/sdk-release-tool/sdk_release_tools/__main__.py +0 -110
- package/tools/sdk-release-tool/sdk_release_tools/aws.py +0 -70
- package/tools/sdk-release-tool/sdk_release_tools/cli.py +0 -181
- package/tools/sdk-release-tool/sdk_release_tools/log.py +0 -24
- package/tools/sdk-release-tool/sdk_release_tools/ops.py +0 -295
- package/tools/sdk-release-tool/sdk_release_tools/rpm.py +0 -28
- package/tools/sdk-release-tool/sdk_release_tools/util.py +0 -186
- package/tools/sdk-release-tool/sdk_release_tools/versions.py +0 -362
- package/tools/sdk-release-tool/signal-sdk-js.json +0 -28
- package/tools/sdk-release-tool/tests/test_versions.py +0 -94
- package/tools/sdk-release-tool/twilio-accessmanager-android.json +0 -19
- package/tools/sdk-release-tool/twilio-accessmanager-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-auth-ios.json +0 -29
- package/tools/sdk-release-tool/twilio-authenticator-ios.json +0 -29
- package/tools/sdk-release-tool/twilio-chat-android-2.json +0 -19
- package/tools/sdk-release-tool/twilio-chat-android.json +0 -22
- package/tools/sdk-release-tool/twilio-chat-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-chat-js.json +0 -27
- package/tools/sdk-release-tool/twilio-client-android-aar.json +0 -22
- package/tools/sdk-release-tool/twilio-client-android.json +0 -22
- package/tools/sdk-release-tool/twilio-client-ios.json +0 -20
- package/tools/sdk-release-tool/twilio-client-js.json +0 -17
- package/tools/sdk-release-tool/twilio-client-sounds-js.json +0 -14
- package/tools/sdk-release-tool/twilio-common-android-maven.json +0 -16
- package/tools/sdk-release-tool/twilio-common-android.json +0 -22
- package/tools/sdk-release-tool/twilio-common-ios-rtc.json +0 -25
- package/tools/sdk-release-tool/twilio-common-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-common-js.json +0 -19
- package/tools/sdk-release-tool/twilio-conversations-android.json +0 -22
- package/tools/sdk-release-tool/twilio-conversations-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-conversations-js.json +0 -27
- package/tools/sdk-release-tool/twilio-flex-js.json +0 -20
- package/tools/sdk-release-tool/twilio-flex-webchat-js.json +0 -16
- package/tools/sdk-release-tool/twilio-frame-chat-android.json +0 -22
- package/tools/sdk-release-tool/twilio-frame-chat-ios.json +0 -23
- package/tools/sdk-release-tool/twilio-frame-chat-js.json +0 -23
- package/tools/sdk-release-tool/twilio-ip-messaging-android-maven.json +0 -16
- package/tools/sdk-release-tool/twilio-ip-messaging-android.json +0 -22
- package/tools/sdk-release-tool/twilio-ip-messaging-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-ip-messaging-js.json +0 -21
- package/tools/sdk-release-tool/twilio-sync-android.json +0 -22
- package/tools/sdk-release-tool/twilio-sync-ios.json +0 -26
- package/tools/sdk-release-tool/twilio-sync-js.json +0 -39
- package/tools/sdk-release-tool/twilio-taskrouter-js.json +0 -17
- package/tools/sdk-release-tool/twilio-video-android.json +0 -22
- package/tools/sdk-release-tool/twilio-video-cpp-linux-cross-rootfs.json +0 -13
- package/tools/sdk-release-tool/twilio-video-cpp.json +0 -33
- package/tools/sdk-release-tool/twilio-video-ios.json +0 -25
- package/tools/sdk-release-tool/twilio-video-js.json +0 -19
- package/tools/sdk-release-tool/twilio-video-jsdocs.json +0 -14
- package/tools/sdk-release-tool/twilio-voice-android.json +0 -22
- package/tools/sdk-release-tool/twilio-voice-ios.json +0 -29
- package/tools/sdk-release-tool/unpin +0 -3
- package/tools/sdk-release-tool/unpin-latest +0 -3
- package/tools/sdk-release-tool/upload +0 -3
- package/twilio-chat.js.iml +0 -9
package/browser/session.js
DELETED
@@ -1,505 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _regenerator = require("babel-runtime/regenerator");
|
4
|
-
|
5
|
-
var _regenerator2 = _interopRequireDefault(_regenerator);
|
6
|
-
|
7
|
-
var _asyncToGenerator2 = require("babel-runtime/helpers/asyncToGenerator");
|
8
|
-
|
9
|
-
var _asyncToGenerator3 = _interopRequireDefault(_asyncToGenerator2);
|
10
|
-
|
11
|
-
var _promise = require("babel-runtime/core-js/promise");
|
12
|
-
|
13
|
-
var _promise2 = _interopRequireDefault(_promise);
|
14
|
-
|
15
|
-
var _map = require("babel-runtime/core-js/map");
|
16
|
-
|
17
|
-
var _map2 = _interopRequireDefault(_map);
|
18
|
-
|
19
|
-
var _createClass2 = require("babel-runtime/helpers/createClass");
|
20
|
-
|
21
|
-
var _createClass3 = _interopRequireDefault(_createClass2);
|
22
|
-
|
23
|
-
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
24
|
-
|
25
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
26
|
-
|
27
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
28
|
-
|
29
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
30
|
-
var uuid = require("uuid");
|
31
|
-
var platform = require("platform");
|
32
|
-
var responsecodes_1 = require("./interfaces/responsecodes");
|
33
|
-
var logger_1 = require("./logger");
|
34
|
-
var sessionerror_1 = require("./sessionerror");
|
35
|
-
var deferred_1 = require("./util/deferred");
|
36
|
-
var iso8601_duration_1 = require("iso8601-duration");
|
37
|
-
var SDK_VERSION = require('./../package.json').version;
|
38
|
-
var SESSION_PURPOSE = 'com.twilio.rtd.ipmsg';
|
39
|
-
var log = logger_1.Logger.scope('Session');
|
40
|
-
|
41
|
-
var Command = function Command() {
|
42
|
-
(0, _classCallCheck3.default)(this, Command);
|
43
|
-
};
|
44
|
-
|
45
|
-
function hasAllPropertiesSet(obj, properties) {
|
46
|
-
return !properties.some(function (prop) {
|
47
|
-
return !obj.hasOwnProperty(prop);
|
48
|
-
});
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
* Constructs the instance of Session
|
52
|
-
*
|
53
|
-
* @classdesc Provides the interface to send the command to the server
|
54
|
-
* It is reliable, which means that it tracks the command object state
|
55
|
-
* and waits the answer from the server.
|
56
|
-
*/
|
57
|
-
|
58
|
-
var Session = function () {
|
59
|
-
function Session(services, config) {
|
60
|
-
(0, _classCallCheck3.default)(this, Session);
|
61
|
-
|
62
|
-
var platformInfo = typeof navigator !== 'undefined' ? platform.parse(navigator.userAgent) : platform;
|
63
|
-
this.services = services;
|
64
|
-
this.config = config;
|
65
|
-
this.sessionInfo = new deferred_1.Deferred();
|
66
|
-
this.currentContext = {};
|
67
|
-
this.pendingCommands = new _map2.default();
|
68
|
-
this.sessionStreamPromise = null;
|
69
|
-
this.endpointPlatform = ['JS', SDK_VERSION, platformInfo.os, platformInfo.name, platformInfo.version].join('|');
|
70
|
-
}
|
71
|
-
|
72
|
-
(0, _createClass3.default)(Session, [{
|
73
|
-
key: "handleContextUpdate",
|
74
|
-
value: function handleContextUpdate(updatedContext) {
|
75
|
-
log.info('Session context updated');
|
76
|
-
log.debug('new session context:', updatedContext);
|
77
|
-
this.currentContext = updatedContext;
|
78
|
-
if (!hasAllPropertiesSet(updatedContext, ['identity', 'userInfo', 'links', 'myChannels', 'channels'])) {
|
79
|
-
return; // not enough data to proceed, wait
|
80
|
-
}
|
81
|
-
log.info('new session context accepted');
|
82
|
-
this.sessionInfo.set(updatedContext);
|
83
|
-
}
|
84
|
-
}, {
|
85
|
-
key: "initialize",
|
86
|
-
value: function initialize() {
|
87
|
-
var _this = this;
|
88
|
-
|
89
|
-
var context = {
|
90
|
-
type: 'IpMsgSession',
|
91
|
-
apiVersion: '4',
|
92
|
-
endpointPlatform: this.endpointPlatform
|
93
|
-
};
|
94
|
-
this.sessionStreamPromise = this.services.syncClient.list({ purpose: SESSION_PURPOSE, context: context }).then(function (list) {
|
95
|
-
log.info('Session created', list.sid);
|
96
|
-
list.on('itemAdded', function (args) {
|
97
|
-
return _this.processCommandResponse(args.item);
|
98
|
-
});
|
99
|
-
list.on('itemUpdated', function (args) {
|
100
|
-
return _this.processCommandResponse(args.item);
|
101
|
-
});
|
102
|
-
list.on('contextUpdated', function (args) {
|
103
|
-
return _this.handleContextUpdate(args.context);
|
104
|
-
});
|
105
|
-
return list;
|
106
|
-
}).catch(function (err) {
|
107
|
-
log.error('Failed to create session', err);
|
108
|
-
throw err;
|
109
|
-
});
|
110
|
-
return this.sessionStreamPromise;
|
111
|
-
}
|
112
|
-
/**
|
113
|
-
* Sends the command to the server
|
114
|
-
* @returns Promise the promise, which is being fulfilled only when service will reply
|
115
|
-
*/
|
116
|
-
|
117
|
-
}, {
|
118
|
-
key: "addCommand",
|
119
|
-
value: function addCommand(action, params) {
|
120
|
-
return this.processCommand(action, params);
|
121
|
-
}
|
122
|
-
/**
|
123
|
-
* @private
|
124
|
-
*/
|
125
|
-
|
126
|
-
}, {
|
127
|
-
key: "processCommand",
|
128
|
-
value: function processCommand(action, params) {
|
129
|
-
var _this2 = this;
|
130
|
-
|
131
|
-
var createSessionIfNotFound = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
132
|
-
|
133
|
-
var command = new Command();
|
134
|
-
command.request = params;
|
135
|
-
command.request.action = action;
|
136
|
-
command.commandId = uuid.v4();
|
137
|
-
log.info('Adding command: ', action, command.commandId);
|
138
|
-
log.debug('command arguments:', params, createSessionIfNotFound);
|
139
|
-
return new _promise2.default(function (resolve, reject) {
|
140
|
-
_this2.sessionStreamPromise.then(function (list) {
|
141
|
-
_this2.pendingCommands.set(command.commandId, { resolve: resolve, reject: reject, commandId: command.commandId, request: command.request });
|
142
|
-
return list.push(command);
|
143
|
-
}).then(function () {
|
144
|
-
return log.debug('Command accepted by server', command.commandId);
|
145
|
-
}).catch(function (err) {
|
146
|
-
_this2.pendingCommands.delete(command.commandId);
|
147
|
-
log.error('Failed to add a command to the session', err);
|
148
|
-
if ((err.code == responsecodes_1.ResponseCodes.ACCESS_FORBIDDEN_FOR_IDENTITY || err.code === responsecodes_1.ResponseCodes.LIST_NOT_FOUND) && createSessionIfNotFound) {
|
149
|
-
log.info('recreating session...');
|
150
|
-
_this2.initialize();
|
151
|
-
resolve(_this2.processCommand(action, params, false)); // second attempt
|
152
|
-
} else {
|
153
|
-
reject(new Error('Can\'t add command: ' + err.message));
|
154
|
-
}
|
155
|
-
});
|
156
|
-
});
|
157
|
-
}
|
158
|
-
/**
|
159
|
-
* @private
|
160
|
-
*/
|
161
|
-
|
162
|
-
}, {
|
163
|
-
key: "processCommandResponse",
|
164
|
-
value: function processCommandResponse(entity) {
|
165
|
-
if (entity.data.hasOwnProperty('response') && entity.data.hasOwnProperty('commandId') && this.pendingCommands.has(entity.data.commandId)) {
|
166
|
-
var data = entity.data;
|
167
|
-
var commandId = data.commandId;
|
168
|
-
if (data.response.status === responsecodes_1.ResponseCodes.HTTP_200_OK) {
|
169
|
-
log.debug('Command succeeded: ', data);
|
170
|
-
var resolve = this.pendingCommands.get(commandId).resolve;
|
171
|
-
this.pendingCommands.delete(commandId);
|
172
|
-
resolve(data.response);
|
173
|
-
} else {
|
174
|
-
log.error('Command failed: ', data);
|
175
|
-
var reject = this.pendingCommands.get(commandId).reject;
|
176
|
-
this.pendingCommands.delete(commandId);
|
177
|
-
reject(new sessionerror_1.SessionError(data.response.statusText, data.response.status));
|
178
|
-
}
|
179
|
-
}
|
180
|
-
}
|
181
|
-
}, {
|
182
|
-
key: "getSessionContext",
|
183
|
-
value: function () {
|
184
|
-
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
|
185
|
-
var stream;
|
186
|
-
return _regenerator2.default.wrap(function _callee$(_context) {
|
187
|
-
while (1) {
|
188
|
-
switch (_context.prev = _context.next) {
|
189
|
-
case 0:
|
190
|
-
_context.next = 2;
|
191
|
-
return this.sessionStreamPromise;
|
192
|
-
|
193
|
-
case 2:
|
194
|
-
stream = _context.sent;
|
195
|
-
return _context.abrupt("return", stream.getContext());
|
196
|
-
|
197
|
-
case 4:
|
198
|
-
case "end":
|
199
|
-
return _context.stop();
|
200
|
-
}
|
201
|
-
}
|
202
|
-
}, _callee, this);
|
203
|
-
}));
|
204
|
-
|
205
|
-
function getSessionContext() {
|
206
|
-
return _ref.apply(this, arguments);
|
207
|
-
}
|
208
|
-
|
209
|
-
return getSessionContext;
|
210
|
-
}()
|
211
|
-
}, {
|
212
|
-
key: "getSessionLinks",
|
213
|
-
value: function () {
|
214
|
-
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
215
|
-
var info;
|
216
|
-
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
217
|
-
while (1) {
|
218
|
-
switch (_context2.prev = _context2.next) {
|
219
|
-
case 0:
|
220
|
-
_context2.next = 2;
|
221
|
-
return this.sessionInfo.promise;
|
222
|
-
|
223
|
-
case 2:
|
224
|
-
info = _context2.sent;
|
225
|
-
return _context2.abrupt("return", {
|
226
|
-
publicChannelsUrl: this.config.baseUrl + info.links.publicChannelsUrl,
|
227
|
-
myChannelsUrl: this.config.baseUrl + info.links.myChannelsUrl,
|
228
|
-
typingUrl: this.config.baseUrl + info.links.typingUrl,
|
229
|
-
syncListUrl: this.config.baseUrl + info.links.syncListUrl,
|
230
|
-
usersUrl: this.config.baseUrl + info.links.usersUrl,
|
231
|
-
mediaServiceUrl: info.links.mediaServiceUrl,
|
232
|
-
mediaSetServiceUrl: info.links.mediaSetServiceUrl,
|
233
|
-
messagesReceiptsUrl: this.config.baseUrl + info.links.messagesReceiptsUrl
|
234
|
-
});
|
235
|
-
|
236
|
-
case 4:
|
237
|
-
case "end":
|
238
|
-
return _context2.stop();
|
239
|
-
}
|
240
|
-
}
|
241
|
-
}, _callee2, this);
|
242
|
-
}));
|
243
|
-
|
244
|
-
function getSessionLinks() {
|
245
|
-
return _ref2.apply(this, arguments);
|
246
|
-
}
|
247
|
-
|
248
|
-
return getSessionLinks;
|
249
|
-
}()
|
250
|
-
}, {
|
251
|
-
key: "getMediaLimits",
|
252
|
-
value: function () {
|
253
|
-
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
254
|
-
var _a, _b, _c, _d, _e, DEFAULT_COUNT_LIMIT, DEFAULT_SIZE_LIMIT, DEFAULT_TYPES, info;
|
255
|
-
|
256
|
-
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
257
|
-
while (1) {
|
258
|
-
switch (_context3.prev = _context3.next) {
|
259
|
-
case 0:
|
260
|
-
DEFAULT_COUNT_LIMIT = 10;
|
261
|
-
DEFAULT_SIZE_LIMIT = 150;
|
262
|
-
DEFAULT_TYPES = ['text/plain', 'text/html'];
|
263
|
-
_context3.next = 5;
|
264
|
-
return this.sessionInfo.promise;
|
265
|
-
|
266
|
-
case 5:
|
267
|
-
info = _context3.sent;
|
268
|
-
return _context3.abrupt("return", {
|
269
|
-
mediaAttachmentsCountLimit: (_a = info.mediaAttachmentsCountLimit, _a !== null && _a !== void 0 ? _a : DEFAULT_COUNT_LIMIT),
|
270
|
-
mediaAttachmentSizeLimitInMb: (_b = info.mediaAttachmentSizeLimitInMb, _b !== null && _b !== void 0 ? _b : DEFAULT_SIZE_LIMIT),
|
271
|
-
mediaAttachmentsTotalSizeLimitInMb: (_c = info.mediaAttachmentsTotalSizeLimitInMb, _c !== null && _c !== void 0 ? _c : DEFAULT_SIZE_LIMIT),
|
272
|
-
emailHistoriesAllowedMimeTypes: (_d = info.emailHistoriesAllowedMimeTypes, _d !== null && _d !== void 0 ? _d : DEFAULT_TYPES),
|
273
|
-
emailBodiesAllowedMimeTypes: (_e = info.emailBodiesAllowedMimeTypes, _e !== null && _e !== void 0 ? _e : DEFAULT_TYPES)
|
274
|
-
});
|
275
|
-
|
276
|
-
case 7:
|
277
|
-
case "end":
|
278
|
-
return _context3.stop();
|
279
|
-
}
|
280
|
-
}
|
281
|
-
}, _callee3, this);
|
282
|
-
}));
|
283
|
-
|
284
|
-
function getMediaLimits() {
|
285
|
-
return _ref3.apply(this, arguments);
|
286
|
-
}
|
287
|
-
|
288
|
-
return getMediaLimits;
|
289
|
-
}()
|
290
|
-
}, {
|
291
|
-
key: "getConversationsId",
|
292
|
-
value: function () {
|
293
|
-
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
294
|
-
var info;
|
295
|
-
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
296
|
-
while (1) {
|
297
|
-
switch (_context4.prev = _context4.next) {
|
298
|
-
case 0:
|
299
|
-
_context4.next = 2;
|
300
|
-
return this.sessionInfo.promise;
|
301
|
-
|
302
|
-
case 2:
|
303
|
-
info = _context4.sent;
|
304
|
-
return _context4.abrupt("return", info.channels);
|
305
|
-
|
306
|
-
case 4:
|
307
|
-
case "end":
|
308
|
-
return _context4.stop();
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}, _callee4, this);
|
312
|
-
}));
|
313
|
-
|
314
|
-
function getConversationsId() {
|
315
|
-
return _ref4.apply(this, arguments);
|
316
|
-
}
|
317
|
-
|
318
|
-
return getConversationsId;
|
319
|
-
}()
|
320
|
-
}, {
|
321
|
-
key: "getMyConversationsId",
|
322
|
-
value: function () {
|
323
|
-
var _ref5 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
324
|
-
var info;
|
325
|
-
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
326
|
-
while (1) {
|
327
|
-
switch (_context5.prev = _context5.next) {
|
328
|
-
case 0:
|
329
|
-
_context5.next = 2;
|
330
|
-
return this.sessionInfo.promise;
|
331
|
-
|
332
|
-
case 2:
|
333
|
-
info = _context5.sent;
|
334
|
-
return _context5.abrupt("return", info.myChannels);
|
335
|
-
|
336
|
-
case 4:
|
337
|
-
case "end":
|
338
|
-
return _context5.stop();
|
339
|
-
}
|
340
|
-
}
|
341
|
-
}, _callee5, this);
|
342
|
-
}));
|
343
|
-
|
344
|
-
function getMyConversationsId() {
|
345
|
-
return _ref5.apply(this, arguments);
|
346
|
-
}
|
347
|
-
|
348
|
-
return getMyConversationsId;
|
349
|
-
}()
|
350
|
-
}, {
|
351
|
-
key: "getMaxUserInfosToSubscribe",
|
352
|
-
value: function () {
|
353
|
-
var _ref6 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
354
|
-
var info;
|
355
|
-
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
356
|
-
while (1) {
|
357
|
-
switch (_context6.prev = _context6.next) {
|
358
|
-
case 0:
|
359
|
-
_context6.next = 2;
|
360
|
-
return this.sessionInfo.promise;
|
361
|
-
|
362
|
-
case 2:
|
363
|
-
info = _context6.sent;
|
364
|
-
return _context6.abrupt("return", this.config.userInfosToSubscribeOverride || info.userInfosToSubscribe || this.config.userInfosToSubscribeDefault);
|
365
|
-
|
366
|
-
case 4:
|
367
|
-
case "end":
|
368
|
-
return _context6.stop();
|
369
|
-
}
|
370
|
-
}
|
371
|
-
}, _callee6, this);
|
372
|
-
}));
|
373
|
-
|
374
|
-
function getMaxUserInfosToSubscribe() {
|
375
|
-
return _ref6.apply(this, arguments);
|
376
|
-
}
|
377
|
-
|
378
|
-
return getMaxUserInfosToSubscribe;
|
379
|
-
}()
|
380
|
-
}, {
|
381
|
-
key: "getUsersData",
|
382
|
-
value: function () {
|
383
|
-
var _ref7 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
|
384
|
-
var info;
|
385
|
-
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
386
|
-
while (1) {
|
387
|
-
switch (_context7.prev = _context7.next) {
|
388
|
-
case 0:
|
389
|
-
_context7.next = 2;
|
390
|
-
return this.sessionInfo.promise;
|
391
|
-
|
392
|
-
case 2:
|
393
|
-
info = _context7.sent;
|
394
|
-
return _context7.abrupt("return", {
|
395
|
-
user: info.userInfo,
|
396
|
-
identity: info.identity
|
397
|
-
});
|
398
|
-
|
399
|
-
case 4:
|
400
|
-
case "end":
|
401
|
-
return _context7.stop();
|
402
|
-
}
|
403
|
-
}
|
404
|
-
}, _callee7, this);
|
405
|
-
}));
|
406
|
-
|
407
|
-
function getUsersData() {
|
408
|
-
return _ref7.apply(this, arguments);
|
409
|
-
}
|
410
|
-
|
411
|
-
return getUsersData;
|
412
|
-
}()
|
413
|
-
}, {
|
414
|
-
key: "getConsumptionReportInterval",
|
415
|
-
value: function () {
|
416
|
-
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
417
|
-
var context, consumptionIntervalToUse;
|
418
|
-
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
419
|
-
while (1) {
|
420
|
-
switch (_context8.prev = _context8.next) {
|
421
|
-
case 0:
|
422
|
-
_context8.next = 2;
|
423
|
-
return this.getSessionContext();
|
424
|
-
|
425
|
-
case 2:
|
426
|
-
context = _context8.sent;
|
427
|
-
consumptionIntervalToUse = this.config.consumptionReportIntervalOverride || context.consumptionReportInterval || this.config.consumptionReportIntervalDefault;
|
428
|
-
_context8.prev = 4;
|
429
|
-
return _context8.abrupt("return", iso8601_duration_1.toSeconds(iso8601_duration_1.parse(consumptionIntervalToUse)));
|
430
|
-
|
431
|
-
case 8:
|
432
|
-
_context8.prev = 8;
|
433
|
-
_context8.t0 = _context8["catch"](4);
|
434
|
-
|
435
|
-
log.error('Failed to parse consumption report interval', consumptionIntervalToUse, 'using default value', this.config.consumptionReportIntervalDefault);
|
436
|
-
return _context8.abrupt("return", iso8601_duration_1.toSeconds(iso8601_duration_1.parse(this.config.consumptionReportIntervalDefault)));
|
437
|
-
|
438
|
-
case 12:
|
439
|
-
case "end":
|
440
|
-
return _context8.stop();
|
441
|
-
}
|
442
|
-
}
|
443
|
-
}, _callee8, this, [[4, 8]]);
|
444
|
-
}));
|
445
|
-
|
446
|
-
function getConsumptionReportInterval() {
|
447
|
-
return _ref8.apply(this, arguments);
|
448
|
-
}
|
449
|
-
|
450
|
-
return getConsumptionReportInterval;
|
451
|
-
}()
|
452
|
-
}, {
|
453
|
-
key: "getHttpCacheInterval",
|
454
|
-
value: function () {
|
455
|
-
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
456
|
-
var context, cacheIntervalToUse;
|
457
|
-
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
458
|
-
while (1) {
|
459
|
-
switch (_context9.prev = _context9.next) {
|
460
|
-
case 0:
|
461
|
-
_context9.next = 2;
|
462
|
-
return this.getSessionContext();
|
463
|
-
|
464
|
-
case 2:
|
465
|
-
context = _context9.sent;
|
466
|
-
cacheIntervalToUse = this.config.httpCacheIntervalOverride || context.httpCacheInterval || this.config.httpCacheIntervalDefault;
|
467
|
-
_context9.prev = 4;
|
468
|
-
return _context9.abrupt("return", iso8601_duration_1.toSeconds(iso8601_duration_1.parse(cacheIntervalToUse)));
|
469
|
-
|
470
|
-
case 8:
|
471
|
-
_context9.prev = 8;
|
472
|
-
_context9.t0 = _context9["catch"](4);
|
473
|
-
|
474
|
-
log.error('Failed to parse cache interval', cacheIntervalToUse, 'using default value', this.config.httpCacheIntervalDefault);
|
475
|
-
return _context9.abrupt("return", iso8601_duration_1.toSeconds(iso8601_duration_1.parse(this.config.httpCacheIntervalDefault)));
|
476
|
-
|
477
|
-
case 12:
|
478
|
-
case "end":
|
479
|
-
return _context9.stop();
|
480
|
-
}
|
481
|
-
}
|
482
|
-
}, _callee9, this, [[4, 8]]);
|
483
|
-
}));
|
484
|
-
|
485
|
-
function getHttpCacheInterval() {
|
486
|
-
return _ref9.apply(this, arguments);
|
487
|
-
}
|
488
|
-
|
489
|
-
return getHttpCacheInterval;
|
490
|
-
}()
|
491
|
-
}, {
|
492
|
-
key: "identity",
|
493
|
-
get: function get() {
|
494
|
-
return this.sessionInfo.current.identity;
|
495
|
-
}
|
496
|
-
}, {
|
497
|
-
key: "reachabilityEnabled",
|
498
|
-
get: function get() {
|
499
|
-
return this.currentContext.reachabilityEnabled;
|
500
|
-
}
|
501
|
-
}]);
|
502
|
-
return Session;
|
503
|
-
}();
|
504
|
-
|
505
|
-
exports.Session = Session;
|
package/browser/sessionerror.js
DELETED
@@ -1,93 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
|
3
|
-
var _create = require("babel-runtime/core-js/object/create");
|
4
|
-
|
5
|
-
var _create2 = _interopRequireDefault(_create);
|
6
|
-
|
7
|
-
var _setPrototypeOf = require("babel-runtime/core-js/object/set-prototype-of");
|
8
|
-
|
9
|
-
var _setPrototypeOf2 = _interopRequireDefault(_setPrototypeOf);
|
10
|
-
|
11
|
-
var _from = require("babel-runtime/core-js/array/from");
|
12
|
-
|
13
|
-
var _from2 = _interopRequireDefault(_from);
|
14
|
-
|
15
|
-
var _construct = require("babel-runtime/core-js/reflect/construct");
|
16
|
-
|
17
|
-
var _construct2 = _interopRequireDefault(_construct);
|
18
|
-
|
19
|
-
var _getPrototypeOf = require("babel-runtime/core-js/object/get-prototype-of");
|
20
|
-
|
21
|
-
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
|
22
|
-
|
23
|
-
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
|
24
|
-
|
25
|
-
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
|
26
|
-
|
27
|
-
var _possibleConstructorReturn2 = require("babel-runtime/helpers/possibleConstructorReturn");
|
28
|
-
|
29
|
-
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
|
30
|
-
|
31
|
-
var _inherits2 = require("babel-runtime/helpers/inherits");
|
32
|
-
|
33
|
-
var _inherits3 = _interopRequireDefault(_inherits2);
|
34
|
-
|
35
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
36
|
-
|
37
|
-
function _extendableBuiltin(cls) {
|
38
|
-
function ExtendableBuiltin() {
|
39
|
-
var instance = (0, _construct2.default)(cls, (0, _from2.default)(arguments));
|
40
|
-
(0, _setPrototypeOf2.default)(instance, (0, _getPrototypeOf2.default)(this));
|
41
|
-
return instance;
|
42
|
-
}
|
43
|
-
|
44
|
-
ExtendableBuiltin.prototype = (0, _create2.default)(cls.prototype, {
|
45
|
-
constructor: {
|
46
|
-
value: cls,
|
47
|
-
enumerable: false,
|
48
|
-
writable: true,
|
49
|
-
configurable: true
|
50
|
-
}
|
51
|
-
});
|
52
|
-
|
53
|
-
if (_setPrototypeOf2.default) {
|
54
|
-
(0, _setPrototypeOf2.default)(ExtendableBuiltin, cls);
|
55
|
-
} else {
|
56
|
-
ExtendableBuiltin.__proto__ = cls;
|
57
|
-
}
|
58
|
-
|
59
|
-
return ExtendableBuiltin;
|
60
|
-
}
|
61
|
-
|
62
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
63
|
-
/**
|
64
|
-
* @class
|
65
|
-
* @classdesc Exception type for service-side errors.
|
66
|
-
*
|
67
|
-
* @property {Number} code - Error code
|
68
|
-
* @property {String} message - Error description
|
69
|
-
*/
|
70
|
-
|
71
|
-
var SessionError = function (_extendableBuiltin2) {
|
72
|
-
(0, _inherits3.default)(SessionError, _extendableBuiltin2);
|
73
|
-
|
74
|
-
function SessionError(message, code) {
|
75
|
-
(0, _classCallCheck3.default)(this, SessionError);
|
76
|
-
|
77
|
-
var _this = (0, _possibleConstructorReturn3.default)(this, (SessionError.__proto__ || (0, _getPrototypeOf2.default)(SessionError)).call(this));
|
78
|
-
|
79
|
-
_this.name = _this.constructor.name;
|
80
|
-
_this.message = message;
|
81
|
-
_this.code = code;
|
82
|
-
if (Error.captureStackTrace) {
|
83
|
-
Error.captureStackTrace(_this, _this.constructor);
|
84
|
-
} else {
|
85
|
-
_this.stack = new Error().stack;
|
86
|
-
}
|
87
|
-
return _this;
|
88
|
-
}
|
89
|
-
|
90
|
-
return SessionError;
|
91
|
-
}(_extendableBuiltin(Error));
|
92
|
-
|
93
|
-
exports.SessionError = SessionError;
|
package/browser/sri.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"lib/aggregateddeliveryreceipt.js":"sha256-tZBQ/lAB8IeTHaNFIt9XIHubcnkiKHVfMhuvbtELTbE=","lib/client.js":"sha256-1+eda+gBlKXMxKIhIfDuYK5qv4bi6cQpIu7p3bgqMFQ=","lib/configuration.js":"sha256-Y3dGEJ1gnvTtjicgl8D+wpVylUw6emrGdQUYqr7nw88=","lib/conversation.js":"sha256-1BKCoU20Pa+dd22shsycH/yuNObw46tcJ1GV8dZB7Hc=","lib/detaileddeliveryreceipt.js":"sha256-I1Ah05qxwbGPpul2dzDl11COYdkK7YrCgxCZUPCv4u8=","lib/index.js":"sha256-mqKDgT4gOLAC3sSxHxHDRlnS/b9fKgadqSvG19SjpCg=","lib/logger.js":"sha256-/TclLyFDKBlD7lU4XYrJnBdiFD54Asggjo0Zleq5Czg=","lib/media.js":"sha256-W8AZ41hEGSD0wkiQclNCAeSTukeWP6916KtKesXDUes=","lib/message.js":"sha256-hZQaXRsKiuTpH7FpFF6MDVcnOLag4Nd6pjvey+8GH+k=","lib/participant.js":"sha256-RusrVQE1NGax5TkLxwjPSuRQvYqCYF/du2bZ/ti+1Rk=","lib/pushnotification.js":"sha256-Rn9S1xOTuiiKPA7RjyDU6J3ljk7ndPgFhk9ylcC4tHg=","lib/restpaginator.js":"sha256-BMuE+6NcX37g0MdiTgXeGX77N8W/mK34yFHkvJi2Vko=","lib/session.js":"sha256-EKdFzoysA+mNlWn1vl3ygIthtk3LICgAHcLhAdPepfc=","lib/sessionerror.js":"sha256-lLXyeBHSNiSHN0dQuf1CqGuIe2ZDtzqziVF5qw5cZrc=","lib/synclist.js":"sha256-8imXCECbLZRtsntAMQ0cOpsODWkaDpsCpgISfemKmMA=","lib/synclistdescriptor.js":"sha256-wYlF1ZO1Ym7fmnPEPqINTqh2v7J8QeMewq2lG5RwcOY=","lib/syncpaginator.js":"sha256-dUudOaWa4KtkkGLD5JQ5P6CnG7k6hWZc7TYiDfops34=","lib/user.js":"sha256-ywOp+b4ykyrvvtXT3/Q2WfXj+m5XqyT4sJOX4Xnp49E=","lib/data/conversations.js":"sha256-YDHBHAY7qIJDGnMQI3mZ8d1x1Jo/TAdzSD8I3RO79L8=","lib/data/messages.js":"sha256-4AAuZnIksjxJovLoXEryNwalwU1vc4ejKVe7wkkHUPc=","lib/data/participants.js":"sha256-4leIAa2PTifjJYL8dH4iQUtekBbazxFwVwai1tR0A/8=","lib/data/users.js":"sha256-A5rWRV7+HTPss6hwAD4Kc0Ftw4Apq387eSINv7IE/kE=","lib/interfaces/limits.js":"sha256-1DqoH1vIn6o1ng+XyBS6JRVVkf8Hj7ub/UD4x8loMjA=","lib/interfaces/notificationtypes.js":"sha256-WAl8kM1ex6Nbd6lPOftCvwMPJo+URQnvmKHPDfd6yDs=","lib/interfaces/paginator.js":"sha256-uR//QPr7gfI3ixd/1FIwpGlLmlNRwqgTPoAfun77Gko=","lib/interfaces/responsecodes.js":"sha256-q34uRlVfFCwfUCkrwctw/A8Vzpvv7MaFbGWHxHim7sI=","lib/interfaces/transport.js":"sha256-1DqoH1vIn6o1ng+XyBS6JRVVkf8Hj7ub/UD4x8loMjA=","lib/services/network.js":"sha256-mThXsnK8ElQQaTHPXAGnygeILG75LdId1ZsZh4ng5Wg=","lib/services/readhorizon.js":"sha256-V1uJfV6JE0147qzMsuyvJ1jhwl3OsaqxjZuBBQJNld8=","lib/services/typingindicator.js":"sha256-CC/NCUCq7UGo4ovq0wcTkuiZeLoPlKcd+wouF4+uEMQ=","lib/util/deferred.js":"sha256-l0iLU8vMjkjUuKe3K9AdMkwueBn5U7YqYBVF7HtvgTE=","lib/util/index.js":"sha256-+iOt9PFnO0/vcgK/UNfovsV3oUgoWdqXa9bZr34B8DA=","lib/aggregateddeliveryreceipt.d.ts":"sha256-ajq7Rbi1R+8G7W/0gU0WVe3eCdCaUX0czJNHtkWxL1s=","lib/client.d.ts":"sha256-uur1p6sYe2eVkLBL9lEcws3/jSRIRTN6Jo7JOidpdMQ=","lib/configuration.d.ts":"sha256-CmOTXgLl1OG0BX1Vs/iu20s50bPXrKoGsXjivFYs7EE=","lib/conversation.d.ts":"sha256-fb1jfULdMP/hladsV8FK9Fv4d1400otwuV5erm9D404=","lib/detaileddeliveryreceipt.d.ts":"sha256-G/Trfuxgt50CO5Ji+RjmVDV6iQ5RYH7cEdbUlikSR2A=","lib/index.d.ts":"sha256-lX8srbrNkAqWSxE75/tLnZAtnq2am2hlCuzsLTrJodI=","lib/logger.d.ts":"sha256-kUF94u2h0jfusrS8SDa4fcRIoSnjSu8TjjLq6DZ1m6E=","lib/media.d.ts":"sha256-W6iUaaC6oB2N31LeuhSGIATI9gj6I0epgHM3rlUBRbY=","lib/message.d.ts":"sha256-5IK5FeiACFD+8G2ynUvIdMLE04X7yhbALv8BTs5Toqg=","lib/participant.d.ts":"sha256-cwbtnenf4NpWtTs41o0q83hsVs/xEZII8irExprTDYI=","lib/pushnotification.d.ts":"sha256-HXSKgP5ugEsu/hc1uhdRmf6Sabx1ZYuYYiqhLbJ/JVI=","lib/restpaginator.d.ts":"sha256-qodsKOtWrit+kz1KEFHuKV7mYb7ZT5WE+zsUlb/nzLA=","lib/session.d.ts":"sha256-Z0OhsaoqsAj0STgR/lJ1Iw3uJlvoS0UIL6/xpSnDD9I=","lib/sessionerror.d.ts":"sha256-BT74HHKMz5+YbFiccJZWqRXSQI3YO+si+m70JISwsCs=","lib/synclist.d.ts":"sha256-Ds4L4ZiUjr0CT5RsW+Xt6B4hsPMAi/Jw6y/5Hr5NXZk=","lib/synclistdescriptor.d.ts":"sha256-Gp8slSSid6fLBUx8JV0InQMdB/INeTGTzGk6bhuQ+LY=","lib/syncpaginator.d.ts":"sha256-/oapr35TZjdoIhH74z+eozGdyt/4xugVh6C1nPORp4w=","lib/user.d.ts":"sha256-tJo2TLZVZSRdDbVsPCPL/wUyW/GF8ANuXd/+9IWWgpc=","lib/data/conversations.d.ts":"sha256-m91AZP8HBleYD3m+4PbHHaBewVU0cofCc4fl+XOI5xA=","lib/data/messages.d.ts":"sha256-e2akfAdCvYhpB1lVhdVOhVTKGFHmzqdU64+lwAtKjh4=","lib/data/participants.d.ts":"sha256-zaEs3VZpN5jjw1gXHFQmwQCBM3T5XXXAnfuR/ORu9oA=","lib/data/users.d.ts":"sha256-v1pcrJEJojRpaFH79QTmnBQ/U0xFucP/yx6vfIR6j7Y=","lib/interfaces/limits.d.ts":"sha256-88tiD25fd3zNaJt4znSC682bK+VKhjPG5rEgVbiAels=","lib/interfaces/notificationtypes.d.ts":"sha256-PnGFXum7KHnw98fA7ViQS2MXZFN5FlBUTZsqpXYMs9k=","lib/interfaces/paginator.d.ts":"sha256-q3RBDA/b3rQmqPTR9auCDxeEaco6wZt4uJRGHIplZYY=","lib/interfaces/responsecodes.d.ts":"sha256-n6RsEiBNV0Si/llOm8AFwEdhJIX66/FR3vubeKzMiKM=","lib/interfaces/transport.d.ts":"sha256-GzJszWUauuHnw7g2TnB23PazWxqH458VOBESAv5SPl4=","lib/services/network.d.ts":"sha256-p2KJNvXuZTSfUb/z8IOLoC1Hymv8nG9e2rApG25kfX0=","lib/services/readhorizon.d.ts":"sha256-Fjx+w8T+MoBiVzJf/zonKKc43ugUPnA/k0el4MW0b8U=","lib/services/typingindicator.d.ts":"sha256-a7kVyLOuDE99nEXEGo1q7mBct/ObQsHkQMrBvTvQKiY=","lib/util/deferred.d.ts":"sha256-2kmZDCogWutZlPi/y2BCHCksC6HZC03H06mESFQkUJs=","lib/util/index.d.ts":"sha256-J7UgmlE9ns0infheX8wN5KuT8lHMsKaE3EuId3FL2vs=","browser/aggregateddeliveryreceipt.js":"sha256-jkxMUITHH8L+KApl0RRbQtrfXN59Xwl7isrtcM4UQlw=","browser/client.js":"sha256-8XaMnVJwNaH0qEv4rhtRm9IXok2SVHKWgzUlAeQKBPk=","browser/configuration.js":"sha256-t+1/iVN0F4f7QmWgE2zKkcBNd13oMsY/BJ/7pxL/dpM=","browser/conversation.js":"sha256-LPgJ8CjwVw/L3Qe/ZYfQGzudFy+3QCjj4Hc/6VmHAEY=","browser/detaileddeliveryreceipt.js":"sha256-zKrGXWGxf+I+GKUjAlVQfKVNw9QAz5vFXnMWshAhxX4=","browser/index.js":"sha256-S+eKMp/1e64gEIqLay5YFeTWaIDuRW5u7w5m305qQj0=","browser/logger.js":"sha256-QMLFRmE4HeEcF3IEOKc+uTjbKr3mSnXLQJgNrXPCA/4=","browser/media.js":"sha256-LwFijbYfsQ7w/M8V19lviSTAkMEg+n6LPRI9Pr5JW5g=","browser/message.js":"sha256-Cyui5q3emvXouf9JcSV+OtYyi7/lpnir2DoLp1bTAUY=","browser/participant.js":"sha256-3TW6G4SPCxci5A+ocMQHLjgerXYoaQhPcYkUYJtHsQE=","browser/pushnotification.js":"sha256-gpkUhvupH5kxNF5QbxmVd1CMnrKUE34UqP4ayL8ZniQ=","browser/restpaginator.js":"sha256-amFVsFXWfAUlx+o9jS84aD5VizlEwayOOuPD/ESGqWI=","browser/session.js":"sha256-uYYQfq49MiMQ+b68utIApU4dPlq29A9dQ/CMLr0Eh9Y=","browser/sessionerror.js":"sha256-Z4SHPhjTzxgK+7C+iT7KVnvHVIXXNm0wz69kkRdut48=","browser/synclist.js":"sha256-6AmQxpCoRHRgqpp0lNaUjccF2pka1bpauHf6AQEo3X4=","browser/synclistdescriptor.js":"sha256-IvY/yuiezmBiCVIGxK3THre69zHRxglREcT0OQ34AQk=","browser/syncpaginator.js":"sha256-x9vDK1rdfKC1FGzVEkmjnN0snEQBD8XNCEfJxSh/JAo=","browser/user.js":"sha256-kY76v3O1v5J/OakJSJAHkH3UfGxb+SqFLmmMLKt/S0o=","browser/data/conversations.js":"sha256-u8z/7hbfBBXIek0hBe4CoPnq5v8AwSFe6fgIEom7IQ4=","browser/data/messages.js":"sha256-zB8HkyUD9TPIZzW2nsxbGeUS4BWfIYj37iOEB28ZSAQ=","browser/data/participants.js":"sha256-MoLw2ZksvLeY9tG7Rfuihprs9XlCd7qqvNgIrAOEkgs=","browser/data/users.js":"sha256-NSH1Z8Cts1fe3bDA4xM4aHcrPTYWSgyLaPh2L32ZvtU=","browser/interfaces/limits.js":"sha256-rP3V93GX5+sein+tUAobGWckAqGy0I3gYJcCAwiv5K0=","browser/interfaces/notificationtypes.js":"sha256-VoPDJpQm4HJpsG3Rko49f6eOYpnzeZL7HidnPHdU7f4=","browser/interfaces/paginator.js":"sha256-T98dDIWrpO2gKLTNrPOeG4mRxLtb5PSbUhUQjX8ZkfM=","browser/interfaces/responsecodes.js":"sha256-KSYb858T8msYjFy3ptHC0A2wci5A90zlQrK8FoRamE4=","browser/interfaces/transport.js":"sha256-rP3V93GX5+sein+tUAobGWckAqGy0I3gYJcCAwiv5K0=","browser/services/network.js":"sha256-nhKB9cpcPQmVScOh4A6pMOyW7E1ivpnKnrjeb3ygdas=","browser/services/readhorizon.js":"sha256-TIGkEOsx2S/mokz8sPnixcFRem/Li3/vj4OkqTy3QLA=","browser/services/typingindicator.js":"sha256-xoIwj9wENm+NvdQ0r1dlqfPTf2W6diAvzqWVU9YMYMw=","browser/util/deferred.js":"sha256-Gu6duaRZFVetR4eFDR47HCrmfRiHc9fwEII2aRqHUx4=","browser/util/index.js":"sha256-+KmkkhdOJBBp26o8zV9B/5i7tbGLAUvxeqQQdPUxy5U="}
|