import type { HttpEffectMeta as _memoflow_v1_HttpEffectMeta, HttpEffectMeta__Output as _memoflow_v1_HttpEffectMeta__Output } from '../../memoflow/v1/HttpEffectMeta.js'; export interface RecordSideEffectCommand { 'step_seq'?: (number); 'result'?: (Buffer | Uint8Array | string); 'step_key'?: (string); /** * ── Implicit HTTP steps (P6.1) ── * * A bare `await fetch(...)` inside a workflow body is recorded through the * same side-effect machinery: `result` carries the serialized HTTP effect * (status/headers/body envelope) and the fields below add the metadata a * side effect doesn't have. When `http` is set, the server persists this as * a SIDE_EFFECT-shaped checkpoint whose step_name is the request's * method+URL (so the dashboard can render it as an HTTP step) and stores * `meta` in the checkpoint's `meta` column (P3.1 — LLM token/cost when the * target was an LLM endpoint). Absent `http` == a plain side effect, exactly * as before this field existed. */ 'http'?: (_memoflow_v1_HttpEffectMeta | null); /** * Optional structured observability metadata (P3.1), JSON-serialized by the * SDK — token/cost for LLM endpoints. Empty means absent. Never consulted * for memoization or step identity (Law 1 unaffected). */ 'meta'?: (Buffer | Uint8Array | string); } export interface RecordSideEffectCommand__Output { 'step_seq': (number); 'result': (Buffer); 'step_key': (string); /** * ── Implicit HTTP steps (P6.1) ── * * A bare `await fetch(...)` inside a workflow body is recorded through the * same side-effect machinery: `result` carries the serialized HTTP effect * (status/headers/body envelope) and the fields below add the metadata a * side effect doesn't have. When `http` is set, the server persists this as * a SIDE_EFFECT-shaped checkpoint whose step_name is the request's * method+URL (so the dashboard can render it as an HTTP step) and stores * `meta` in the checkpoint's `meta` column (P3.1 — LLM token/cost when the * target was an LLM endpoint). Absent `http` == a plain side effect, exactly * as before this field existed. */ 'http': (_memoflow_v1_HttpEffectMeta__Output | null); /** * Optional structured observability metadata (P3.1), JSON-serialized by the * SDK — token/cost for LLM endpoints. Empty means absent. Never consulted * for memoization or step identity (Law 1 unaffected). */ 'meta': (Buffer); }