Skip to content

BuildRecordItem

One source file of a recorded build, as the request carried it. The size and hash are of the file’s text as the server read it (a definition’s lines joined with \n, a pipeline’s JSON, a prompt’s content) in UTF-8, so two builds can be compared file by file without their sources.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
kindBuildRecordFileKindWhich part of the request the file was sent in.
namestringThe definition’s name; for an app’s files the app’s, and for a code pipeline’s hooks the pipeline’s. At most 256 characters.
fileNamestring | nullThe file name the request gave; null for prompts and JSON files, which are sent by name only.
sizeBytesintegerThe file’s size, in UTF-8 bytes.
sha256stringThe lowercase hex SHA-256 of the file’s UTF-8 text.
sourceStoredbooleanWhether the record kept this file’s text in sources (false when the size limit left it out).
{
"kind": "Agent",
"name": "...",
"fileName": "...",
"sizeBytes": 0,
"sha256": "...",
"sourceStored": false
}