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.

file.version.list

Get file version history.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.files
  • Tags: files, version, list
  • File: packages/libs/files/src/contracts/index.ts
  • field.key.label
    file.version.list
    field.version.label
    1.0.0
    field.type.label
    operation (query)
    field.title.label
    file.version.list
    field.description.label

    Get file version history.

  • Type: operation (query)
  • Version: 1.0.0
  • Stability: stable
  • Owners: platform.files
  • Tags: files, version, list
  • File: packages/libs/files/src/contracts/index.ts
  • field.tags.label
    files,version,list
    field.owners.label
    platform.files
    field.stability.label
    stable

    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',
    	},
    });