GraphReFlyTS

API Reference

wireBridgeIdempotencyKey()

Stable D134 idempotency key helper scoped to one bridge session and sequence.

Import

import { wireBridgeIdempotencyKey } from "@graphrefly/ts/adapters";

Signature

function wireBridgeIdempotencyKey(
	sessionId: string,
	seq: number,
): string

Parameters

ParameterTypeDescription
sessionIdstringStable identifier used by the emitted record.
seqnumberseq value used by the helper.

Returns

The stable key or reference string.

Example

import { wireBridgeIdempotencyKey } from "@graphrefly/ts/adapters";

Source

packages/ts/src/adapters/bridge.ts