Files
rea/src/contracts/analysisViewApiSurfaceExample.ts
T
4f43d7422f feat(browser): accept mitmproxy 12.3.1 for native capture decode (#8088)
* feat(browser): accept mitmproxy 12.3.1 for native capture decode

Bump the offline adapter profile, provider identity, Linux verification archive, and docs so callers can use mitmproxy 12.3.1 instead of the 12.2.3 pin that blocks patched Brotli/cryptography. Keep SaveHar null postData admission for both producer versions.

Fixes #8078

* test(web): regenerate published HAR example identities

The HAR limitation now names both admitted mitmproxy profiles, which
changes the decoded capture's Evidence ID and both views' parent and
view digests. Update the published API surface and environment manifest
examples to the identities reproduced from their fixture bytes.

Co-Authored-By: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>

---------

Co-authored-by: gensokyo-dev <gensokyo-dev@users.noreply.github.com>
Co-authored-by: gensokyo-dev <342580529+gensokyo-dev@users.noreply.github.com>
2026-11-22 09:26:35 +00:00

74 lines
2.3 KiB
TypeScript

/** Generated from the two-request apiSurfaceHar fixture through the HAR decoder and view service. */
export const API_SURFACE_EXAMPLE = {
input: {
source: {
kind: "retained-evidence",
evidence_id:
"ev_fe685b2acd1668cdea7b576a829ff13b9b62c363b7e3477434b8671a6a80a22c",
},
view: {
kind: "api-surface",
offset: 0,
limit: 50,
},
},
output: {
parent_evidence_id:
"ev_fe685b2acd1668cdea7b576a829ff13b9b62c363b7e3477434b8671a6a80a22c",
parent_operation: "inspect_web_network_capture",
parent_digest:
"fe685b2acd1668cdea7b576a829ff13b9b62c363b7e3477434b8671a6a80a22c",
view_digest:
"3e520ba71863fba686ca10a78389e16de0bb9bd59eb6b4eb08f9ba9a91e9c349",
artifact: {
path: "/fixtures/api-surface.har",
sha256:
"bf58e2c06e55bfe7e0628157c4ad027ce0aeb81a10e8edef8a7f95b8e5f14225",
},
coverage: {
status: "page",
examined: 1,
total: 1,
next_offset: null,
exhausted: true,
},
limitations: [
"Grouping does not establish handler identity, URL-space schemas or causality.",
"HAR text without an encoding declaration is producer-decoded Unicode. Unsupported declared body encodings remain opaque; original body bytes remain unknown unless content explicitly uses valid base64. Declared sizes are preserved independently of retained bytes. mitmproxy 12.2.3/12.3.1 SaveHar may report null optional postData.text; that null is retained and omitted only from the upstream validation copy.",
],
unknowns: [],
records: {
examined: 2,
total: 2,
excluded: 0,
},
templated_groups: 1,
groups: [
{
method: "GET",
origin: "https://api.example.test",
path_template: "/users/{numeric}",
templated_segments: [
{
segment_index: 1,
rule: "numeric",
basis: "inferred",
observed_values: ["8812", "9031"],
},
],
record_ordinals: [0, 1],
statuses: [200, 404],
content_types: ["application/json", "text/plain"],
flags: ["mixed-statuses", "mixed-content-types"],
},
],
excluded_records: [],
kind: "api-surface",
view: {
kind: "api-surface",
offset: 0,
limit: 50,
},
},
} as const;