Skip to content

@codesoul-co/hypha-core / modules/runtime/runtime-activity-descriptor-store

Using this module

Use the Runtime activity descriptor store module for persisting and reading data at this boundary. It exports 1 class, 3 interfaces.

Import from the package entrypoint

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

import type {
  ArtifactRuntimeActivityDescriptorStoreOptions,
  RuntimeActivityDescriptorReference,
  RuntimeActivityDescriptorStore,
} from '@codesoul-co/hypha-core';

Usage patterns

  • Use the 3 type/interface exports 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
ArtifactRuntimeActivityDescriptorStoreclassnew ArtifactRuntimeActivityDescriptorStore(options: ArtifactRuntimeActivityDescriptorStoreOptions): ArtifactRuntimeActivityDescriptorStorePersists immutable Activity descriptors outside HumanTask Events.
ArtifactRuntimeActivityDescriptorStoreOptionsinterfaceinterface ArtifactRuntimeActivityDescriptorStoreOptionsArtifact Runtime Activity Descriptor Store Options interface with 2 public fields or methods.
RuntimeActivityDescriptorReferenceinterfaceinterface RuntimeActivityDescriptorReferenceRuntime Activity Descriptor Reference interface with 2 public fields or methods.
RuntimeActivityDescriptorStoreinterfaceinterface RuntimeActivityDescriptorStoreRuntime Activity Descriptor Store interface with 2 public fields or methods.

ArtifactRuntimeActivityDescriptorStore

Persists immutable Activity descriptors outside HumanTask Events.

Declaration

text
export declare class ArtifactRuntimeActivityDescriptorStore implements RuntimeActivityDescriptorStore {
    constructor(options: ArtifactRuntimeActivityDescriptorStoreOptions);
    put(input: RuntimeActivityDescriptor): Promise<RuntimeActivityDescriptorReference>;
    get(reference: RuntimeActivityDescriptorReference): Promise<RuntimeActivityDescriptor>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(options: ArtifactRuntimeActivityDescriptorStoreOptions): ArtifactRuntimeActivityDescriptorStoreCreates an instance of this class.
getmethodget(reference: RuntimeActivityDescriptorReference): Promise<RuntimeActivityDescriptor>Public method; parameters and return type are shown in the signature.
putmethodput(input: RuntimeActivityDescriptor): Promise<RuntimeActivityDescriptorReference>Public method; parameters and return type are shown in the signature.

ArtifactRuntimeActivityDescriptorStoreOptions

Artifact Runtime Activity Descriptor Store Options interface with 2 public fields or methods.

Declaration

text
export interface ArtifactRuntimeActivityDescriptorStoreOptions {
    artifacts: ArtifactStoreProvider;
    maxDescriptorBytes?: number;
}

Contract members

MemberKindSignatureDescription
artifactspropertyartifacts: ArtifactStoreProviderPublic property; its type, readonly modifier and optionality are shown in the signature.
maxDescriptorBytespropertymaxDescriptorBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityDescriptorReference

Runtime Activity Descriptor Reference interface with 2 public fields or methods.

Declaration

text
export interface RuntimeActivityDescriptorReference {
    activityDescriptorRef: string;
    activityDescriptorHash: string;
}

Contract members

MemberKindSignatureDescription
activityDescriptorHashpropertyactivityDescriptorHash: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
activityDescriptorRefpropertyactivityDescriptorRef: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

RuntimeActivityDescriptorStore

Runtime Activity Descriptor Store interface with 2 public fields or methods.

Declaration

text
export interface RuntimeActivityDescriptorStore {
    put(descriptor: RuntimeActivityDescriptor): Promise<RuntimeActivityDescriptorReference>;
    get(reference: RuntimeActivityDescriptorReference): Promise<RuntimeActivityDescriptor>;
}

Contract members

MemberKindSignatureDescription
getmethodget(reference: RuntimeActivityDescriptorReference): Promise<RuntimeActivityDescriptor>Public method; parameters and return type are shown in the signature.
putmethodput(descriptor: RuntimeActivityDescriptor): Promise<RuntimeActivityDescriptorReference>Public method; parameters and return type are shown in the signature.