@stackfactor/client-api 1.1.56 → 1.1.58

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/exports.js CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  shouldReturnError,
8
8
  } from "./lib/axiosClient.js";
9
9
  import aiAssistant from "./lib/aiAssistant.js";
10
+ import avatar from "./lib/avatar.js";
10
11
  import address from "./lib/address.js";
11
12
  import config from "./lib/config.js";
12
13
  import {
@@ -42,6 +43,7 @@ export {
42
43
  actionNotifications,
43
44
  address,
44
45
  aiAssistant,
46
+ avatar,
45
47
  client,
46
48
  config,
47
49
  contentGenerator,
package/lib/avatar.js CHANGED
@@ -1,14 +1,16 @@
1
1
  import { client } from "./axiosClient.js";
2
2
 
3
3
  /**
4
- * Get conversation by elementId
4
+ * Get avatar for an elementId
5
5
  * @param {String} elementId
6
- * @param {String} type
7
6
  * @param {Number} width
8
7
  * @param {Number} height
8
+ * @param {String} type
9
+ * @param {String} public
9
10
  * @param {String} name
10
11
  * @param {String} description
11
12
  * @param {Boolean} autoCreate
13
+ * @param {Boolean} publicAccess
12
14
  * @param {String} token
13
15
  * @returns {Promise}
14
16
  */
@@ -17,6 +19,7 @@ const getAvatar = (
17
19
  type,
18
20
  width,
19
21
  height,
22
+ publicAccess,
20
23
  name,
21
24
  description,
22
25
  autoCreate,
@@ -29,7 +32,12 @@ const getAvatar = (
29
32
  headers: {
30
33
  authorization: token,
31
34
  ...(autoCreate
32
- ? { autoCreate: autoCreate, name: name, description: description }
35
+ ? {
36
+ autoCreate: autoCreate,
37
+ name: name,
38
+ description: description,
39
+ public: publicAccess,
40
+ }
33
41
  : {}),
34
42
  },
35
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {