Skip to content

@codesoul-co/hypha-storage / index

Using this module

Aggregates the public entrypoint exports for @codesoul-co/hypha-storage; applications import these symbols from the package entrypoint instead of internal file paths.

Import from the package entrypoint

ts
import {
  storageCapabilitySchema,
  storageConnectionSpecSchema,
  storageDeploymentModeSchema,
  storageEngineSchema,
  storageProviderKindSchema,
  storageProviderProfileDefinition,
  storageProviderProfileExample,
  storageProviderProfileJsonSchema,
} from '@codesoul-co/hypha-storage';

import type {
  ResolvedStorageConnection,
  StorageConnectionSpec,
  StorageProviderProfile,
  StorageSecretRef,
  StorageTopologySpec,
  EnvSource,
  StorageCapability,
  StorageDeploymentMode,
} from '@codesoul-co/hypha-storage';

// The complete export list is documented below.

Usage patterns

  • Use the 12 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 17 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 17 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Runtime validation example

ts
import { storageCapabilitySchema } from '@codesoul-co/hypha-storage';

declare function loadExternalInput(): unknown;
const input: unknown = loadExternalInput();
const parsed = storageCapabilitySchema.parse(input);

Parse untrusted configuration, network, or persisted input with the runtime schema before passing it to functions or classes that expect a validated contract.

Public exports

SymbolKindSignatureDescription
storageCapabilitySchemaconstantconst storageCapabilitySchema: z.ZodEnum<["structured", "transactions", "events", "cache", "queue", "pubsub", "streams", "vector_search", "metadata_filter", "artifact_bytes", "managed_backup", "tls", "multi_region"]>Runtime schema for Storage Capability.
storageConnectionSpecSchemaconstantconst storageConnectionSpecSchema: z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; uriEnv: z.ZodOptional<z.ZodString>; host: z.ZodOptional<z.ZodString>; port: z.ZodOptional<z.ZodNumber>; database: z.ZodOptional<z.ZodString>; username: z.ZodOptional<z.ZodString>; usernameEnv: z.ZodOptional<z.ZodString>; passwordEnv: z.ZodOptional<z.ZodString>; tls: z.ZodOptional<z.ZodBoolean>; region: z.ZodOptional<z.ZodString>; opt...Runtime schema for Storage Connection Spec.
storageDeploymentModeSchemaconstantconst storageDeploymentModeSchema: z.ZodEnum<["local", "self_hosted", "managed", "cloud"]>Runtime schema for Storage Deployment Mode.
storageEngineSchemaconstantconst storageEngineSchema: z.ZodEnum<["sqlite", "postgres", "mysql", "mongodb", "redis", "kafka", "local-vector", "pgvector", "qdrant", "milvus", "chroma", "pinecone", "weaviate", "file-artifact", "s3", "gcs", "azure-blob", "json"]>Runtime schema for Storage Engine.
storageProviderKindSchemaconstantconst storageProviderKindSchema: z.ZodEnum<["relational", "document", "messaging", "cache", "vector", "object", "event", "hybrid"]>Runtime schema for Storage Provider Kind.
storageProviderProfileDefinitionconstantconst storageProviderProfileDefinition: SpecSchemaDefinition<StorageProviderProfile>Storage Provider Profile Definition constant exported by the index module.
storageProviderProfileExampleconstantconst storageProviderProfileExample: StorageProviderProfileValid example value for Storage Provider Profile.
storageProviderProfileJsonSchemaconstantconst storageProviderProfileJsonSchema: JsonSchemaJSON Schema for Storage Provider Profile.
storageProviderProfileSchemaconstantconst storageProviderProfileSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { kind: z.ZodEnum<["relational", "document", "messaging", "cache", "vector",...Runtime schema for Storage Provider Profile.
storageRoleSchemaconstantconst storageRoleSchema: z.ZodEnum<["source_of_truth", "event_log", "semantic_index", "cache", "message_queue", "artifact_store", "document_store", "hybrid_memory"]>Runtime schema for Storage Role.
storageSecretRefSchemaconstantconst storageSecretRefSchema: z.ZodObject<{ env: z.ZodOptional<z.ZodString>; secretRef: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { env?: string | undefined; secretRef?: string | undefined; }, { env?: string | undefined; secretRef?: string | undefined; }>Runtime schema for Storage Secret Ref.
storageSpecDefinitionsconstantconst storageSpecDefinitions: readonly [SpecSchemaDefinition<StorageProviderProfile>, SpecSchemaDefinition<StorageTopologySpec>]Storage Spec Definitions constant exported by the index module.
storageSpecJsonSchemasconstantconst storageSpecJsonSchemas: Record<string, JsonSchema>Storage Spec JSON Schemas constant exported by the index module.
storageTopologySpecDefinitionconstantconst storageTopologySpecDefinition: SpecSchemaDefinition<StorageTopologySpec>Runtime validation entrypoint for the Storage Topology spec, combining its parser, example and JSON Schema.
storageTopologySpecExampleconstantconst storageTopologySpecExample: StorageTopologySpecValid example value for Storage Topology Spec.
storageTopologySpecJsonSchemaconstantconst storageTopologySpecJsonSchema: JsonSchemaJSON Schema for Storage Topology Spec.
storageTopologySpecSchemaconstantconst storageTopologySpecSchema: z.ZodObject<{ id: z.ZodString; version: z.ZodString; } & { name: z.ZodOptional<z.ZodString>; description: z.ZodOptional<z.ZodString>; owner: z.ZodOptional<z.ZodString>; tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; createdAt: z.ZodOptional<z.ZodString>; updatedAt: z.ZodOptional<z.ZodString>; } & { providers: z.ZodArray<z.ZodObject<{ id: z.ZodString; version: z.ZodString; } ...Runtime schema for Storage Topology Spec.
assertStorageCapabilityfunctionassertStorageCapability(profile: StorageProviderProfile, capability: StorageCapability): voidAssert Storage Capability function with 1 public call signature; parameters and return types are listed below.
createChromaStorageProfilefunctioncreateChromaStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfileCreate Chroma Storage Profile function with 1 public call signature; parameters and return types are listed below.
createFileArtifactStorageProfilefunctioncreateFileArtifactStorageProfile(input?: { id?: string; uri?: string; rootPath?: string; }): StorageProviderProfileCreate File Artifact Storage Profile function with 1 public call signature; parameters and return types are listed below.
createKafkaStorageProfilefunctioncreateKafkaStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; tls?: boolean; region?: string; }): StorageProviderProfileCreate Kafka Storage Profile function with 1 public call signature; parameters and return types are listed below.
createLocalVectorStorageProfilefunctioncreateLocalVectorStorageProfile(input?: { id?: string; uri?: string; database?: string; }): StorageProviderProfileCreate Local Vector Storage Profile function with 1 public call signature; parameters and return types are listed below.
createMongoStorageProfilefunctioncreateMongoStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }): StorageProviderProfileCreate Mongo Storage Profile function with 1 public call signature; parameters and return types are listed below.
createPineconeStorageProfilefunctioncreatePineconeStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfileCreate Pinecone Storage Profile function with 1 public call signature; parameters and return types are listed below.
createQdrantStorageProfilefunctioncreateQdrantStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfileCreate Qdrant Storage Profile function with 1 public call signature; parameters and return types are listed below.
createRedisStorageProfilefunctioncreateRedisStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }): StorageProviderProfileCreate Redis Storage Profile function with 1 public call signature; parameters and return types are listed below.
createSQLiteStorageProfilefunctioncreateSQLiteStorageProfile(input?: { id?: string; role?: Extract<StorageRole, "source_of_truth" | "event_log">; uri?: string; database?: string; }): StorageProviderProfileCreate SQLite Storage Profile function with 1 public call signature; parameters and return types are listed below.
createVectorStorageProfilefunctioncreateVectorStorageProfile(input: { engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }): StorageProviderProfileCreate Vector Storage Profile function with 1 public call signature; parameters and return types are listed below.
createWeaviateStorageProfilefunctioncreateWeaviateStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfileCreate Weaviate Storage Profile function with 1 public call signature; parameters and return types are listed below.
inferStorageDeploymentfunctioninferStorageDeployment(profile: StorageProviderProfile, uri?: string): StorageDeploymentModeInfer Storage Deployment function with 1 public call signature; parameters and return types are listed below.
redactStorageConnectionfunctionredactStorageConnection(connection: ResolvedStorageConnection): ResolvedStorageConnectionRedact Storage Connection function with 1 public call signature; parameters and return types are listed below.
resolveStorageConnectionfunctionresolveStorageConnection(profile: StorageProviderProfile, env?: EnvSource): ResolvedStorageConnectionResolve Storage Connection function with 1 public call signature; parameters and return types are listed below.
validateStorageProviderProfilefunctionvalidateStorageProviderProfile(input: unknown): StorageProviderProfileValidate Storage Provider Profile function with 1 public call signature; parameters and return types are listed below.
validateStorageTopologySpecfunctionvalidateStorageTopologySpec(input: unknown): StorageTopologySpecValidate Storage Topology Spec function with 1 public call signature; parameters and return types are listed below.
ResolvedStorageConnectioninterfaceinterface ResolvedStorageConnectionResolved Storage Connection interface with 12 public fields or methods.
StorageConnectionSpecinterfaceinterface StorageConnectionSpecStorage Connection Spec interface with 11 public fields or methods.
StorageProviderProfileinterfaceinterface StorageProviderProfile extends VersionedSpec, SpecMetadataStorage Provider Profile interface with 17 public fields or methods.
StorageSecretRefinterfaceinterface StorageSecretRefStorage Secret Ref interface with 2 public fields or methods.
StorageTopologySpecinterfaceinterface StorageTopologySpec extends VersionedSpec, SpecMetadataStorage Topology Spec interface with 10 public fields or methods.
EnvSourcetypetype EnvSource = Record<string, string | undefined>Public type alias for Env Source; the declaration contains its complete type expression.
StorageCapabilitytypetype StorageCapability = 'structured' | 'transactions' | 'events' | 'cache' | 'queue' | 'pubsub' | 'streams' | 'vector_search' | 'metadata_filter' | 'artifact_bytes' | 'managed_backup' | 'tls' | 'multi_region'Public type alias for Storage Capability; the declaration contains its complete type expression.
StorageDeploymentModetypetype StorageDeploymentMode = 'local' | 'self_hosted' | 'managed' | 'cloud'Public type alias for Storage Deployment Mode; the declaration contains its complete type expression.
StorageEnginetypetype StorageEngine = 'sqlite' | 'postgres' | 'mysql' | 'mongodb' | 'redis' | 'kafka' | 'local-vector' | 'pgvector' | 'qdrant' | 'milvus' | 'chroma' | 'pinecone' | 'weaviate' | 'file-artifact' | 's3' | 'gcs' | 'azure-blob' | 'json'Public type alias for Storage Engine; the declaration contains its complete type expression.
StorageProviderKindtypetype StorageProviderKind = 'relational' | 'document' | 'messaging' | 'cache' | 'vector' | 'object' | 'event' | 'hybrid'Public type alias for Storage Provider Kind; the declaration contains its complete type expression.
StorageRoletypetype StorageRole = 'source_of_truth' | 'event_log' | 'semantic_index' | 'cache' | 'message_queue' | 'artifact_store' | 'document_store' | 'hybrid_memory'Public type alias for Storage Role; the declaration contains its complete type expression.
VectorStorageEnginetypetype VectorStorageEngine = Extract<StorageEngine, 'pgvector' | 'qdrant' | 'milvus' | 'chroma' | 'pinecone' | 'weaviate'>Public type alias for Vector Storage Engine; the declaration contains its complete type expression.

storageCapabilitySchema

Runtime schema for Storage Capability.

  • Kind: constant
  • Import: import { storageCapabilitySchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageCapabilitySchema: z.ZodEnum<["structured", "transactions", "events", "cache", "queue", "pubsub", "streams", "vector_search", "metadata_filter", "artifact_bytes", "managed_backup", "tls", "multi_region"]>;

storageConnectionSpecSchema

Runtime schema for Storage Connection Spec.

  • Kind: constant
  • Import: import { storageConnectionSpecSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageConnectionSpecSchema: z.ZodObject<{ uri: z.ZodOptional<z.ZodString>; uriEnv: z.ZodOptional<z.ZodString>; host: z.ZodOptional<z.ZodString>; port: z.ZodOptional<z.ZodNumber>; database: z.ZodOptional<z.ZodString>; username: z.ZodOptional<z.ZodString>; usernameEnv: z.ZodOptional<z.ZodString>; passwordEnv: z.ZodOptional<z.ZodString>; tls: z.ZodOptional<z.ZodBoolean>; region: z.ZodOptional<z.ZodString>; options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>; }, "strip", z.ZodTypeAny, { tls?: boolean | undefined; options?: Record<string, unknown> | undefined; uri?: string | undefined; uriEnv?: string | undefined; host?: string | undefined; port?: number | undefined; database?: string | undefined; username?: string | undefined; usernameEnv?: string | undefined; passwordEnv?: string | undefined; region?: string | undefined; }, { tls?: boolean | undefined; options?: Record<string, unknown> | undefined; uri?: string | undefined; uriEnv?: string | undefined; host?: string | undefined; port?: number | undefined; database?: string | undefined; username?: string | undefined; usernameEnv?: string | undefined; passwordEnv?: string | undefined; region?: string | undefined; }>;

storageDeploymentModeSchema

Runtime schema for Storage Deployment Mode.

  • Kind: constant
  • Import: import { storageDeploymentModeSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageDeploymentModeSchema: z.ZodEnum<["local", "self_hosted", "managed", "cloud"]>;

storageEngineSchema

Runtime schema for Storage Engine.

  • Kind: constant
  • Import: import { storageEngineSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageEngineSchema: z.ZodEnum<["sqlite", "postgres", "mysql", "mongodb", "redis", "kafka", "local-vector", "pgvector", "qdrant", "milvus", "chroma", "pinecone", "weaviate", "file-artifact", "s3", "gcs", "azure-blob", "json"]>;

storageProviderKindSchema

Runtime schema for Storage Provider Kind.

  • Kind: constant
  • Import: import { storageProviderKindSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageProviderKindSchema: z.ZodEnum<["relational", "document", "messaging", "cache", "vector", "object", "event", "hybrid"]>;

storageProviderProfileDefinition

Storage Provider Profile Definition constant exported by the index module.

  • Kind: constant
  • Import: import { storageProviderProfileDefinition } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageProviderProfileDefinition: SpecSchemaDefinition<StorageProviderProfile>;

storageProviderProfileExample

Valid example value for Storage Provider Profile.

  • Kind: constant
  • Import: import { storageProviderProfileExample } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageProviderProfileExample: StorageProviderProfile;

storageProviderProfileJsonSchema

JSON Schema for Storage Provider Profile.

  • Kind: constant
  • Import: import { storageProviderProfileJsonSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageProviderProfileJsonSchema: JsonSchema;

storageProviderProfileSchema

Runtime schema for Storage Provider Profile.

  • Kind: constant
  • Import: import { storageProviderProfileSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const storageProviderProfileSchema: (typeof import('@codesoul-co/hypha-storage'))['storageProviderProfileSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

storageRoleSchema

Runtime schema for Storage Role.

  • Kind: constant
  • Import: import { storageRoleSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageRoleSchema: z.ZodEnum<["source_of_truth", "event_log", "semantic_index", "cache", "message_queue", "artifact_store", "document_store", "hybrid_memory"]>;

storageSecretRefSchema

Runtime schema for Storage Secret Ref.

  • Kind: constant
  • Import: import { storageSecretRefSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageSecretRefSchema: z.ZodObject<{ env: z.ZodOptional<z.ZodString>; secretRef: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { env?: string | undefined; secretRef?: string | undefined; }, { env?: string | undefined; secretRef?: string | undefined; }>;

storageSpecDefinitions

Storage Spec Definitions constant exported by the index module.

  • Kind: constant
  • Import: import { storageSpecDefinitions } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageSpecDefinitions: readonly [SpecSchemaDefinition<StorageProviderProfile>, SpecSchemaDefinition<StorageTopologySpec>];

storageSpecJsonSchemas

Storage Spec JSON Schemas constant exported by the index module.

  • Kind: constant
  • Import: import { storageSpecJsonSchemas } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageSpecJsonSchemas: Record<string, JsonSchema>;

storageTopologySpecDefinition

Runtime validation entrypoint for the Storage Topology spec, combining its parser, example and JSON Schema.

  • Kind: constant
  • Import: import { storageTopologySpecDefinition } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageTopologySpecDefinition: SpecSchemaDefinition<StorageTopologySpec>;

storageTopologySpecExample

Valid example value for Storage Topology Spec.

  • Kind: constant
  • Import: import { storageTopologySpecExample } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageTopologySpecExample: StorageTopologySpec;

storageTopologySpecJsonSchema

JSON Schema for Storage Topology Spec.

  • Kind: constant
  • Import: import { storageTopologySpecJsonSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare const storageTopologySpecJsonSchema: JsonSchema;

storageTopologySpecSchema

Runtime schema for Storage Topology Spec.

  • Kind: constant
  • Import: import { storageTopologySpecSchema } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const storageTopologySpecSchema: (typeof import('@codesoul-co/hypha-storage'))['storageTopologySpecSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

assertStorageCapability

Assert Storage Capability function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { assertStorageCapability } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function assertStorageCapability(profile: StorageProviderProfile, capability: StorageCapability): void;

Call signature

text
assertStorageCapability(profile: StorageProviderProfile, capability: StorageCapability): void

Parameters

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

Returns

  • Type: void
  • Description: Returns no value.

createChromaStorageProfile

Create Chroma Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createChromaStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createChromaStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], 'engine'>): StorageProviderProfile;

Call signature

text
createChromaStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
inputOmit<{ engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }, "engine">NoOptional parameter; accepted values are defined by the type column.

Returns

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

createFileArtifactStorageProfile

Create File Artifact Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createFileArtifactStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createFileArtifactStorageProfile(input?: {
    id?: string;
    uri?: string;
    rootPath?: string;
}): StorageProviderProfile;

Call signature

text
createFileArtifactStorageProfile(input?: { id?: string; uri?: string; rootPath?: string; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; uri?: string; rootPath?: string; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createKafkaStorageProfile

Create Kafka Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createKafkaStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createKafkaStorageProfile(input?: {
    id?: string;
    deployment?: StorageDeploymentMode;
    uriEnv?: string;
    uri?: string;
    host?: string;
    port?: number;
    tls?: boolean;
    region?: string;
}): StorageProviderProfile;

Call signature

text
createKafkaStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; tls?: boolean; region?: string; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; tls?: boolean; region?: string; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createLocalVectorStorageProfile

Create Local Vector Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createLocalVectorStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createLocalVectorStorageProfile(input?: {
    id?: string;
    uri?: string;
    database?: string;
}): StorageProviderProfile;

Call signature

text
createLocalVectorStorageProfile(input?: { id?: string; uri?: string; database?: string; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; uri?: string; database?: string; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createMongoStorageProfile

Create Mongo Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createMongoStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createMongoStorageProfile(input?: {
    id?: string;
    deployment?: StorageDeploymentMode;
    uriEnv?: string;
    uri?: string;
    host?: string;
    port?: number;
    database?: string;
    tls?: boolean;
}): StorageProviderProfile;

Call signature

text
createMongoStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createPineconeStorageProfile

Create Pinecone Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createPineconeStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createPineconeStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], 'engine'>): StorageProviderProfile;

Call signature

text
createPineconeStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
inputOmit<{ engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }, "engine">NoOptional parameter; accepted values are defined by the type column.

Returns

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

createQdrantStorageProfile

Create Qdrant Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createQdrantStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createQdrantStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], 'engine'>): StorageProviderProfile;

Call signature

text
createQdrantStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
inputOmit<{ engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }, "engine">NoOptional parameter; accepted values are defined by the type column.

Returns

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

createRedisStorageProfile

Create Redis Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createRedisStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createRedisStorageProfile(input?: {
    id?: string;
    deployment?: StorageDeploymentMode;
    uriEnv?: string;
    uri?: string;
    host?: string;
    port?: number;
    database?: string;
    tls?: boolean;
}): StorageProviderProfile;

Call signature

text
createRedisStorageProfile(input?: { id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createSQLiteStorageProfile

Create SQLite Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createSQLiteStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createSQLiteStorageProfile(input?: {
    id?: string;
    role?: Extract<StorageRole, 'source_of_truth' | 'event_log'>;
    uri?: string;
    database?: string;
}): StorageProviderProfile;

Call signature

text
createSQLiteStorageProfile(input?: { id?: string; role?: Extract<StorageRole, "source_of_truth" | "event_log">; uri?: string; database?: string; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ id?: string; role?: Extract<StorageRole, "source_of_truth" | "event_log">; uri?: string; database?: string; }NoOptional parameter; accepted values are defined by the type column.

Returns

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

createVectorStorageProfile

Create Vector Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createVectorStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createVectorStorageProfile(input: {
    engine: VectorStorageEngine;
    id?: string;
    deployment?: StorageDeploymentMode;
    uriEnv?: string;
    uri?: string;
    host?: string;
    port?: number;
    database?: string;
    tls?: boolean;
    region?: string;
    apiKeyEnv?: string;
    options?: Record<string, unknown>;
}): StorageProviderProfile;

Call signature

text
createVectorStorageProfile(input: { engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
input{ engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }YesRequired parameter; accepted values are defined by the type column.

Returns

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

createWeaviateStorageProfile

Create Weaviate Storage Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { createWeaviateStorageProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function createWeaviateStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], 'engine'>): StorageProviderProfile;

Call signature

text
createWeaviateStorageProfile(input?: Omit<Parameters<typeof createVectorStorageProfile>[0], "engine">): StorageProviderProfile

Parameters

ParameterTypeRequiredDescription
inputOmit<{ engine: VectorStorageEngine; id?: string; deployment?: StorageDeploymentMode; uriEnv?: string; uri?: string; host?: string; port?: number; database?: string; tls?: boolean; region?: string; apiKeyEnv?: string; options?: Record<string, unknown>; }, "engine">NoOptional parameter; accepted values are defined by the type column.

Returns

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

inferStorageDeployment

Infer Storage Deployment function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { inferStorageDeployment } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function inferStorageDeployment(profile: StorageProviderProfile, uri?: string): StorageDeploymentMode;

Call signature

text
inferStorageDeployment(profile: StorageProviderProfile, uri?: string): StorageDeploymentMode

Parameters

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

Returns

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

redactStorageConnection

Redact Storage Connection function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { redactStorageConnection } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function redactStorageConnection(connection: ResolvedStorageConnection): ResolvedStorageConnection;

Call signature

text
redactStorageConnection(connection: ResolvedStorageConnection): ResolvedStorageConnection

Parameters

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

Returns

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

resolveStorageConnection

Resolve Storage Connection function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { resolveStorageConnection } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function resolveStorageConnection(profile: StorageProviderProfile, env?: EnvSource): ResolvedStorageConnection;

Call signature

text
resolveStorageConnection(profile: StorageProviderProfile, env?: EnvSource): ResolvedStorageConnection

Parameters

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

Returns

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

validateStorageProviderProfile

Validate Storage Provider Profile function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateStorageProviderProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function validateStorageProviderProfile(input: unknown): StorageProviderProfile;

Call signature

text
validateStorageProviderProfile(input: unknown): StorageProviderProfile

Parameters

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

Returns

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

validateStorageTopologySpec

Validate Storage Topology Spec function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateStorageTopologySpec } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export declare function validateStorageTopologySpec(input: unknown): StorageTopologySpec;

Call signature

text
validateStorageTopologySpec(input: unknown): StorageTopologySpec

Parameters

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

Returns

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

ResolvedStorageConnection

Resolved Storage Connection interface with 12 public fields or methods.

  • Kind: interface
  • Import: import type { ResolvedStorageConnection } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export interface ResolvedStorageConnection {
    profileId: string;
    engine: StorageEngine;
    deployment: StorageDeploymentMode;
    uri?: string;
    uriSource?: 'env' | 'inline' | 'composed';
    host?: string;
    port?: number;
    database?: string;
    username?: string;
    tls?: boolean;
    region?: string;
    options?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
databasepropertydatabase?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
deploymentpropertydeployment: StorageDeploymentModePublic property; its type, readonly modifier and optionality are shown in the signature.
enginepropertyengine: StorageEnginePublic property; its type, readonly modifier and optionality are shown in the signature.
hostpropertyhost?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
optionspropertyoptions?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
portpropertyport?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
profileIdpropertyprofileId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
regionpropertyregion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tlspropertytls?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
uripropertyuri?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
uriSourcepropertyuriSource?: "env" | "inline" | "composed"Public property; its type, readonly modifier and optionality are shown in the signature.
usernamepropertyusername?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

StorageConnectionSpec

Storage Connection Spec interface with 11 public fields or methods.

  • Kind: interface
  • Import: import type { StorageConnectionSpec } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export interface StorageConnectionSpec {
    uri?: string;
    uriEnv?: string;
    host?: string;
    port?: number;
    database?: string;
    username?: string;
    usernameEnv?: string;
    passwordEnv?: string;
    tls?: boolean;
    region?: string;
    options?: Record<string, unknown>;
}

Contract members

MemberKindSignatureDescription
databasepropertydatabase?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
hostpropertyhost?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
optionspropertyoptions?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
passwordEnvpropertypasswordEnv?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
portpropertyport?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
regionpropertyregion?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
tlspropertytls?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
uripropertyuri?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
uriEnvpropertyuriEnv?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
usernamepropertyusername?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
usernameEnvpropertyusernameEnv?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

StorageProviderProfile

Storage Provider Profile interface with 17 public fields or methods.

  • Kind: interface
  • Import: import type { StorageProviderProfile } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export interface StorageProviderProfile extends VersionedSpec, SpecMetadata {
    kind: StorageProviderKind;
    engine: StorageEngine;
    deployment: StorageDeploymentMode;
    role: StorageRole;
    connection?: StorageConnectionSpec;
    capabilities?: StorageCapability[];
    consistency?: 'strong' | 'eventual';
    secrets?: {
        apiKey?: StorageSecretRef;
        username?: StorageSecretRef;
        password?: StorageSecretRef;
        token?: StorageSecretRef;
    };
    configSchema?: JsonSchema;
}

Contract members

MemberKindSignatureDescription
capabilitiespropertycapabilities?: StorageCapability[]Public property; its type, readonly modifier and optionality are shown in the signature.
configSchemapropertyconfigSchema?: JsonSchemaPublic property; its type, readonly modifier and optionality are shown in the signature.
connectionpropertyconnection?: StorageConnectionSpecPublic property; its type, readonly modifier and optionality are shown in the signature.
consistencypropertyconsistency?: "strong" | "eventual"Public 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.
deploymentpropertydeployment: StorageDeploymentModePublic property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
enginepropertyengine: StorageEnginePublic 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.
kindpropertykind: StorageProviderKindPublic property; its type, readonly modifier and optionality are shown in the signature.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
rolepropertyrole: StorageRolePublic property; its type, readonly modifier and optionality are shown in the signature.
secretspropertysecrets?: { apiKey?: StorageSecretRef; username?: StorageSecretRef; password?: StorageSecretRef; token?: StorageSecretRef; }Public property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public 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.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

StorageSecretRef

Storage Secret Ref interface with 2 public fields or methods.

  • Kind: interface
  • Import: import type { StorageSecretRef } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export interface StorageSecretRef {
    env?: string;
    secretRef?: string;
}

Contract members

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

StorageTopologySpec

Storage Topology Spec interface with 10 public fields or methods.

  • Kind: interface
  • Import: import type { StorageTopologySpec } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export interface StorageTopologySpec extends VersionedSpec, SpecMetadata {
    providers: StorageProviderProfile[];
    defaults: {
        relationalRef?: SpecRef;
        documentRef?: SpecRef;
        messagingRef?: SpecRef;
        cacheRef?: SpecRef;
        vectorRef?: SpecRef;
        artifactRef?: SpecRef;
        eventRef?: SpecRef;
        memoryRef?: SpecRef;
    };
}

Contract members

MemberKindSignatureDescription
createdAtpropertycreatedAt?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
defaultspropertydefaults: { relationalRef?: SpecRef; documentRef?: SpecRef; messagingRef?: SpecRef; cacheRef?: SpecRef; vectorRef?: SpecRef; artifactRef?: SpecRef; eventRef?: SpecRef; memoryRef?: SpecRef; }Public property; its type, readonly modifier and optionality are shown in the signature.
descriptionpropertydescription?: 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.
namepropertyname?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
ownerpropertyowner?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
providerspropertyproviders: StorageProviderProfile[]Public property; its type, readonly modifier and optionality are shown in the signature.
tagspropertytags?: string[]Public 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.
versionpropertyversion: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

EnvSource

Public type alias for Env Source; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { EnvSource } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type EnvSource = Record<string, string | undefined>;

StorageCapability

Public type alias for Storage Capability; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { StorageCapability } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type StorageCapability = 'structured' | 'transactions' | 'events' | 'cache' | 'queue' | 'pubsub' | 'streams' | 'vector_search' | 'metadata_filter' | 'artifact_bytes' | 'managed_backup' | 'tls' | 'multi_region';

StorageDeploymentMode

Public type alias for Storage Deployment Mode; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { StorageDeploymentMode } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type StorageDeploymentMode = 'local' | 'self_hosted' | 'managed' | 'cloud';

StorageEngine

Public type alias for Storage Engine; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { StorageEngine } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type StorageEngine = 'sqlite' | 'postgres' | 'mysql' | 'mongodb' | 'redis' | 'kafka' | 'local-vector' | 'pgvector' | 'qdrant' | 'milvus' | 'chroma' | 'pinecone' | 'weaviate' | 'file-artifact' | 's3' | 'gcs' | 'azure-blob' | 'json';

StorageProviderKind

Public type alias for Storage Provider Kind; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { StorageProviderKind } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type StorageProviderKind = 'relational' | 'document' | 'messaging' | 'cache' | 'vector' | 'object' | 'event' | 'hybrid';

StorageRole

Public type alias for Storage Role; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { StorageRole } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type StorageRole = 'source_of_truth' | 'event_log' | 'semantic_index' | 'cache' | 'message_queue' | 'artifact_store' | 'document_store' | 'hybrid_memory';

VectorStorageEngine

Public type alias for Vector Storage Engine; the declaration contains its complete type expression.

  • Kind: type
  • Import: import type { VectorStorageEngine } from '@codesoul-co/hypha-storage';
  • Source module: index

Declaration

text
export type VectorStorageEngine = Extract<StorageEngine, 'pgvector' | 'qdrant' | 'milvus' | 'chroma' | 'pinecone' | 'weaviate'>;