Publish schema
publish_schemaPublish a database-linked schema's working copy as the contract used by enrichment and replicas. A newly linked schema sends nothing until first publication; unlinked drafts cannot be published. Requires editor; no LLM call. Call validate_only=true to inspect the diff, blockers, warnings and per-database migration_sql. Transform migrations require user-approved confirm_transforms=true; cross-schema conflicts remain blockers. key_language may be required if classification revealed a multilingual key. Returns publication state; queued migrations apply asynchronously on replicas. See enricher://docs/database-sync for the review and delivery workflow.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| schema_id | Yes | UUID of the schema to publish. | |
| key_language | No | ISO 639-1 language for multilingual identity tokens. Normally adopted from the database lock. Supply when key_language_required requests a choice; review the suggested language with the user. Shared by all schemas of that database. | |
| validate_only | No | Dry-run: return the diff + blockers without publishing. | |
| confirm_transforms | No | Acknowledge a transform migration (re-key, type change, or a column/table rename) run against the replicas' own data. Required when the preview says requires_confirm — ALWAYS show the transforms to the user and get their explicit approval before passing true. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||