@ada-support/web-storage 1.3.0 → 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.
@@ -32,8 +32,11 @@ jobs:
32
32
  node-version: "20.x"
33
33
 
34
34
  # OIDC trusted publishing requires npm >= 11.5.1; the npm bundled with Node
35
- # 20 is older, so upgrade before publishing. (npm 11 itself needs Node >= 20.)
36
- - run: npm install -g npm@latest
35
+ # 20 is older, so upgrade before publishing. Pin to npm@11 (not @latest):
36
+ # npm@12 dropped Node 20 support (requires Node >= 22), so @latest now
37
+ # EBADENGINE-fails on this runner. npm@11 supports Node 20 and satisfies the
38
+ # OIDC minimum.
39
+ - run: npm install -g npm@11
37
40
 
38
41
  - run: |
39
42
  yarn install
@@ -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>
@@ -17,4 +17,7 @@ export interface AdaFunctionalStorageValue {
17
17
  proactive_conversations_shown: {
18
18
  [clientHandle: string]: string | undefined;
19
19
  };
20
+ proactive_conversations_shown_user: {
21
+ [clientHandle: string]: string | undefined;
22
+ };
20
23
  }
@@ -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.3.0",
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": {
@@ -17,4 +17,7 @@ export interface AdaFunctionalStorageValue {
17
17
  proactive_conversations_shown: {
18
18
  [clientHandle: string]: string | undefined;
19
19
  };
20
+ proactive_conversations_shown_user: {
21
+ [clientHandle: string]: string | undefined;
22
+ };
20
23
  }
@@ -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. */