Skip to content

Type Alias: GovernanceAcquisitionCheckpoint

@kortexya/reasoninglayer


@kortexya/reasoninglayer / GovernanceAcquisitionCheckpoint

Type Alias: GovernanceAcquisitionCheckpoint

Section titled “Type Alias: GovernanceAcquisitionCheckpoint”

GovernanceAcquisitionCheckpoint = { bytes: number; capturedAt?: string | null; continuation: string; next?: string | null; providerCode?: string | null; request: string; sha256: string; sourceFileId: string; statedTotal?: number | null; status: number; step: "capture"; } | { group: number; step: "run"; } | { complete: boolean; keys: string[]; reason?: string | null; scope: string; statedTotal?: number | null; step: "listing"; withdrawalScopes: string[]; } | { candidates: number; step: "withdrawal"; withdrawn: string[]; }

Defined in: src/types/governance.ts:2534

What one unit of a source_acquisition job did.

{ bytes: number; capturedAt?: string | null; continuation: string; next?: string | null; providerCode?: string | null; request: string; sha256: string; sourceFileId: string; statedTotal?: number | null; status: number; step: "capture"; }

bytes: number

The byte count.

optional capturedAt?: string | null

When the provider says it served the page.

continuation: string

next, end or provider_error.

optional next?: string | null

The continuation the next capture carries (an OAI resumptionToken, a REST next-page URL).

optional providerCode?: string | null

The provider’s error code, for provider_error (not_found: an absent ORCID iD).

request: string

The request the page answered (replay:source-file:<id> for a replayed page).

sha256: string

The SHA-256 of the bytes, lowercase hex.

sourceFileId: string

The file the page’s bytes are stored in, exactly as served.

optional statedTotal?: number | null

The listing size the provider states.

status: number

The HTTP status (200 for a replayed or reused page).

step: "capture"

step.


{ group: number; step: "run"; }

group: number

The group, from 0.

step: "run"

step.


{ complete: boolean; keys: string[]; reason?: string | null; scope: string; statedTotal?: number | null; step: "listing"; withdrawalScopes: string[]; }

complete: boolean

Whether the listing is complete: only then may a withdrawal follow.

keys: string[]

The distinct source keys the runs read as served, sorted.

optional reason?: string | null

Why it is not.

scope: string

The listing’s scope.

optional statedTotal?: number | null

The total the provider stated.

step: "listing"

step.

withdrawalScopes: string[]

The scopes the withdrawal reconciles; empty when nothing may be withdrawn.


{ candidates: number; step: "withdrawal"; withdrawn: string[]; }

candidates: number

How many candidates of the listing’s scopes were read.

step: "withdrawal"

step.

withdrawn: string[]

The contributions withdrawn, sorted.

SDK schema keys are camelCase; native wire keys are snake_case.