@webex/internal-plugin-lyra 3.0.0-beta.15 → 3.0.0-beta.150

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/dist/config.js CHANGED
@@ -1,13 +1,10 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  _Object$defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
-
9
7
  exports.default = void 0;
10
-
11
8
  /*!
12
9
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
13
10
  */
@@ -1 +1 @@
1
- {"version":3,"names":["lyra"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n lyra: {},\n};\n"],"mappings":";;;;;;;;;;AAAA;AACA;AACA;eAEe;EACbA,IAAI,EAAE;AADO,C"}
1
+ {"version":3,"names":["lyra"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n lyra: {},\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAFA,eAIe;EACbA,IAAI,EAAE,CAAC;AACT,CAAC;AAAA"}
package/dist/device.js CHANGED
@@ -1,19 +1,13 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
6
-
7
5
  _Object$defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
-
11
8
  exports.default = void 0;
12
-
13
9
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
14
-
15
10
  var _webexCore = require("@webex/webex-core");
16
-
17
11
  /*!
18
12
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
19
13
  */
@@ -25,7 +19,6 @@ var _webexCore = require("@webex/webex-core");
25
19
  */
26
20
  var Device = _webexCore.WebexPlugin.extend({
27
21
  namespace: 'Lyra',
28
-
29
22
  /**
30
23
  * Gets the audio state of the device
31
24
  * @param {Types~LyraSpace} space
@@ -40,7 +33,6 @@ var Device = _webexCore.WebexPlugin.extend({
40
33
  return res.body;
41
34
  });
42
35
  },
43
-
44
36
  /**
45
37
  * Updates audio state for lyra device, should be called every 10 minutes or
46
38
  * when mic or volume state is changed
@@ -56,11 +48,9 @@ var Device = _webexCore.WebexPlugin.extend({
56
48
  */
57
49
  putAudioState: function putAudioState(space) {
58
50
  var audioState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
59
-
60
51
  if (!audioState.deviceUrl) {
61
52
  return _promise.default.reject(new Error('audioState.deviceUrl is required'));
62
53
  }
63
-
64
54
  return this.webex.request({
65
55
  method: 'PUT',
66
56
  uri: "".concat(space.url, "/audio"),
@@ -69,7 +59,6 @@ var Device = _webexCore.WebexPlugin.extend({
69
59
  return res.body;
70
60
  });
71
61
  },
72
-
73
62
  /**
74
63
  * Mutes lyra device
75
64
  * @param {Types~LyraSpace} space
@@ -82,7 +71,6 @@ var Device = _webexCore.WebexPlugin.extend({
82
71
  uri: "".concat(space.url, "/audio/microphones/actions/mute/invoke")
83
72
  });
84
73
  },
85
-
86
74
  /**
87
75
  * Unmutes lyra device
88
76
  * @param {Types~LyraSpace} space
@@ -95,7 +83,6 @@ var Device = _webexCore.WebexPlugin.extend({
95
83
  uri: "".concat(space.url, "/audio/microphones/actions/un-mute/invoke")
96
84
  });
97
85
  },
98
-
99
86
  /**
100
87
  * Increases lyra device's volume
101
88
  * @param {Types~LyraSpace} space
@@ -108,7 +95,6 @@ var Device = _webexCore.WebexPlugin.extend({
108
95
  uri: "".concat(space.url, "/audio/volume/actions/increase/invoke")
109
96
  });
110
97
  },
111
-
112
98
  /**
113
99
  * Decreases lyra device's volume
114
100
  * @param {Types~LyraSpace} space
@@ -121,7 +107,6 @@ var Device = _webexCore.WebexPlugin.extend({
121
107
  uri: "".concat(space.url, "/audio/volume/actions/decrease/invoke")
122
108
  });
123
109
  },
124
-
125
110
  /**
126
111
  * Sets lyra device's volume but should use increase and decrease api instead
127
112
  * @param {Types~LyraSpace} space
@@ -139,9 +124,8 @@ var Device = _webexCore.WebexPlugin.extend({
139
124
  }
140
125
  });
141
126
  },
142
- version: "3.0.0-beta.15"
127
+ version: "3.0.0-beta.150"
143
128
  });
144
-
145
129
  var _default = Device;
146
130
  exports.default = _default;
147
131
  //# sourceMappingURL=device.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Device","WebexPlugin","extend","namespace","getAudioState","space","webex","request","method","uri","url","then","res","body","putAudioState","audioState","deviceUrl","reject","Error","mute","unmute","increaseVolume","decreaseVolume","setVolume","level"],"sources":["device.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Device = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Gets the audio state of the device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraAudioState>} {volume, microphones, url}\n */\n getAudioState(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/audio`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Updates audio state for lyra device, should be called every 10 minutes or\n * when mic or volume state is changed\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {Types~LyraAudioState} audioState\n * @param {object} audioState.volume optional\n * @param {boolean} audioState.volume.level\n * @param {object} audioState.microphones optional\n * @param {boolean} audioState.microphones.muted\n * @param {string} audioState.deviceUrl\n * @returns {Promise}\n */\n putAudioState(space, audioState = {}) {\n if (!audioState.deviceUrl) {\n return Promise.reject(new Error('audioState.deviceUrl is required'));\n }\n\n return this.webex\n .request({\n method: 'PUT',\n uri: `${space.url}/audio`,\n body: audioState,\n })\n .then((res) => res.body);\n },\n\n /**\n * Mutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n mute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/mute/invoke`,\n });\n },\n\n /**\n * Unmutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n unmute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/un-mute/invoke`,\n });\n },\n\n /**\n * Increases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n increaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/increase/invoke`,\n });\n },\n\n /**\n * Decreases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n decreaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/decrease/invoke`,\n });\n },\n\n /**\n * Sets lyra device's volume but should use increase and decrease api instead\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {integer} level to be set\n * @returns {Promise}\n */\n setVolume(space, level = 0) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/set/invoke`,\n body: {\n level,\n },\n });\n },\n});\n\nexport default Device;\n"],"mappings":";;;;;;;;;;;;;;AAIA;;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA,IAAMA,MAAM,GAAGC,sBAAA,CAAYC,MAAZ,CAAmB;EAChCC,SAAS,EAAE,MADqB;;EAGhC;AACF;AACA;AACA;AACA;AACA;EACEC,aATgC,yBASlBC,KATkB,EASX;IACnB,OAAO,KAAKC,KAAL,CACJC,OADI,CACI;MACPC,MAAM,EAAE,KADD;MAEPC,GAAG,YAAKJ,KAAK,CAACK,GAAX;IAFI,CADJ,EAKJC,IALI,CAKC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACC,I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ACEY,cA1FgC,0BA0FjBjB,KA1FiB,EA0FV;IACpB,OAAO,KAAKC,KAAL,CAAWC,OAAX,CAAmB;MACxBC,MAAM,EAAE,MADgB;MAExBC,GAAG,YAAKJ,KAAK,CAACK,GAAX;IAFqB,CAAnB,CAAP;EAID,CA/F+B;;EAiGhC;AACF;AACA;AACA;AACA;AACA;AACA;EACEa,SAxGgC,qBAwGtBlB,KAxGsB,EAwGJ;IAAA,IAAXmB,KAAW,uEAAH,CAAG;IAC1B,OAAO,KAAKlB,KAAL,CAAWC,OAAX,CAAmB;MACxBC,MAAM,EAAE,MADgB;MAExBC,GAAG,YAAKJ,KAAK,CAACK,GAAX,qCAFqB;MAGxBG,IAAI,EAAE;QACJW,KAAK,EAALA;MADI;IAHkB,CAAnB,CAAP;EAOD,CAhH+B;EAAA;AAAA,CAAnB,CAAf;;eAmHexB,M"}
1
+ {"version":3,"names":["Device","WebexPlugin","extend","namespace","getAudioState","space","webex","request","method","uri","url","then","res","body","putAudioState","audioState","deviceUrl","reject","Error","mute","unmute","increaseVolume","decreaseVolume","setVolume","level"],"sources":["device.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Device = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Gets the audio state of the device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraAudioState>} {volume, microphones, url}\n */\n getAudioState(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/audio`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Updates audio state for lyra device, should be called every 10 minutes or\n * when mic or volume state is changed\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {Types~LyraAudioState} audioState\n * @param {object} audioState.volume optional\n * @param {boolean} audioState.volume.level\n * @param {object} audioState.microphones optional\n * @param {boolean} audioState.microphones.muted\n * @param {string} audioState.deviceUrl\n * @returns {Promise}\n */\n putAudioState(space, audioState = {}) {\n if (!audioState.deviceUrl) {\n return Promise.reject(new Error('audioState.deviceUrl is required'));\n }\n\n return this.webex\n .request({\n method: 'PUT',\n uri: `${space.url}/audio`,\n body: audioState,\n })\n .then((res) => res.body);\n },\n\n /**\n * Mutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n mute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/mute/invoke`,\n });\n },\n\n /**\n * Unmutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n unmute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/un-mute/invoke`,\n });\n },\n\n /**\n * Increases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n increaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/increase/invoke`,\n });\n },\n\n /**\n * Decreases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n decreaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/decrease/invoke`,\n });\n },\n\n /**\n * Sets lyra device's volume but should use increase and decrease api instead\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {integer} level to be set\n * @returns {Promise}\n */\n setVolume(space, level = 0) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/set/invoke`,\n body: {\n level,\n },\n });\n },\n});\n\nexport default Device;\n"],"mappings":";;;;;;;;;AAIA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA,IAAMA,MAAM,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAChCC,SAAS,EAAE,MAAM;EAEjB;AACF;AACA;AACA;AACA;AACA;EACEC,aAAa,yBAACC,KAAK,EAAE;I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,MAAM,EAAE,MAAM;MACdC,GAAG,YAAKJ,KAAK,CAACK,GAAG;IACnB,CAAC,CAAC;EACJ,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;EACEY,cAAc,0BAACjB,KAAK,EAAE;IACpB,OAAO,IAAI,CAACC,KAAK,CAACC,OAAO,CAAC;MACxBC,MAAM,EAAE,MAAM;MACdC,GAAG,YAAKJ,KAAK,CAACK,GAAG;IACnB,CAAC,CAAC;EACJ,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEa,SAAS,qBAAClB,KAAK,EAAa;IAAA,IAAXmB,KAAK,uEAAG,CAAC;IACxB,OAAO,IAAI,CAAClB,KAAK,CAACC,OAAO,CAAC;MACxBC,MAAM,EAAE,MAAM;MACdC,GAAG,YAAKJ,KAAK,CAACK,GAAG,qCAAkC;MACnDG,IAAI,EAAE;QACJW,KAAK,EAALA;MACF;IACF,CAAC,CAAC;EACJ,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYxB,MAAM;AAAA"}
package/dist/index.js CHANGED
@@ -1,44 +1,33 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
6
-
7
5
  _Object$defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
-
11
8
  _Object$defineProperty(exports, "config", {
12
9
  enumerable: true,
13
10
  get: function get() {
14
11
  return _config.default;
15
12
  }
16
13
  });
17
-
18
14
  _Object$defineProperty(exports, "default", {
19
15
  enumerable: true,
20
16
  get: function get() {
21
17
  return _lyra.default;
22
18
  }
23
19
  });
24
-
25
20
  require("@webex/internal-plugin-mercury");
26
-
27
21
  require("@webex/internal-plugin-encryption");
28
-
29
22
  require("@webex/internal-plugin-conversation");
30
-
31
23
  require("@webex/internal-plugin-feature");
32
-
33
24
  var _webexCore = require("@webex/webex-core");
34
-
35
25
  var _lyra = _interopRequireDefault(require("./lyra"));
36
-
37
26
  var _config = _interopRequireDefault(require("./config"));
38
-
39
27
  /*!
40
28
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
41
29
  */
30
+
42
31
  (0, _webexCore.registerInternalPlugin)('lyra', _lyra.default, {
43
32
  config: _config.default
44
33
  });
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["registerInternalPlugin","Lyra","config"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport '@webex/internal-plugin-mercury';\nimport '@webex/internal-plugin-encryption';\nimport '@webex/internal-plugin-conversation';\nimport '@webex/internal-plugin-feature';\n\nimport {registerInternalPlugin} from '@webex/webex-core';\n\nimport Lyra from './lyra';\nimport config from './config';\n\nregisterInternalPlugin('lyra', Lyra, {\n config,\n});\n\nexport {default} from './lyra';\nexport {config};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AACA;;AACA;;AACA;;AAEA;;AAEA;;AACA;;AAZA;AACA;AACA;AAYA,IAAAA,iCAAA,EAAuB,MAAvB,EAA+BC,aAA/B,EAAqC;EACnCC,MAAM,EAANA;AADmC,CAArC"}
1
+ {"version":3,"names":["registerInternalPlugin","Lyra","config"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport '@webex/internal-plugin-mercury';\nimport '@webex/internal-plugin-encryption';\nimport '@webex/internal-plugin-conversation';\nimport '@webex/internal-plugin-feature';\n\nimport {registerInternalPlugin} from '@webex/webex-core';\n\nimport Lyra from './lyra';\nimport config from './config';\n\nregisterInternalPlugin('lyra', Lyra, {\n config,\n});\n\nexport {default} from './lyra';\nexport {config};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAZA;AACA;AACA;;AAYA,IAAAA,iCAAsB,EAAC,MAAM,EAAEC,aAAI,EAAE;EACnCC,MAAM,EAANA;AACF,CAAC,CAAC"}
package/dist/lyra.js CHANGED
@@ -1,24 +1,18 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
-
5
4
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
6
-
7
5
  _Object$defineProperty(exports, "__esModule", {
8
6
  value: true
9
7
  });
10
-
11
8
  exports.default = void 0;
12
-
13
9
  var _webexCore = require("@webex/webex-core");
14
-
15
10
  var _space = _interopRequireDefault(require("./space"));
16
-
17
11
  var _device = _interopRequireDefault(require("./device"));
18
-
19
12
  /*!
20
13
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
21
14
  */
15
+
22
16
  var Lyra = _webexCore.WebexPlugin.extend({
23
17
  /**
24
18
  * @typedef {Object} Endpoint
@@ -42,7 +36,6 @@ var Lyra = _webexCore.WebexPlugin.extend({
42
36
  space: _space.default,
43
37
  device: _device.default
44
38
  },
45
-
46
39
  /**
47
40
  * Get the endpoint information
48
41
  * @param {string} token - ultrasound token decoded
@@ -60,9 +53,8 @@ var Lyra = _webexCore.WebexPlugin.extend({
60
53
  return res.body;
61
54
  });
62
55
  },
63
- version: "3.0.0-beta.15"
56
+ version: "3.0.0-beta.150"
64
57
  });
65
-
66
58
  var _default = Lyra;
67
59
  exports.default = _default;
68
60
  //# sourceMappingURL=lyra.js.map
package/dist/lyra.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Lyra","WebexPlugin","extend","namespace","children","space","Space","device","Device","getAdvertisedEndpoint","token","webex","request","method","api","resource","qs","then","res","body"],"sources":["lyra.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\nimport Space from './space';\nimport Device from './device';\n\nconst Lyra = WebexPlugin.extend({\n /**\n * @typedef {Object} Endpoint\n * @property {Object} advertiser\n * @property {string} advertiser.id\n * @property {string} advertiser.displayName\n * @property {string} advertiser.orgId\n * @property {Object} links\n * @property {Object} links.addMeToSpace\n * @property {string} links.addMeToSpace.href\n * @property {string} links.addMeToSpace.method\n * @property {Object} links.lyra_space\n * @property {string} links.lyra_space.href\n * @property {string} links.lyra_space.method\n * @property {string} proof\n * @property {Object} token\n * @property {string} token.value\n */\n namespace: 'Lyra',\n children: {\n space: Space,\n device: Device,\n },\n\n /**\n * Get the endpoint information\n * @param {string} token - ultrasound token decoded\n * @returns {Promise<Endpoint>}\n */\n getAdvertisedEndpoint(token) {\n return this.webex\n .request({\n method: 'GET',\n api: 'proximity',\n resource: '/ultrasound/advertisements',\n qs: {\n token,\n },\n })\n .then((res) => res.body);\n },\n});\n\nexport default Lyra;\n"],"mappings":";;;;;;;;;;;;AAIA;;AAEA;;AACA;;AAPA;AACA;AACA;AAOA,IAAMA,IAAI,GAAGC,sBAAA,CAAYC,MAAZ,CAAmB;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAE,MAlBmB;EAmB9BC,QAAQ,EAAE;IACRC,KAAK,EAAEC,cADC;IAERC,MAAM,EAAEC;EAFA,CAnBoB;;EAwB9B;AACF;AACA;AACA;AACA;EACEC,qBA7B8B,iCA6BRC,KA7BQ,EA6BD;IAC3B,OAAO,KAAKC,KAAL,CACJC,OADI,CACI;MACPC,MAAM,EAAE,KADD;MAEPC,GAAG,EAAE,WAFE;MAGPC,QAAQ,EAAE,4BAHH;MAIPC,EAAE,EAAE;QACFN,KAAK,EAALA;MADE;IAJG,CADJ,EASJO,IATI,CASC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACC,IAAb;IAAA,CATD,CAAP;EAUD,CAxC6B;EAAA;AAAA,CAAnB,CAAb;;eA2CenB,I"}
1
+ {"version":3,"names":["Lyra","WebexPlugin","extend","namespace","children","space","Space","device","Device","getAdvertisedEndpoint","token","webex","request","method","api","resource","qs","then","res","body"],"sources":["lyra.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\nimport Space from './space';\nimport Device from './device';\n\nconst Lyra = WebexPlugin.extend({\n /**\n * @typedef {Object} Endpoint\n * @property {Object} advertiser\n * @property {string} advertiser.id\n * @property {string} advertiser.displayName\n * @property {string} advertiser.orgId\n * @property {Object} links\n * @property {Object} links.addMeToSpace\n * @property {string} links.addMeToSpace.href\n * @property {string} links.addMeToSpace.method\n * @property {Object} links.lyra_space\n * @property {string} links.lyra_space.href\n * @property {string} links.lyra_space.method\n * @property {string} proof\n * @property {Object} token\n * @property {string} token.value\n */\n namespace: 'Lyra',\n children: {\n space: Space,\n device: Device,\n },\n\n /**\n * Get the endpoint information\n * @param {string} token - ultrasound token decoded\n * @returns {Promise<Endpoint>}\n */\n getAdvertisedEndpoint(token) {\n return this.webex\n .request({\n method: 'GET',\n api: 'proximity',\n resource: '/ultrasound/advertisements',\n qs: {\n token,\n },\n })\n .then((res) => res.body);\n },\n});\n\nexport default Lyra;\n"],"mappings":";;;;;;;;AAIA;AAEA;AACA;AAPA;AACA;AACA;;AAOA,IAAMA,IAAI,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAE,MAAM;EACjBC,QAAQ,EAAE;IACRC,KAAK,EAAEC,cAAK;IACZC,MAAM,EAAEC;EACV,CAAC;EAED;AACF;AACA;AACA;AACA;EACEC,qBAAqB,iCAACC,KAAK,EAAE;IAC3B,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,EAAE,WAAW;MAChBC,QAAQ,EAAE,4BAA4B;MACtCC,EAAE,EAAE;QACFN,KAAK,EAALA;MACF;IACF,CAAC,CAAC,CACDO,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI;IAAA,EAAC;EAC5B,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYnB,IAAI;AAAA"}
package/dist/space.js CHANGED
@@ -1,39 +1,23 @@
1
1
  "use strict";
2
2
 
3
3
  var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys");
4
-
5
4
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
6
-
7
5
  var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
8
-
9
6
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
10
-
11
7
  var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
12
-
13
8
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
14
-
15
9
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
16
-
17
10
  _Object$defineProperty(exports, "__esModule", {
18
11
  value: true
19
12
  });
20
-
21
13
  exports.default = void 0;
22
-
23
14
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
24
-
25
15
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
26
-
27
16
  var _querystring = _interopRequireDefault(require("querystring"));
28
-
29
17
  var _webexCore = require("@webex/webex-core");
30
-
31
18
  var _common = require("@webex/common");
32
-
33
19
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
34
-
35
20
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
36
-
37
21
  /**
38
22
  * @class
39
23
  * @extends {Lyra}
@@ -41,7 +25,6 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
41
25
  */
42
26
  var Space = _webexCore.WebexPlugin.extend({
43
27
  namespace: 'Lyra',
44
-
45
28
  /**
46
29
  * Lists lyra spaces associated with user
47
30
  *
@@ -56,7 +39,6 @@ var Space = _webexCore.WebexPlugin.extend({
56
39
  return res.body.items;
57
40
  });
58
41
  },
59
-
60
42
  /**
61
43
  * Retrieves a lyra space info
62
44
  * @param {Types~LyraSpace} space
@@ -67,11 +49,9 @@ var Space = _webexCore.WebexPlugin.extend({
67
49
  get: function get() {
68
50
  var space = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
69
51
  var spaceId = space.id || space.identity && space.identity.id;
70
-
71
52
  if (!spaceId) {
72
53
  return _promise.default.reject(new Error('space.id is required'));
73
54
  }
74
-
75
55
  return this.webex.request({
76
56
  method: 'GET',
77
57
  api: 'lyra',
@@ -80,7 +60,6 @@ var Space = _webexCore.WebexPlugin.extend({
80
60
  return res.body;
81
61
  });
82
62
  },
83
-
84
63
  /**
85
64
  * Joins a lyra space, update every 10 minutes to keep alive for MANUAL
86
65
  * @param {Types~LyraSpace} space
@@ -101,17 +80,15 @@ var Space = _webexCore.WebexPlugin.extend({
101
80
  },
102
81
  deviceUrl: this.webex.internal.device.url
103
82
  };
104
-
105
83
  if (options.data) {
106
84
  body.pass.data = options.data;
107
85
  }
108
-
109
86
  if (options.verificationInitiation) {
110
87
  body.verificationInitiation = options.verificationInitiation;
111
- } // if options.uri is available use it, since that would have the
112
- // complete lyra service URL
113
-
88
+ }
114
89
 
90
+ // if options.uri is available use it, since that would have the
91
+ // complete lyra service URL
115
92
  if (options.uri) {
116
93
  return this.webex.request({
117
94
  method: 'PUT',
@@ -119,7 +96,6 @@ var Space = _webexCore.WebexPlugin.extend({
119
96
  body: body
120
97
  });
121
98
  }
122
-
123
99
  return this.webex.request({
124
100
  method: 'PUT',
125
101
  api: 'lyra',
@@ -127,7 +103,6 @@ var Space = _webexCore.WebexPlugin.extend({
127
103
  body: body
128
104
  });
129
105
  },
130
-
131
106
  /**
132
107
  * Leaves a lyra space
133
108
  * @param {Types~LyraSpace} space
@@ -140,21 +115,18 @@ var Space = _webexCore.WebexPlugin.extend({
140
115
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
141
116
  // all devices are removed by default (when deviceUrl is not supplied)
142
117
  var uri = "".concat(space.url, "/occupants/@me");
143
-
144
118
  if (!options.removeAllDevices) {
145
119
  var params = {
146
120
  deviceUrl: _common.base64.toBase64Url(this.webex.internal.device.url)
147
121
  };
148
122
  uri += "?".concat(_querystring.default.stringify(params));
149
123
  }
150
-
151
124
  return this.webex.request({
152
125
  method: 'DELETE',
153
126
  api: 'lyra',
154
127
  resource: uri
155
128
  });
156
129
  },
157
-
158
130
  /**
159
131
  * Verifies a space occupant (to be used by the lyra device)
160
132
  * @param {Types~LyraSpace} space
@@ -174,7 +146,6 @@ var Space = _webexCore.WebexPlugin.extend({
174
146
  body: body
175
147
  });
176
148
  },
177
-
178
149
  /**
179
150
  * Gets the state of bindings in this Lyra space
180
151
  * @param {Types~LyraSpace} space
@@ -189,7 +160,6 @@ var Space = _webexCore.WebexPlugin.extend({
189
160
  return res.body;
190
161
  });
191
162
  },
192
-
193
163
  /**
194
164
  * Binds a conversation to lyra space
195
165
  * @param {Types~LyraSpace} space
@@ -205,28 +175,22 @@ var Space = _webexCore.WebexPlugin.extend({
205
175
  */
206
176
  bindConversation: function bindConversation() {
207
177
  var _this = this;
208
-
209
178
  var space = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
210
179
  var conversation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
211
180
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
212
181
  var spaceId = space.id || space.identity && space.identity.id;
213
-
214
182
  if (!space.url) {
215
183
  return _promise.default.reject(new Error('space.url is required'));
216
184
  }
217
-
218
185
  if (!spaceId) {
219
186
  return _promise.default.reject(new Error('space.id is required'));
220
187
  }
221
-
222
188
  if (!conversation.kmsResourceObjectUrl) {
223
189
  return _promise.default.reject(new Error('conversation.kmsResourceObjectUrl is required'));
224
190
  }
225
-
226
191
  if (!conversation.url) {
227
192
  return _promise.default.reject(new Error('conversation.url is required'));
228
193
  }
229
-
230
194
  var body = {
231
195
  kmsMessage: {
232
196
  method: 'create',
@@ -239,23 +203,22 @@ var Space = _webexCore.WebexPlugin.extend({
239
203
  var request = {
240
204
  method: 'POST',
241
205
  body: body
242
- }; // if options.uri is available use it, since that would have the
243
- // complete lyra service URL
206
+ };
244
207
 
208
+ // if options.uri is available use it, since that would have the
209
+ // complete lyra service URL
245
210
  if (options.uri) {
246
211
  request.uri = options.uri;
247
212
  } else {
248
213
  request.api = 'lyra';
249
214
  request.resource = "".concat(space.url, "/bindings");
250
215
  }
251
-
252
216
  return this._bindConversation(spaceId).then(function () {
253
217
  return _this.webex.request(request);
254
218
  }).then(function (res) {
255
219
  return res.body;
256
220
  });
257
221
  },
258
-
259
222
  /**
260
223
  * Binds a conversation to lyra space by posting capabilities to Lyra.
261
224
  *
@@ -266,12 +229,11 @@ var Space = _webexCore.WebexPlugin.extend({
266
229
  */
267
230
  _bindConversation: function _bindConversation(spaceId) {
268
231
  // Skip until we can bind a conversation to lyra space by posting capabilities to Lyra.
269
-
270
232
  /* eslint no-unreachable: 1 */
271
- return _promise.default.resolve(); // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities
233
+ return _promise.default.resolve();
272
234
 
235
+ // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities
273
236
  var encodedDeviceUrl = _common.base64.encode(this.webex.internal.device.url);
274
-
275
237
  var resource = "spaces/".concat(spaceId, "/devices/").concat(encodedDeviceUrl, "/capabilities");
276
238
  return this.webex.request({
277
239
  method: 'PUT',
@@ -282,7 +244,6 @@ var Space = _webexCore.WebexPlugin.extend({
282
244
  }
283
245
  });
284
246
  },
285
-
286
247
  /**
287
248
  * Removes binding between a conversation and a lyra space using conversation
288
249
  * url
@@ -299,28 +260,22 @@ var Space = _webexCore.WebexPlugin.extend({
299
260
  */
300
261
  unbindConversation: function unbindConversation() {
301
262
  var _this2 = this;
302
-
303
263
  var space = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
304
264
  var conversation = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
305
265
  var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
306
266
  var spaceId = space.id || space.identity && space.identity.id;
307
-
308
267
  if (!space.url) {
309
268
  return _promise.default.reject(new Error('space.url is required'));
310
269
  }
311
-
312
270
  if (!spaceId) {
313
271
  return _promise.default.reject(new Error('space.id is required'));
314
272
  }
315
-
316
273
  if (!conversation.url) {
317
274
  return _promise.default.reject(new Error('conversation.url is required'));
318
275
  }
319
-
320
276
  if (!conversation.kmsResourceObjectUrl) {
321
277
  return _promise.default.reject(new Error('conversation.kmsResourceObjectUrl is required'));
322
278
  }
323
-
324
279
  var parameters = {
325
280
  kmsMessage: {
326
281
  method: 'delete',
@@ -331,16 +286,15 @@ var Space = _webexCore.WebexPlugin.extend({
331
286
  conversationUrl: _common.base64.toBase64Url(conversation.url)
332
287
  };
333
288
  return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then(function (req) {
334
- parameters.kmsMessage = req.wrapped; // if options.uri is available use it, since that would have the
289
+ parameters.kmsMessage = req.wrapped;
290
+ // if options.uri is available use it, since that would have the
335
291
  // complete lyra service URL
336
-
337
292
  if (options.uri) {
338
293
  return _this2.webex.request({
339
294
  method: 'DELETE',
340
295
  uri: "".concat(options.uri, "?").concat(_querystring.default.stringify(parameters))
341
296
  });
342
297
  }
343
-
344
298
  return _this2.webex.request({
345
299
  method: 'DELETE',
346
300
  api: 'lyra',
@@ -348,7 +302,6 @@ var Space = _webexCore.WebexPlugin.extend({
348
302
  });
349
303
  });
350
304
  },
351
-
352
305
  /**
353
306
  * Delete a binding using binding id
354
307
  * @param {Types~LyraSpace} space
@@ -361,27 +314,21 @@ var Space = _webexCore.WebexPlugin.extend({
361
314
  */
362
315
  deleteBinding: function deleteBinding() {
363
316
  var _this3 = this;
364
-
365
317
  var space = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
366
318
  var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
367
319
  var spaceId = space.id || space.identity && space.identity.id;
368
-
369
320
  if (!space.url) {
370
321
  return _promise.default.reject(new Error('space.url is required'));
371
322
  }
372
-
373
323
  if (!spaceId) {
374
324
  return _promise.default.reject(new Error('space.id is required'));
375
325
  }
376
-
377
326
  if (!options.kmsResourceObjectUrl) {
378
327
  return _promise.default.reject(new Error('options.kmsResourceObjectUrl is required'));
379
328
  }
380
-
381
329
  if (!options.bindingId) {
382
330
  return _promise.default.reject(new Error('options.bindingId is required'));
383
331
  }
384
-
385
332
  var parameters = {
386
333
  kmsMessage: {
387
334
  method: 'delete',
@@ -398,9 +345,8 @@ var Space = _webexCore.WebexPlugin.extend({
398
345
  });
399
346
  });
400
347
  },
401
- version: "3.0.0-beta.15"
348
+ version: "3.0.0-beta.150"
402
349
  });
403
-
404
350
  var _default = Space;
405
351
  exports.default = _default;
406
352
  //# sourceMappingURL=space.js.map
package/dist/space.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Space","WebexPlugin","extend","namespace","list","webex","request","method","api","resource","then","res","body","items","get","space","spaceId","id","identity","reject","Error","join","options","passType","pass","type","deviceUrl","internal","device","url","data","verificationInitiation","uri","leave","removeAllDevices","params","base64","toBase64Url","querystring","stringify","verifyOccupant","occupantId","getCurrentBindings","bindConversation","conversation","kmsResourceObjectUrl","kmsMessage","resourceUri","userIds","conversationUrl","_bindConversation","resolve","encodedDeviceUrl","encode","bindingCleanupAfterCall","unbindConversation","parameters","authId","encryption","kms","prepareRequest","req","wrapped","deleteBinding","bindingId"],"sources":["space.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport querystring from 'querystring';\n\nimport {WebexPlugin} from '@webex/webex-core';\nimport {base64} from '@webex/common';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Space = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Lists lyra spaces associated with user\n *\n * @returns {Promise<Array>} spaces\n */\n list() {\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: '/spaces',\n })\n .then((res) => res.body.items);\n },\n\n /**\n * Retrieves a lyra space info\n * @param {Types~LyraSpace} space\n * @param {string} space.id\n * @param {string} space.identity.id\n * @returns {Promise<LyraSpace>} response body\n */\n get(space = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: `/spaces/${spaceId}`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Joins a lyra space, update every 10 minutes to keep alive for MANUAL\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {string} options.passType\n * @param {string} options.data additional data such as proof for ultrasound\n * @param {string} options.uri use a custom uri\n * @returns {Promise}\n */\n join(space, options) {\n options = {\n passType: 'MANUAL',\n ...options,\n };\n\n const body = {\n pass: {\n type: options.passType,\n },\n deviceUrl: this.webex.internal.device.url,\n };\n\n if (options.data) {\n body.pass.data = options.data;\n }\n\n if (options.verificationInitiation) {\n body.verificationInitiation = options.verificationInitiation;\n }\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'PUT',\n uri: options.uri,\n body,\n });\n }\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource: `${space.url}/occupants/@me`,\n body,\n });\n },\n\n /**\n * Leaves a lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {boolean} options.removeAllDevices remove all devices of current user also\n * @returns {Promise}\n */\n leave(space, options = {}) {\n // all devices are removed by default (when deviceUrl is not supplied)\n let uri = `${space.url}/occupants/@me`;\n\n if (!options.removeAllDevices) {\n const params = {\n deviceUrl: base64.toBase64Url(this.webex.internal.device.url),\n };\n\n uri += `?${querystring.stringify(params)}`;\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: uri,\n });\n },\n\n /**\n * Verifies a space occupant (to be used by the lyra device)\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} occupantId id of user to verify\n * @returns {Promise}\n */\n verifyOccupant(space, occupantId) {\n const body = {\n pass: {\n type: 'VERIFICATION',\n },\n };\n\n return this.webex.request({\n method: 'PUT',\n uri: `${space.url}/occupants/${occupantId}`,\n body,\n });\n },\n\n /**\n * Gets the state of bindings in this Lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraBindings>} bindings response body\n */\n getCurrentBindings(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/bindings`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n bindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n const body = {\n kmsMessage: {\n method: 'create',\n uri: '/authorizations',\n resourceUri: `${conversation.kmsResourceObjectUrl}`,\n userIds: [spaceId],\n },\n conversationUrl: conversation.url,\n };\n\n const request = {\n method: 'POST',\n body,\n };\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n request.uri = options.uri;\n } else {\n request.api = 'lyra';\n request.resource = `${space.url}/bindings`;\n }\n\n return this._bindConversation(spaceId)\n .then(() => this.webex.request(request))\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space by posting capabilities to Lyra.\n *\n * Lyra no longer automatically enables binding for a space containing a device with type \"SPARK_BOARD\".\n * Webexboard now is running the CE code stack which supports posting of capabilities to Lyra.\n * @param {String} spaceId space ID\n * @returns {Promise<LyraBindings>} bindings response body\n */\n _bindConversation(spaceId) {\n // Skip until we can bind a conversation to lyra space by posting capabilities to Lyra.\n /* eslint no-unreachable: 1 */\n return Promise.resolve();\n\n // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities\n const encodedDeviceUrl = base64.encode(this.webex.internal.device.url);\n const resource = `spaces/${spaceId}/devices/${encodedDeviceUrl}/capabilities`;\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource,\n body: {\n bindingCleanupAfterCall: true,\n },\n });\n },\n\n /**\n * Removes binding between a conversation and a lyra space using conversation\n * url\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n unbindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${conversation.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n conversationUrl: base64.toBase64Url(conversation.url),\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'DELETE',\n uri: `${options.uri}?${querystring.stringify(parameters)}`,\n });\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: `${space.url}/bindings?${querystring.stringify(parameters)}`,\n });\n });\n },\n\n /**\n * Delete a binding using binding id\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.identity.id\n * @param {object} options\n * @param {string} options.kmsResourceObjectUrl\n * @param {string} options.bindingId\n * @returns {Promise<LyraBindings>} bindings response body\n */\n deleteBinding(space = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!options.kmsResourceObjectUrl) {\n return Promise.reject(new Error('options.kmsResourceObjectUrl is required'));\n }\n\n if (!options.bindingId) {\n return Promise.reject(new Error('options.bindingId is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${options.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n\n return this.webex.request({\n method: 'DELETE',\n uri: `${space.url}/bindings/${options.bindingId}?${querystring.stringify(parameters)}`,\n });\n });\n },\n});\n\nexport default Space;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAIA;;AAEA;;AACA;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA,IAAMA,KAAK,GAAGC,sBAAA,CAAYC,MAAZ,CAAmB;EAC/BC,SAAS,EAAE,MADoB;;EAG/B;AACF;AACA;AACA;AACA;EACEC,IAR+B,kBAQxB;IACL,OAAO,KAAKC,KAAL,CACJC,OADI,CACI;MACPC,MAAM,EAAE,KADD;MAEPC,GAAG,EAAE,MAFE;MAGPC,QAAQ,EAAE;IAHH,CADJ,EAMJC,IANI,CAMC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACC,IAAJ,CAASC,KAAlB;IAAA,CAND,CAAP;EAOD,CAhB8B;;EAkB/B;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,GAzB+B,iBAyBf;IAAA,IAAZC,KAAY,uEAAJ,EAAI;IACd,IAAMC,OAAO,GAAGD,KAAK,CAACE,EAAN,IAAaF,KAAK,CAACG,QAAN,IAAkBH,KAAK,CAACG,QAAN,CAAeD,EAA9D;;IAEA,IAAI,CAACD,OAAL,EAAc;MACZ,OAAO,iBAAQG,MAAR,CAAe,IAAIC,KAAJ,CAAU,sBAAV,CAAf,CAAP;IACD;;IAED,OAAO,KAAKf,KAAL,CACJC,OADI,CACI;MACPC,MAAM,EAAE,KADD;MAEPC,GAAG,EAAE,MAFE;MAGPC,QAAQ,oBAAaO,OAAb;IAHD,CADJ,EAMJN,IANI,CAMC,UAACC,GAAD;MAAA,OAASA,GAAG,CAACC,IAAb;IAAA,CAND,CAAP;EAOD,CAvC8B;;EAyC/B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACES,IAnD+B,gBAmD1BN,KAnD0B,EAmDnBO,OAnDmB,EAmDV;IACnB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AYC,SAAZ,CAAsBiB,UAAtB,CAAhD;MAFqB,CAAnB,CAAP;IAID,CAPM,CAAP;EAQD,CA7V8B;EAAA;AAAA,CAAnB,CAAd;;eAgWexD,K"}
1
+ {"version":3,"names":["Space","WebexPlugin","extend","namespace","list","webex","request","method","api","resource","then","res","body","items","get","space","spaceId","id","identity","reject","Error","join","options","passType","pass","type","deviceUrl","internal","device","url","data","verificationInitiation","uri","leave","removeAllDevices","params","base64","toBase64Url","querystring","stringify","verifyOccupant","occupantId","getCurrentBindings","bindConversation","conversation","kmsResourceObjectUrl","kmsMessage","resourceUri","userIds","conversationUrl","_bindConversation","resolve","encodedDeviceUrl","encode","bindingCleanupAfterCall","unbindConversation","parameters","authId","encryption","kms","prepareRequest","req","wrapped","deleteBinding","bindingId"],"sources":["space.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport querystring from 'querystring';\n\nimport {WebexPlugin} from '@webex/webex-core';\nimport {base64} from '@webex/common';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Space = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Lists lyra spaces associated with user\n *\n * @returns {Promise<Array>} spaces\n */\n list() {\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: '/spaces',\n })\n .then((res) => res.body.items);\n },\n\n /**\n * Retrieves a lyra space info\n * @param {Types~LyraSpace} space\n * @param {string} space.id\n * @param {string} space.identity.id\n * @returns {Promise<LyraSpace>} response body\n */\n get(space = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: `/spaces/${spaceId}`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Joins a lyra space, update every 10 minutes to keep alive for MANUAL\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {string} options.passType\n * @param {string} options.data additional data such as proof for ultrasound\n * @param {string} options.uri use a custom uri\n * @returns {Promise}\n */\n join(space, options) {\n options = {\n passType: 'MANUAL',\n ...options,\n };\n\n const body = {\n pass: {\n type: options.passType,\n },\n deviceUrl: this.webex.internal.device.url,\n };\n\n if (options.data) {\n body.pass.data = options.data;\n }\n\n if (options.verificationInitiation) {\n body.verificationInitiation = options.verificationInitiation;\n }\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'PUT',\n uri: options.uri,\n body,\n });\n }\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource: `${space.url}/occupants/@me`,\n body,\n });\n },\n\n /**\n * Leaves a lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {boolean} options.removeAllDevices remove all devices of current user also\n * @returns {Promise}\n */\n leave(space, options = {}) {\n // all devices are removed by default (when deviceUrl is not supplied)\n let uri = `${space.url}/occupants/@me`;\n\n if (!options.removeAllDevices) {\n const params = {\n deviceUrl: base64.toBase64Url(this.webex.internal.device.url),\n };\n\n uri += `?${querystring.stringify(params)}`;\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: uri,\n });\n },\n\n /**\n * Verifies a space occupant (to be used by the lyra device)\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} occupantId id of user to verify\n * @returns {Promise}\n */\n verifyOccupant(space, occupantId) {\n const body = {\n pass: {\n type: 'VERIFICATION',\n },\n };\n\n return this.webex.request({\n method: 'PUT',\n uri: `${space.url}/occupants/${occupantId}`,\n body,\n });\n },\n\n /**\n * Gets the state of bindings in this Lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraBindings>} bindings response body\n */\n getCurrentBindings(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/bindings`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n bindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n const body = {\n kmsMessage: {\n method: 'create',\n uri: '/authorizations',\n resourceUri: `${conversation.kmsResourceObjectUrl}`,\n userIds: [spaceId],\n },\n conversationUrl: conversation.url,\n };\n\n const request = {\n method: 'POST',\n body,\n };\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n request.uri = options.uri;\n } else {\n request.api = 'lyra';\n request.resource = `${space.url}/bindings`;\n }\n\n return this._bindConversation(spaceId)\n .then(() => this.webex.request(request))\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space by posting capabilities to Lyra.\n *\n * Lyra no longer automatically enables binding for a space containing a device with type \"SPARK_BOARD\".\n * Webexboard now is running the CE code stack which supports posting of capabilities to Lyra.\n * @param {String} spaceId space ID\n * @returns {Promise<LyraBindings>} bindings response body\n */\n _bindConversation(spaceId) {\n // Skip until we can bind a conversation to lyra space by posting capabilities to Lyra.\n /* eslint no-unreachable: 1 */\n return Promise.resolve();\n\n // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities\n const encodedDeviceUrl = base64.encode(this.webex.internal.device.url);\n const resource = `spaces/${spaceId}/devices/${encodedDeviceUrl}/capabilities`;\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource,\n body: {\n bindingCleanupAfterCall: true,\n },\n });\n },\n\n /**\n * Removes binding between a conversation and a lyra space using conversation\n * url\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n unbindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${conversation.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n conversationUrl: base64.toBase64Url(conversation.url),\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'DELETE',\n uri: `${options.uri}?${querystring.stringify(parameters)}`,\n });\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: `${space.url}/bindings?${querystring.stringify(parameters)}`,\n });\n });\n },\n\n /**\n * Delete a binding using binding id\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.identity.id\n * @param {object} options\n * @param {string} options.kmsResourceObjectUrl\n * @param {string} options.bindingId\n * @returns {Promise<LyraBindings>} bindings response body\n */\n deleteBinding(space = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!options.kmsResourceObjectUrl) {\n return Promise.reject(new Error('options.kmsResourceObjectUrl is required'));\n }\n\n if (!options.bindingId) {\n return Promise.reject(new Error('options.bindingId is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${options.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n\n return this.webex.request({\n method: 'DELETE',\n uri: `${space.url}/bindings/${options.bindingId}?${querystring.stringify(parameters)}`,\n });\n });\n },\n});\n\nexport default Space;\n"],"mappings":";;;;;;;;;;;;;;;AAIA;AAEA;AACA;AAAqC;AAAA;AAErC;AACA;AACA;AACA;AACA;AACA,IAAMA,KAAK,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE,MAAM;EAEjB;AACF;AACA;AACA;AACA;EACEC,IAAI,kBAAG;IACL,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,EAAE,MAAM;MACXC,QAAQ,EAAE;IACZ,CAAC,CAAC,CACDC,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI,CAACC,KAAK;IAAA,EAAC;EAClC,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,GAAG,iBAAa;IAAA,IAAZC,KAAK,uEAAG,CAAC,CAAC;IACZ,IAAMC,OAAO,GAAGD,KAAK,CAACE,EAAE,IAAKF,KAAK,CAACG,QAAQ,IAAIH,KAAK,CAACG,QAAQ,CAACD,EAAG;IAEjE,IAAI,CAACD,OAAO,EAAE;MACZ,OAAO,iBAAQG,MAAM,CAAC,IAAIC,KAAK,CAAC,sBAAsB,CAAC,CAAC;IAC1D;IAEA,OAAO,IAAI,CAACf,KAAK,CACdC,OAAO,C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QAAQ;QAChByB,GAAG,YAAKjB,KAAK,CAACc,GAAG,uBAAaP,OAAO,CAAC0C,SAAS,cAAI1B,oBAAW,CAACC,SAAS,CAACiB,UAAU,CAAC;MACtF,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYxD,KAAK;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/internal-plugin-lyra",
3
- "version": "3.0.0-beta.15",
3
+ "version": "3.0.0-beta.150",
4
4
  "description": "",
5
5
  "license": "MIT",
6
6
  "author": "Tran Tu <tratu@cisco.com>",
@@ -22,21 +22,21 @@
22
22
  },
23
23
  "devDependencies": {
24
24
  "@ciscospark/test-users-legacy": "^1.2.0",
25
- "@webex/test-helper-chai": "3.0.0-beta.15",
26
- "@webex/test-helper-mock-webex": "3.0.0-beta.15",
27
- "@webex/test-helper-retry": "3.0.0-beta.15",
28
- "@webex/test-helper-test-users": "3.0.0-beta.15",
25
+ "@webex/test-helper-chai": "3.0.0-beta.150",
26
+ "@webex/test-helper-mock-webex": "3.0.0-beta.150",
27
+ "@webex/test-helper-retry": "3.0.0-beta.150",
28
+ "@webex/test-helper-test-users": "3.0.0-beta.150",
29
29
  "sinon": "^9.2.4"
30
30
  },
31
31
  "dependencies": {
32
- "@webex/common": "3.0.0-beta.15",
33
- "@webex/internal-plugin-conversation": "3.0.0-beta.15",
34
- "@webex/internal-plugin-encryption": "3.0.0-beta.15",
35
- "@webex/internal-plugin-feature": "3.0.0-beta.15",
36
- "@webex/internal-plugin-locus": "3.0.0-beta.15",
37
- "@webex/internal-plugin-lyra": "3.0.0-beta.15",
38
- "@webex/internal-plugin-mercury": "3.0.0-beta.15",
39
- "@webex/webex-core": "3.0.0-beta.15",
32
+ "@webex/common": "3.0.0-beta.150",
33
+ "@webex/internal-plugin-conversation": "3.0.0-beta.150",
34
+ "@webex/internal-plugin-encryption": "3.0.0-beta.150",
35
+ "@webex/internal-plugin-feature": "3.0.0-beta.150",
36
+ "@webex/internal-plugin-locus": "3.0.0-beta.150",
37
+ "@webex/internal-plugin-lyra": "3.0.0-beta.150",
38
+ "@webex/internal-plugin-mercury": "3.0.0-beta.150",
39
+ "@webex/webex-core": "3.0.0-beta.150",
40
40
  "bowser": "^2.11.0",
41
41
  "uuid": "^3.3.2"
42
42
  }