@alwaysmeticulous/api 2.218.1 → 2.218.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.
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ export { TestRunChunkStatus } from "./replay/test-run-chunk.types";
6
6
  export * from "./sdk-bundle-api/sdk-to-bundle/test-run-environment";
7
7
  export { ReplayableEvent } from "./sdk-bundle-api/bidirectional/replayable-event";
8
8
  export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk-to-bundle/har-log";
9
- export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreSnapshot, IDBObjectStoreWithEntries, IDBIndexSnapshot, CustomDataSingletonInternalKey, CustomDataSingletonInternalValues, CustomData, CustomUserEvent, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
9
+ export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreSnapshot, IDBObjectStoreWithEntries, IDBIndexSnapshot, CustomDataSingletonInternalKey, CustomDataSingletonInternalValues, CustomData, CustomUserEvent, SessionContext, } from "./sdk-bundle-api/sdk-to-bundle/session-data";
10
10
  export { SequenceNumber, WebSocketConnectionData, WebSocketConnectionEvent, WebSocketConnectionCreatedEvent, WebSocketConnectionOpenedEvent, EncodedArrayBuffer, EncodedBlob, WebSocketConnectionMessageEvent, WebSocketConnectionErrorEvent, WebSocketConnectionClosedEvent, } from "./sdk-bundle-api/sdk-to-bundle/websocket-data";
11
11
  export { Replay } from "./replay/replay.types";
12
12
  export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAsBA,0DAOiC;AAN/B,kHAAA,gBAAgB,OAAA;AAQlB,sFAAoE;AAQpE,4EAiBqD;AAJnD,8HAAA,8BAA8B,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAsBA,0DAOiC;AAN/B,kHAAA,gBAAgB,OAAA;AAQlB,sFAAoE;AAQpE,4EAkBqD;AALnD,8HAAA,8BAA8B,OAAA"}
@@ -222,16 +222,6 @@ export declare enum CustomDataSingletonInternalKey {
222
222
  * Present on recordings since ~Feb 2025.
223
223
  */
224
224
  Languages = "met-languages",
225
- /**
226
- * The id of the logged in user (e.g. a user id from a database for the application Meticulous is testing).
227
- * This must be set by the recording application by calling `window.Meticulous.record.recordUserId(userId)`.
228
- */
229
- UserId = "met-user-id",
230
- /**
231
- * The email address of the logged in user. This must be set by the recording application
232
- * by calling `window.Meticulous.record.recordUserEmail(email)`.
233
- */
234
- UserEmail = "met-user-email",
235
225
  /**
236
226
  * The user agent of the browser the session was recorded on. As returned by `navigator.userAgent`.
237
227
  * Present on recordings since ~May 2025.
@@ -242,8 +232,6 @@ export type CustomDataSingletonInternalValues = {
242
232
  [CustomDataSingletonInternalKey.SystemThemePreferredColor]: "light" | "dark";
243
233
  [CustomDataSingletonInternalKey.TimezoneName]: string;
244
234
  [CustomDataSingletonInternalKey.Languages]: string;
245
- [CustomDataSingletonInternalKey.UserId]: string;
246
- [CustomDataSingletonInternalKey.UserEmail]: string;
247
235
  [CustomDataSingletonInternalKey.UserAgent]: string;
248
236
  };
249
237
  export type CustomData = {
@@ -253,5 +241,15 @@ export type CustomData = {
253
241
  * Only present on recordings since ~November 2024.
254
242
  */
255
243
  events?: CustomUserEvent[];
244
+ /**
245
+ * Only present on recordings since ~May 2025.
246
+ */
247
+ context?: SessionContext;
248
+ };
249
+ export type SessionContext = {
250
+ customContext: Record<string, string | boolean>;
251
+ featureFlags: Record<string, string | boolean>;
252
+ userId?: string;
253
+ userEmail?: string;
256
254
  };
257
255
  export {};
@@ -18,16 +18,6 @@ var CustomDataSingletonInternalKey;
18
18
  * Present on recordings since ~Feb 2025.
19
19
  */
20
20
  CustomDataSingletonInternalKey["Languages"] = "met-languages";
21
- /**
22
- * The id of the logged in user (e.g. a user id from a database for the application Meticulous is testing).
23
- * This must be set by the recording application by calling `window.Meticulous.record.recordUserId(userId)`.
24
- */
25
- CustomDataSingletonInternalKey["UserId"] = "met-user-id";
26
- /**
27
- * The email address of the logged in user. This must be set by the recording application
28
- * by calling `window.Meticulous.record.recordUserEmail(email)`.
29
- */
30
- CustomDataSingletonInternalKey["UserEmail"] = "met-user-email";
31
21
  /**
32
22
  * The user agent of the browser the session was recorded on. As returned by `navigator.userAgent`.
33
23
  * Present on recordings since ~May 2025.
@@ -1 +1 @@
1
- {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AA2OA,IAAY,8BAoCX;AApCD,WAAY,8BAA8B;IACxC,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,wDAAsB,CAAA;IAEtB;;;OAGG;IACH,8DAA4B,CAAA;IAE5B;;;OAGG;IACH,8DAA4B,CAAA;AAC9B,CAAC,EApCW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAoCzC"}
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AA2OA,IAAY,8BAwBX;AAxBD,WAAY,8BAA8B;IACxC,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,8DAA4B,CAAA;AAC9B,CAAC,EAxBW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAwBzC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.218.1",
3
+ "version": "2.218.2",
4
4
  "description": "Meticulous API types",
5
5
  "license": "ISC",
6
6
  "main": "dist/index.js",
@@ -35,5 +35,5 @@
35
35
  "bugs": {
36
36
  "url": "https://github.com/alwaysmeticulous/meticulous-sdk/issues"
37
37
  },
38
- "gitHead": "96a25d0fdd70d83e486a6d441ef32aa43c734765"
38
+ "gitHead": "90eef525202b77d58b83b1117d4b56e827e6fe72"
39
39
  }