wireBridgeEnvelope()
Create a D134 wire bridge envelope with ordered metadata.
Import
Section titled “Import”import { wireBridgeEnvelope } from "@graphrefly/ts/adapters";Signature
Section titled “Signature”function wireBridgeEnvelope(input: { readonly sessionId: string; readonly type: WireBridgeEnvelopeType; readonly seq: number; readonly cursor?: number; readonly payload?: WireBridgePayload<TData>; readonly idempotencyKey?: string; readonly attempt?: number; readonly maxAttempts?: number; readonly timestampMs?: number; readonly ackForSeq?: number; readonly requestId?: string;}): WireBridgeEnvelope<TData>Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
input | { readonly sessionId: string; readonly type: WireBridgeEnvelopeType; readonly seq: number; readonly cursor?: number; readonly payload?: WireBridgePayload<TData>; readonly idempotencyKey?: string; readonly attempt?: number; readonly maxAttempts?: number; readonly timestampMs?: number; readonly ackForSeq?: number; readonly requestId?: string; } | Input value to project or validate. |
Returns
Section titled “Returns”A WireBridgeEnvelope<TData> value.
Example
Section titled “Example”import { wireBridgeEnvelope } from "@graphrefly/ts/adapters";Source
Section titled “Source”packages/ts/src/adapters/bridge.ts