import { Schema } from "effect" export const RequestSnapshotSchema = Schema.Struct({ method: Schema.String, url: Schema.String, headers: Schema.Record(Schema.String, Schema.String), body: Schema.String, }) export type { RequestSnapshot } from "../api.js" export const ResponseSnapshotSchema = Schema.Struct({ status: Schema.Number, headers: Schema.Record(Schema.String, Schema.String), body: Schema.String, bodyEncoding: Schema.optional(Schema.Literals(["text", "base64"])), }) export interface ResponseSnapshot extends Schema.Schema.Type {} export const HttpInteractionSchema = Schema.Struct({ transport: Schema.tag("http"), request: RequestSnapshotSchema, response: ResponseSnapshotSchema, }) export interface HttpInteraction extends Schema.Schema.Type {} export * as HttpModel from "./model.js"