@inkeep/agents-ui-js-cloud 0.15.19 → 0.15.21

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/types.d.ts CHANGED
@@ -992,8 +992,15 @@ export declare interface InkeepBaseSettings {
992
992
  /**
993
993
  * Authentication token for the current user.
994
994
  * Used for authenticated API requests if required.
995
+ * @deprecated Use getAuthToken instead for automatic token refresh on 401.
995
996
  */
996
997
  userAuthToken?: string
998
+ /**
999
+ * Async callback that returns a JWT for authenticated chat sessions.
1000
+ * When provided, the widget uses JWT-based auth instead of anonymous sessions.
1001
+ * The callback is re-invoked automatically on 401 responses to refresh the token.
1002
+ */
1003
+ getAuthToken?: () => Promise<string>
997
1004
  /**
998
1005
  * Additional properties to be sent with analytics events.
999
1006
  * These properties will be merged with the event properties.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui-js-cloud",
3
- "version": "0.15.19",
3
+ "version": "0.15.21",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -38,7 +38,7 @@
38
38
  "react": "19.0.0",
39
39
  "react-dom": "19.0.0",
40
40
  "uuid": "^11.1.0",
41
- "@inkeep/agents-ui-cloud": "0.15.19"
41
+ "@inkeep/agents-ui-cloud": "0.15.21"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@biomejs/biome": "1.9.4",
@@ -56,7 +56,7 @@
56
56
  "vite": "5.4.11",
57
57
  "vite-bundle-visualizer": "^1.2.1",
58
58
  "vite-plugin-dts": "4.4.0",
59
- "@inkeep/agents-ui": "0.15.19"
59
+ "@inkeep/agents-ui": "0.15.21"
60
60
  },
61
61
  "module": "./dist/embed.js",
62
62
  "types": "./dist/types.d.ts",