@ada-support/web-storage 1.4.1 → 1.4.2

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.
@@ -234,7 +234,7 @@ border: 1px solid;
234
234
  </tr>
235
235
  <tr>
236
236
  <td>messagingAuthState</td>
237
- <td>Stores the messaging authentication state (a short-lived messaging access token and its expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain.</td>
237
+ <td>Stores the messaging authentication state (its owner chatter, a short-lived messaging access token and expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain.</td>
238
238
  <td>Web Storage (functional)</td>
239
239
  <td>Persistent</td>
240
240
  </tr>
@@ -5,6 +5,7 @@ import type { AdaFunctionalStorageValue } from "./functional-storage";
5
5
  * interface up to its first `}`, so an inline object value would truncate the parse.
6
6
  */
7
7
  export interface MessagingAuthState {
8
+ ownerChatterToken?: string;
8
9
  messagingToken: string;
9
10
  messagingTokenExpiresAt: number;
10
11
  sessionRefreshToken: string;
@@ -62,7 +63,7 @@ export interface StorageValueByKey {
62
63
  "previouslyAuthenticated": boolean;
63
64
  /** Used for chatter authentication. */
64
65
  "ada-embed_session-token": string;
65
- /** Stores the messaging authentication state (a short-lived messaging access token and its expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain. */
66
+ /** Stores the messaging authentication state (its owner chatter, a short-lived messaging access token and expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain. */
66
67
  "messagingAuthState": MessagingAuthState;
67
68
  /** Used to implement Chat reconnection after an interruption. */
68
69
  "backoffTimeout": number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-support/web-storage",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "A package to provide access to Web Storage API",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -6,6 +6,7 @@ import type { AdaFunctionalStorageValue } from "./functional-storage";
6
6
  * interface up to its first `}`, so an inline object value would truncate the parse.
7
7
  */
8
8
  export interface MessagingAuthState {
9
+ ownerChatterToken?: string;
9
10
  messagingToken: string;
10
11
  messagingTokenExpiresAt: number;
11
12
  sessionRefreshToken: string;
@@ -85,7 +86,7 @@ export interface StorageValueByKey {
85
86
  /** Used for chatter authentication. */
86
87
  "ada-embed_session-token": string;
87
88
 
88
- /** Stores the messaging authentication state (a short-lived messaging access token and its expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain. */
89
+ /** Stores the messaging authentication state (its owner chatter, a short-lived messaging access token and expiry, a rotating session refresh token, and a refresh counter) used to authenticate the visitor's generative chat session with Ada. Set on the bot's Ada subdomain. */
89
90
  "messagingAuthState": MessagingAuthState;
90
91
 
91
92
  /** Used to implement Chat reconnection after an interruption. */