feat(imports): verify Sure NDJSON import readback (#1869)

* feat(imports): verify Sure NDJSON readback

* fix(imports): tighten Sure readback verification

* fix(imports): polish Sure verification review nits
This commit is contained in:
ghost
2026-05-20 12:35:22 -07:00
committed by GitHub
parent 1f7970010a
commit 655895341d
13 changed files with 777 additions and 17 deletions

View File

@@ -1733,6 +1733,72 @@ components:
unassigned_mappings_count:
type: integer
minimum: 0
ImportVerificationReadback:
type: object
description: SureImport only. Expected NDJSON counts compared to family-scoped
database readback after publish.
properties:
status:
type: string
enum:
- not_verified
- matched
- mismatch
- failed
- reverted
checked_at:
type: string
format: date-time
nullable: true
expected_record_counts:
type: object
additionalProperties:
type: integer
before_counts:
type: object
additionalProperties:
type: integer
after_counts:
type: object
additionalProperties:
type: integer
actual_delta_counts:
type: object
additionalProperties:
type: integer
checked_counts:
type: object
additionalProperties:
type: integer
mismatches:
type: object
additionalProperties:
type: object
required:
- expected
- actual
properties:
expected:
type: integer
actual:
type: integer
error:
type: string
nullable: true
ImportVerification:
type: object
description: SureImport only. Captured at upload and completed after import
publish.
required:
- expected_record_counts
- readback
properties:
expected_record_counts:
type: object
additionalProperties:
type: integer
readback:
"$ref": "#/components/schemas/ImportVerificationReadback"
ImportPreflightContent:
type: object
required:
@@ -1975,6 +2041,8 @@ components:
"$ref": "#/components/schemas/ImportConfiguration"
stats:
"$ref": "#/components/schemas/ImportStats"
verification:
"$ref": "#/components/schemas/ImportVerification"
ImportCollection:
type: object
required:
@@ -4753,7 +4821,7 @@ paths:
get:
summary: Retrieve an import
description: Retrieve detailed information about a specific import, including
configuration and row statistics.
configuration, row statistics, and SureImport readback verification when available.
tags:
- Imports
security: