Skip to content

@codesoul-co/hypha-core / modules/artifact/store-registry

Using this module

Use the Store registry module for persisting and reading data at this boundary. It exports 1 class, 1 interface.

Import from the package entrypoint

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

import type {
  ArtifactStoreProviderRegistration,
} 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
ArtifactStoreProviderRegistryclassnew ArtifactStoreProviderRegistry(): ArtifactStoreProviderRegistryProvider-neutral DI registry for Artifact Stores. Core owns selection and lifecycle validation without importing a concrete storage adapter.
ArtifactStoreProviderRegistrationinterfaceinterface ArtifactStoreProviderRegistrationArtifact Store Provider Registration interface with 1 public fields or methods.

ArtifactStoreProviderRegistry

Provider-neutral DI registry for Artifact Stores. Core owns selection and lifecycle validation without importing a concrete storage adapter.

Declaration

text
export declare class ArtifactStoreProviderRegistry {
    register(factory: ArtifactStoreProviderFactory): void;
    unregister(providerId: string): boolean;
    list(): ArtifactStoreProviderRegistration[];
    resolve(providerId: string): ArtifactStoreProviderFactory;
    create(providerId: string): Promise<ArtifactStoreProvider>;
}

Public members

MemberKindSignatureDescription
constructorconstructor(): ArtifactStoreProviderRegistryCreates an instance of this class.
createmethodcreate(providerId: string): Promise<ArtifactStoreProvider>Public method; parameters and return type are shown in the signature.
listmethodlist(): ArtifactStoreProviderRegistration[]Public method; parameters and return type are shown in the signature.
registermethodregister(factory: ArtifactStoreProviderFactory): voidPublic method; parameters and return type are shown in the signature.
resolvemethodresolve(providerId: string): ArtifactStoreProviderFactoryPublic method; parameters and return type are shown in the signature.
unregistermethodunregister(providerId: string): booleanPublic method; parameters and return type are shown in the signature.

ArtifactStoreProviderRegistration

Artifact Store Provider Registration interface with 1 public fields or methods.

Declaration

text
export interface ArtifactStoreProviderRegistration {
    providerId: string;
}

Contract members

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