mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-18 06:28:25 +01:00
75 lines
2.1 KiB
TypeScript
Generated
75 lines
2.1 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,
|
|
/**
|
|
* The client gave up before the response ended, by resetting its HTTP/2 stream or closing
|
|
* the connection. Not an error.
|
|
*/
|
|
cancelled: boolean,
|
|
/**
|
|
* The id of the Yaak request this flow was last saved as.
|
|
*/
|
|
savedRequestId: string | null,
|
|
/**
|
|
* The process that opened the client connection, where the platform can tell (macOS).
|
|
*/
|
|
clientPid: number | null,
|
|
/**
|
|
* Its app's name, or its executable's outside an app: "Google Chrome", "curl".
|
|
*/
|
|
clientName: string | null,
|
|
/**
|
|
* Its app's bundle id.
|
|
*/
|
|
clientBundleId: string | null,
|
|
/**
|
|
* Its app bundle's path, or its executable's outside an app.
|
|
*/
|
|
clientPath: string | null, };
|
|
|
|
export type FlowBody = "request" | "response";
|
|
|
|
export type ModelPayload = { model: Flow, change: ModelChangeEvent, };
|
|
|
|
export type ProxyHeader = { name: string, value: string, };
|