@alwaysmeticulous/api 2.254.1 → 2.256.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.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,7 @@ export { HarEntry, HarLog, HarRequest, HarResponse, } from "./sdk-bundle-api/sdk
9
9
  export { Cookie, SessionData, UrlHistoryEvent, WindowData, ApplicationSpecificData, StorageEntry, EarlyRequest, SerializedIDBValidKey, IDBObjectStoreMetadata, IDBObjectStoreSnapshot, IDBObjectStoreWithEntries, IDBIndexSnapshot, CustomDataSingletonInternalKey, CustomDataSingletonInternalValues, CustomData, CustomUserEvent, SessionContext, ExpiringImage, CustomRecordingType, } 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 * from "./sdk-bundle-api/sdk-to-bundle/event-source-data";
12
+ export { StreamingFetchChunk, StreamingFetchResponseData, } from "./sdk-bundle-api/sdk-to-bundle/streaming-fetch-data";
12
13
  export { Replay } from "./replay/replay.types";
13
14
  export { ScreenshotAssertionsOptions, ScreenshotAssertionsEnabledOptions, ScreenshottingEnabledOptions, StoryboardOptions, ScreenshotDiffOptions, ElementToIgnore, CSSSelectorToIgnore, } from "./sdk-bundle-api/sdk-to-bundle/screenshotting-options";
14
15
  export { NetworkStubbingMode, StubAllRequests, StubNonSSRRequests, NoStubbing, CustomStubbing, RequestFilter, CustomTransformation, CustomTransformationWhere, } from "./sdk-bundle-api/sdk-to-bundle/network-stubbing";
@@ -18,6 +18,8 @@ export interface EndStateScreenshot extends LogicVersioned {
18
18
  type: "end-state";
19
19
  /** If unset is normal variant */
20
20
  variant?: ScreenshotVariant;
21
+ /** Optional image hash of the screenshot */
22
+ imageHash?: string;
21
23
  }
22
24
  export interface ScreenshotAfterEvent extends LogicVersioned {
23
25
  type: "after-event";
@@ -25,6 +27,8 @@ export interface ScreenshotAfterEvent extends LogicVersioned {
25
27
  eventNumber: number;
26
28
  /** If unset is normal variant */
27
29
  variant?: ScreenshotVariant;
30
+ /** Optional image hash of the screenshot */
31
+ imageHash?: string;
28
32
  }
29
33
  /**
30
34
  * normal = the original screenshot to be displayed to the user
@@ -1,6 +1,7 @@
1
1
  import { ReplayableEvent } from "../bidirectional/replayable-event";
2
2
  import { EventSourceConnectionData } from "./event-source-data";
3
3
  import { HarLog, HarResponse } from "./har-log";
4
+ import { StreamingFetchResponseData } from "./streaming-fetch-data";
4
5
  import { WebSocketConnectionData } from "./websocket-data";
5
6
  export interface SessionData {
6
7
  userEvents: {
@@ -46,6 +47,10 @@ export interface SessionData {
46
47
  * Only present on recordings since ~Oct 2025
47
48
  */
48
49
  eventSourceData?: EventSourceConnectionData[];
50
+ /**
51
+ * Only present on recordings since ~Feb 2026.
52
+ */
53
+ streamingFetchData?: StreamingFetchResponseData[];
49
54
  cookies: Cookie[];
50
55
  urlHistory: UrlHistoryEvent[];
51
56
  rrwebEvents: unknown[];
@@ -1 +1 @@
1
- {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AAoQA,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"}
1
+ {"version":3,"file":"session-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/session-data.ts"],"names":[],"mappings":";;;AA0QA,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"}
@@ -0,0 +1,26 @@
1
+ import { SequenceNumber } from "./websocket-data";
2
+ /**
3
+ * A single chunk of streamed response data from a fetch request
4
+ * using the ReadableStream API (e.g. `response.body.getReader()`).
5
+ */
6
+ export interface StreamingFetchChunk {
7
+ /** Time offset in milliseconds since the streaming response began */
8
+ offsetMs: number;
9
+ /** Base64-encoded bytes received in this chunk */
10
+ data: string;
11
+ }
12
+ /**
13
+ * Recorded data for a single streaming fetch response.
14
+ *
15
+ * Only present on recordings since ~Feb 2026.
16
+ */
17
+ export interface StreamingFetchResponseData {
18
+ id: SequenceNumber;
19
+ url: string;
20
+ method: string;
21
+ /** The order of the corresponding HAR entry in the recorded HAR log */
22
+ harEntryOrder: number;
23
+ chunks: StreamingFetchChunk[];
24
+ /** Whether the stream completed normally (true) or was aborted/errored (false) */
25
+ completed: boolean;
26
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=streaming-fetch-data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"streaming-fetch-data.js","sourceRoot":"","sources":["../../../src/sdk-bundle-api/sdk-to-bundle/streaming-fetch-data.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.254.1",
3
+ "version": "2.256.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": "1cd60270be8c9e8b2c751e94921baca8e58e0b5d"
38
+ "gitHead": "3da89148a69dda31d41c95abc561eaa346e3e78f"
39
39
  }