# Package

What a complete job hands back: its files, its rewards and, for a route review, the chemist's review. A job the lab
reopens and finishes again gets a new version, and every earlier version stays readable.

## Fields

- `files` (array of [PackageFile](/docs/types/package-file.md), required): The job's data in the lab's release format: a folder for each product, holding `<product ID>.json`, a record for each experiment under `experiments/` and the instrument files under `raw/`, with `provenance.jsonl` at the top. A route review has none.
  - `media_type` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): A short name, such as a reaction's ID or a chemist's: 1 to 200 printable characters, not all spaces.
  - `path` ([FilePath](/docs/types/file-path.md) (string, pattern), required): A file's path within a record or a package, such as `notebook/page-1.jpg`: relative, with no empty or `..` part and no control characters.
  - `sha256` ([Sha256](/docs/types/sha256.md) (string, pattern `^[0-9a-f]{64}$`), required): A file's SHA-256 hash, as 64 lowercase hexadecimal characters. The API names every file by it.
  - `size_bytes` (integer, at least 0, required)
- `rewards` (array of [Reward](/docs/types/reward.md), required)
  - `measure` ([Measure](/docs/types/measure.md) (one of "yield_pct", "conversion_pct", "purity_pct"), required): What can be measured of a reaction's product, each as a percentage.
  - `measured` ([NonNegative](/docs/types/non-negative.md) (number, 0 to 10¹²), required): What the lab measured.
  - `method` ([Text](/docs/types/text.md) (string, pattern), required): How the lab measured it, such as "isolated mass" or "HPLC area at 254 nm".
  - `source` ([RewardSource](/docs/types/reward-source.md), required)
  - `reaction` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern) or null): The ID of the request's reaction this is for. It is null for a synthesis's final product.
- `version` (integer, at least 0, required): 1 for the job's first package.
- `written_at` (string, RFC 3339, required)
- `reason` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern) or null): Why the lab reopened the job before this version, in its words. It is null for the first.
- `review` ([Review](/docs/types/review.md) or null): What the chemist made of the route. It is null for any job but a route review.
  - `chemist` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): A pseudonym for the chemist who reviewed it.
  - `confidence` ([Confidence](/docs/types/confidence.md) (one of "high", "medium", "low"), required): How sure the chemist is that the route as a whole gives its target.
  - `reactions` (array of [ReactionReview](/docs/types/reaction-review.md), required): One for each of the route's reactions the chemist judged. It may be empty.
  - `reviewed_at` (string, RFC 3339, required)
  - `site` ([Name](/docs/types/name.md) (string, at most 200 chars, pattern), required): A short name, such as a reaction's ID or a chemist's: 1 to 200 printable characters, not all spaces.
  - `summary` ([EnglishText](/docs/types/english-text.md) (string, pattern), required): What the chemist advises, in English.

## Used by

- [GET /v1/jobs/{id}/package](/docs/jobs/get-package.md)
