mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-13 12:13:42 +01:00
48 lines
1.4 KiB
TypeScript
Generated
48 lines
1.4 KiB
TypeScript
Generated
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
|
import type { ModelChangeEvent } from "./ModelChangeEvent";
|
|
|
|
/**
|
|
* One proxied request and its response. The bodies are in `blobs.sqlite`, not the row.
|
|
*/
|
|
export type Flow = { id: string, createdAt: string, updatedAt: string, startedAt: string, method: string, url: string,
|
|
/**
|
|
* Version spoken by the client.
|
|
*/
|
|
clientHttpVersion: string,
|
|
/**
|
|
* Version spoken with the upstream server.
|
|
*/
|
|
upstreamHttpVersion: string | null, remoteAddr: string | null, status: number | null,
|
|
/**
|
|
* The response's Content-Type.
|
|
*/
|
|
contentType: string | null, requestHeaders: Array<ProxyHeader>, responseHeaders: Array<ProxyHeader>,
|
|
/**
|
|
* Bytes of the request body on the wire, captured or not.
|
|
*/
|
|
requestSize: number,
|
|
/**
|
|
* Bytes of the response body on the wire, captured or not.
|
|
*/
|
|
responseSize: number,
|
|
/**
|
|
* Only the first `capture_body_limit` bytes of the body are stored.
|
|
*/
|
|
requestTruncated: boolean,
|
|
/**
|
|
* Only the first `capture_body_limit` bytes of the body are stored.
|
|
*/
|
|
responseTruncated: boolean,
|
|
/**
|
|
* Milliseconds from `started_at` to the response headers.
|
|
*/
|
|
elapsedHeadersMs: number | null,
|
|
/**
|
|
* Milliseconds from `started_at` to the end of the response.
|
|
*/
|
|
elapsedMs: number | null, error: string | null, };
|
|
|
|
export type ModelPayload = { model: Flow, change: ModelChangeEvent, };
|
|
|
|
export type ProxyHeader = { name: string, value: string, };
|