@alwaysmeticulous/api 2.251.1 → 2.255.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";
@@ -4,6 +4,10 @@ export interface EventSourceConnectionData {
4
4
  url: string;
5
5
  withCredentials: boolean;
6
6
  events: EventSourceConnectionEvent[];
7
+ /**
8
+ * Only present on recordings since ~Feb 2026.
9
+ */
10
+ frameId?: string;
7
11
  }
8
12
  export type EventSourceConnectionEvent = EventSourceConnectionCreatedEvent | EventSourceConnectionOpenedEvent | EventSourceConnectionMessageEvent | EventSourceConnectionErrorEvent | EventSourceConnectionClosedEvent;
9
13
  export interface EventSourceConnectionGenericEvent {
@@ -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":""}
@@ -2,6 +2,10 @@ export interface WebSocketConnectionData {
2
2
  id: SequenceNumber;
3
3
  url: string;
4
4
  events: WebSocketConnectionEvent[];
5
+ /**
6
+ * Only present on recordings since ~Feb 2026.
7
+ */
8
+ frameId?: string;
5
9
  }
6
10
  export type SequenceNumber = number;
7
11
  export type WebSocketConnectionEvent = WebSocketConnectionCreatedEvent | WebSocketConnectionOpenedEvent | WebSocketConnectionMessageEvent | WebSocketConnectionErrorEvent | WebSocketConnectionClosedEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alwaysmeticulous/api",
3
- "version": "2.251.1",
3
+ "version": "2.255.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": "a8bf35cabc83fc249b92e5cd91d1522325333b29"
38
+ "gitHead": "8dab55364c5bdcfa9874f497d37f51bbe3ce7786"
39
39
  }