Skip to content

@codesoul-co/hypha-core / modules/runtime/runtime-checkpoint-store

Using this module

Use the Runtime checkpoint store module for persisting and reading data at this boundary. It exports 1 class, 2 functions.

Import from the package entrypoint

ts
import {
  InMemoryRuntimeCheckpointStore,
  runtimeCheckpointChecksum,
  verifyRuntimeCheckpointChecksum,
} from '@codesoul-co/hypha-core';

Usage patterns

  • The module exposes 1 class as constructable runtime implementations. Each symbol entry lists its constructor and public methods.
  • The module exposes 2 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.

Public exports

SymbolKindSignatureDescription
InMemoryRuntimeCheckpointStoreclassnew InMemoryRuntimeCheckpointStore(): InMemoryRuntimeCheckpointStoreIn Memory Runtime Checkpoint Store class with 5 public constructor or member entries; its exact declarations are listed below.
runtimeCheckpointChecksumfunctionruntimeCheckpointChecksum(record: Omit<RuntimeCheckpointRecord, "checksum"> | RuntimeCheckpointRecord): stringRuntime Checkpoint Checksum function with 1 public call signature; parameters and return types are listed below.
verifyRuntimeCheckpointChecksumfunctionverifyRuntimeCheckpointChecksum(record: RuntimeCheckpointRecord): voidVerify Runtime Checkpoint Checksum function with 1 public call signature; parameters and return types are listed below.

InMemoryRuntimeCheckpointStore

In Memory Runtime Checkpoint Store class with 5 public constructor or member entries; its exact declarations are listed below.

Declaration

text
export declare class InMemoryRuntimeCheckpointStore implements RuntimeCheckpointStore {
    put(input: RuntimeCheckpointRecord, idempotencyKey: string): Promise<RuntimeCheckpointPutResult>;
    get(scope: RuntimeScope, checkpointId: string): Promise<RuntimeCheckpointRecord | null>;
    latest(scope: RuntimeScope): Promise<RuntimeCheckpointRecord | null>;
    list(scope: RuntimeScope, limit?: number): Promise<RuntimeCheckpointRecord[]>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): InMemoryRuntimeCheckpointStoreCreates an instance of this class.
getmethodget(scope: RuntimeScope, checkpointId: string): Promise<RuntimeCheckpointRecord | null>Public method; parameters and return type are shown in the signature.
latestmethodlatest(scope: RuntimeScope): Promise<RuntimeCheckpointRecord | null>Public method; parameters and return type are shown in the signature.
listmethodlist(scope: RuntimeScope, limit?: number): Promise<RuntimeCheckpointRecord[]>Public method; parameters and return type are shown in the signature.
putmethodput(input: RuntimeCheckpointRecord, idempotencyKey: string): Promise<RuntimeCheckpointPutResult>Public method; parameters and return type are shown in the signature.

runtimeCheckpointChecksum

Runtime Checkpoint Checksum function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function runtimeCheckpointChecksum(record: Omit<RuntimeCheckpointRecord, 'checksum'> | RuntimeCheckpointRecord): string;

Call signature

text
runtimeCheckpointChecksum(record: Omit<RuntimeCheckpointRecord, "checksum"> | RuntimeCheckpointRecord): string

Parameters

ParameterTypeRequiredDescription
recordRuntimeCheckpointRecord | Omit<RuntimeCheckpointRecord, "checksum">YesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: string
  • Description: The return contract is defined by the type shown above.

verifyRuntimeCheckpointChecksum

Verify Runtime Checkpoint Checksum function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function verifyRuntimeCheckpointChecksum(record: RuntimeCheckpointRecord): void;

Call signature

text
verifyRuntimeCheckpointChecksum(record: RuntimeCheckpointRecord): void

Parameters

ParameterTypeRequiredDescription
recordRuntimeCheckpointRecordYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: void
  • Description: Returns no value.