Compare two folder versions
The files added, removed and changed from version from (default: the one before) to this one. Version 1 without from lists every file as added.
AuthorizationBearer <token>An application key of the Tenant (PUT /v1/tenant/keys/{keyId}), or Studio's key, derived from the admin key. With Nylorun-Subject and Nylorun-Scopes, it acts for that person, narrowed to those scopes. Never accepted from a browser (Origin).
artifactId*stringversion*stringA version number, or latest
from?stringThe version to compare against
Nylorun-Protocol*stringThe protocol version, 8
Nylorun-Subject?stringThe person an application key acts for
Nylorun-Scopes?stringThe subject's space-separated scopes; required with a subject
What changed
application/json- response
artifactId*stringfrom?integer0 < valueto*integer0 < valueadded*array<>removed*array<>changed*array<>import { createClient } from "@nylorun/agents";const client = await createClient();const diff = await client.artifacts.diff("art_123", { version: 2, from: 1 });{ "artifactId": "string", "from": 1, "to": 1, "added": [ { "path": "string", "size": 0, "sha256": "string", "contentType": "string" } ], "removed": [ { "path": "string", "size": 0, "sha256": "string", "contentType": "string" } ], "changed": [ { "path": "string", "from": { "path": "string", "size": 0, "sha256": "string", "contentType": "string" }, "to": { "path": "string", "size": 0, "sha256": "string", "contentType": "string" } } ]}Download one file of a folder version GET
Streams the file at `path` (its path in the folder, with `/` percent-encoded as `%2F`) through the Runtime, with Range as for a file artifact.
Download a folder version as a zip GET
Streams the folder's files as one zip archive (deflated, UTF-8 names), read from the Object store as it goes. A file artifact is a `400`.