@edgible-team/sdk
    Preparing search index...

    Class ArtifactsClient

    sdk.artifacts — mint/poll the artifact ingest session, register the delivered digest, and probe presence (see module doc). Idempotent by digest.

    Index

    Constructors

    Methods

    • Read an ArtifactRecord by digest (presence / idempotency probe). digest is URL-encoded into the path (sha256: contains a :).

      Parameters

      • params: { applicationId: string; digest: string }
      • Optionalopts: RequestOptions

      Returns Promise<ArtifactRecord>

      NotFoundError when no artifact with this digest is registered.

    • Poll an artifact ingest session (the delivery waiter's poll target). The artifact session is an IngestSessionRecord, so it is read through the shared storage-session route; the session token is never returned here.

      Parameters

      • params: { applicationId: string; uploadId: string }
      • Optionalopts: RequestOptions

      Returns Promise<StorageUploadSession>

      NotFoundError if the upload session does not exist.

    • Register (put-if-absent) the ArtifactRecord for a delivered digest. Idempotent — the first writer persists {digest, kind, size, source:'ingest', refCount:0}; refCount is driven up later at release cut.

      Parameters

      • params: { applicationId: string; digest: string; kind: ArtifactKind; size: number }
      • Optionalopts: RequestOptions

      Returns Promise<RegisterArtifactResult>