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.
List attachments for an entity.
Goal
Get all files attached to an entity.
Context
Called to display attached files.
Source Definition
import { defineCommand, defineQuery } from '@lssm-tech/lib.contracts-spec';
import { defineSchemaModel, ScalarTypeEnum } from '@lssm-tech/lib.schema';
export const ListAttachmentsContract = defineQuery({
meta: {
key: 'attachment.list',
version: '1.0.0',
stability: 'stable',
owners: ['platform.files'],
tags: ['files', 'attachment', 'list'],
description: 'List attachments for an entity.',
goal: 'Get all files attached to an entity.',
context: 'Called to display attached files.',
},
io: {
input: ListAttachmentsInput,
output: ListAttachmentsOutput,
},
policy: {
auth: 'user',
},
});