@stackfactor/client-api 1.1.15 → 1.1.16

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.
Files changed (2) hide show
  1. package/lib/aiAssistant.js +10 -2
  2. package/package.json +1 -1
@@ -91,15 +91,23 @@ const getConversationByElementId = (elementId, token) => {
91
91
 
92
92
  /**
93
93
  * Start conversation with the AI
94
- * @param {String} context
95
94
  * @param {String} elementId
96
95
  * @param {String} elementType
96
+ * @param {String} context
97
+ * @param {Boolean} autoContextRefresh
97
98
  * @param {String} token
98
99
  * @returns {Promise}
99
100
  */
100
- const startConversation = (context, elementId, elementType, token) => {
101
+ const startConversation = (
102
+ elementId,
103
+ elementType,
104
+ context,
105
+ autoContextRefresh,
106
+ token
107
+ ) => {
101
108
  return new Promise(function (resolve, reject) {
102
109
  let data = {
110
+ autoContextRefresh: autoContextRefresh,
103
111
  context: context,
104
112
  elementId: elementId,
105
113
  elementType: elementType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackfactor/client-api",
3
- "version": "1.1.15",
3
+ "version": "1.1.16",
4
4
  "description": "Node.js library for the StackFactor API",
5
5
  "main": "index.js",
6
6
  "exports": {