Skip to main content

PreservationJob

Canonical durable host status; cancellation intent is not proof of stop.

bytes_receivedBytes Received (integer)

Largest observed attempt's received bytes; not a remaining-quota or unique-coverage claim.

Possible values: >= 0

Default value: 0
sharing_policy object

Immutable reviewed session exposure and allowances, retained after plan expiry.

anyOf
public_networkPublic Network (boolean)required

Network binding/public peer discovery; false is loopback only.

listen_portListen Port (integer)required

Requested port, zero for an OS-selected port.

Possible values: >= 0 and <= 65535

duration_secondsDuration Seconds (integer)required

Maximum owned serving-session lifetime.

Possible values: >= 1 and <= 86400

upload_limit_bytesUpload Limit Bytes (integer)required

HTTP response allowance or observed torrent payload/peer wire stop threshold.

Possible values: >= 1 and <= 9007199254740991

upload_rate_bytesUpload Rate Bytes (integer)required

Native BitTorrent payload-rate limit; not HTTP rate shaping.

Possible values: >= 1024 and <= 104857600

advertised_url object

User-supplied mirror hint, not verified reachability.

anyOf
string

Possible values: <= 2048 characters

peer_privatePeer Private (boolean)

Exact reviewed Core peer address scope, separate from HTTP permissions.

Default value: false
restore_deletedRestore Deleted (boolean)

This receiver's confirmation of the exact reviewed removals.

Default value: false
sharing object

Latest safe owned serving observation; not a public availability guarantee.

anyOf
handoff_sha256 object

Hash of this job's retained one-file peer handoff, not reachability evidence.

anyOf
string

Possible values: Value must match regular expression ^[0-9a-f]{64}$

metainfo_sha256 object

Retained standard torrent metadata hash, available before seeding.

anyOf
string

Possible values: Value must match regular expression ^[0-9a-f]{64}$

readyReady (boolean)

Observed owned listener/seed readiness.

Default value: false
listen_portListen Port (integer)

Actual owned listener port; zero after stop.

Possible values: >= 0 and <= 65535

Default value: 0
charged_bytesCharged Bytes (integer)

HTTP reservations, torrent payload or native peer wire bytes, according to accounting.

Possible values: >= 0

Default value: 0
accountingAccounting (string)required

Exact meaning of charged_bytes; peer wire observations include native routing overhead and may overshoot.

Possible values: [reserved-response, observed-torrent-payload, observed-peer-wire]

connected_peersConnected Peers (integer)

Aggregate BitTorrent peer count; no identities retained.

Possible values: >= 0

Default value: 0
accept_owner_captureAccept Owner Capture (boolean)

This receiver's exact job consent, never an imported grant.

Default value: false
allow_repository_codeAllow Repository Code (boolean)

This receiver's separate exact repository-code consent.

Default value: false
location_id object

Exact source location retained by this job's plan.

anyOf
string

Possible values: Value must match regular expression ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$

job_idJob Id (string)required

Durable host-owned job handle.

Possible values: Value must match regular expression ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$

operation_idOperation Id (string)required

Original caller idempotency identity.

Possible values: non-empty and <= 128 characters, Value must match regular expression ^[a-zA-Z0-9._:@-]+$

owner_idOwner Id (string)required

Stable workflow owner.

Possible values: Value must match regular expression ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$

plan_idPlan Id (string)required

Exact retained plan.

Possible values: Value must match regular expression ^[0-9a-f]{64}$

kindKind (string)required

Actual owned effect.

Possible values: [preserve, check, kit_export, recover, publish, torrent_export, http_share, torrent_share, peer_share, mirror_import, receive]

model_idModel Id (string)required

Target model; completion actions must use this identity.

Possible values: non-empty and <= 512 characters

stateState (string)required

Actual host lifecycle state.

Possible values: [queued, running, cancelling, succeeded, failed, cancelled, interrupted]

stageStage (string)

Safe current stage code, not a success assertion.

Possible values: <= 64 characters

Default value: queued
created_atCreated At (integer)required

Initial accepted time as Unix seconds.

Possible values: >= 0

updated_atUpdated At (integer)required

Most recent persisted observation as Unix seconds.

Possible values: >= 0

finished_at object

Confirmed terminal time, when known.

anyOf
integer

Possible values: >= 0

attemptsAttempts (integer)

Retained execution attempts; restart never resets this count.

Possible values: >= 0

Default value: 0
bytes_copiedBytes Copied (integer)

Observed copy work, not unique verified coverage or a percentage.

Possible values: >= 0

Default value: 0
bytes_hashedBytes Hashed (integer)

Observed hashing work, which may read bytes more than once.

Possible values: >= 0

Default value: 0
expected_manifest_id object

Durably recorded expected outcome before publication is allowed.

anyOf
string

Possible values: Value must match regular expression ^[0-9a-f]{64}$

copy_id object

Actual completed retained copy, if any.

anyOf
string

Possible values: Value must match regular expression ^[a-zA-Z0-9][a-zA-Z0-9_-]{0,127}$

error_code object

Safe stable error code; no paths, keys or raw exception text.

anyOf
string

Possible values: <= 64 characters

result object

Bounded safe terminal receipt, independently checked by the host.

anyOf
object
accepted_termsstring[]

Licence terms the person accepted for this receive, recorded before any download.

Possible values: <= 256

Default value: []
PreservationJob
{
"bytes_received": 0,
"sharing_policy": {
"public_network": true,
"listen_port": 0,
"duration_seconds": 0,
"upload_limit_bytes": 0,
"upload_rate_bytes": 0,
"advertised_url": "string",
"peer_private": false
},
"restore_deleted": false,
"sharing": {
"handoff_sha256": "string",
"metainfo_sha256": "string",
"ready": false,
"listen_port": 0,
"charged_bytes": 0,
"accounting": "reserved-response",
"connected_peers": 0
},
"accept_owner_capture": false,
"allow_repository_code": false,
"location_id": "string",
"job_id": "string",
"operation_id": "string",
"owner_id": "string",
"plan_id": "string",
"kind": "preserve",
"model_id": "string",
"state": "queued",
"stage": "queued",
"created_at": 0,
"updated_at": 0,
"finished_at": 0,
"attempts": 0,
"bytes_copied": 0,
"bytes_hashed": 0,
"expected_manifest_id": "string",
"copy_id": "string",
"error_code": "string",
"result": {},
"accepted_terms": [
"string"
]
}