Skip to content

@codesoul-co/hypha-core / contracts/runtime-recovery

Using this module

Use the Runtime recovery module for declaring and runtime-validating contracts. It exports 5 constants, 15 interfaces, 5 types.

Import from the package entrypoint

ts
import {
  RUNTIME_ACTIVITY_COMPENSATION_STATUSES,
  RUNTIME_ACTIVITY_RECONCILIATION_STATUSES,
  RUNTIME_RECOVERY_CANDIDATE_REASONS,
  RUNTIME_RECOVERY_DISPOSITIONS,
  RUNTIME_RECOVERY_SAFE_ACTIONS,
} from '@codesoul-co/hypha-core';

import type {
  RuntimeActivityCompensationRequest,
  RuntimeActivityCompensationResult,
  RuntimeActivityReconciliationPort,
  RuntimeActivityReconciliationRequest,
  RuntimeActivityReconciliationResult,
  RuntimeActivityRetryRequest,
  RuntimeCancellationRecoveryPort,
  RuntimeRecoveryCandidate,
} from '@codesoul-co/hypha-core';

// The complete export list is documented below.

Usage patterns

  • Use the 20 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The 5 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Public exports

SymbolKindSignatureDescription
RUNTIME_ACTIVITY_COMPENSATION_STATUSESconstantconst RUNTIME_ACTIVITY_COMPENSATION_STATUSES: readonly ["completed", "failed", "requires_review"]RUNTIME ACTIVITY COMPENSATION STATUSES constant exported by the contracts/runtime-recovery module.
RUNTIME_ACTIVITY_RECONCILIATION_STATUSESconstantconst RUNTIME_ACTIVITY_RECONCILIATION_STATUSES: readonly ["completed", "failed", "waiting", "cancelled", "not_started", "unknown"]RUNTIME ACTIVITY RECONCILIATION STATUSES constant exported by the contracts/runtime-recovery module.
RUNTIME_RECOVERY_CANDIDATE_REASONSconstantconst RUNTIME_RECOVERY_CANDIDATE_REASONS: readonly ["LEASE_EXPIRED", "STATE_CLAIM_EXPIRED", "PROJECTION_BEHIND", "CHECKPOINT_BEHIND", "ACTIVITY_RESULT_UNAPPLIED", "ACTIVITY_COMPENSATION_REQUIRED", "ACTIVITY_REDISPATCH_INCOMPLETE", "MESSAGE_UNACKED", "OUTBOX_UNPUBLISHED", "WAIT_WITHOUT_REGISTRATION", "TIMER_OVERDUE", "SESSION_COMMAND_INCOMPLETE", "RUN_PROJECTION_CONFLICT", "CANCELLATION_INCOMPLETE", "CUSTOM"]RUNTIME RECOVERY CANDIDATE REASONS constant exported by the contracts/runtime-recovery module.
RUNTIME_RECOVERY_DISPOSITIONSconstantconst RUNTIME_RECOVERY_DISPOSITIONS: readonly ["recovered", "reused", "requeued", "compensated", "requires_review", "lease_unavailable", "stale"]RUNTIME RECOVERY DISPOSITIONS constant exported by the contracts/runtime-recovery module.
RUNTIME_RECOVERY_SAFE_ACTIONSconstantconst RUNTIME_RECOVERY_SAFE_ACTIONS: readonly ["rebuild_projection", "requeue", "apply_observation", "compensate_activity", "reconcile_redispatch", "restore_wait", "fire_timer", "republish_message", "mark_failed", "manual_review"]RUNTIME RECOVERY SAFE ACTIONS constant exported by the contracts/runtime-recovery module.
RuntimeActivityCompensationRequestinterfaceinterface RuntimeActivityCompensationRequestRuntime Activity Compensation Request interface with 5 public fields or methods.
RuntimeActivityCompensationResultinterfaceinterface RuntimeActivityCompensationResultRuntime Activity Compensation Result interface with 5 public fields or methods.
RuntimeActivityReconciliationPortinterfaceinterface RuntimeActivityReconciliationPortRuntime Activity Reconciliation Port interface with 3 public fields or methods.
RuntimeActivityReconciliationRequestinterfaceinterface RuntimeActivityReconciliationRequestRuntime Activity Reconciliation Request interface with 3 public fields or methods.
RuntimeActivityReconciliationResultinterfaceinterface RuntimeActivityReconciliationResultRuntime Activity Reconciliation Result interface with 5 public fields or methods.
RuntimeActivityRetryRequestinterfaceinterface RuntimeActivityRetryRequest extends RuntimeActivityReconciliationRequestRuntime Activity Retry Request interface with 4 public fields or methods.
RuntimeCancellationRecoveryPortinterfaceinterface RuntimeCancellationRecoveryPortRuntime Cancellation Recovery Port interface with 1 public fields or methods.
RuntimeRecoveryCandidateinterfaceinterface RuntimeRecoveryCandidateRuntime Recovery Candidate interface with 12 public fields or methods.
RuntimeRecoveryCommandinterfaceinterface RuntimeRecoveryCommandRuntime Recovery Command interface with 4 public fields or methods.
RuntimeRecoveryRequeuePortinterfaceinterface RuntimeRecoveryRequeuePortRuntime Recovery Requeue Port interface with 1 public fields or methods.
RuntimeRecoveryRequeueRequestinterfaceinterface RuntimeRecoveryRequeueRequestRuntime Recovery Requeue Request interface with 7 public fields or methods.
RuntimeRecoveryResultinterfaceinterface RuntimeRecoveryResultRuntime Recovery Result interface with 4 public fields or methods.
RuntimeRecoveryScanRequestinterfaceinterface RuntimeRecoveryScanRequestRuntime Recovery Scan Request interface with 3 public fields or methods.
RuntimeRecoveryScanResultinterfaceinterface RuntimeRecoveryScanResultRuntime Recovery Scan Result interface with 3 public fields or methods.
RuntimeRecoveryScopeinterfaceinterface RuntimeRecoveryScopeRuntime Recovery Scope interface with 3 public fields or methods.
RuntimeActivityCompensationStatustypetype RuntimeActivityCompensationStatus = (typeof RUNTIME_ACTIVITY_COMPENSATION_STATUSES)[number]Public type alias for Runtime Activity Compensation Status; the declaration contains its complete type expression.
RuntimeActivityReconciliationStatustypetype RuntimeActivityReconciliationStatus = (typeof RUNTIME_ACTIVITY_RECONCILIATION_STATUSES)[number]Public type alias for Runtime Activity Reconciliation Status; the declaration contains its complete type expression.
RuntimeRecoveryCandidateReasontypetype RuntimeRecoveryCandidateReason = (typeof RUNTIME_RECOVERY_CANDIDATE_REASONS)[number]Public type alias for Runtime Recovery Candidate Reason; the declaration contains its complete type expression.
RuntimeRecoveryDispositiontypetype RuntimeRecoveryDisposition = (typeof RUNTIME_RECOVERY_DISPOSITIONS)[number]Public type alias for Runtime Recovery Disposition; the declaration contains its complete type expression.
RuntimeRecoverySafeActiontypetype RuntimeRecoverySafeAction = (typeof RUNTIME_RECOVERY_SAFE_ACTIONS)[number]Public type alias for Runtime Recovery Safe Action; the declaration contains its complete type expression.

RUNTIME_ACTIVITY_COMPENSATION_STATUSES

RUNTIME ACTIVITY COMPENSATION STATUSES constant exported by the contracts/runtime-recovery module.

  • Kind: constant
  • Import: import { RUNTIME_ACTIVITY_COMPENSATION_STATUSES } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export declare const RUNTIME_ACTIVITY_COMPENSATION_STATUSES: readonly ["completed", "failed", "requires_review"];

RUNTIME_ACTIVITY_RECONCILIATION_STATUSES

RUNTIME ACTIVITY RECONCILIATION STATUSES constant exported by the contracts/runtime-recovery module.

  • Kind: constant
  • Import: import { RUNTIME_ACTIVITY_RECONCILIATION_STATUSES } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export declare const RUNTIME_ACTIVITY_RECONCILIATION_STATUSES: readonly ["completed", "failed", "waiting", "cancelled", "not_started", "unknown"];

RUNTIME_RECOVERY_CANDIDATE_REASONS

RUNTIME RECOVERY CANDIDATE REASONS constant exported by the contracts/runtime-recovery module.

  • Kind: constant
  • Import: import { RUNTIME_RECOVERY_CANDIDATE_REASONS } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export declare const RUNTIME_RECOVERY_CANDIDATE_REASONS: readonly ["LEASE_EXPIRED", "STATE_CLAIM_EXPIRED", "PROJECTION_BEHIND", "CHECKPOINT_BEHIND", "ACTIVITY_RESULT_UNAPPLIED", "ACTIVITY_COMPENSATION_REQUIRED", "ACTIVITY_REDISPATCH_INCOMPLETE", "MESSAGE_UNACKED", "OUTBOX_UNPUBLISHED", "WAIT_WITHOUT_REGISTRATION", "TIMER_OVERDUE", "SESSION_COMMAND_INCOMPLETE", "RUN_PROJECTION_CONFLICT", "CANCELLATION_INCOMPLETE", "CUSTOM"];

RUNTIME_RECOVERY_DISPOSITIONS

RUNTIME RECOVERY DISPOSITIONS constant exported by the contracts/runtime-recovery module.

  • Kind: constant
  • Import: import { RUNTIME_RECOVERY_DISPOSITIONS } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export declare const RUNTIME_RECOVERY_DISPOSITIONS: readonly ["recovered", "reused", "requeued", "compensated", "requires_review", "lease_unavailable", "stale"];

RUNTIME_RECOVERY_SAFE_ACTIONS

RUNTIME RECOVERY SAFE ACTIONS constant exported by the contracts/runtime-recovery module.

  • Kind: constant
  • Import: import { RUNTIME_RECOVERY_SAFE_ACTIONS } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export declare const RUNTIME_RECOVERY_SAFE_ACTIONS: readonly ["rebuild_projection", "requeue", "apply_observation", "compensate_activity", "reconcile_redispatch", "restore_wait", "fire_timer", "republish_message", "mark_failed", "manual_review"];

RuntimeActivityCompensationRequest

Runtime Activity Compensation Request interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityCompensationRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityCompensationRequest {
    invocation: RuntimeActivityInvocation;
    reason: string;
    requestedAt: string;
    fencingToken: number;
    idempotencyKey: string;
}

Contract members

MemberKindSignatureDescription
fencingTokenpropertyfencingToken: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
invocationpropertyinvocation: RuntimeActivityInvocation<import("/Users/erwin/Downloads/codespace/Hypha/packages/core/dist/index").RuntimeJsonValue>Public property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
requestedAtpropertyrequestedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityCompensationResult

Runtime Activity Compensation Result interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityCompensationResult } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityCompensationResult {
    activityId: string;
    status: RuntimeActivityCompensationStatus;
    providerRevision?: string;
    receiptId?: string;
    errorCode?: string;
}

Contract members

MemberKindSignatureDescription
activityIdpropertyactivityId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
errorCodepropertyerrorCode?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerRevisionpropertyproviderRevision?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
receiptIdpropertyreceiptId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "failed" | "requires_review"Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityReconciliationPort

Runtime Activity Reconciliation Port interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityReconciliationPort } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityReconciliationPort {
    reconcile(request: RuntimeActivityReconciliationRequest): Promise<RuntimeActivityReconciliationResult>;
    retry(request: RuntimeActivityRetryRequest): Promise<RuntimeActivityObservation>;
    compensate?(request: RuntimeActivityCompensationRequest): Promise<RuntimeActivityCompensationResult>;
}

Contract members

MemberKindSignatureDescription
compensatemethodcompensate?(request: RuntimeActivityCompensationRequest): Promise<RuntimeActivityCompensationResult>Public method; parameters and return type are shown in the signature.
reconcilemethodreconcile(request: RuntimeActivityReconciliationRequest): Promise<RuntimeActivityReconciliationResult>Public method; parameters and return type are shown in the signature.
retrymethodretry(request: RuntimeActivityRetryRequest): Promise<RuntimeActivityObservation>Public method; parameters and return type are shown in the signature.

RuntimeActivityReconciliationRequest

Runtime Activity Reconciliation Request interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityReconciliationRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityReconciliationRequest {
    invocation: RuntimeActivityInvocation;
    checkedAt: string;
    idempotencyKey: string;
}

Contract members

MemberKindSignatureDescription
checkedAtpropertycheckedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
invocationpropertyinvocation: RuntimeActivityInvocation<import("/Users/erwin/Downloads/codespace/Hypha/packages/core/dist/index").RuntimeJsonValue>Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityReconciliationResult

Runtime Activity Reconciliation Result interface with 5 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityReconciliationResult } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityReconciliationResult {
    activityId: string;
    status: RuntimeActivityReconciliationStatus;
    observation?: RuntimeActivityObservation;
    providerRevision?: string;
    receiptId?: string;
}

Contract members

MemberKindSignatureDescription
activityIdpropertyactivityId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
observationpropertyobservation?: RuntimeActivityObservation<import("/Users/erwin/Downloads/codespace/Hypha/packages/core/dist/index").RuntimeJsonValue>Public property; its type, readonly modifier and optionality are shown in the signature.
providerRevisionpropertyproviderRevision?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
receiptIdpropertyreceiptId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "unknown" | "completed" | "cancelled" | "failed" | "not_started" | "waiting"Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityRetryRequest

Runtime Activity Retry Request interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeActivityRetryRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeActivityRetryRequest extends RuntimeActivityReconciliationRequest {
    fencingToken: number;
}

Contract members

MemberKindSignatureDescription
checkedAtpropertycheckedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
fencingTokenpropertyfencingToken: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
invocationpropertyinvocation: RuntimeActivityInvocation<import("/Users/erwin/Downloads/codespace/Hypha/packages/core/dist/index").RuntimeJsonValue>Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeCancellationRecoveryPort

Runtime Cancellation Recovery Port interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeCancellationRecoveryPort } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeCancellationRecoveryPort {
    cancel(input: RuntimeCancelCommand): Promise<RuntimeCancelResult>;
}

Contract members

MemberKindSignatureDescription
cancelmethodcancel(input: RuntimeCancelCommand): Promise<RuntimeCancelResult>Public method; parameters and return type are shown in the signature.

RuntimeRecoveryCandidate

Runtime Recovery Candidate interface with 12 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryCandidate } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryCandidate {
    candidateId: string;
    scope: RuntimeRecoveryScope;
    reason: RuntimeRecoveryCandidateReason;
    safeAction: RuntimeRecoverySafeAction;
    eventHeadSequence: number;
    projectionSequence?: number;
    activityId?: string;
    redispatchRequestEventId?: string;
    stateId?: string;
    stateAttempt?: number;
    currentLease?: FencedRunLease;
    detectedAt: string;
}

Contract members

MemberKindSignatureDescription
activityIdpropertyactivityId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
candidateIdpropertycandidateId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
currentLeasepropertycurrentLease?: FencedRunLeasePublic property; its type, readonly modifier and optionality are shown in the signature.
detectedAtpropertydetectedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
eventHeadSequencepropertyeventHeadSequence: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
projectionSequencepropertyprojectionSequence?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: "LEASE_EXPIRED" | "STATE_CLAIM_EXPIRED" | "PROJECTION_BEHIND" | "CHECKPOINT_BEHIND" | "ACTIVITY_RESULT_UNAPPLIED" | "ACTIVITY_COMPENSATION_REQUIRED" | "ACTIVITY_REDISPATCH_INCOMPLETE" | "MESSAGE_UNACKED" | "OUTBOX_UNPUBLISHED" | "WAIT_WITHOUT_REGISTRATION" | "TIMER_OVERDUE" | "SESSION_COMMAND_INCOMPLETE" | "RUN_PROJECTION_CONFLICT" | "CANCELLATION_INCOMPLETE" | "CUSTOM"Public property; its type, readonly modifier and optionality are shown in the signature.
redispatchRequestEventIdpropertyredispatchRequestEventId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
safeActionpropertysafeAction: "rebuild_projection" | "requeue" | "apply_observation" | "compensate_activity" | "reconcile_redispatch" | "restore_wait" | "fire_timer" | "republish_message" | "mark_failed" | "manual_review"Public property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: RuntimeRecoveryScopePublic property; its type, readonly modifier and optionality are shown in the signature.
stateAttemptpropertystateAttempt?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
stateIdpropertystateId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryCommand

Runtime Recovery Command interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryCommand } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryCommand {
    candidate: RuntimeRecoveryCandidate;
    ownerId: string;
    leaseTtlMs: number;
    requestedAt: string;
}

Contract members

MemberKindSignatureDescription
candidatepropertycandidate: RuntimeRecoveryCandidatePublic property; its type, readonly modifier and optionality are shown in the signature.
leaseTtlMspropertyleaseTtlMs: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerIdpropertyownerId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
requestedAtpropertyrequestedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryRequeuePort

Runtime Recovery Requeue Port interface with 1 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryRequeuePort } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryRequeuePort {
    requeue(request: RuntimeRecoveryRequeueRequest): Promise<void>;
}

Contract members

MemberKindSignatureDescription
requeuemethodrequeue(request: RuntimeRecoveryRequeueRequest): Promise<void>Public method; parameters and return type are shown in the signature.

RuntimeRecoveryRequeueRequest

Runtime Recovery Requeue Request interface with 7 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryRequeueRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryRequeueRequest {
    scope: RuntimeRecoveryScope;
    reason: RuntimeRecoveryCandidateReason;
    requestedAt: string;
    fencingToken: number;
    expectedStateId?: string;
    expectedStateAttempt?: number;
    idempotencyKey: string;
}

Contract members

MemberKindSignatureDescription
expectedStateAttemptpropertyexpectedStateAttempt?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedStateIdpropertyexpectedStateId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
fencingTokenpropertyfencingToken: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
idempotencyKeypropertyidempotencyKey: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
reasonpropertyreason: "LEASE_EXPIRED" | "STATE_CLAIM_EXPIRED" | "PROJECTION_BEHIND" | "CHECKPOINT_BEHIND" | "ACTIVITY_RESULT_UNAPPLIED" | "ACTIVITY_COMPENSATION_REQUIRED" | "ACTIVITY_REDISPATCH_INCOMPLETE" | "MESSAGE_UNACKED" | "OUTBOX_UNPUBLISHED" | "WAIT_WITHOUT_REGISTRATION" | "TIMER_OVERDUE" | "SESSION_COMMAND_INCOMPLETE" | "RUN_PROJECTION_CONFLICT" | "CANCELLATION_INCOMPLETE" | "CUSTOM"Public property; its type, readonly modifier and optionality are shown in the signature.
requestedAtpropertyrequestedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scopepropertyscope: RuntimeRecoveryScopePublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryResult

Runtime Recovery Result interface with 4 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryResult } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryResult {
    candidateId: string;
    disposition: RuntimeRecoveryDisposition;
    eventIds: string[];
    projection?: RuntimeOrchestrationProjection;
}

Contract members

MemberKindSignatureDescription
candidateIdpropertycandidateId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
dispositionpropertydisposition: "recovered" | "compensated" | "reused" | "requeued" | "lease_unavailable" | "requires_review" | "stale"Public property; its type, readonly modifier and optionality are shown in the signature.
eventIdspropertyeventIds: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
projectionpropertyprojection?: RuntimeOrchestrationProjectionPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryScanRequest

Runtime Recovery Scan Request interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryScanRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryScanRequest {
    checkedAt: string;
    limit: number;
    cursor?: string;
}

Contract members

MemberKindSignatureDescription
checkedAtpropertycheckedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
cursorpropertycursor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
limitpropertylimit: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryScanResult

Runtime Recovery Scan Result interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryScanResult } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryScanResult {
    candidates: RuntimeRecoveryCandidate[];
    scannedStreams: number;
    nextCursor?: string;
}

Contract members

MemberKindSignatureDescription
candidatespropertycandidates: RuntimeRecoveryCandidate[]Public property; its type, readonly modifier and optionality are shown in the signature.
nextCursorpropertynextCursor?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
scannedStreamspropertyscannedStreams: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeRecoveryScope

Runtime Recovery Scope interface with 3 public fields or methods.

  • Kind: interface
  • Import: import type { RuntimeRecoveryScope } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export interface RuntimeRecoveryScope {
    tenantId?: string;
    userId: string;
    runId: string;
}

Contract members

MemberKindSignatureDescription
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tenantIdpropertytenantId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
userIdpropertyuserId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityCompensationStatus

Public type alias for Runtime Activity Compensation Status; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { RuntimeActivityCompensationStatus } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export type RuntimeActivityCompensationStatus = (typeof RUNTIME_ACTIVITY_COMPENSATION_STATUSES)[number];

RuntimeActivityReconciliationStatus

Public type alias for Runtime Activity Reconciliation Status; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { RuntimeActivityReconciliationStatus } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export type RuntimeActivityReconciliationStatus = (typeof RUNTIME_ACTIVITY_RECONCILIATION_STATUSES)[number];

RuntimeRecoveryCandidateReason

Public type alias for Runtime Recovery Candidate Reason; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { RuntimeRecoveryCandidateReason } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export type RuntimeRecoveryCandidateReason = (typeof RUNTIME_RECOVERY_CANDIDATE_REASONS)[number];

RuntimeRecoveryDisposition

Public type alias for Runtime Recovery Disposition; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { RuntimeRecoveryDisposition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export type RuntimeRecoveryDisposition = (typeof RUNTIME_RECOVERY_DISPOSITIONS)[number];

RuntimeRecoverySafeAction

Public type alias for Runtime Recovery Safe Action; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { RuntimeRecoverySafeAction } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-recovery

Declaration

text
export type RuntimeRecoverySafeAction = (typeof RUNTIME_RECOVERY_SAFE_ACTIONS)[number];