{"modulePath":"github.com/nanostack-dev/echopoint-runner","version":"v0.121.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package node\n\n## Constants\n\n```go\nconst (\n\n\t// DefaultMaxResponseBytes is the largest response body a request node reads\n\t// when the execution context sets no limit.\n\tDefaultMaxResponseBytes int64 = 10 * mebibyte\n\t// ReportedResponseBodyBytes bounds the response body a request result reports.\n\t// Assertions and outputs still evaluate against the whole body.\n\tReportedResponseBodyBytes = mebibyte\n\n\tResponseTooLargeCode = \"RESPONSE_TOO_LARGE\"\n)\n```\n\n```go\nconst BodyEncodingForm = \"form\"\n```\nBodyEncodingForm sends a map body as application/x-www-form-urlencoded, encoded after templates resolve so that a resolved value such as \\`garbage+tag@nanostack.dev\\` keeps its \\`+\\`.\n\n## Functions\n\n```go\nfunc AssertionReferences(n AnyNode) []string\n```\nAssertionReferences names the {{refs}} in a node's assertion values, so flow validation can check each one is produced before the node runs.\n\n```go\nfunc EvaluateAssertions(\n\tassertions []CompositeAssertion, rc extractors.ResponseContext,\n) ([]spi.AssertionResult, error)\n```\nEvaluateAssertions evaluates every assertion against rc, assigning each result its 0-based Index. Evaluation stops at the first failing or erroring assertion — that one IS recorded — and the corresponding error is returned. Its message names the assertion by its 1-based position and by what it checked, such as \"assertion 2 failed: json\\_path $.status equals expected=sold actual=available\". The returned slice holds results for all assertions up to and including the first failure (or all of them on success). This is the single assertion-evaluation implementation; every node delegates to it.\n\n```go\nfunc ExtractOutputs(\n\toutputs []Output, rc extractors.ResponseContext,\n) (map[string]any, error)\n```\nExtractOutputs runs every output extractor against rc, returning the produced name-\u003evalue map. It fails fast on the first extractor error. This is the single output-extraction implementation; every node delegates to it.\n\n```go\nfunc FormatTemplateValue(val any) string\n```\nFormatTemplateValue renders a value interpolated into text. JSON numbers arrive as float64, which %v prints in exponent form from 1e6 (1234567 → 1.234567e+06), corrupting ids and amounts in URLs and bodies. Objects and arrays render as JSON rather than Go's map\\[k:v] syntax.\n\n```go\nfunc LookupPath(ref string, get func(key string) (any, bool)) (any, bool)\n```\nLookupPath resolves a dotted reference against get. An exact key wins. Otherwise the longest dotted prefix that get knows is taken, because keys themselves contain dots (list\\_accounts.accounts), and the remaining segments walk into its value: object fields by name, array elements by zero-based index. Any missing segment reports false.\n\n```go\nfunc NewOutputView(outputs map[string]map[string]any) spi.OutputView\n```\n\n```go\nfunc NewSkippedResult(nodeType spi.Kind, base spi.BaseExecutionResult) (spi.AnyResult, bool)\n```\nNewSkippedResult builds the skipped result for nodeType via the registry, reporting false when the type is unregistered.\n\n```go\nfunc RegisterNodeKind(nodeType spi.Kind, decode Decoder, newSkipped SkippedResultFactory)\n```\nRegisterNodeKind registers how to decode a node type and build its skipped result. Call from an init().\n\n```go\nfunc ValidateOutputs(outputSchema []string, produced map[string]any) error\n```\nValidateOutputs checks that every name in outputSchema was produced. It returns an error naming the first missing output. This is the single output-validation implementation; every node delegates to it.\n\n```go\nfunc WithMaxResponseBytes(ctx context.Context, limit int64) context.Context\n```\nWithMaxResponseBytes returns ctx carrying the largest response body a request node may read. Zero or less keeps DefaultMaxResponseBytes.\n\n```go\nfunc WithResponseBudget(ctx context.Context, budget *ResponseBudget) context.Context\n```\nWithResponseBudget returns ctx carrying budget for the request nodes run on it.\n\n## Types\n\n```go\ntype AnyNode interface {\n\tspi.Node\n\n\t// GetAssertions returns the list of assertions to validate during execution.\n\t// Assertions should be evaluated before extractions.\n\tGetAssertions() []CompositeAssertion\n\n\t// GetOutputs returns the list of extractions to perform on the response/data.\n\t// Outputs should be evaluated after assertions pass.\n\tGetOutputs() []Output\n}\n```\nAnyNode is the full authoring/engine view of a node: the capability-agnostic core (spi.Node) plus the assertion and output accessors, which carry concrete extractor decode/eval behavior and therefore stay in this package.\n\n```go\nfunc UnmarshalNode(data []byte) (AnyNode, error)\n```\nUnmarshalNode unmarshals JSON into the appropriate typed node via the node-kind registry (see registry.go). Adding a node type is one RegisterNodeKind call, not a new case here.\n\n```go\ntype AssertData struct {\n\t// Target is the value the assertions/extractors run against. It may carry\n\t// {{template}} or {{{raw}}} references that resolve to inputs/flow data. When\n\t// nil/empty the node falls back to asserting over the flow's initial inputs\n\t// (ctx.FlowInputs).\n\t//\n\t// To assert over an UPSTREAM NODE's output, set an explicit target that\n\t// references it (e.g. \"{{{create-user.payload}}}\"); InputSchema surfaces that\n\t// ref so the engine populates ctx.Inputs and the template resolves to the\n\t// upstream value. An OMITTED target asserts over the flow's initial inputs\n\t// (ctx.FlowInputs) — not over upstream node outputs.\n\tTarget any `json:\"target,omitempty\"`\n}\n```\nAssertData configures an assert node. Target is the value to assert against; when empty the node asserts over the flow's initial inputs.\n\n```go\ntype AssertExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// contains filtered or unexported fields\n}\n```\nAssertExecutionResult stores assert node execution data: the value asserted over and the full set of assertion outcomes captured during evaluation.\n\n```go\nfunc (r *AssertExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the ResponseContext the engine-level assertion/output pass evaluates against. It satisfies AssertionContextProvider; a nil context (e.g. an error result built before the target was resolved) signals the engine to skip the pass.\n\n```go\ntype AssertNode struct {\n\tBaseNode\n\n\tData AssertData `json:\"data\"`\n\t// contains filtered or unexported fields\n}\n```\nAssertNode validates upstream or derived data with the standard assertion list. Unlike RequestNode it runs assertions over an in-memory value rather than an HTTP response, making it a first-class way to verify data produced by earlier nodes (transforms, modules, branches) in an API-flow test.\n\nTo assert over an UPSTREAM NODE's output, set an explicit target referencing it (e.g. \"{{{node.output}}}\"); the omitted-target default instead asserts over the flow's initial inputs.\n\n```go\nfunc AsAssertNode(node AnyNode) (*AssertNode, bool)\n```\nAsAssertNode safely casts an AnyNode to an AssertNode. Returns the AssertNode and true if the cast succeeds, nil and false otherwise.\n\n```go\nfunc (n *AssertNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute resolves the target value and returns an AssertExecutionResult that exposes it as a ResponseContext (via AssertionContext). It does NOT run assertions or extract outputs itself: the engine-level pass drives those uniformly for every node that implements AssertionContextProvider (see engine.applyAssertionsAndOutputs), filling AssertionResults, merging outputs, and flipping the result to failed on a miss. Keeping the node thin means a single shared seam owns assertion/output evaluation and retry behavior.\n\n```go\nfunc (n *AssertNode) GetData() AssertData\n```\nGetData returns the node's typed data.\n\n```go\nfunc (n *AssertNode) InputSchema() []string\n```\nInputSchema infers inputs from template variables referenced in the target.\n\n```go\nfunc (n *AssertNode) OutputSchema() []string\n```\nOutputSchema returns the names of the declared output extractors.\n\n```go\ntype AssertionContextProvider interface {\n\tAssertionContext() extractors.ResponseContext\n}\n```\nAssertionContextProvider is the optional interface a node RESULT implements to expose the ResponseContext its assertions and outputs evaluate against. The engine drives the assertion/output pass uniformly for any result that implements it; results that do not (delay, module) are left untouched.\n\n```go\ntype BaseNode struct {\n\tID          string               `json:\"id\"`\n\tDisplayName string               `json:\"display_name\"`\n\tNodeType    spi.Kind             `json:\"type\"`\n\tRunWhen     spi.RunWhen          `json:\"run_when,omitempty\"`\n\tAssertions  []CompositeAssertion `json:\"assertions\"`\n\tOutputs     []Output             `json:\"outputs\"`\n}\n```\nBaseNode contains common fields and behavior shared across all node types. All specific node types (RequestNode, DelayNode, AssertionNode, etc.) should embed BaseNode.\n\n```go\nfunc (bn *BaseNode) GetAssertions() []CompositeAssertion\n```\nGetAssertions returns the list of assertions to validate during execution Assertions should be evaluated before extractions.\n\n```go\nfunc (bn *BaseNode) GetDisplayName() string\n```\nGetDisplayName returns the display name for this node.\n\n```go\nfunc (bn *BaseNode) GetID() string\n```\nGetID returns the unique identifier for this node.\n\n```go\nfunc (bn *BaseNode) GetOutputs() []Output\n```\nGetOutputs returns the list of extractions to perform on the response/data Outputs should be evaluated after assertions pass.\n\n```go\nfunc (bn *BaseNode) GetRunWhen() spi.RunWhen\n```\n\n```go\nfunc (bn *BaseNode) GetType() spi.Kind\n```\nGetType returns the type of this node (request, delay, assertion, etc.)\n\n```go\nfunc (bn *BaseNode) InputSchema() []string\n```\nInputSchema returns the list of required inputs for this node This method must be overridden by concrete node types to provide computed schemas Format: \"nodeId.outputKey\" (e.g., \"create-user.userId\") or plain variable name.\n\n```go\nfunc (bn *BaseNode) OutputSchema() []string\n```\nOutputSchema returns the list of outputs this node produces This method must be overridden by concrete node types to provide computed schemas Examples: \\[]string{\"statusCode\", \"userId\", \"responseBody\"}.\n\n```go\ntype BranchCase struct {\n\tWhen   CompositeAssertion `json:\"when\"`\n\tTarget string             `json:\"target\"`\n}\n```\nBranchCase pairs a condition with the successor node ID to route to when the condition holds. When evaluates against the resolved branch target value (an in-memory value, not an HTTP response).\n\n```go\ntype BranchData struct {\n\tTarget  any          `json:\"target,omitempty\"`\n\tCases   []BranchCase `json:\"cases\"`\n\tDefault string       `json:\"default,omitempty\"`\n}\n```\nBranchData configures value-based routing.\n\n  - Target is an optional template; its resolved value is what the case conditions test. When omitted (nil), the branch tests the map of the node's resolved inputs (ctx.Inputs).\n  - Cases are evaluated in order; the first whose When passes selects its Target as the routed successor.\n  - Default is an optional successor node ID used when no case matches.\n\n```go\ntype BranchExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\t// MatchedTarget is the successor node ID execution was routed to, or \"\" when\n\t// no case matched and no default was configured.\n\tMatchedTarget string `json:\"matched_target\"`\n\t// RoutedTargetIDs holds the chosen successor node IDs (one element when a\n\t// case/default matched, empty otherwise).\n\tRoutedTargetIDs []string `json:\"routed_targets\"`\n\tDurationMs      int64    `json:\"duration_ms\"`\n}\n```\nBranchExecutionResult stores value-based routing decision data. It implements spi.RoutingResult so the engine skips the successor subtrees the branch routed away from.\n\n```go\nfunc (r *BranchExecutionResult) RoutedTargets() []string\n```\nRoutedTargets implements spi.RoutingResult, returning the successor node IDs this branch routed execution to.\n\n```go\ntype BranchNode struct {\n\tBaseNode\n\n\tData BranchData `json:\"data\"`\n\t// contains filtered or unexported fields\n}\n```\nBranchNode routes execution down exactly one downstream path based on a condition evaluated over upstream data. Unlike spi.RunWhen (which gates on success/failure), a branch performs value-based routing: the chosen successor runs and the others are skipped by the engine.\n\n```go\nfunc AsBranchNode(candidate AnyNode) (*BranchNode, bool)\n```\nAsBranchNode safely casts an AnyNode to a BranchNode.\n\n```go\nfunc (n *BranchNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute evaluates the branch cases against the resolved target value and selects exactly one successor (or none). It never fails on a \"no match\" outcome — that is a valid routing decision recorded in the result.\n\n```go\nfunc (n *BranchNode) GetData() BranchData\n```\nGetData returns the branch configuration.\n\n```go\nfunc (n *BranchNode) InputSchema() []string\n```\nInputSchema infers inputs from template variables referenced in the optional target template.\n\n```go\nfunc (n *BranchNode) OutputSchema() []string\n```\nOutputSchema exposes the routing decision keys this node produces.\n\n```go\ntype ClosestEvent struct {\n\tRequestID string             `json:\"request_id\"`\n\tClaimedBy string             `json:\"claimed_by,omitempty\"`\n\tChecks    []ExpectationCheck `json:\"checks\"`\n\t// Text is the start of an email wait's closest message text, at most\n\t// 4 KiB: the run sweep deletes the inbox, so the result keeps what it said.\n\tText string `json:\"text,omitempty\"`\n}\n```\nClosestEvent is the request that passed the most assertions of a group that found no event, or the request another group claimed that still put a group over its max, with each assertion's outcome.\n\n```go\ntype CompositeAssertion struct {\n\tExtractor     extractors.AnyExtractor `json:\"-\"`             // The actual extractor instance\n\tExtractorType string                  `json:\"extractorType\"` // jsonPath, xmlPath, statusCode, header, body\n\tOperatorType  operators.OperatorType  `json:\"operatorType\"`  // equals, contains, greaterThan, etc.\n\tExpectedValue any                     `json:\"-\"`             // Resolved expected value (operator_data.value)\n}\n```\nCompositeAssertion combines an extractor with an operator for validation.\n\n```go\nfunc ResolveAssertions(\n\tctx spi.ExecutionContext, assertions []CompositeAssertion,\n) ([]CompositeAssertion, error)\n```\nResolveAssertions fills the {{refs}} and {{$dynamic}} values in expected values from completed steps and flow inputs. A reference with no value fails the assertion pass instead of comparing against the template text.\n\n```go\nfunc (ca *CompositeAssertion) Evaluate(ctx extractors.ResponseContext) spi.AssertionResult\n```\nEvaluate runs the assertion against the response and returns a full result record. Index is left zero for the caller to assign. Passed is true only when the extractor succeeds and the operator holds; Error is set (and Passed false, Actual possibly nil) when the extractor or operator errors. This is the single evaluation entry point — it both decides pass/fail and captures what was compared, so callers never re-derive the outcome.\n\n```go\nfunc (ca *CompositeAssertion) Target() string\n```\nTarget names what the assertion's extractor reads (a JSON path, a header name, a query parameter), or \"\" when the extractor reads the whole response or the assertion has none. It is for messages only and is not serialized.\n\n```go\nfunc (ca *CompositeAssertion) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements custom unmarshaling for CompositeAssertion.\n\n```go\ntype Decoder func([]byte) (AnyNode, error)\n```\nDecoder builds a typed node from its raw JSON.\n\n```go\ntype DelayData struct {\n\tDuration int `json:\"duration\"` // Duration in milliseconds\n}\n```\n\n```go\ntype DelayExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDelayMs    int64     `json:\"delay_ms\"`\n\tDelayUntil time.Time `json:\"delay_until\"`\n}\n```\nDelayExecutionResult stores delay node execution data.\n\n```go\ntype DelayNode struct {\n\tBaseNode\n\n\tData DelayData `json:\"data\"`\n}\n```\nDelayNode is a typed node for delays.\n\n```go\nfunc NewDelay(id string, durationMs int) *DelayNode\n```\nNewDelay starts a delay node that waits durationMs milliseconds.\n\n```go\nfunc (n *DelayNode) Always() *DelayNode\n```\nAlways marks the delay to run in the cleanup phase.\n\n```go\nfunc (n *DelayNode) DisplayName(name string) *DelayNode\n```\nDisplayName sets the delay node's name.\n\n```go\nfunc (n *DelayNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute sleeps for the specified duration and returns a DelayExecutionResult.\n\n```go\nfunc (n *DelayNode) GetData() DelayData\n```\n\n```go\nfunc (n *DelayNode) InputSchema() []string\n```\nInputSchema returns empty as DelayNode doesn't need inputs.\n\n```go\nfunc (n *DelayNode) OutputSchema() []string\n```\nOutputSchema returns empty as DelayNode doesn't produce outputs.\n\n```go\ntype EmailWaitData struct {\n\tTimeoutMs int `json:\"timeout_ms\"`\n\tSettleMs  int `json:\"settle_ms\"`\n\t// LinkPattern keeps the links it matches. Empty keeps every link.\n\tLinkPattern string `json:\"link_pattern,omitempty\"`\n\t// CodePattern finds the code in the text: capture group 1 when the\n\t// pattern has a group, else the whole match. Empty means six digits.\n\tCodePattern string               `json:\"code_pattern,omitempty\"`\n\tExpect      []WebhookExpectation `json:\"expect,omitempty\"`\n}\n```\nEmailWaitData configures a wait on the email the run inbox receives. With Expect, the wait judges a set of named events as a webhook wait does.\n\n```go\ntype EmailWaitExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// Closest is the message that passed the most assertions of a wait that\n\t// timed out. Its request_id holds the message id.\n\tClosest *ClosestEvent `json:\"closest,omitempty\"`\n\t// RecentMessages holds the newest messages the wait saw before it matched\n\t// or failed, at most five, without their bodies, each with its checks.\n\tRecentMessages []map[string]any `json:\"recent_messages,omitempty\"`\n\t// Expectations is the verdict per expected event, in declaration order.\n\tExpectations []ExpectationOutcome `json:\"expectations,omitempty\"`\n\t// contains filtered or unexported fields\n}\n```\nEmailWaitExecutionResult stores email-wait node execution data.\n\n```go\nfunc (r *EmailWaitExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the matched message to the engine's assertion and output pass. It is nil when no single message matched.\n\n```go\ntype EmailWaitNode struct {\n\tBaseNode\n\n\tData EmailWaitData `json:\"data\"`\n\t// contains filtered or unexported fields\n}\n```\nEmailWaitNode polls GET inbox.messages\\_url with the job token until a message of the run inbox passes the node's assertions, then publishes its parts, its links and its code. Without an assertion the first message matches: the run inbox receives only the mail sent to this run.\n\n```go\nfunc AsEmailWaitNode(n AnyNode) (*EmailWaitNode, bool)\n```\nAsEmailWaitNode safely casts an AnyNode to an EmailWaitNode.\n\n```go\nfunc (n *EmailWaitNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *EmailWaitNode) GetData() EmailWaitData\n```\n\n```go\nfunc (n *EmailWaitNode) InputSchema() []string\n```\n\n```go\nfunc (n *EmailWaitNode) OutputSchema() []string\n```\nOutputSchema lists the message outputs, and the outputs the node declares with extractors over the matched message.\n\n```go\nfunc (n *EmailWaitNode) ResolvedReferences() []string\n```\nResolvedReferences names the {{refs}} in assertion values, which the wait resolves itself, as a webhook wait does.\n\n```go\nfunc (n *EmailWaitNode) Validate() error\n```\nValidate rejects a configuration the wait could never run: a timeout past the address lifetime, a settle window the timeout cuts short, a bad pattern or a malformed expected event. It compiles the patterns once.\n\n```go\ntype ExpectationCheck struct {\n\tLabel    string `json:\"label\"`\n\tPassed   bool   `json:\"passed\"`\n\tExpected any    `json:\"expected,omitempty\"`\n\tActual   any    `json:\"actual,omitempty\"`\n}\n```\n\n```go\ntype ExpectationOutcome struct {\n\tName     string `json:\"name\"`\n\tReceived int    `json:\"received\"`\n\tPassed   bool   `json:\"passed\"`\n\t// ArrivedAfterMs is set when the event arrived while the wait was listening.\n\tArrivedAfterMs *int64        `json:\"arrived_after_ms,omitempty\"`\n\tRequestIDs     []string      `json:\"request_ids\"`\n\tProblem        string        `json:\"problem,omitempty\"`\n\tClosest        *ClosestEvent `json:\"closest,omitempty\"`\n}\n```\nExpectationOutcome is the verdict on one expected event.\n\n```go\ntype InputData struct {\n\tProperties map[string]InputProperty `json:\"properties\"`\n\tRequired   []string                 `json:\"required,omitempty\"`\n}\n```\nInputData configures an input node using a JSON Schema object shape.\n\n```go\ntype InputExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n}\n```\nInputExecutionResult stores input node execution data.\n\n```go\nfunc (r *InputExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the resolved input parameters map for assertions.\n\n```go\ntype InputNode struct {\n\tBaseNode\n\n\tData InputData `json:\"data\"`\n}\n```\nInputNode validates and exposes caller-supplied function inputs as node outputs ({{input.\\\u003cname\u003e}}), applying defaults and secret redaction.\n\n```go\nfunc AsInputNode(candidate AnyNode) (*InputNode, bool)\n```\nAsInputNode safely casts an AnyNode to an InputNode.\n\n```go\nfunc (n *InputNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *InputNode) GetData() InputData\n```\n\n```go\nfunc (n *InputNode) InputSchema() []string\n```\nInputSchema returns nil because an input node reads caller values from ctx.FlowInputs (or property defaults) at runtime rather than requiring static initial\\_inputs at parse time.\n\n```go\nfunc (n *InputNode) OutputSchema() []string\n```\nOutputSchema returns the sorted names of the declared input properties.\n\n```go\ntype InputProperty struct {\n\tType        string `json:\"type,omitempty\"`\n\tFormat      string `json:\"format,omitempty\"`\n\tDescription string `json:\"description,omitempty\"`\n\tEnum        []any  `json:\"enum,omitempty\"`\n\tDefault     any    `json:\"default,omitempty\"`\n\tRequired    bool   `json:\"required,omitempty\"`\n\tSecret      bool   `json:\"secret,omitempty\"`\n}\n```\nInputProperty describes one JSON Schema property on an input node.\n\n```go\ntype LoopData struct {\n\t// Items is a template (or literal) that resolves to a []any. Each element is\n\t// iterated over and the body sub-flow is run once per element.\n\tItems any `json:\"items\"`\n\t// Body is an inline flow definition ({\"nodes\":[...],\"edges\":[...]}) executed\n\t// once per iteration via the shared spi.ModuleExecutor.\n\tBody json.RawMessage `json:\"body\"`\n\t// ItemVar is the FlowInputs key the current item is injected under (default \"item\").\n\tItemVar string `json:\"item_var\"`\n\t// IndexVar is the FlowInputs key the current zero-based index is injected under\n\t// (default \"index\").\n\tIndexVar string `json:\"index_var\"`\n\t// MaxIterations, when \u003e 0, caps how many items are iterated as a safety bound.\n\tMaxIterations int `json:\"max_iterations\"`\n\t// ContinueOnError keeps the loop running when an iteration fails, recording the\n\t// error in that iteration's result instead of failing the whole node.\n\tContinueOnError bool `json:\"continue_on_error\"`\n}\n```\nLoopData configures a foreach loop node.\n\n```go\ntype LoopExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\t// Iterations is the number of body executions that were attempted\n\t// (after applying any max_iterations cap).\n\tIterations int   `json:\"iterations\"`\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// contains filtered or unexported fields\n}\n```\nLoopExecutionResult stores foreach loop node execution data.\n\n```go\nfunc (r *LoopExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the ResponseContext the engine-level assertion/output pass evaluates against — the loop's aggregate outputs ({results, count}). It satisfies AssertionContextProvider; a nil context (e.g. an error result built before the loop completed) signals the engine to skip the pass.\n\n```go\ntype LoopNode struct {\n\tBaseNode\n\n\tData LoopData `json:\"data\"`\n}\n```\nLoopNode iterates a body sub-flow once per item in a resolved array (foreach), injecting the per-iteration item and index into the child flow inputs and collecting each iteration's final outputs into an array.\n\n```go\nfunc AsLoopNode(candidate AnyNode) (*LoopNode, bool)\n```\nAsLoopNode safely casts an AnyNode to a LoopNode.\n\n```go\nfunc (n *LoopNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute resolves the items array and runs the body sub-flow once per item, injecting item/index into the child flow inputs and aggregating per-iteration final outputs into a results array.\n\n```go\nfunc (n *LoopNode) GetData() LoopData\n```\n\n```go\nfunc (n *LoopNode) GetOutputs() []Output\n```\nGetOutputs returns the loop's default aggregate extractors (results, count) followed by any user-declared outputs. A user-declared output with the same name overrides the default, so the loop's intrinsic outputs stay referenceable while remaining customizable.\n\n```go\nfunc (n *LoopNode) InputSchema() []string\n```\nInputSchema infers inputs from the items template only. Body references are validated inside the child flow parse, not by the parent loop node.\n\n```go\nfunc (n *LoopNode) OutputSchema() []string\n```\nOutputSchema lists every output the loop node produces: its intrinsic aggregates (results, count) plus any user-declared outputs.\n\n```go\ntype ModuleData struct {\n\tFlowID         string            `json:\"flow_id\"`\n\tInputBindings  map[string]any    `json:\"input_bindings,omitempty\"`\n\tOutputBindings map[string]string `json:\"output_bindings,omitempty\"`\n}\n```\n\n```go\ntype ModuleExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tFlowID            string         `json:\"flow_id\"`\n\tChildFinalOutputs map[string]any `json:\"child_final_outputs,omitempty\"`\n\tDurationMs        int64          `json:\"duration_ms\"`\n}\n```\nModuleExecutionResult stores nested module execution data.\n\n```go\ntype ModuleNode struct {\n\tBaseNode\n\n\tData ModuleData `json:\"data\"`\n}\n```\nModuleNode executes another flow as a reusable nested module.\n\n```go\nfunc AsModuleNode(candidate AnyNode) (*ModuleNode, bool)\n```\nAsModuleNode safely casts an AnyNode to a ModuleNode.\n\n```go\nfunc (n *ModuleNode) DisplayName(name string) *ModuleNode\n```\nDisplayName sets the module node's name.\n\n```go\nfunc (n *ModuleNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *ModuleNode) GetData() ModuleData\n```\n\n```go\nfunc (n *ModuleNode) InputBinding(key string, value any) *ModuleNode\n```\nInputBinding binds a child-flow input to a value/template.\n\n```go\nfunc (n *ModuleNode) InputSchema() []string\n```\nInputSchema infers inputs from binding templates.\n\n```go\nfunc (n *ModuleNode) OutputBinding(parentName, childKey string) *ModuleNode\n```\nOutputBinding maps a child final output key to a parent-visible output name.\n\n```go\nfunc (n *ModuleNode) OutputSchema() []string\n```\nOutputSchema exposes the parent-visible outputs exported by the module node.\n\n```go\ntype Output struct {\n\tName      string                  `json:\"name\"`\n\tExtractor extractors.AnyExtractor `json:\"extractor\"`\n\tSecret    bool                    `json:\"secret,omitempty\"`\n}\n```\nOutput represents a named output with an associated extractor. A secret output's value is masked in every result and progress event reported after the node extracts it, wherever the value appears, including module outputs that re-export it.\n\n```go\nfunc (o *Output) UnmarshalJSON(data []byte) error\n```\nUnmarshalJSON implements custom unmarshaling for Output This allows us to properly unmarshal the Extractor field from JSON.\n\n```go\ntype OutputData struct {\n\tProperties map[string]OutputProperty `json:\"properties\"`\n}\n```\nOutputData configures an output node using JSON Schema properties whose Value templates assemble the function's returned fields.\n\n```go\ntype OutputExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n}\n```\nOutputExecutionResult stores output node execution data.\n\n```go\nfunc (r *OutputExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the resolved output fields map for assertions.\n\n```go\ntype OutputNode struct {\n\tBaseNode\n\n\tData OutputData `json:\"data\"`\n}\n```\nOutputNode resolves and validates the named output contract of a function flow once upstream steps have succeeded.\n\n```go\nfunc AsOutputNode(candidate AnyNode) (*OutputNode, bool)\n```\nAsOutputNode safely casts an AnyNode to an OutputNode.\n\n```go\nfunc (n *OutputNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *OutputNode) GetData() OutputData\n```\n\n```go\nfunc (n *OutputNode) InputSchema() []string\n```\nInputSchema infers all template references used inside the output properties' Value fields.\n\n```go\nfunc (n *OutputNode) OutputSchema() []string\n```\nOutputSchema returns the sorted names of the declared output properties.\n\n```go\nfunc (n *OutputNode) Validate() error\n```\nValidate checks static output property invariants at parse time.\n\n```go\ntype OutputProperty struct {\n\tType        string `json:\"type,omitempty\"`\n\tFormat      string `json:\"format,omitempty\"`\n\tDescription string `json:\"description,omitempty\"`\n\tEnum        []any  `json:\"enum,omitempty\"`\n\tValue       any    `json:\"value\"`\n\tSecret      bool   `json:\"secret,omitempty\"`\n}\n```\nOutputProperty describes one JSON Schema property on an output node. Value is required and holds the literal or template expression producing the field.\n\n```go\ntype PollData struct {\n\t// Body is an inline flow definition executed once per attempt. The exit\n\t// condition (the node's assertions) is evaluated against its FinalOutputs.\n\tBody json.RawMessage `json:\"body\"`\n\t// MaxAttempts is the maximum number of body executions. Defaults to\n\t// defaultPollMaxAttempts when \u003c= 0.\n\tMaxAttempts int `json:\"max_attempts\"`\n\t// IntervalMs is the wait between attempts, in milliseconds. Defaults to\n\t// defaultPollIntervalMs when \u003c= 0.\n\tIntervalMs int `json:\"interval_ms\"`\n\t// TimeoutMs, when \u003e 0, caps the overall wall-clock budget for the whole poll,\n\t// including a body attempt still running at the deadline (layered on top of\n\t// the execution context deadline).\n\tTimeoutMs int `json:\"timeout_ms\"`\n}\n```\nPollData configures a poll-until node. The body sub-flow is re-run on an interval until the node's exit-condition assertions (BaseNode.Assertions) all pass against an attempt's child final outputs, or the attempt/deadline budget is exhausted.\n\n```go\ntype PollExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\t// Attempts is the number of body executions performed (the attempt on which\n\t// the poll succeeded, or the total attempts made before giving up).\n\t//\n\t// The exit-condition evaluation from the final attempt (the passing attempt on\n\t// success, or the last attempt on failure) is recorded in the promoted\n\t// BaseExecutionResult.AssertionResults field.\n\tAttempts   int   `json:\"attempts\"`\n\tDurationMs int64 `json:\"duration_ms\"`\n}\n```\nPollExecutionResult stores poll-until node execution data. The poll node re-runs an inline body sub-flow on an interval until all of its exit-condition assertions pass on a single attempt, or it exhausts its attempt/deadline budget.\n\n```go\ntype PollNode struct {\n\tBaseNode\n\n\tData PollData `json:\"data\"`\n}\n```\nPollNode re-runs an inline body flow on an interval until an exit-condition assertion holds — the canonical async-API pattern (kick off a job, then poll \"status == done\" before continuing).\n\n```go\nfunc AsPollNode(node AnyNode) (*PollNode, bool)\n```\nAsPollNode safely casts an AnyNode to a PollNode. Returns the PollNode and true if the cast succeeds, nil and false otherwise.\n\n```go\nfunc MustAsPollNode(node AnyNode) *PollNode\n```\nMustAsPollNode casts an AnyNode to a PollNode, panicking if it fails. Use this when you're certain the node is a PollNode.\n\n```go\nfunc (n *PollNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute runs the body sub-flow up to max\\_attempts times, evaluating the exit-condition assertions against each attempt's child final outputs. It succeeds on the first attempt where all assertions pass; otherwise it waits interval\\_ms and retries until the attempt budget, timeout, or context deadline is exhausted.\n\n```go\nfunc (n *PollNode) GetData() PollData\n```\n\n```go\nfunc (n *PollNode) InputSchema() []string\n```\nInputSchema returns empty: the poll node feeds the parent flow inputs into the body sub-flow rather than declaring named upstream dependencies.\n\n```go\nfunc (n *PollNode) OutputSchema() []string\n```\nOutputSchema exposes the keys the poll node produces on success.\n\n```go\ntype RequestData struct {\n\tMethod      string            `json:\"method\"`\n\tURL         string            `json:\"url\"`\n\tHeaders     map[string]string `json:\"headers\"`\n\tQueryParams map[string]any    `json:\"query_params\"`\n\tBody        any               `json:\"body\"`\n\t// BodyEncoding is empty for a JSON or raw string body, or \"form\".\n\tBodyEncoding string `json:\"body_encoding,omitempty\"`\n\tTimeout      int    `json:\"timeout\"`\n}\n```\n\n```go\ntype RequestExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\t// HTTP Request fields\n\tRequestMethod  string            `json:\"request_method\"`\n\tRequestURL     string            `json:\"request_url\"`\n\tRequestHeaders map[string]string `json:\"request_headers\"`\n\tRequestBody    any               `json:\"request_body,omitempty\"`\n\n\t// HTTP Response fields\n\tResponseStatusCode int                 `json:\"response_status_code\"`\n\tResponseHeaders    map[string][]string `json:\"response_headers\"`\n\tResponseBody       []byte              `json:\"response_body,omitempty\"`\n\tResponseBodyParsed any                 `json:\"response_body_parsed,omitempty\"`\n\t// ResponseBodyTruncated reports a body cut to ReportedResponseBodyBytes and\n\t// sent without its parsed form.\n\tResponseBodyTruncated bool `json:\"response_body_truncated,omitempty\"`\n\n\t// Timing\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// contains filtered or unexported fields\n}\n```\nRequestExecutionResult stores HTTP request node execution data.\n\n```go\nfunc (r *RequestExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the ResponseContext the engine-level assertion/output pass evaluates against. It satisfies AssertionContextProvider; a nil context (e.g. an error result built before the HTTP exchange completed, or one whose response was released) signals the engine to skip the pass.\n\n```go\nfunc (r *RequestExecutionResult) ReleaseResponse()\n```\nReleaseResponse drops the response the assertion/output pass evaluated and returns its bytes to the response budget. The result keeps the body it reports; the full body of a large response becomes garbage. It satisfies ResponseReleaser and is safe to call more than once.\n\n```go\ntype RequestNode struct {\n\tBaseNode\n\n\tData RequestData `json:\"data\"`\n\t// contains filtered or unexported fields\n}\n```\nRequestNode is a typed node for HTTP requests.\n\n```go\nfunc AsRequestNode(node AnyNode) (*RequestNode, bool)\n```\nAsRequestNode safely casts an AnyNode to a RequestNode Returns the RequestNode and true if the cast succeeds, nil and false otherwise.\n\n```go\nfunc NewRequest(id string) *RequestNode\n```\nNewRequest starts a request node with the given id.\n\n```go\nfunc (n *RequestNode) Always() *RequestNode\n```\nAlways marks the node to run in the cleanup phase even after a main-phase failure.\n\n```go\nfunc (n *RequestNode) Assert(assertion CompositeAssertion) *RequestNode\n```\nAssert appends a validation assertion.\n\n```go\nfunc (n *RequestNode) Body(body any) *RequestNode\n```\nBody sets the request body (any JSON-serializable value, with {{var}} support).\n\n```go\nfunc (n *RequestNode) DELETE(url string) *RequestNode\n```\nDELETE is a shorthand for Method(\"DELETE\", url).\n\n```go\nfunc (n *RequestNode) DisplayName(name string) *RequestNode\n```\nDisplayName sets the human-readable name.\n\n```go\nfunc (n *RequestNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *RequestNode) GET(url string) *RequestNode\n```\nGET is a shorthand for Method(\"GET\", url).\n\n```go\nfunc (n *RequestNode) GetAssertions() []CompositeAssertion\n```\n\n```go\nfunc (n *RequestNode) GetData() RequestData\n```\n\n```go\nfunc (n *RequestNode) GetOutputs() []Output\n```\n\n```go\nfunc (n *RequestNode) Header(key, value string) *RequestNode\n```\nHeader adds a request header (supports {{var}} templates).\n\n```go\nfunc (n *RequestNode) InputSchema() []string\n```\nInputSchema infers inputs from template variables in URL, Headers, QueryParams, and Body.\n\n```go\nfunc (n *RequestNode) Method(method, url string) *RequestNode\n```\nMethod sets the HTTP method + URL.\n\n```go\nfunc (n *RequestNode) Output(output Output) *RequestNode\n```\nOutput appends an extracted output (referenced downstream as \"id.name\").\n\n```go\nfunc (n *RequestNode) OutputSchema() []string\n```\nOutputSchema infers outputs from the Outputs list.\n\n```go\nfunc (n *RequestNode) PATCH(url string) *RequestNode\n```\nPATCH is a shorthand for Method(\"PATCH\", url).\n\n```go\nfunc (n *RequestNode) POST(url string) *RequestNode\n```\nPOST is a shorthand for Method(\"POST\", url).\n\n```go\nfunc (n *RequestNode) PUT(url string) *RequestNode\n```\nPUT is a shorthand for Method(\"PUT\", url).\n\n```go\nfunc (n *RequestNode) TimeoutMs(ms int) *RequestNode\n```\nTimeoutMs sets the per-request timeout in milliseconds.\n\n```go\ntype ResponseBudget struct {\n\t// contains filtered or unexported fields\n}\n```\nResponseBudget bounds the response body bytes that every request node sharing it holds in memory at once. A node reserves a body's bytes before reading it and returns them once its assertions and outputs are evaluated; a body that does not fit waits, bounded by its request's timeout, rather than allocating.\n\n```go\nfunc NewResponseBudget(size int64) *ResponseBudget\n```\nNewResponseBudget returns a budget of size bytes, or nil (no bound) when size is zero or less.\n\n```go\nfunc (b *ResponseBudget) InUse() int64\n```\nInUse reports the bytes currently reserved.\n\n```go\ntype ResponseReleaser interface {\n\tReleaseResponse()\n}\n```\nResponseReleaser is the optional interface a node RESULT implements when its assertion context holds a response worth freeing once the engine's assertion/output pass and secret-output learning are done with it.\n\n```go\ntype SchemaInference struct{}\n```\nSchemaInference provides utilities to infer input and output schemas from node configurations.\n\n```go\nfunc (si *SchemaInference) ExtractTemplateVariables(data any) []string\n```\nExtractTemplateVariables extracts all {{variable}} references from a string or nested structure.\n\n```go\nfunc (si *SchemaInference) InferRequestNodeInputSchema(data RequestData) []string\n```\nInferRequestNodeInputSchema infers input schema from RequestNode data.\n\n```go\nfunc (si *SchemaInference) InferRequestNodeOutputSchema(outputs []Output) []string\n```\nInferRequestNodeOutputSchema infers output schema from Outputs.\n\n```go\ntype SelfResolvingNode interface {\n\tResolvedReferences() []string\n}\n```\nSelfResolvingNode resolves some {{refs}} itself at run time instead of declaring them as inputs. Validation still checks them.\n\n```go\ntype SetVariableData struct {\n\tVariables map[string]any `json:\"variables\"`\n}\n```\nSetVariableData configures a set-variable node. Each entry maps an output name to a template value: a string with {{a.b}} / {{x}} references, a number/bool, or a nested object/array that may contain {{{raw}}} structured references.\n\n```go\ntype SetVariableExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n}\n```\nSetVariableExecutionResult stores set-variable node execution data. The computed named values are exposed both as the node Outputs (via the embedded base) and as the engine sees them; DurationMs records resolution time.\n\n```go\nfunc (r *SetVariableExecutionResult) AssertionContext() extractors.ResponseContext\n```\nAssertionContext exposes the computed variables map (the node Outputs) as the ResponseContext the engine-level assertion/output pass evaluates against. This gives set-variable nodes free assertions over their resolved variables, satisfying AssertionContextProvider. A nil Outputs map (e.g. an error result) signals the engine to skip the pass.\n\n```go\ntype SetVariableNode struct {\n\tBaseNode\n\n\tData SetVariableData `json:\"data\"`\n}\n```\nSetVariableNode computes named outputs from upstream node outputs and flow inputs via template resolution, without performing any HTTP call. It is used to assemble payloads, derive headers, and reshape values between nodes.\n\n```go\nfunc AsSetVariableNode(candidate AnyNode) (*SetVariableNode, bool)\n```\nAsSetVariableNode safely casts an AnyNode to a SetVariableNode. Returns the SetVariableNode and true if the cast succeeds, nil and false otherwise.\n\n```go\nfunc (n *SetVariableNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute resolves every configured variable template against the node inputs and dynamic variables, returning the resolved values as the node outputs. No HTTP call or external side effect is performed.\n\n```go\nfunc (n *SetVariableNode) GetData() SetVariableData\n```\n\n```go\nfunc (n *SetVariableNode) InputSchema() []string\n```\nInputSchema infers required inputs from the template variables referenced in the configured values, mirroring how ModuleNode derives inputs from bindings.\n\n```go\nfunc (n *SetVariableNode) OutputSchema() []string\n```\nOutputSchema exposes the names of the variables this node produces, sorted.\n\n```go\ntype SkippedResultFactory func(base spi.BaseExecutionResult) spi.AnyResult\n```\nSkippedResultFactory builds the kind's skipped execution result from a shared base, so the engine doesn't switch on node type to construct skips.\n\n```go\ntype SseData struct {\n\t// URL is the event-stream endpoint (templated).\n\tURL string `json:\"url\"`\n\t// Method defaults to GET when empty.\n\tMethod string `json:\"method\"`\n\t// Headers are sent on the request (values templated).\n\tHeaders map[string]string `json:\"headers\"`\n\t// MaxEvents stops the stream after N events (default defaultSseMaxEvents).\n\tMaxEvents int `json:\"max_events\"`\n\t// TimeoutMs is the overall deadline in milliseconds (default defaultSseTimeoutMs).\n\tTimeoutMs int `json:\"timeout_ms\"`\n\t// CompletionEvent, when set, stops the stream as soon as an event whose\n\t// \"event:\" name OR raw data equals this value is dispatched.\n\tCompletionEvent string `json:\"completion_event\"`\n\t// StopOnAssertionFailure stops (and fails) the node on the first failing\n\t// per-event assertion. Defaults to true.\n\tStopOnAssertionFailure *bool `json:\"stop_on_assertion_failure\"`\n}\n```\nSseData configures a connection to a text/event-stream endpoint that is consumed event-by-event over time.\n\n```go\ntype SseExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\t// RequestMethod and RequestURL capture the resolved connection details.\n\tRequestMethod string `json:\"request_method\"`\n\tRequestURL    string `json:\"request_url\"`\n\n\t// Events holds every dispatched event's parsed data (JSON when the data was\n\t// valid JSON, otherwise the raw string), in arrival order.\n\tEvents []any `json:\"events\"`\n\t// EventCount is len(Events).\n\tEventCount int `json:\"event_count\"`\n\n\t// StopReason records why streaming stopped (max_events, completion_event,\n\t// timeout, eof, assertion_failure).\n\tStopReason string `json:\"stop_reason,omitempty\"`\n\n\t// Timing\n\tDurationMs int64 `json:\"duration_ms\"`\n}\n```\nSseExecutionResult stores SSE (Server-Sent Events) node execution data.\n\n```go\ntype SseNode struct {\n\tBaseNode\n\n\tData SseData `json:\"data\"`\n\t// contains filtered or unexported fields\n}\n```\nSseNode connects to a Server-Sent Events endpoint, consumes events over time, and runs the node's assertions against each event's parsed data with a cross-event accumulator. Unlike the buffered single-shot request node, it streams: events are processed as they arrive and the connection is closed as soon as a stop condition (max\\_events, completion\\_event, timeout, assertion failure, or EOF) is met.\n\n```go\nfunc AsSseNode(node AnyNode) (*SseNode, bool)\n```\nAsSseNode safely casts an AnyNode to an SseNode. Returns the SseNode and true if the cast succeeds, nil and false otherwise.\n\n```go\nfunc (n *SseNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\nExecute connects to the SSE endpoint and consumes events until a stop condition is met. On any failure it returns a populated result plus the error so the engine records a failed node.\n\n```go\nfunc (n *SseNode) GetData() SseData\n```\n\n```go\nfunc (n *SseNode) InputSchema() []string\n```\nInputSchema infers inputs from template variables in URL, Headers and assertion expected values.\n\n```go\nfunc (n *SseNode) OutputSchema() []string\n```\nOutputSchema returns the keys this node always produces.\n\n```go\ntype TemplateResolver struct {\n\t// contains filtered or unexported fields\n}\n```\nTemplateResolver handles resolution of {{variableName}} templates in strings and objects.\n\n```go\nfunc NewTemplateResolver(variables map[string]any) *TemplateResolver\n```\nNewTemplateResolver creates a new template resolver with the given variables.\n\n```go\nfunc NewTemplateResolverWithDynamics(\n\tvariables map[string]any, dynamic spi.DynamicResolver,\n) *TemplateResolver\n```\nNewTemplateResolverWithDynamics creates a resolver that also resolves {{$name}} dynamic variables via the given resolver (may be nil).\n\n```go\nfunc (tr *TemplateResolver) Resolve(value any) (any, error)\n```\nResolve recursively resolves all {{variableName}} templates in the given value Supports strings, maps, slices, and nested structures.\n\n```go\ntype WebhookExpectation struct {\n\tName       string               `json:\"name\"`\n\tMin        *int                 `json:\"min,omitempty\"`\n\tMax        *int                 `json:\"max,omitempty\"`\n\tAssertions []CompositeAssertion `json:\"assertions\"`\n}\n```\nWebhookExpectation is one event a webhook wait expects: a name over a group of assertions, and how many events may satisfy it.\n\n```go\ntype WebhookWaitData struct {\n\tTimeoutMs int                  `json:\"timeout_ms\"`\n\tSettleMs  int                  `json:\"settle_ms\"`\n\tExpect    []WebhookExpectation `json:\"expect,omitempty\"`\n}\n```\nWebhookWaitData configures a wait on the webhook requests captured for this execution. With Expect, the wait checks a set of named events instead of taking the first match.\n\n```go\ntype WebhookWaitExecutionResult struct {\n\tspi.BaseExecutionResult\n\n\tDurationMs int64 `json:\"duration_ms\"`\n\t// RecentRequests holds the newest requests a failed wait saw, at most five.\n\tRecentRequests []map[string]any `json:\"recent_requests,omitempty\"`\n\t// Expectations is the verdict per expected event, in declaration order.\n\tExpectations []ExpectationOutcome `json:\"expectations,omitempty\"`\n}\n```\nWebhookWaitExecutionResult stores webhook-wait node execution data. The node polls the webhook requests captured for this execution until a stored request passes its assertions.\n\n```go\ntype WebhookWaitNode struct {\n\tBaseNode\n\n\tData WebhookWaitData `json:\"data\"`\n}\n```\nWebhookWaitNode polls GET webhook.requests\\_url with the job token until a stored request passes the node's assertions. Authors never set a history URL or key.\n\n```go\nfunc AsWebhookWaitNode(n AnyNode) (*WebhookWaitNode, bool)\n```\nAsWebhookWaitNode safely casts an AnyNode to a WebhookWaitNode.\n\n```go\nfunc (n *WebhookWaitNode) Execute(ctx spi.ExecutionContext) (spi.AnyResult, error)\n```\n\n```go\nfunc (n *WebhookWaitNode) GetData() WebhookWaitData\n```\n\n```go\nfunc (n *WebhookWaitNode) InputSchema() []string\n```\n\n```go\nfunc (n *WebhookWaitNode) OutputSchema() []string\n```\n\n```go\nfunc (n *WebhookWaitNode) ResolvedReferences() []string\n```\nResolvedReferences names the {{refs}} in assertion values. The wait resolves them itself from completed outputs, so a final check that runs after a failed branch still evaluates every group whose references exist.\n\n","path":"github.com/nanostack-dev/echopoint-runner/pkg/node","name":"node","synopsis":"","isRedistributable":true}
