Skip to content

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

Using this module

Use the Runtime module for declaring and runtime-validating contracts. It exports 6 constants, 8 interfaces, 6 types.

Import from the package entrypoint

ts
import {
  RUNTIME_ERROR_CODES,
  RUNTIME_PRINCIPAL_TYPES,
  RUNTIME_RUN_STATUSES,
  RUNTIME_SESSION_STATUSES,
  RUNTIME_WAIT_STATUSES,
  RUNTIME_WAIT_TYPES,
} from '@codesoul-co/hypha-core';

import type {
  NormalizedRuntimeError,
  RunSignalRequest,
  RuntimePrincipal,
  RuntimeRun,
  RuntimeScope,
  RuntimeSession,
  RuntimeWaitRecord,
  RuntimeWaitRequest,
} from '@codesoul-co/hypha-core';

// The complete export list is documented below.

Usage patterns

  • Use the 14 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.
  • The 6 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_ERROR_CODESconstantconst RUNTIME_ERROR_CODES: readonly ["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RU...RUNTIME ERROR CODES constant exported by the contracts/runtime module.
RUNTIME_PRINCIPAL_TYPESconstantconst RUNTIME_PRINCIPAL_TYPES: readonly ["user", "agent", "service", "system"]RUNTIME PRINCIPAL TYPES constant exported by the contracts/runtime module.
RUNTIME_RUN_STATUSESconstantconst RUNTIME_RUN_STATUSES: readonly ["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"]RUNTIME RUN STATUSES constant exported by the contracts/runtime module.
RUNTIME_SESSION_STATUSESconstantconst RUNTIME_SESSION_STATUSES: readonly ["active", "closed", "archived"]RUNTIME SESSION STATUSES constant exported by the contracts/runtime module.
RUNTIME_WAIT_STATUSESconstantconst RUNTIME_WAIT_STATUSES: readonly ["waiting", "received", "expired", "cancelled"]RUNTIME WAIT STATUSES constant exported by the contracts/runtime module.
RUNTIME_WAIT_TYPESconstantconst RUNTIME_WAIT_TYPES: readonly ["human", "signal", "timer", "external_operation"]RUNTIME WAIT TYPES constant exported by the contracts/runtime module.
NormalizedRuntimeErrorinterfaceinterface NormalizedRuntimeErrorNormalized Runtime Error interface with 7 public fields or methods.
RunSignalRequestinterfaceinterface RunSignalRequestRun Signal Request interface with 7 public fields or methods.
RuntimePrincipalinterfaceinterface RuntimePrincipalRuntime Principal interface with 8 public fields or methods.
RuntimeRuninterfaceinterface RuntimeRunRuntime Run interface with 32 public fields or methods.
RuntimeScopeinterfaceinterface RuntimeScopeRuntime Scope interface with 6 public fields or methods.
RuntimeSessioninterfaceinterface RuntimeSessionRuntime Session interface with 13 public fields or methods.
RuntimeWaitRecordinterfaceinterface RuntimeWaitRecordRuntime Wait Record interface with 11 public fields or methods.
RuntimeWaitRequestinterfaceinterface RuntimeWaitRequestRuntime Wait Request interface with 7 public fields or methods.
RuntimeErrorCodetypetype RuntimeErrorCode = (typeof RUNTIME_ERROR_CODES)[number]Public type alias for Runtime Error Code; the declaration contains its complete type expression.
RuntimePrincipalTypetypetype RuntimePrincipalType = (typeof RUNTIME_PRINCIPAL_TYPES)[number]Public type alias for Runtime Principal Type; the declaration contains its complete type expression.
RuntimeRunStatustypetype RuntimeRunStatus = (typeof RUNTIME_RUN_STATUSES)[number]Public type alias for Runtime Run Status; the declaration contains its complete type expression.
RuntimeSessionStatustypetype RuntimeSessionStatus = (typeof RUNTIME_SESSION_STATUSES)[number]Public type alias for Runtime Session Status; the declaration contains its complete type expression.
RuntimeWaitStatustypetype RuntimeWaitStatus = (typeof RUNTIME_WAIT_STATUSES)[number]Public type alias for Runtime Wait Status; the declaration contains its complete type expression.
RuntimeWaitTypetypetype RuntimeWaitType = (typeof RUNTIME_WAIT_TYPES)[number]Public type alias for Runtime Wait Type; the declaration contains its complete type expression.

RUNTIME_ERROR_CODES

RUNTIME ERROR CODES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_ERROR_CODES: readonly ["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RUNTIME_RUN_CONFLICT", "RUNTIME_LEASE_CONFLICT", "RUNTIME_WORKFLOW_INVALID", "RUNTIME_PROCESS_MISMATCH", "RUNTIME_STATE_NOT_FOUND", "RUNTIME_TRANSITION_REJECTED", "RUNTIME_GUARD_FAILED", "RUNTIME_INVARIANT_FAILED", "RUNTIME_STATE_TIMEOUT", "RUNTIME_RUN_TIMEOUT", "RUNTIME_CANCELLED", "RUNTIME_SIGNAL_INVALID", "RUNTIME_SIGNAL_EXPIRED", "RUNTIME_RETRY_EXHAUSTED", "RUNTIME_CHECKPOINT_FAILED", "RUNTIME_EVENT_APPEND_FAILED", "RUNTIME_PROJECTION_FAILED", "RUNTIME_REPLAY_DIVERGENCE", "RUNTIME_INTERNAL_ERROR"];

RUNTIME_PRINCIPAL_TYPES

RUNTIME PRINCIPAL TYPES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_PRINCIPAL_TYPES: readonly ["user", "agent", "service", "system"];

RUNTIME_RUN_STATUSES

RUNTIME RUN STATUSES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_RUN_STATUSES: readonly ["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"];

RUNTIME_SESSION_STATUSES

RUNTIME SESSION STATUSES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_SESSION_STATUSES: readonly ["active", "closed", "archived"];

RUNTIME_WAIT_STATUSES

RUNTIME WAIT STATUSES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_WAIT_STATUSES: readonly ["waiting", "received", "expired", "cancelled"];

RUNTIME_WAIT_TYPES

RUNTIME WAIT TYPES constant exported by the contracts/runtime module.

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

Declaration

text
export declare const RUNTIME_WAIT_TYPES: readonly ["human", "signal", "timer", "external_operation"];

NormalizedRuntimeError

Normalized Runtime Error interface with 7 public fields or methods.

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

Declaration

text
export interface NormalizedRuntimeError {
    code: RuntimeErrorCode;
    message: string;
    retryable: boolean;
    stateId?: string;
    transitionId?: string;
    details?: Record<string, unknown>;
    causeRef?: string;
}

Contract members

MemberKindSignatureDescription
causeRefpropertycauseRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
codepropertycode: "RUNTIME_INVALID_INPUT" | "RUNTIME_MESSAGE_BUS_UNAVAILABLE" | "RUNTIME_MESSAGE_SCHEMA_INVALID" | "RUNTIME_MESSAGE_DEAD_LETTERED" | "RUNTIME_SESSION_QUEUE_CONFLICT" | "RUNTIME_SESSION_QUEUE_OVERFLOW" | "RUNTIME_FENCING_REJECTED" | "RUNTIME_RESOURCE_CONFLICT" | "RUNTIME_IDEMPOTENCY_CONFLICT" | "RUNTIME_EVENT_STREAM_CORRUPT" | "RUNTIME_RECOVERY_REQUIRES_REVIEW" | "RUNTIME_RUN_NOT_FOUND" | "RUNTIME_RUN_CONFLICT"...Public property; its type, readonly modifier and optionality are shown in the signature.
detailspropertydetails?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
messagepropertymessage: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
retryablepropertyretryable: booleanPublic 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.
transitionIdpropertytransitionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RunSignalRequest

Run Signal Request interface with 7 public fields or methods.

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

Declaration

text
export interface RunSignalRequest {
    signalId: string;
    runId: string;
    key: string;
    principal: RuntimePrincipal;
    payload: unknown;
    idempotencyKey?: string;
    sentAt: string;
}

Contract members

MemberKindSignatureDescription
idempotencyKeypropertyidempotencyKey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
keypropertykey: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
payloadpropertypayload: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: RuntimePrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sentAtpropertysentAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
signalIdpropertysignalId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimePrincipal

Runtime Principal interface with 8 public fields or methods.

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

Declaration

text
export interface RuntimePrincipal {
    principalId: string;
    type: RuntimePrincipalType;
    tenantId?: string;
    userId?: string;
    agentId?: string;
    roles?: string[];
    permissionScopes: string[];
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
agentIdpropertyagentId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
permissionScopespropertypermissionScopes: string[]Public property; its type, readonly modifier and optionality are shown in the signature.
principalIdpropertyprincipalId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
rolespropertyroles?: string[]Public 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.
typepropertytype: "system" | "agent" | "user" | "service"Public 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.

RuntimeRun

Runtime Run interface with 32 public fields or methods.

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

Declaration

text
export interface RuntimeRun {
    id: string;
    revision: number;
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    sessionId: string;
    domainPackRef?: SpecRef;
    workflowRef: SpecRef;
    workflowRevision: string;
    processSpecRef: string;
    processHash: string;
    rootAgentRef?: SpecRef;
    runtimeProfileRef?: SpecRef;
    status: RuntimeRunStatus;
    input: unknown;
    inputHash: string;
    output?: unknown;
    outputHash?: string;
    currentState?: string;
    terminalState?: string;
    correlationId: string;
    idempotencyKey?: string;
    deadlineAt?: string;
    cancelRequestedAt?: string;
    cancelReason?: string;
    createdAt: string;
    queuedAt?: string;
    startedAt?: string;
    updatedAt: string;
    completedAt?: string;
    error?: NormalizedRuntimeError;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
cancelReasonpropertycancelReason?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
cancelRequestedAtpropertycancelRequestedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
completedAtpropertycompletedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
correlationIdpropertycorrelationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
currentStatepropertycurrentState?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deadlineAtpropertydeadlineAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefpropertydomainPackRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
errorpropertyerror?: NormalizedRuntimeErrorPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: 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.
inputpropertyinput: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
inputHashpropertyinputHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
outputpropertyoutput?: unknownPublic property; its type, readonly modifier and optionality are shown in the signature.
outputHashpropertyoutputHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
processHashpropertyprocessHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
processSpecRefpropertyprocessSpecRef: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
queuedAtpropertyqueuedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
revisionpropertyrevision: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
rootAgentRefpropertyrootAgentRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
runtimeProfileRefpropertyruntimeProfileRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionIdpropertysessionId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
startedAtpropertystartedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "completed" | "queued" | "starting" | "running" | "cancelling" | "cancelled" | "failed" | "timed_out" | "created" | "acquiring" | "waiting" | "waiting_human" | "waiting_signal" | "waiting_timer" | "pausing" | "paused" | "retry_scheduled" | "recovering"Public 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.
terminalStatepropertyterminalState?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt: 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.
workflowRefpropertyworkflowRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
workflowRevisionpropertyworkflowRevision: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
workspaceIdpropertyworkspaceId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeScope

Runtime Scope interface with 6 public fields or methods.

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

Declaration

text
export interface RuntimeScope {
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    sessionId: string;
    runId: string;
    agentId?: string;
}

Contract members

MemberKindSignatureDescription
agentIdpropertyagentId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionIdpropertysessionId: 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.
workspaceIdpropertyworkspaceId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeSession

Runtime Session interface with 13 public fields or methods.

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

Declaration

text
export interface RuntimeSession {
    id: string;
    revision: number;
    tenantId?: string;
    userId: string;
    workspaceId?: string;
    domainPackRef?: SpecRef;
    sessionProfileRef?: SpecRef;
    title?: string;
    metadata: Record<string, unknown>;
    status: RuntimeSessionStatus;
    createdAt: string;
    updatedAt: string;
    closedAt?: string;
}

Contract members

MemberKindSignatureDescription
closedAtpropertyclosedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
domainPackRefpropertydomainPackRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
revisionpropertyrevision: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
sessionProfileRefpropertysessionProfileRef?: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
statuspropertystatus: "archived" | "active" | "closed"Public 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.
titlepropertytitle?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
updatedAtpropertyupdatedAt: 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.
workspaceIdpropertyworkspaceId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeWaitRecord

Runtime Wait Record interface with 11 public fields or methods.

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

Declaration

text
export interface RuntimeWaitRecord {
    id: string;
    runId: string;
    stateId: string;
    type: RuntimeWaitType;
    key?: string;
    status: RuntimeWaitStatus;
    expectedSchemaHash?: string;
    createdAt: string;
    expiresAt?: string;
    resolvedAt?: string;
    signalRef?: string;
}

Contract members

MemberKindSignatureDescription
createdAtpropertycreatedAt: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedSchemaHashpropertyexpectedSchemaHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expiresAtpropertyexpiresAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
idpropertyid: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
keypropertykey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
resolvedAtpropertyresolvedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
runIdpropertyrunId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
signalRefpropertysignalRef?: stringPublic 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.
statuspropertystatus: "cancelled" | "expired" | "waiting" | "received"Public property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: "human" | "signal" | "timer" | "external_operation"Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeWaitRequest

Runtime Wait Request interface with 7 public fields or methods.

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

Declaration

text
export interface RuntimeWaitRequest {
    type: RuntimeWaitType;
    key?: string;
    expectedSchema?: JsonSchema;
    expiresAt?: string;
    timeoutTransitionId?: string;
    pendingActionRef?: string;
    metadata?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
expectedSchemapropertyexpectedSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
expiresAtpropertyexpiresAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
keypropertykey?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
pendingActionRefpropertypendingActionRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
timeoutTransitionIdpropertytimeoutTransitionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
typepropertytype: "human" | "signal" | "timer" | "external_operation"Public property; its type, readonly modifier and optionality are shown in the signature.

RuntimeErrorCode

Public type alias for Runtime Error Code; the declaration contains its complete type expression.

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

Declaration

text
export type RuntimeErrorCode = (typeof RUNTIME_ERROR_CODES)[number];

RuntimePrincipalType

Public type alias for Runtime Principal Type; the declaration contains its complete type expression.

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

Declaration

text
export type RuntimePrincipalType = (typeof RUNTIME_PRINCIPAL_TYPES)[number];

RuntimeRunStatus

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

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

Declaration

text
export type RuntimeRunStatus = (typeof RUNTIME_RUN_STATUSES)[number];

RuntimeSessionStatus

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

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

Declaration

text
export type RuntimeSessionStatus = (typeof RUNTIME_SESSION_STATUSES)[number];

RuntimeWaitStatus

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

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

Declaration

text
export type RuntimeWaitStatus = (typeof RUNTIME_WAIT_STATUSES)[number];

RuntimeWaitType

Public type alias for Runtime Wait Type; the declaration contains its complete type expression.

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

Declaration

text
export type RuntimeWaitType = (typeof RUNTIME_WAIT_TYPES)[number];