@inkeep/agents-ui-js 0.15.20 → 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/embed.js +8 -8
- package/dist/types.d.ts +7 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -987,8 +987,15 @@ export declare interface InkeepBaseSettings {
|
|
|
987
987
|
/**
|
|
988
988
|
* Authentication token for the current user.
|
|
989
989
|
* Used for authenticated API requests if required.
|
|
990
|
+
* @deprecated Use getAuthToken instead for automatic token refresh on 401.
|
|
990
991
|
*/
|
|
991
992
|
userAuthToken?: string
|
|
993
|
+
/**
|
|
994
|
+
* Async callback that returns a JWT for authenticated chat sessions.
|
|
995
|
+
* When provided, the widget uses JWT-based auth instead of anonymous sessions.
|
|
996
|
+
* The callback is re-invoked automatically on 401 responses to refresh the token.
|
|
997
|
+
*/
|
|
998
|
+
getAuthToken?: () => Promise<string>
|
|
992
999
|
/**
|
|
993
1000
|
* Additional properties to be sent with analytics events.
|
|
994
1001
|
* 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",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"vite": "5.4.11",
|
|
56
56
|
"vite-bundle-visualizer": "^1.2.1",
|
|
57
57
|
"vite-plugin-dts": "4.4.0",
|
|
58
|
-
"@inkeep/agents-ui": "0.15.
|
|
58
|
+
"@inkeep/agents-ui": "0.15.21"
|
|
59
59
|
},
|
|
60
60
|
"module": "./dist/embed.js",
|
|
61
61
|
"types": "./dist/types.d.ts",
|