TYPESCRIPT / JAVASCRIPT
Artifacts & files
Method reference generated from the public package declarations · v0.3.0
Obtain an authorized receipt, then verify size and SHA-256 through a separate unauthenticated transfer. Check business-job ownership before serving files to your users.
Related HTTP contractArtifactsResource
classexport class ArtifactsResourceconstructor
constructor(client: OrbitSpaceClient);download
download(id: string, options: ArtifactDownloadOptions): Promise<ArtifactContent>;get
get(id: string, options?: ResourceCallOptions): Promise<ArtifactServiceGetArtifactResponses[200]>;getDownload
getDownload(id: string, options?: ResourceCallOptions): Promise<ArtifactServiceGetArtifactDownloadResponses[200]>;list
list(query?: NonNullable<ArtifactServiceListArtifactsData["query"]>, options?: ResourceCallOptions): Promise<ArtifactServiceListArtifactsResponses[200]>;downloadArtifactContent
functionexport function downloadArtifactContent(receipt: ArtifactDownload, options: ArtifactDownloadOptions & {
destinations: readonly ArtifactDestination[];
}): Promise<ArtifactContent>;export type ArtifactDownloadOptions = {
signal: AbortSignal;
maxBytes: number;
destinations?: readonly ArtifactDestination[];
fetch?: typeof globalThis.fetch;
};export type ArtifactDestination = {
origin: string;
pathPrefix: string;
};ArtifactContent
typeexport type ArtifactContent = {
bytes: Uint8Array;
checksumSha256: string;
sizeBytes: string;
contentType?: string;
};Download method index JSON ↓ · Source digest 5f558e57b94420ef8fc60d9a8274a2ab5b92ac85d23f370a5bac4bc7ad2baae2