Files
yaak-mountain-loop/crates-proxy/yaak-proxy-lib/bindings/gen_models.ts
T
2026-10-26 06:38:34 -07:00

50 lines
1.5 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 FlowBody = "request" | "response";
export type ModelPayload = { model: Flow, change: ModelChangeEvent, };
export type ProxyHeader = { name: string, value: string, };