@alwaysmeticulous/api 2.218.2 → 2.219.0
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.
|
@@ -57,6 +57,10 @@ export interface SessionData {
|
|
|
57
57
|
*/
|
|
58
58
|
requestsBeforeNetworkRecordingStarted?: EarlyRequest[];
|
|
59
59
|
applicationSpecificData?: ApplicationSpecificData;
|
|
60
|
+
/**
|
|
61
|
+
* Only present on recordings since ~May 2025.
|
|
62
|
+
*/
|
|
63
|
+
context?: SessionContext;
|
|
60
64
|
}
|
|
61
65
|
export interface WindowData {
|
|
62
66
|
startUrl: string;
|
|
@@ -207,6 +211,10 @@ export type CustomUserEvent = {
|
|
|
207
211
|
data: string;
|
|
208
212
|
};
|
|
209
213
|
export declare enum CustomDataSingletonInternalKey {
|
|
214
|
+
/**
|
|
215
|
+
* The preferred color scheme of the device on which the session was recorded.
|
|
216
|
+
* Present on recordings since ~Jan 2025.
|
|
217
|
+
*/
|
|
210
218
|
SystemThemePreferredColor = "met-system-theme-preferred-color",
|
|
211
219
|
/**
|
|
212
220
|
* System timezone of the browser the session was recorded on. This is an IANA timezone string,
|
|
@@ -226,13 +234,20 @@ export declare enum CustomDataSingletonInternalKey {
|
|
|
226
234
|
* The user agent of the browser the session was recorded on. As returned by `navigator.userAgent`.
|
|
227
235
|
* Present on recordings since ~May 2025.
|
|
228
236
|
*/
|
|
229
|
-
UserAgent = "met-user-agent"
|
|
237
|
+
UserAgent = "met-user-agent",
|
|
238
|
+
/**
|
|
239
|
+
* When recording custom data, we don't abandon the recording if we encounter an object that is too large to serialize.
|
|
240
|
+
* However, we still want to track if this happens so we can surface a warning in the UI.
|
|
241
|
+
* Present on recordings since ~May 2025.
|
|
242
|
+
*/
|
|
243
|
+
CustomObjectTooLargeToSerialize = "met-custom-object-too-large-to-serialize"
|
|
230
244
|
}
|
|
231
245
|
export type CustomDataSingletonInternalValues = {
|
|
232
246
|
[CustomDataSingletonInternalKey.SystemThemePreferredColor]: "light" | "dark";
|
|
233
247
|
[CustomDataSingletonInternalKey.TimezoneName]: string;
|
|
234
248
|
[CustomDataSingletonInternalKey.Languages]: string;
|
|
235
249
|
[CustomDataSingletonInternalKey.UserAgent]: string;
|
|
250
|
+
[CustomDataSingletonInternalKey.CustomObjectTooLargeToSerialize]: "singleton" | "array" | "event" | "context" | "feature-flag" | "user-id" | "user-email";
|
|
236
251
|
};
|
|
237
252
|
export type CustomData = {
|
|
238
253
|
singletons: Record<string, string> & Partial<CustomDataSingletonInternalValues>;
|
|
@@ -241,10 +256,6 @@ export type CustomData = {
|
|
|
241
256
|
* Only present on recordings since ~November 2024.
|
|
242
257
|
*/
|
|
243
258
|
events?: CustomUserEvent[];
|
|
244
|
-
/**
|
|
245
|
-
* Only present on recordings since ~May 2025.
|
|
246
|
-
*/
|
|
247
|
-
context?: SessionContext;
|
|
248
259
|
};
|
|
249
260
|
export type SessionContext = {
|
|
250
261
|
customContext: Record<string, string | boolean>;
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CustomDataSingletonInternalKey = void 0;
|
|
4
4
|
var CustomDataSingletonInternalKey;
|
|
5
5
|
(function (CustomDataSingletonInternalKey) {
|
|
6
|
+
/**
|
|
7
|
+
* The preferred color scheme of the device on which the session was recorded.
|
|
8
|
+
* Present on recordings since ~Jan 2025.
|
|
9
|
+
*/
|
|
6
10
|
CustomDataSingletonInternalKey["SystemThemePreferredColor"] = "met-system-theme-preferred-color";
|
|
7
11
|
/**
|
|
8
12
|
* System timezone of the browser the session was recorded on. This is an IANA timezone string,
|
|
@@ -23,5 +27,11 @@ var CustomDataSingletonInternalKey;
|
|
|
23
27
|
* Present on recordings since ~May 2025.
|
|
24
28
|
*/
|
|
25
29
|
CustomDataSingletonInternalKey["UserAgent"] = "met-user-agent";
|
|
30
|
+
/**
|
|
31
|
+
* When recording custom data, we don't abandon the recording if we encounter an object that is too large to serialize.
|
|
32
|
+
* However, we still want to track if this happens so we can surface a warning in the UI.
|
|
33
|
+
* Present on recordings since ~May 2025.
|
|
34
|
+
*/
|
|
35
|
+
CustomDataSingletonInternalKey["CustomObjectTooLargeToSerialize"] = "met-custom-object-too-large-to-serialize";
|
|
26
36
|
})(CustomDataSingletonInternalKey = exports.CustomDataSingletonInternalKey || (exports.CustomDataSingletonInternalKey = {}));
|
|
27
37
|
//# sourceMappingURL=session-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AAgPA,IAAY,8BAmCX;AAnCD,WAAY,8BAA8B;IACxC;;;OAGG;IACH,gGAA8D,CAAA;IAE9D;;;;;OAKG;IACH,oEAAkC,CAAA;IAElC;;;;;OAKG;IACH,6DAA2B,CAAA;IAE3B;;;OAGG;IACH,8DAA4B,CAAA;IAE5B;;;;OAIG;IACH,8GAA4E,CAAA;AAC9E,CAAC,EAnCW,8BAA8B,GAA9B,sCAA8B,KAA9B,sCAA8B,QAmCzC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/api",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.219.0",
|
|
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": "
|
|
38
|
+
"gitHead": "e0581710957fd5b4469d376e6e850ec182348894"
|
|
39
39
|
}
|