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.
Create a knowledge source binding for a tenant.
Goal
Onboard a new knowledge ingestion source such as Notion or uploads.
Context
Used by Ops and App Studio to configure knowledge ingestion per tenant and space.
Source Definition
import { ScalarTypeEnum, SchemaModel } from '@lssm-tech/lib.schema';
import {
type AnyOperationSpec,
defineCommand,
defineQuery,
} from '../operations/';
import type { OperationSpecRegistry } from '../operations/registry';
export const CreateKnowledgeSource = defineCommand({
meta: {
key: 'knowledge.source.create',
title: 'Create Knowledge Source',
version: '1.0.0',
description: 'Create a knowledge source binding for a tenant.',
goal: 'Onboard a new knowledge ingestion source such as Notion or uploads.',
context:
'Used by Ops and App Studio to configure knowledge ingestion per tenant and space.',
owners: ['@platform.knowledge'],
tags: ['knowledge', 'sources'],
stability: 'experimental',
},
io: {
input: CreateKnowledgeSourceInput,
output: KnowledgeSourceRecord,
},
policy: {
auth: 'admin',
policies: [{ key: 'platform.knowledge.manage', version: '1.0.0' }],
},
});