Skip to content

@codesoul-co/hypha-core / contracts/artifact-manager ​

Using this module ​

Use the Artifact manager module for declaring and runtime-validating contracts. It exports 17 interfaces, 4 types.

Import from the package entrypoint ​

ts
import type {
  ArtifactCreateDownloadAccessRequest,
  ArtifactCreateRequest,
  ArtifactFromWorkspaceRequest,
  ArtifactGetRecordRequest,
  ArtifactLatestRequest,
  ArtifactListRequest,
  ArtifactManager,
  ArtifactMutationRequest,
} from '@codesoul-co/hypha-core';

// The complete export list is documented below.

Usage patterns ​

  • Use the 21 type/interface exports as static contracts in application code, adapters, or tests. Import them with import type; they do not exist at runtime.

Public exports ​

SymbolKindSignatureDescription
ArtifactCreateDownloadAccessRequestinterfaceinterface ArtifactCreateDownloadAccessRequest extends ArtifactGetRecordRequestArtifact Create Download Access Request interface with 7 public fields or methods.
ArtifactCreateRequestinterfaceinterface ArtifactCreateRequestArtifact Create Request interface with 26 public fields or methods.
ArtifactFromWorkspaceRequestinterfaceinterface ArtifactFromWorkspaceRequestArtifact From Workspace Request interface with 22 public fields or methods.
ArtifactGetRecordRequestinterfaceinterface ArtifactGetRecordRequestArtifact Get Record Request interface with 3 public fields or methods.
ArtifactLatestRequestinterfaceinterface ArtifactLatestRequestArtifact Latest Request interface with 2 public fields or methods.
ArtifactListRequestinterfaceinterface ArtifactListRequestArtifact List Request interface with 8 public fields or methods.
ArtifactManagerinterfaceinterface ArtifactManagerArtifact Manager interface with 16 public fields or methods.
ArtifactMutationRequestinterfaceinterface ArtifactMutationRequestArtifact Mutation Request interface with 6 public fields or methods.
ArtifactPreviousRequestinterfaceinterface ArtifactPreviousRequestArtifact Previous Request interface with 2 public fields or methods.
ArtifactReadRequestinterfaceinterface ArtifactReadRequest extends ArtifactGetRecordRequestArtifact Read Request interface with 5 public fields or methods.
ArtifactReadResultinterfaceinterface ArtifactReadResultArtifact Read Result interface with 2 public fields or methods.
ArtifactTraceLineageRequestinterfaceinterface ArtifactTraceLineageRequestArtifact Trace Lineage Request interface with 2 public fields or methods.
ArtifactVersionRequestinterfaceinterface ArtifactVersionRequestArtifact Version Request interface with 10 public fields or methods.
ArtifactWorkspaceContentinterfaceinterface ArtifactWorkspaceContentArtifact Workspace Content interface with 4 public fields or methods.
ArtifactWorkspaceContentReaderinterfaceinterface ArtifactWorkspaceContentReaderGoverned Workspace port used by ArtifactManager; it never accepts a host path.
ArtifactWorkspaceContentRequestinterfaceinterface ArtifactWorkspaceContentRequestArtifact Workspace Content Request interface with 4 public fields or methods.
NormalizedArtifactErrorinterfaceinterface NormalizedArtifactErrorNormalized Artifact Error interface with 5 public fields or methods.
ArtifactArchiveRequesttypetype ArtifactArchiveRequest = ArtifactMutationRequestPublic type alias for Artifact Archive Request; the declaration contains its complete type expression.
ArtifactDeleteRequesttypetype ArtifactDeleteRequest = ArtifactMutationRequestPublic type alias for Artifact Delete Request; the declaration contains its complete type expression.
ArtifactFinalizeRequesttypetype ArtifactFinalizeRequest = ArtifactMutationRequestPublic type alias for Artifact Finalize Request; the declaration contains its complete type expression.
ArtifactInvalidateRequesttypetype ArtifactInvalidateRequest = ArtifactMutationRequestPublic type alias for Artifact Invalidate Request; the declaration contains its complete type expression.

ArtifactCreateDownloadAccessRequest ​

Artifact Create Download Access Request interface with 7 public fields or methods.

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

Declaration ​

text
export interface ArtifactCreateDownloadAccessRequest extends ArtifactGetRecordRequest {
    operationId: string;
    expiresInSeconds?: number;
    responseMimeType?: string;
    responseFilename?: string;
}

Contract members ​

MemberKindSignatureDescription
artifactIdpropertyartifactId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expiresInSecondspropertyexpiresInSeconds?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
responseFilenamepropertyresponseFilename?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
responseMimeTypepropertyresponseMimeType?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
versionIdpropertyversionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactCreateRequest ​

Artifact Create Request interface with 26 public fields or methods.

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

Declaration ​

text
export interface ArtifactCreateRequest {
    operationId: string;
    principal: ExecutionPrincipal;
    profileRef: SpecRef;
    userId: string;
    tenantId?: string;
    workspaceId: string;
    sessionId?: string;
    runId?: string;
    agentId?: string;
    name: string;
    description?: string;
    relativePath?: string;
    kind: ArtifactKind;
    mimeType?: string;
    encoding?: string;
    content: ArtifactByteSource;
    expectedContentHash?: string;
    expectedSizeBytes?: number;
    logicalArtifactId?: string;
    provenance: ArtifactProvenance;
    access?: ArtifactAccessRecord;
    retention?: ArtifactRetentionRecord;
    sensitive?: boolean;
    tags?: string[];
    idempotencyKey?: string;
    metadata?: Record<string, unknown>;
}

Contract members ​

MemberKindSignatureDescription
accesspropertyaccess?: ArtifactAccessRecordPublic property; its type, readonly modifier and optionality are shown in the signature.
agentIdpropertyagentId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
contentpropertycontent: ArtifactByteSourcePublic 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.
encodingpropertyencoding?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedContentHashpropertyexpectedContentHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedSizeBytespropertyexpectedSizeBytes?: 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.
kindpropertykind: ArtifactKindPublic property; its type, readonly modifier and optionality are shown in the signature.
logicalArtifactIdpropertylogicalArtifactId?: 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.
mimeTypepropertymimeType?: 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.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
profileRefpropertyprofileRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
provenancepropertyprovenance: ArtifactProvenancePublic property; its type, readonly modifier and optionality are shown in the signature.
relativePathpropertyrelativePath?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
retentionpropertyretention?: ArtifactRetentionRecordPublic 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.
sensitivepropertysensitive?: booleanPublic 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.
tagspropertytags?: 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.
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.

ArtifactFromWorkspaceRequest ​

Artifact From Workspace Request interface with 22 public fields or methods.

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

Declaration ​

text
export interface ArtifactFromWorkspaceRequest {
    operationId: string;
    principal: ExecutionPrincipal;
    profileRef: SpecRef;
    userId: string;
    tenantId?: string;
    workspaceId: string;
    sessionId?: string;
    runId?: string;
    agentId?: string;
    relativePath: string;
    name?: string;
    kind: ArtifactKind;
    mimeType?: string;
    expectedContentHash?: string;
    expectedSizeBytes?: number;
    logicalArtifactId?: string;
    provenance: ArtifactProvenance;
    retention?: ArtifactRetentionRecord;
    sensitive?: boolean;
    tags?: string[];
    idempotencyKey?: string;
    metadata?: Record<string, unknown>;
}

Contract members ​

MemberKindSignatureDescription
agentIdpropertyagentId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedContentHashpropertyexpectedContentHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedSizeBytespropertyexpectedSizeBytes?: 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.
kindpropertykind: ArtifactKindPublic property; its type, readonly modifier and optionality are shown in the signature.
logicalArtifactIdpropertylogicalArtifactId?: 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.
mimeTypepropertymimeType?: 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.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
profileRefpropertyprofileRef: SpecRefPublic property; its type, readonly modifier and optionality are shown in the signature.
provenancepropertyprovenance: ArtifactProvenancePublic property; its type, readonly modifier and optionality are shown in the signature.
relativePathpropertyrelativePath: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
retentionpropertyretention?: ArtifactRetentionRecordPublic 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.
sensitivepropertysensitive?: booleanPublic 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.
tagspropertytags?: 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.
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.

ArtifactGetRecordRequest ​

Artifact Get Record Request interface with 3 public fields or methods.

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

Declaration ​

text
export interface ArtifactGetRecordRequest {
    principal: ExecutionPrincipal;
    artifactId: string;
    versionId?: string;
}

Contract members ​

MemberKindSignatureDescription
artifactIdpropertyartifactId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
versionIdpropertyversionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactLatestRequest ​

Artifact Latest Request interface with 2 public fields or methods.

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

Declaration ​

text
export interface ArtifactLatestRequest {
    principal: ExecutionPrincipal;
    logicalArtifactId: string;
}

Contract members ​

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

ArtifactListRequest ​

Artifact List Request interface with 8 public fields or methods.

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

Declaration ​

text
export interface ArtifactListRequest {
    principal: ExecutionPrincipal;
    workspaceId: string;
    logicalArtifactId?: string;
    kinds?: ArtifactKind[];
    statuses?: ArtifactRecord['status'][];
    tags?: string[];
    includeDeleted?: boolean;
    limit?: number;
}

Contract members ​

MemberKindSignatureDescription
includeDeletedpropertyincludeDeleted?: booleanPublic property; its type, readonly modifier and optionality are shown in the signature.
kindspropertykinds?: ArtifactKind[]Public 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.
logicalArtifactIdpropertylogicalArtifactId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
statusespropertystatuses?: import("/Users/erwin/Downloads/codespace/Hypha/packages/core/dist/contracts/artifact").ArtifactStatus[]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.
workspaceIdpropertyworkspaceId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactManager ​

Artifact Manager interface with 16 public fields or methods.

Declaration ​

text
export interface ArtifactManager {
    create(request: ArtifactCreateRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>;
    createFromWorkspace(request: ArtifactFromWorkspaceRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>;
    createVersion(request: ArtifactVersionRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>;
    get(request: ArtifactGetRecordRequest): Promise<ArtifactRecord | null>;
    read(request: ArtifactReadRequest, options?: ArtifactOperationOptions): Promise<ArtifactReadResult>;
    createDownloadAccess(request: ArtifactCreateDownloadAccessRequest): Promise<ArtifactDownloadAccess>;
    list(request: ArtifactListRequest): Promise<ArtifactRecord[]>;
    finalize(request: ArtifactFinalizeRequest): Promise<ArtifactRecord>;
    archive(request: ArtifactArchiveRequest): Promise<ArtifactRecord>;
    invalidate(request: ArtifactInvalidateRequest): Promise<ArtifactRecord>;
    delete(request: ArtifactDeleteRequest): Promise<void>;
    traceLineage(request: ArtifactTraceLineageRequest): Promise<ArtifactLineage>;
    latest(request: ArtifactLatestRequest): Promise<ArtifactRecord | null>;
    previous(request: ArtifactPreviousRequest): Promise<ArtifactRecord | null>;
    profile(ref: SpecRef): Promise<ArtifactProfileSpec | null>;
    health(): Promise<Record<string, ProviderHealth>>;
}

Contract members ​

MemberKindSignatureDescription
archivemethodarchive(request: ArtifactArchiveRequest): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
createmethodcreate(request: ArtifactCreateRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
createDownloadAccessmethodcreateDownloadAccess(request: ArtifactCreateDownloadAccessRequest): Promise<ArtifactDownloadAccess>Public method; parameters and return type are shown in the signature.
createFromWorkspacemethodcreateFromWorkspace(request: ArtifactFromWorkspaceRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
createVersionmethodcreateVersion(request: ArtifactVersionRequest, options?: ArtifactOperationOptions): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
deletemethoddelete(request: ArtifactDeleteRequest): Promise<void>Public method; parameters and return type are shown in the signature.
finalizemethodfinalize(request: ArtifactFinalizeRequest): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
getmethodget(request: ArtifactGetRecordRequest): Promise<ArtifactRecord | null>Public method; parameters and return type are shown in the signature.
healthmethodhealth(): Promise<Record<string, ProviderHealth>>Public method; parameters and return type are shown in the signature.
invalidatemethodinvalidate(request: ArtifactInvalidateRequest): Promise<ArtifactRecord>Public method; parameters and return type are shown in the signature.
latestmethodlatest(request: ArtifactLatestRequest): Promise<ArtifactRecord | null>Public method; parameters and return type are shown in the signature.
listmethodlist(request: ArtifactListRequest): Promise<ArtifactRecord[]>Public method; parameters and return type are shown in the signature.
previousmethodprevious(request: ArtifactPreviousRequest): Promise<ArtifactRecord | null>Public method; parameters and return type are shown in the signature.
profilemethodprofile(ref: SpecRef): Promise<ArtifactProfileSpec | null>Public method; parameters and return type are shown in the signature.
readmethodread(request: ArtifactReadRequest, options?: ArtifactOperationOptions): Promise<ArtifactReadResult>Public method; parameters and return type are shown in the signature.
traceLineagemethodtraceLineage(request: ArtifactTraceLineageRequest): Promise<ArtifactLineage>Public method; parameters and return type are shown in the signature.

ArtifactMutationRequest ​

Artifact Mutation Request interface with 6 public fields or methods.

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

Declaration ​

text
export interface ArtifactMutationRequest {
    operationId: string;
    principal: ExecutionPrincipal;
    artifactId: string;
    expectedRevision: number;
    reason?: string;
    idempotencyKey?: string;
}

Contract members ​

MemberKindSignatureDescription
artifactIdpropertyartifactId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedRevisionpropertyexpectedRevision: 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.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic 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.

ArtifactPreviousRequest ​

Artifact Previous Request interface with 2 public fields or methods.

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

Declaration ​

text
export interface ArtifactPreviousRequest {
    principal: ExecutionPrincipal;
    versionId: string;
}

Contract members ​

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

ArtifactReadRequest ​

Artifact Read Request interface with 5 public fields or methods.

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

Declaration ​

text
export interface ArtifactReadRequest extends ArtifactGetRecordRequest {
    range?: ArtifactByteRange;
    expectedContentHash?: string;
}

Contract members ​

MemberKindSignatureDescription
artifactIdpropertyartifactId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedContentHashpropertyexpectedContentHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
rangepropertyrange?: ArtifactByteRangePublic property; its type, readonly modifier and optionality are shown in the signature.
versionIdpropertyversionId?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactReadResult ​

Artifact Read Result interface with 2 public fields or methods.

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

Declaration ​

text
export interface ArtifactReadResult {
    record: ArtifactRecord;
    content: ArtifactContent;
}

Contract members ​

MemberKindSignatureDescription
contentpropertycontent: ArtifactContentPublic property; its type, readonly modifier and optionality are shown in the signature.
recordpropertyrecord: ArtifactRecordPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactTraceLineageRequest ​

Artifact Trace Lineage Request interface with 2 public fields or methods.

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

Declaration ​

text
export interface ArtifactTraceLineageRequest {
    principal: ExecutionPrincipal;
    artifactId: string;
}

Contract members ​

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

ArtifactVersionRequest ​

Artifact Version Request interface with 10 public fields or methods.

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

Declaration ​

text
export interface ArtifactVersionRequest {
    operationId: string;
    principal: ExecutionPrincipal;
    artifactId: string;
    expectedRevision: number;
    content: ArtifactByteSource;
    expectedContentHash?: string;
    expectedSizeBytes?: number;
    provenance: ArtifactProvenance;
    idempotencyKey?: string;
    metadata?: Record<string, unknown>;
}

Contract members ​

MemberKindSignatureDescription
artifactIdpropertyartifactId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
contentpropertycontent: ArtifactByteSourcePublic property; its type, readonly modifier and optionality are shown in the signature.
expectedContentHashpropertyexpectedContentHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedRevisionpropertyexpectedRevision: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
expectedSizeBytespropertyexpectedSizeBytes?: 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.
metadatapropertymetadata?: Record<string, unknown>Public property; its type, readonly modifier and optionality are shown in the signature.
operationIdpropertyoperationId: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
provenancepropertyprovenance: ArtifactProvenancePublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactWorkspaceContent ​

Artifact Workspace Content interface with 4 public fields or methods.

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

Declaration ​

text
export interface ArtifactWorkspaceContent {
    content: ArtifactByteSource;
    contentHash?: string;
    sizeBytes?: number;
    mimeType?: string;
}

Contract members ​

MemberKindSignatureDescription
contentpropertycontent: ArtifactByteSourcePublic property; its type, readonly modifier and optionality are shown in the signature.
contentHashpropertycontentHash?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
mimeTypepropertymimeType?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
sizeBytespropertysizeBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.

ArtifactWorkspaceContentReader ​

Governed Workspace port used by ArtifactManager; it never accepts a host path.

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

Declaration ​

text
export interface ArtifactWorkspaceContentReader {
    read(request: ArtifactWorkspaceContentRequest): Promise<ArtifactWorkspaceContent>;
}

Contract members ​

MemberKindSignatureDescription
readmethodread(request: ArtifactWorkspaceContentRequest): Promise<ArtifactWorkspaceContent>Public method; parameters and return type are shown in the signature.

ArtifactWorkspaceContentRequest ​

Artifact Workspace Content Request interface with 4 public fields or methods.

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

Declaration ​

text
export interface ArtifactWorkspaceContentRequest {
    principal: ExecutionPrincipal;
    workspaceId: string;
    relativePath: string;
    maxBytes?: number;
}

Contract members ​

MemberKindSignatureDescription
maxBytespropertymaxBytes?: numberPublic property; its type, readonly modifier and optionality are shown in the signature.
principalpropertyprincipal: ExecutionPrincipalPublic property; its type, readonly modifier and optionality are shown in the signature.
relativePathpropertyrelativePath: 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.

NormalizedArtifactError ​

Normalized Artifact Error interface with 5 public fields or methods.

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

Declaration ​

text
export interface NormalizedArtifactError {
    code: 'ARTIFACT_INVALID_INPUT' | 'ARTIFACT_NOT_FOUND' | 'ARTIFACT_PERMISSION_DENIED' | 'ARTIFACT_TOO_LARGE' | 'ARTIFACT_TYPE_DENIED' | 'ARTIFACT_HASH_MISMATCH' | 'ARTIFACT_VERSION_CONFLICT' | 'ARTIFACT_STORE_UNAVAILABLE' | 'ARTIFACT_UPLOAD_FAILED' | 'ARTIFACT_DOWNLOAD_FAILED' | 'ARTIFACT_DELETE_BLOCKED' | 'ARTIFACT_DELETE_PARTIAL' | 'ARTIFACT_VALIDATION_FAILED' | 'ARTIFACT_INTERNAL_ERROR';
    message: string;
    retryable: boolean;
    details?: Record<string, unknown>;
    causeRef?: string;
}

Contract members ​

MemberKindSignatureDescription
causeRefpropertycauseRef?: stringPublic property; its type, readonly modifier and optionality are shown in the signature.
codepropertycode: "ARTIFACT_INVALID_INPUT" | "ARTIFACT_NOT_FOUND" | "ARTIFACT_PERMISSION_DENIED" | "ARTIFACT_TOO_LARGE" | "ARTIFACT_TYPE_DENIED" | "ARTIFACT_HASH_MISMATCH" | "ARTIFACT_VERSION_CONFLICT" | "ARTIFACT_STORE_UNAVAILABLE" | "ARTIFACT_UPLOAD_FAILED" | "ARTIFACT_DOWNLOAD_FAILED" | "ARTIFACT_DELETE_BLOCKED" | "ARTIFACT_DELETE_PARTIAL" | "ARTIFACT_VALIDATION_FAILED" | "ARTIFACT_INTERNAL_ERROR"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.

ArtifactArchiveRequest ​

Public type alias for Artifact Archive Request; the declaration contains its complete type expression.

Declaration ​

text
export type ArtifactArchiveRequest = ArtifactMutationRequest;

ArtifactDeleteRequest ​

Public type alias for Artifact Delete Request; the declaration contains its complete type expression.

Declaration ​

text
export type ArtifactDeleteRequest = ArtifactMutationRequest;

ArtifactFinalizeRequest ​

Public type alias for Artifact Finalize Request; the declaration contains its complete type expression.

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

Declaration ​

text
export type ArtifactFinalizeRequest = ArtifactMutationRequest;

ArtifactInvalidateRequest ​

Public type alias for Artifact Invalidate Request; the declaration contains its complete type expression.

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

Declaration ​

text
export type ArtifactInvalidateRequest = ArtifactMutationRequest;