Export
Generated from apiome-rest/openapi.yaml (API version 1.719.0) — do not edit by hand. How to authenticate is on the REST API reference.
Tag: export · 19 operations
POST /v1/export/{tenant_slug}/avro/push
Register an Avro export on a schema registry through a connector
MFX-19.4: export one version to Avro (.avsc, one schema per type, each under the subject its naming strategy gives it), validate it with fastavro, then push each subject to the registry of an existing schema-registry connector, using the connector's base URL and stored credentials. Per subject, referenced schemas first: look the schema up (already registered → nothing written), check it against the subject's latest version under the subject's compatibility level (incompatible → not registered), then register it, with Confluent references to the subjects of the types it names. dry_run does everything but register. The response gives each subject's status, schema id and version. Needs imports:edit.
Operation id: push_avro_export_v1_export__tenant_slug__avro_push_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for register an avro export on a schema registry through a connector.
application/json—AvroPushRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for register an avro export on a schema registry through a connector. | application/json AvroPushResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/capability-registry
Get the destination capability & documentation registry
Return the versioned destination capability registry (EFP-1.2): one reviewed capability entry per registered export destination (label, availability state, and host-allowlisted destination-format documentation with a safe fallback) plus the reviewed explanation for every projection reason code. This is static reference data — the same for every source — that lets the export UI render honest loss reasons and authoritative documentation links from reviewed data instead of hard-coding URLs in components.
Operation id: get_capability_registry_v1_export__tenant_slug__capability_registry_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get the destination capability & documentation registry. | application/json CapabilityRegistrySnapshot |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/dispatch
Dispatch an export: emit one target and attach its fidelity report
The one-shot transcode (MFX-3.2): load the source artifact/version, resolve the target emitter, run it, and return the emitted document together with its full fidelity envelope (report + advisory + summary). The synchronous twin of submitting an export job and polling it — for small artifacts and the apiome export CLI; large or toolchain-backed exports should use POST …/jobs. dry_run: true stops after the fidelity report (no artifact), the same shape POST …/preview returns.
Operation id: dispatch_export_document_v1_export__tenant_slug__dispatch_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for dispatch an export: emit one target and attach its fidelity report.
application/json—ExportDispatchRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for dispatch an export: emit one target and attach its fidelity report. | application/json ExportDispatchResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/document
Emit the export document for one target
Emit the source artifact/version to one target through the Emitter SPI and return the document itself — JSON by default, YAML when Accept: application/yaml is sent. This is the emit counterpart to /preview (which predicts the loss without emitting); the apiome export <target> CLI pairs the two to write the artifact and surface its fidelity. Gives non-OpenAPI targets (AsyncAPI) a byte source the OpenAPI-only browse reconstruction cannot supply.
Operation id: emit_export_document_v1_export__tenant_slug__document_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
accept | header | string or null | no | Requested response content type (Accept header). |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for emit the export document for one target.
application/json—ExportDocumentRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for emit the export document for one target. | — |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/preview
Preview export fidelity for one target
Compute the full fidelity report for exporting the given source artifact/version to one target — the per-construct LossinessReport, the user-facing advisory (MFX-2.4), and the tier summary — without producing the artifact. Backs the export dialog's detailed fidelity panel; the same envelope is embedded in an export job result.
Operation id: preview_export_fidelity_v1_export__tenant_slug__preview_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for preview export fidelity for one target.
application/json—ExportPreviewRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for preview export fidelity for one target. | application/json ExportPreviewResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/preview-manifest
Structural manifest of the emitted artifact: entities, fidelity, locations
Describe the emitted artifact structurally (IXH-4.1): every canonical entity (services → operations, channels, types → fields) with its stable canonical key, its per-entity fidelity status and reason from the shared CPDO-1.3 taxonomy, and — for entities the artifact carries — its location in the bundle (file, 1-based line in the download-serialized text, and a JSON Pointer where derivable). Entities the source has but the artifact does not carry are listed with their drop reason, never hidden. The emit runs read-only in a temporary buffer (no artifact, no job row, no field-identity persistence — the verify route's discipline) and a severe conversion is described, not blocked. Deterministic: identical (revision, target, options) yield an identical manifest_hash; entities are cursor-paginated (codec shared with the import preview manifest) and the full manifest is cached per (tenant, revision, target, options) so paging re-emits nothing. Backs the Export Studio's structural artifact explorer with two-way entity ↔ code selection.
Operation id: preview_export_manifest_v1_export__tenant_slug__preview_manifest_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for structural manifest of the emitted artifact: entities, fidelity, locations.
application/json—ExportPreviewManifestRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for structural manifest of the emitted artifact: entities, fidelity, locations. | application/json ExportPreviewManifestResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/projection-evidence
Page through projection evidence for one configured export
Return one bounded, cursor-paginated page of source→target projection evidence (EFP-2.1 / EFP-3.2) for the given source revision, target, and options — the traceable rows behind the projection summary that preview, verify, dispatch, and job results embed. The same inputs resolve to the same snapshot hash on every surface. Tenant-scoped. Source-native evidence is always redacted (EFP-3.2); redact_source is accepted for compatibility and ignored. How to interpret the statuses, reason categories, and destination-documentation links is documented in the Understand export fidelity guide, apiome-docs/docs/ship/export-fidelity.md (EFP-3.3).
Operation id: get_projection_evidence_v1_export__tenant_slug__projection_evidence_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for page through projection evidence for one configured export.
application/json—ExportProjectionEvidenceRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for page through projection evidence for one configured export. | application/json ExportProjectionEvidenceResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/projection-metrics
Record a privacy-safe projection metric
Increment an in-process counter and emit a structured export.projection log line for UI/ops telemetry (EFP-3.2). Payload is a strict whitelist of kinds and optional integer/reason-category fields — never construct labels or source content.
Operation id: record_projection_metric_v1_export__tenant_slug__projection_metrics_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for record a privacy-safe projection metric.
application/json—ExportProjectionMetricRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record a privacy-safe projection metric. | application/json ExportProjectionMetricResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/roundtrip
On-demand round-trip comparison: emit → re-import → diff → reconcile with fidelity
The Export Studio's round-trip evidence action (IXH-4.4): emit the source revision to target in a temporary buffer, re-import the emitted artifact through the matching import adapter, diff the re-imported canonical model against the source with canonical_diff, and reconcile every difference against the fidelity report — the same loop the IXH-1.7 conformance matrix runs in CI, applied to the user's own document on demand. Differences the report explains come back matched (expected loss); unexplained differences and overclaims flag a fidelity bug worth reporting, with reproduction provenance (fingerprints + emitter/registry/apiome versions) inline. When no import adapter can re-ingest the emit format the comparison is skipped with the matrix's own explanation (status: unsupported), never silently. The run is explicit and bounded — one emit, one re-import, nothing persisted (no artifact, no job row, no field-identity rows) — and is rate-limited by the global per-tenant middleware. A severe conversion (MFX-3.3) is measured, not blocked: the round-trip exists precisely to show what a lossy conversion does.
Operation id: roundtrip_export_v1_export__tenant_slug__roundtrip_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for on-demand round-trip comparison: emit → re-import → diff → reconcile with fidelity.
application/json—ExportRoundtripRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for on-demand round-trip comparison: emit → re-import → diff → reconcile with fidelity. | application/json ExportRoundtripResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/runs
List the export history
The tenant's export runs, newest first (MFX-46.1): source and revision, target, actor, outcome, preserved %, validation and lint verdicts, delivery decision and every delivery. Filter by artifact, target, actor, state, channel (git, webhook, object-storage, none), validation, decision and finished_after / finished_before. Runs are kept for the job history window (90 days by default). Pages by cursor: pass the previous page's next_cursor until has_more is false; the total is counted only when include_total is set. Requires projects:view.
Operation id: list_export_runs_v1_export__tenant_slug__runs_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
artifact | query | string or null | no | Only runs of this artifact (project or catalog item) id. |
target | query | string or null | no | Only runs that requested this target key. |
actor | query | string or null | no | Only runs started by this user id. |
state | query | enum "completed", "failed", "canceled" or null | no | Only runs that ended so. |
channel | query | enum "git", "webhook", "object-storage", "none" or null | no | Only runs delivered through this channel, or (none) never delivered. |
validation | query | enum "valid", "invalid", "skipped", "not_applicable" or null | no | Only runs with this validation verdict. |
decision | query | enum "allow", "allow_with_warning", "block" or null | no | Only runs with this delivery decision. |
finished_after | query | string (date-time) or null | no | Inclusive lower bound on when the run ended. |
finished_before | query | string (date-time) or null | no | Inclusive upper bound on when the run ended. |
limit | query | integer | no | Page size. At most 200. |
cursor | query | string or null | no | Opaque cursor from the previous page (next_cursor, or the X-Next-Cursor header). Omit for the first page. |
include_total | query | boolean | no | Also count the matching rows. Off by default because counting reads every match; the count stops at 10,000. |
offset | query | integer | no | Rows to skip. Deprecated: page with cursor instead. At most 10,000. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the export history. | application/json ExportRunListResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/runs/actors
List the people in the export history
Everyone who started a recorded export, most recent first (for the actor filter). Requires projects:view.
Operation id: list_export_run_actors_v1_export__tenant_slug__runs_actors_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list the people in the export history. | application/json ExportRunActorsResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/runs/{job_id}
Get one export run with its stored reports
One run of the export history with its deliveries and, per target, the fidelity, validation and delivery-gate reports as they were when it ran (read-only). Requires projects:view.
Operation id: get_export_run_v1_export__tenant_slug__runs__job_id__get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
job_id | path | string | yes | Asynchronous job identifier. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for get one export run with its stored reports. | application/json ExportRunDetail |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/schema-registry/push
Register an Avro, JSON Schema or Protobuf export on a schema registry through a connector
MFX-19.6: export one version to avro (.avsc), json-schema (one document per type by default) or protobuf (one .proto per package), validate it, then push each schema to the registry of an existing schema-registry connector with its schemaType (AVRO, JSON, PROTOBUF), using the connector's base URL and stored credentials. Subjects are named the same way for every format (subject_naming, topic, subject_role). Per subject, referenced schemas first: look the schema up (already registered → nothing written), set compatibility_level when asked, check it against the subject's latest version (incompatible → not registered), then register it, with Confluent references to the subjects it names. dry_run writes nothing. Needs imports:edit.
Operation id: push_registry_export_v1_export__tenant_slug__schema_registry_push_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for register an avro, json schema or protobuf export on a schema registry through a connector.
application/json—RegistryPushRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for register an avro, json schema or protobuf export on a schema registry through a connector. | application/json RegistryPushResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/studio-metrics
Record a privacy-safe Export studio usage event
Count one Export studio (or Export dialog) usage event and emit a structured export.studio log line (MFX-46.5): a target chosen, a verify verdict, the lossy acknowledgement asked for or given, a test-drive tool opened or run, a visualization shown. Every field is a controlled vocabulary — never an artifact name, source, file or option value.
Operation id: record_studio_metric_v1_export__tenant_slug__studio_metrics_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for record a privacy-safe export studio usage event.
application/json—StudioMetricRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for record a privacy-safe export studio usage event. | application/json StudioMetricResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/targets
List export targets with per-source fidelity
For the given source artifact/version, enumerate every registered export target (descriptor + capability profile + options) with a cheap per-target fidelity badge (tier + preserved-%), computed from the prediction engine without emitting an artifact. Drives the export dialog's card badges (MFX-6.1) and the version pre-summary (MFX-6.5). Scoring a large source takes seconds: with fidelity=deferred the list comes back at once with fidelity null on every target, fidelity_status pending and a fidelity_token; poll GET …/targets/fidelity/{token} for the scored list. A list already scored for the same content is returned scored in either mode.
Operation id: list_export_targets_v1_export__tenant_slug__targets_get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
artifact | query | string | yes | The artifact (project) id to export. |
version | query | string or null | no | Revision UUID, version label (1.0.0), or omitted for the latest revision. |
fidelity | query | enum "inline", "deferred" | no | inline (default) waits for every target's fidelity badge; deferred returns the targets at once and scores them in the background. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for list export targets with per-source fidelity. | application/json ExportTargetsResponse |
| 422 | Validation Error | application/json HTTPValidationError |
GET /v1/export/{tenant_slug}/targets/fidelity/{token}
Poll a deferred targets list for its fidelity badges
The scoring job a fidelity=deferred targets request started. pending while it runs; ready with the scored targets (the same shape as the targets list); failed with an error. 404 fidelity-job-unknown when this server has no such job for the caller — it expired, or another REST worker started it: request the targets again.
Operation id: get_export_targets_fidelity_v1_export__tenant_slug__targets_fidelity__token__get
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
token | path | string | yes | Path parameter identifying the token segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for poll a deferred targets list for its fidelity badges. | application/json ExportTargetsFidelityStatus |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/verify
One-call pre-generation verify: fidelity + validation + lint + verdict
The Verify workbench's dry run (MFX-42.5, backing MFX-42.1): emit the source artifact/version to one target in a temporary buffer, then run fidelity (MFX-2.5) + emitted-output validation (MFX-5.1/5.3) + emitted-artifact lint (MFX-5.2) over it, and return all three lenses plus an overall go/no-go verdict — without persisting an artifact or a job row. The emit is read-only (no field-identity persistence), so a verify never mutates tenant state. The emitted artifact rides back inline under a size cap (include_content) for the Monaco viewer (MFX-43.x). A severe conversion (MFX-3.3) is verified, not blocked — its verdict reports the loss so the user can decide. Rate-limited by the global per-tenant middleware (it does real emit work). Lint (MFX-5.2) re-reads the emitted artifact through its import adapter and runs the MFI rule packs for its format (common + format pack); it is advisory and never changes the verdict, and reports applicable: false with a reason when the format cannot be read back. Typical p50 for the five MVP emitters (OpenAPI, AsyncAPI, GraphQL, gRPC/Protobuf, Avro) is dominated by the single emit + re-parse and runs in the tens of milliseconds for pure-Python validators; protobuf/AsyncAPI add their toolchain's startup when installed.
Operation id: verify_export_v1_export__tenant_slug__verify_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for one-call pre-generation verify: fidelity + validation + lint + verdict.
application/json—ExportVerifyRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for one-call pre-generation verify: fidelity + validation + lint + verdict. | application/json ExportVerifyResponse |
| 422 | Validation Error | application/json HTTPValidationError |
POST /v1/export/{tenant_slug}/verify/tool-checks/{tool}
Run a target's toolchain check on the artifact under review, streaming its console
Run one toolchain check the target's registry entry declares (test_tools of kind toolchain: tool in the path, check in the body) through the sandboxed toolchain runner, against a completed export job's artifact (jobId) or the source re-emitted for target and options. The body streams as NDJSON: a start event, an output event per stdout/stderr chunk, and a closing result event (status passed / failed / timed_out / unavailable / error, exit_code, duration_ms, command, files, message). A check whose tool is not installed answers 503 with the reason; runs are rate-limited per user (429).
Operation id: run_export_tool_check_v1_export__tenant_slug__verify_tool_checks__tool__post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
tool | path | string | yes | Path parameter identifying the tool segment. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for run a target's toolchain check on the artifact under review, streaming its console.
application/json—ExportToolCheckRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | The check's console, one JSON event per line. | application/x-ndjson string |
| 404 | Unknown target, job or source, or the target declares no such check. | — |
| 409 | The job is not a completed export of this target. | — |
| 422 | No runnable command for the check, or the artifact cannot be staged. | — |
| 429 | Too many toolchain checks in a short time. | — |
| 503 | The check's toolchain is not installed on this server. | — |
POST /v1/tenants/{tenant_slug}/export/preflight
Pre-flight an export: source lint + target-readiness ranking (no job, no artifact)
Rank every export target for one source revision before a job exists (IXH-2.4). Lints the source under the tenant's resolved style guide — the check the export path otherwise only makes against the emitted artifact, and only after the job — then, per target, returns the projected fidelity envelope (tier, preserved %, DROP/APPROX/SYNTH counts from the same prediction engine a job embeds in its result), the capability verdict (which construct classes this source uses vs. which the target declares it can carry), the tenant export quality-policy verdict (IXH-2.3) with any honoured waiver, and a composite readiness score with a one-line rationale.
Targets are returned best-readiness first: ready → caution → blocked → unavailable, then by descending score and target key. A target the policy blocks is ranked and returned with its reason, never hidden. Nothing is emitted and nothing is persisted — no export job, no artifact, no field-identity rows. The ranking is deterministic for a fixed source revision, style guide, and policy; ranking_fingerprint lets a caller assert that without diffing the body. This is the pre-job counterpart to POST …/export/verify.
Operation id: preflight_export_v1_tenants__tenant_slug__export_preflight_post
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
tenant_slug | path | string | yes | URL-safe tenant slug that scopes the request. |
authorization | header | string or null | no | JWT bearer token for authenticated access (Authorization: Bearer <token>). |
X-API-Key | header | string or null | no | Tenant-scoped API key used as an alternative to JWT bearer authentication. |
Request body (required)
Request body for pre-flight an export: source lint + target-readiness ranking (no job, no artifact).
application/json—ExportPreflightRequest
Responses
| Status | Description | Body |
|---|---|---|
| 200 | Successful response for pre-flight an export: source lint + target-readiness ranking (no job, no artifact). | application/json ExportPreflightReport |
| 422 | Validation Error | application/json HTTPValidationError |
Schemas used
AvroPushRequest
Which version to export to Avro, and the connector whose registry receives it.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
options | object or null | no | Avro emit options (namespace, subject_naming, topic, subject_role); output_syntax must stay avsc. Null applies the defaults. |
connector_id | string (uuid) | yes | The schema-registry connector whose registry receives the push. |
compatibility_level | enum "BACKWARD", "BACKWARD_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "FULL", "FULL_TRANSITIVE", … or null | no | A Confluent compatibility level to set on each subject the push registers, before its check (MFX-19.6). Null keeps each subject's level. A dry run sets nothing. |
dry_run | boolean | no | Look up and check every subject against the registry, but register nothing. |
confirm | boolean | no | Push a severe conversion (MFX-3.3) the export guard would otherwise refuse. |
AvroPushResponse
What the push did for each subject.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id exported. |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label. |
connector_id | string | yes | The connector pushed through. |
registry_url | string | yes | The registry's base URL. |
dry_run | boolean | yes | Whether nothing was registered. |
summary | map of integer | yes | How many subjects ended in each status (registered, already_registered, would_register, incompatible, failed, skipped). |
subjects | array of RegistryPushSubjectResult | yes | One result per subject, in the order they were pushed (referenced schemas first). |
CapabilityRegistrySnapshot
The full, deterministic registry view exposed to the REST contract + UI (EFP-1.2).
Carries the :attr:version, the reviewed :class:ReasonExplanation for every reason
code (the drawer's honest wording), and a :class:DestinationCapability for every
runtime-available emitter, all in a stable order. Because it is derived from the
static registry and the (deterministic) emitter registry, identical inputs yield an
identical snapshot — safe to cache and to mirror in a TypeScript contract.
| Property | Type | Required | Description |
|---|---|---|---|
version | string | yes | The registry contract version (REGISTRY_VERSION). |
review_date | string | yes | When the registry links/explanations were last reviewed. |
reason_codes | array of string | yes | The canonical set of valid reason-code strings, sorted. Contract tests reject any reason code outside this set. |
reasons | array of ReasonExplanation | yes | The reviewed explanation for each reason code, in taxonomy order. |
destinations | array of DestinationCapability | yes | One capability entry per registered destination, in key order. |
ExportDispatchRequest
A dispatch request: source revision + chosen target + options + dry-run flag (MFX-3.2).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. |
dry_run | boolean | no | When true, stop after the fidelity report: no artifact is emitted. |
confirm | boolean | no | When true, proceed with a severe conversion (MFX-3.3) the transcoding guard would otherwise block with 409. Ignored for non-severe conversions and dry-runs. |
min_severity | LossinessSeverity | no | Lowest loss severity that raises the advisory (MFX-2.4); does not affect the report or counts. |
ExportDispatchResponse
The dispatch result: resolved coordinates + fidelity envelope + emitted artifact (MFX-3.2).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the dispatch exported. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
target | string | yes | The resolved target format key (e.g. openapi-3.1). |
dry_run | boolean | yes | True when the dispatch stopped after the fidelity report. |
fidelity | ExportFidelity | yes | The full fidelity envelope (target + tier + report + advisory). |
guard | TranscodeGuard | yes | The pre-flight transcoding guard (MFX-3.3): the conversion band and why. A severe conversion only reaches a real (non-dry-run) dispatch when confirm was set. |
files | array of ExportDispatchFile | no | The emitted files (inline); empty for a dry-run. |
media_type | string or null | no | The bundle's primary media type; null for a dry-run. |
delivery | DeliveryGateReport or null | no | The delivery gate decision for this dispatch (IXH-2.5) with its named reasons and the signed attestation for the returned artifact. Null for a dry-run (nothing is delivered). |
ExportDocumentRequest
An emit request: source revision + chosen target + per-emit options (MFX-11.5).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (asyncapi) or format key (asyncapi-3). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. |
ExportPreflightReport
The full export pre-flight: one source lint verdict plus every target, ranked.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the pre-flight ran for. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
paradigm | string or null | no | The source model's canonical paradigm (rest, event…). |
format | string or null | no | The source model's format key (openapi-3.1). |
lint | ImportPreflightLint | yes | The source's lint verdict under the resolved style guide — the same engine and scoring formula an import pre-flight reports, run over the reconstructed source model rather than a candidate document. |
style_guide | ImportPreflightStyleGuide or null | no | The style guide that governed the lint, when one resolved. |
capability_demand | array of string | no | The capability axes this source uses — the yardstick every target's capability verdict is measured against. |
targets | array of ExportPreflightTarget | no | Every ranked target, best readiness first. Blocked and unavailable targets are included (ranked last), never hidden. |
ranking_fingerprint | string | yes | Stable hash over the ranked (target, readiness, band) triples. Identical for two pre-flights of the same revision under the same guide and policy. |
ExportPreflightRequest
A pre-flight request: the source revision, optionally narrowed to some targets.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
targets | array of string or null | no | Restrict the ranking to these target keys or format keys (openapi / openapi-3.1); null ranks every registered target. Unknown entries are ignored — a pre-flight reports what it can rank rather than failing on a stale client's target list. |
include_findings | boolean | no | When false, the source lint verdict is returned without its ranked finding list (score, grade, and tallies are always present). Lets a target-grid caller skip the findings payload it does not render. |
include_conformance | boolean | no | When true, run the IXH-5.6 instance-conformance check per ranked target: source-valid instances (IXH-5.2) are validated against each target's actually-emitted schema, the per-target verdict is attached beside the fidelity envelope, and a ready target whose emitted schema rejected instances is demoted to caution. Off by default because it emits every ranked target for real — heavier than the prediction-only pre-flight. |
ExportPreviewManifestRequest
The preview-manifest request: source coordinates + target + options + page window.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to describe. |
version | string or null | no | A revision UUID, a version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options; null/empty applies the target defaults. Folded (normalized) into the manifest hash, so different options are a different snapshot. |
cursor | string or null | no | Opaque entity-page cursor from a previous response; null for the first page. |
page_size | integer | no | Maximum entities per page; clamped to 1000. |
ExportPreviewManifestResponse
The preview-manifest endpoint's response (IXH-4.1).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the manifest describes. |
version | string or null | no | The requested version selector, echoed. |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label, when it has one. |
manifest | ExportPreviewManifest | yes | The requested manifest page. |
ExportPreviewRequest
A dry-run fidelity preview request: source revision + chosen target (MFX-2.5).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. Folded (normalized) into the projection snapshot hash (EFP-2.1), so a preview, a verify, and a dispatch of the same source, target, and options reference the same snapshot. |
min_severity | LossinessSeverity | no | Lowest loss severity that raises the advisory (MFX-2.4); does not affect the report or counts. |
ExportPreviewResponse
The dry-run fidelity preview: the full envelope + the resolved source coordinates (MFX-2.5).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the preview was computed for. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
fidelity | ExportFidelity | yes | The full fidelity envelope (target + tier + report + advisory), no artifact. |
guard | TranscodeGuard | yes | The pre-flight transcoding guard (MFX-3.3): the conversion band (clean / lossy / near-empty / severe), whether it needs an explicit confirmation, and why. Lets the UI/CLI warn (near-empty) or prompt for confirmation (severe) before dispatching the export. |
ExportProjectionEvidenceRequest
A bounded projection-evidence page request for one configured export (EFP-2.1).
Identifies the same (source revision, target, options) triple a preview / verify /
dispatch describes, plus the cursor/limit window into the manifest's evidence rows.
Matching inputs resolve to the same snapshot (manifest_hash) every surface shares.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. Folded (normalized) into the snapshot hash — different options are a different snapshot. |
cursor | string or null | no | Opaque cursor from a previous page, or null to start at the beginning. A malformed cursor is rejected with 422. |
limit | integer | no | Maximum evidence rows per page; clamped to 500. |
redact_source | boolean | no | Ignored (EFP-3.2). Source-native evidence is always redacted; kept for request-body compatibility with earlier callers. Response redacted is always true. |
ExportProjectionEvidenceResponse
One bounded, cursor-paginated page of projection evidence (EFP-2.1).
The authenticated evidence surface behind the preview/verify summaries: the resolved
source coordinates, the snapshot provenance (:class:~app.export_projection.ManifestTarget
carries the emitter/registry versions and destination documentation), the bounded
:class:~app.export_projection.ProjectionManifestSummary, and one
:class:~app.export_projection.ProjectionEvidencePage of outcome edges + their nodes.
Deterministic: the same (revision, target, options) yields the same snapshot hash a
preview / verify / dispatch / job result references, and paging the same snapshot twice
yields identical pages.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the evidence describes. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
summary | ProjectionManifestSummary | yes | The bounded snapshot summary — hash, target/version provenance (emitter/registry versions), and status/reason counts. |
page | ProjectionEvidencePage | yes | This page of outcome edges + the nodes they reference, with the opaque cursor for the next page (null on the last page). |
redacted | boolean | yes | Always true (EFP-3.2): source-native evidence values are redacted. |
ExportProjectionMetricRequest
Whitelist-only client/server projection metric event (EFP-3.2).
Rejects unknown fields. Only :data:~app.projection_telemetry.ALLOWED_METRIC_KINDS
are accepted; reason categories are optional and themselves whitelisted.
| Property | Type | Required | Description |
|---|---|---|---|
kind | enum "preview_failure", "stale_acknowledgement", "evidence_page", "aggregation_used", "documentation_link_available", "documentation_link_missing" | yes | Privacy-safe metric kind (whitelist). |
page_total | integer or null | no | Optional integer page/evidence total (no labels). |
reason_category | string or null | no | Optional controlled failure category (whitelist only). |
ExportProjectionMetricResponse
Acknowledgement that a privacy-safe metric was recorded.
| Property | Type | Required | Description |
|---|---|---|---|
recorded | boolean | no | Recorded. |
kind | string | yes | Kind. |
ExportRoundtripRequest
A round-trip comparison request: source revision + chosen target + options.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to round-trip. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. |
min_severity | LossinessSeverity | no | Lowest loss severity that raises the advisory (MFX-2.4); does not affect the round-trip verdict, the report, or the reconciliation. |
ExportRoundtripResponse
The round-trip comparison result the Export Studio renders (IXH-4.4).
status speaks the IXH-1.7 matrix's vocabulary so a Studio run over a corpus
entry reconciles with the published matrix cell:
pass— every empirical difference is explained by the fidelity report and nothing over-claims preservation;fail— at least one unexplained difference or over-claim (a fidelity bug worth reporting), or the emitted artifact could not be re-imported at all;unsupported— the comparison was skipped with an explanation (no import adapter can re-ingest the emit format, or the emitter is unavailable here).
The three difference groups are exactly the reconciliation's: matched
(explained by the report — expected loss), unexplained (the report does not
account for them), and overclaims (the report claimed preservation reality
contradicts). The provenance fields (emitter_version / apiome_version /
registry_version / fingerprints) give an unexplained difference's issue report
its reproduction coordinates without shipping any source bytes.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the round-trip ran for. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
target | string | yes | The resolved target format key (e.g. openapi-3.1). |
emit_key | string | yes | The resolved emitter registry key (e.g. openapi). |
adapter_key | string or null | no | The import-adapter registry key that re-imported the emitted artifact; null when the comparison was skipped (status: unsupported). |
status | MatrixCellStatus | yes | The round-trip verdict (pass / fail / unsupported), in the IXH-1.7 matrix's vocabulary. |
reason | string or null | no | Human-readable explanation for a non-pass status: why the comparison was skipped, what failed to re-import, or which differences are unaccounted for. |
diff_count | integer | no | Total empirical differences between source and re-import. |
matched_count | integer | no | Differences the fidelity report explains (expected loss). |
matched | array of MatchedDiff | no | Each explained difference paired with the fidelity finding that explains it. |
unexplained | array of CanonicalDiffEntry | no | Differences no fidelity finding accounts for — a fidelity bug the user should report. |
overclaims | array of LossItem | no | OK findings whose construct empirically changed or vanished — the report over-claimed preservation. |
loss_drop | integer | no | drop findings in the fidelity report. |
loss_approx | integer | no | approx findings in the fidelity report. |
loss_synth | integer | no | synth findings in the fidelity report. |
loss_ok | integer | no | ok findings in the fidelity report. |
source_fingerprint | string | yes | Deterministic fingerprint of the source canonical model (reproduction coordinate for issue reports; carries no source content). |
reimported_fingerprint | string or null | no | Fingerprint of the re-imported canonical model; equals source_fingerprint for a byte-honest round-trip. Null when the loop did not close. |
emitter_version | string | yes | The emitter implementation version. |
apiome_version | string | yes | The apiome-rest package version that ran the loop. |
registry_version | string | yes | The capability-registry snapshot version. |
measurement | FidelityMeasurement or null | no | The empirical loss list and its corroboration of the fidelity report (MFX-2.6): every observed difference as a loss, every predicted drop with the differences that confirm it, and every divergence (unpredicted loss, unobserved drop, over-claim). Null when the loop did not close. |
text_diff | RoundtripTextDiff or null | no | The emitted artifact beside the same format re-emitted from the re-imported model (MFX-43.4); null when the loop did not close or the artifact cannot be diffed as text (see text_diff_reason). |
text_diff_reason | string or null | no | Why text_diff is null when the loop closed: a multi-file bundle, a binary artifact, one too large to send, or a re-emit that failed. |
ExportRunActorsResponse
Everyone who started a recorded export, most recent first.
| Property | Type | Required | Description |
|---|---|---|---|
actors | array of ExportRunActor | yes | Actors. |
ExportRunDetail
One run with its stored reports, per target.
| Property | Type | Required | Description |
|---|---|---|---|
job_id | string | yes | Job ID. |
artifact_id | string | yes | The exported artifact (project or catalog item) id. |
artifact_name | string or null | no | The source's name, when known. |
version_record_id | string or null | no | Version Record ID. |
version_label | string or null | no | The exported revision's version label. |
target | string | yes | The requested target(s), comma-joined for a multi-target job. |
actor_id | string or null | no | The user who started the job. |
actor_label | string | yes | Their email or name (kept after the account is gone). |
state | string | yes | completed, failed or canceled. |
dry_run | boolean | yes | True for a fidelity-only dry run (no artifact). |
preserved_percent | integer or null | no | Share of constructs preserved (the weakest target's for a multi-target job). |
fidelity_tier | string or null | no | The fidelity tier badge. |
validation_verdict | string or null | no | valid, invalid, skipped or not_applicable (the worst target's). |
lint_verdict | string or null | no | pass, warn or block (the worst target's). |
delivery_decision | string or null | no | The delivery gate: allow, allow_with_warning or block (the worst target's). |
error_code | string or null | no | Why a failed job failed. |
error_message | string or null | no | Error Message. |
options | object or null | no | The per-target options the job was submitted with (for a re-run). |
deliveries | array of ExportRunDelivery | no | Every delivery of the job's artifact, newest first. |
created_at | string (date-time) | yes | Creation timestamp (ISO 8601). |
finished_at | string (date-time) | yes | Finished At timestamp (ISO 8601). |
reports | array of ExportRunTargetReport | no | Reports. |
ExportRunListResponse
A page of the tenant's export history.
| Property | Type | Required | Description |
|---|---|---|---|
runs | array of ExportRunSummary | yes | Runs. |
total | integer or null | no | Runs matching the filters (not just this page), counted up to 10,000. Present only when the request set include_total. |
limit | integer | no | Limit. |
offset | integer | no | The offset used (deprecated; 0 when paging by cursor). |
has_more | boolean | no | Whether another page exists. |
next_cursor | string or null | no | Pass as cursor to read the next page; null on the last page. |
ExportTargetsFidelityStatus
The state of a deferred targets list's scoring job.
| Property | Type | Required | Description |
|---|---|---|---|
status | enum "pending", "ready", "failed" | yes | pending while scoring; ready with targets; failed with error. |
targets | array of ExportTargetFidelity or null | no | When ready: every target with its fidelity badge, as the targets list returns it. |
error | string or null | no | When failed: why scoring stopped. |
ExportTargetsResponse
The per-target fidelity list for one source revision (MFX-2.5).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the fidelity was computed for. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
targets | array of ExportTargetFidelity | no | Every registered target with its per-source fidelity, sorted by target key. |
fidelity_status | enum "ready", "pending" | no | ready when every target carries its fidelity badge; pending when a fidelity=deferred request is still scoring them (poll fidelity_token). |
fidelity_token | string or null | no | While pending: the token to poll at GET …/targets/fidelity/{token}. |
ExportToolCheckRequest
Run one declared toolchain check on the artifact under review.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the export is of. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (proto) or format key (proto3). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. |
check | string | yes | The declared check of the tool to run, e.g. lint for buf lint. |
jobId | string or null | no | A completed export job whose artifact to check; null re-emits the source for target and options (the verify buffer). |
ExportVerifyRequest
A one-call verify request: source revision + chosen target + options (MFX-42.5).
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
target | string | yes | Target emitter key (openapi) or format key (openapi-3.1). |
options | object or null | no | Per-target emit options (MFX-1.4); null or empty applies the target defaults. |
include_content | boolean | no | When true, return the emitted artifact inline (under the size cap) so the Monaco viewer (MFX-43.x) can render the preview from this same call; the bytes are still discarded server-side. |
overlays | array of ExportOverlay or null | no | Overlay documents applied, in order, to the source's OpenAPI document before the verify runs (GVM-4.2) — the same chain an export job's overlays applies, so a verify and the job it gates compute the same snapshot. |
apply_stored_overlays | boolean | no | Apply the revision's stored overlay chain (GVM-4.3) before any inline overlays, exactly as the export job does. Set false to verify without it. |
min_severity | LossinessSeverity | no | Lowest loss severity that raises the advisory (MFX-2.4); does not affect the report or counts. |
ExportVerifyResponse
The one-call verify result: fidelity + validation + lint + verdict (MFX-42.5).
Everything the Studio's Verify workbench (MFX-42.1) needs in one round-trip, computed by emitting the artifact to a temporary buffer — no artifact and no job row are persisted. The emit is read-only (no field-identity persistence), so a verify never mutates tenant state.
| Property | Type | Required | Description |
|---|---|---|---|
artifact | string | yes | The artifact (project) id the verify was computed for. |
version | string or null | no | The version selector as requested (label, UUID, or null). |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label (e.g. 1.0.0). |
target | string | yes | The resolved target format key (e.g. openapi-3.1). |
fidelity | ExportFidelity | yes | The full fidelity envelope (target + tier + per-construct report + advisory). |
guard | TranscodeGuard | yes | The pre-flight transcoding guard (MFX-3.3): the conversion band and why. |
validation | EmittedValidationReport | yes | The emitted-output validation gate + structured report (MFX-5.1/5.3). |
lint | EmittedArtifactLint or null | no | The emitted-artifact lint report (MFX-5.2): the artifact read back through its import adapter and linted with the MFI rule packs for its format. Advisory — it never changes the verdict. applicable: false (with a reason) when no adapter reads the format back. |
verdict | ExportVerifyVerdict | yes | The overall go/no-go band the Generate gate reads (clean / lossy / invalid). |
overlay | ExportOverlayReport or null | no | What the request's overlays did (GVM-4.2): applied chain, per-leaf ledger rows and unapplied-action findings. Null without overlays. |
files | array of ExportDispatchFile | no | The emitted artifact inline (under the size cap); empty when the caller opted out (include_content: false) or the artifact exceeded the cap (truncated). |
truncated | boolean | no | True when the emitted artifact exceeded the inline size cap and was omitted from files; the Monaco viewer should fetch it via the job/document surface instead. |
HTTPValidationError
Validation error response emitted when request data fails schema checks.
| Property | Type | Required | Description |
|---|---|---|---|
detail | array of ValidationError | no | Detail. |
RegistryPushRequest
Which version to export, in which format, and the connector whose registry receives it.
| Property | Type | Required | Description |
|---|---|---|---|
format | enum "avro", "json-schema", "protobuf" | yes | The schema format to push: avro, json-schema or protobuf. |
artifact | string | yes | The artifact (project) id to export. |
version | string or null | no | Revision UUID, version label (1.0.0), or null for the latest revision. |
options | object or null | no | The format's emit options. Avro: output_syntax must stay avsc, and subjects are named by the request fields, not options. JSON Schema: packaging defaults to per-type (one subject per type) and mode must stay json-schema. Null applies the defaults. |
connector_id | string (uuid) | yes | The schema-registry connector whose registry receives the push. |
subject_naming | enum "record_name", "topic_name", "topic_record_name" | no | record_name ({record}-value, one subject per schema), topic_name ({topic}-value) or topic_record_name ({topic}-{record}-value). The record is the Avro full name, the JSON Schema title, or the Protobuf file's first message. |
topic | string or null | no | The Kafka topic of topic_name and topic_record_name. |
subject_role | enum "value", "key" | no | value ends each subject in -value, key in -key. |
compatibility_level | enum "BACKWARD", "BACKWARD_TRANSITIVE", "FORWARD", "FORWARD_TRANSITIVE", "FULL", "FULL_TRANSITIVE", … or null | no | A Confluent compatibility level to set on each subject the push registers, before its check (BACKWARD, FULL_TRANSITIVE, NONE …). Null keeps each subject's level. A dry run sets nothing. |
dry_run | boolean | no | Look up and check every subject against the registry, but write nothing. |
confirm | boolean | no | Push a severe conversion (MFX-3.3) the export guard would otherwise refuse. |
RegistryPushResponse
What the push did for each subject.
| Property | Type | Required | Description |
|---|---|---|---|
format | enum "avro", "json-schema", "protobuf" | yes | The schema format pushed. |
artifact | string | yes | The artifact (project) id exported. |
version_record_id | string | yes | The resolved revision (versions.id). |
version_label | string or null | no | The resolved revision's version label. |
connector_id | string | yes | The connector pushed through. |
registry_url | string | yes | The registry's base URL. |
dry_run | boolean | yes | Whether nothing was written. |
summary | map of integer | yes | How many subjects ended in each status (registered, already_registered, would_register, incompatible, failed, skipped). |
subjects | array of RegistryPushSubjectResult | yes | One result per subject, in the order they were pushed (referenced schemas first). |
StudioMetricRequest
One Export studio usage event: POST /v1/export/{tenant}/studio-metrics.
Unknown fields are refused, every value is a controlled vocabulary, and each kind names the one
field it needs (target / verdict / tool / view).
| Property | Type | Required | Description |
|---|---|---|---|
kind | enum "target_chosen", "verify_verdict", "lossy_prompt_shown", "lossy_acknowledged", "test_drive_used", "viz_used" | yes | What happened (whitelist). |
surface | enum "studio", "dialog" | no | Export studio or the Export dialog. |
target | string or null | no | target_chosen: the chosen export target (a registered format or key). |
mode | enum "single", "multi" or null | no | target_chosen: one target, or one of several. |
verdict | enum "clean", "lossy", "severe", "invalid", "error" or null | no | verify_verdict / lossy_*: the verification's verdict. |
tool | enum "swagger-ui", "redoc", "graphiql", "asyncapi-render", "mock-server", "toolchain" or null | no | test_drive_used: the test-drive tool. |
action | enum "open", "run" or null | no | test_drive_used: the tool was opened, or run. |
view | enum "erd", "proto-imports", "service-map", "channel-topology", "fidelity-overlay", "fidelity-treemap" or null | no | viz_used: the visualization shown. |
StudioMetricResponse
Acknowledgement that a usage event was recorded.
| Property | Type | Required | Description |
|---|---|---|---|
recorded | boolean | no | Recorded. |
kind | string | yes | Kind. |