OSS-first docs
These docs teach the open system first: contracts, generated surfaces, runtimes, governance, and incremental adoption. Studio shows up as the operating layer on top, not as the source of truth.
Get file version history.
Goal
View all versions of a file.
Context
Called to browse file history.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const GetVersionsContract = defineQuery({
meta: {
key: 'file.version.list',
version: '1.0.0',
stability: 'stable',
owners: ['platform.files'],
tags: ['files', 'version', 'list'],
description: 'Get file version history.',
goal: 'View all versions of a file.',
context: 'Called to browse file history.',
},
io: {
input: GetVersionsInput,
output: GetVersionsOutput,
errors: {
FILE_NOT_FOUND: {
description: 'File does not exist',
http: 404,
gqlCode: 'FILE_NOT_FOUND',
when: 'File ID is invalid',
},
},
},
policy: {
auth: 'user',
},
});