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.

attachment.list

List attachments for an entity.

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

    List attachments for an entity.

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

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