Skip to content

@codesoul-co/hypha-core / modules/runtime/runtime-replay-service

Using this module

Use the Runtime replay service module for executing runtime behavior at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

ts
import {
  RuntimeReplayService,
} from '@codesoul-co/hypha-core';

import type {
  RuntimeReplayServiceOptions,
} from '@codesoul-co/hypha-core';

Usage patterns

  • Use the 1 type/interface export as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.

Public exports

SymbolKindSignatureDescription
RuntimeReplayServiceclassnew RuntimeReplayService(options: RuntimeReplayServiceOptions): RuntimeReplayServiceRuntime Replay Service class with 3 public constructor or member entries; its exact declarations are listed below.
RuntimeReplayServiceOptionsinterfaceinterface RuntimeReplayServiceOptionsRuntime Replay Service Options interface with 3 public fields or methods.

RuntimeReplayService

Runtime Replay Service class with 3 public constructor or member entries; its exact declarations are listed below.

Declaration

text
export declare class RuntimeReplayService implements RuntimeReplayServiceContract {
    constructor(options: RuntimeReplayServiceOptions);
    replay(input: RuntimeReplayRequest): Promise<RuntimeReplayResult>;
    verify(input: RuntimeReplayVerificationRequest): Promise<RuntimeReplayVerificationResult>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: RuntimeReplayServiceOptions): RuntimeReplayServiceCreates an instance of this class.
replaymethodreplay(input: RuntimeReplayRequest): Promise<RuntimeReplayResult>Public method; parameters and return type are shown in the signature.
verifymethodverify(input: RuntimeReplayVerificationRequest): Promise<RuntimeReplayVerificationResult>Public method; parameters and return type are shown in the signature.

RuntimeReplayServiceOptions

Runtime Replay Service Options interface with 3 public fields or methods.

Declaration

text
export interface RuntimeReplayServiceOptions {
    events: Pick<EventRuntime, 'read'>;
    checkpoints: Pick<RuntimeCheckpointService, 'load'>;
    now?: () => string;
}

Contract members

MemberKindSignatureDescription
checkpointspropertycheckpoints: Pick<RuntimeCheckpointService, "load">Public property; its type, readonly modifier and optionality are shown in the signature.
eventspropertyevents: Pick<EventRuntime, "read">Public property; its type, readonly modifier and optionality are shown in the signature.
nowmethodnow?(): stringPublic method; parameters and return type are shown in the signature.