@truepic/vision-api-types 3.88.0 → 3.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.d.ts +11 -8
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -3270,7 +3270,7 @@ export interface components {
3270
3270
  audit_json: components["schemas"]["FieldResultAuditEntry"][];
3271
3271
  /** @description Cross-extraction conflict candidates. Present and non-empty only when status='conflict'. Not deduplicated — vote distribution is preserved. */
3272
3272
  candidate_values: components["schemas"]["CandidateValue"][];
3273
- /** @description 0..1 consensus confidence; null when status !== 'found'. */
3273
+ /** @description 0..1 extraction confidence; null when unavailable. Conflicts retain the new run's score despite a null row value; low-confidence checks require a non-null newest candidate answer. */
3274
3274
  confidence: number | null;
3275
3275
  /** @description Self-referential reuse provenance (VISION-2080): the prior `ai_inspection_item_field_results.id` this row was cloned from. Null on freshly-computed rows. ON DELETE SET NULL — deleting the source row leaves this as a tombstone. */
3276
3276
  copied_from_field_result_id: number | null;
@@ -3369,7 +3369,7 @@ export interface components {
3369
3369
  additional_details_considerations: string | null;
3370
3370
  /** @description Items-to-look-for for Additional Details. Each entry carries a UUID stable across template→instance copies; items_found[*].lookfor_id references it. */
3371
3371
  additional_details_lookfor: components["schemas"]["AIItemTypeLookforEntry"][];
3372
- /** @description The immutable configuration snapshot this row belongs to (VISION-3227). Null on TEMPLATE rows, which are the editable configuration rather than a snapshot, and on INSTANCE rows written before the generation model existed — see `scripts/backfill-ai-configuration-generations.ts`. */
3372
+ /** @description The immutable configuration snapshot this row belongs to. Required for INSTANCE and TEST_INSTANCE rows (VISION-3246). Null only on TEMPLATE rows, which are editable configuration. */
3373
3373
  configuration_generation_id: number | null;
3374
3374
  /**
3375
3375
  * Format: date-time
@@ -3462,11 +3462,7 @@ export interface components {
3462
3462
  disposition: "pass" | "warn";
3463
3463
  field_id: number;
3464
3464
  field_name: string;
3465
- /**
3466
- * @description True when a `found` field's `confidence` is below the configured threshold. Never true for a row whose value is the field's own configured "not present" option: that reports absence, so its confidence describes a selection rather than an answer.
3467
- *
3468
- * Independent of `disposition`, which reports only whether the answer is wrong or missing and never warns for low confidence alone — so `disposition: 'pass'` with `is_low_confidence: true` means "the answer looks fine but the model was unsure", and the inspection's `ai_status` and alert still flag it for review. A field can be both.
3469
- */
3465
+ /** @description Below-threshold, non-null row confidence on a found answer or a conflict with a non-null newest candidate value. Conflicts use the new run's score. Excludes not_captured and configured absence-option answers. Independent of disposition (wrong/missing): either flag requires review, and both may be true. */
3470
3466
  is_low_confidence: boolean;
3471
3467
  /** @description True when the model answered a `found` field by selecting its configured "not present" option (VISION-2692) — the row REPORTS ABSENCE, and clients must not render it as a positive finding. Mirrors `SerializedAIItemFieldResult.not_captured_option_selected` in `serializers/ai-inspection-items.ts`. */
3472
3468
  not_captured_option_selected: boolean;
@@ -5343,7 +5339,6 @@ export interface components {
5343
5339
  * @example 200
5344
5340
  */
5345
5341
  response_code: number;
5346
- /** @description The Inspection schema with all properties optional */
5347
5342
  result: {
5348
5343
  /**
5349
5344
  * Format: address
@@ -5498,6 +5493,14 @@ export interface components {
5498
5493
  * @example 4
5499
5494
  */
5500
5495
  inspection_status_id?: components["schemas"]["InspectionStatusId"];
5496
+ inspection_type: {
5497
+ custom_fields: {
5498
+ /** @description The label for the custom field */
5499
+ label?: string;
5500
+ }[];
5501
+ /** @description Present when the web app should use verification terminology. */
5502
+ use_verification_terminology?: boolean;
5503
+ };
5501
5504
  /**
5502
5505
  * @description The id of the inspection type this inspection is for.
5503
5506
  * @example 12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@truepic/vision-api-types",
3
- "version": "3.88.0",
3
+ "version": "3.89.0",
4
4
  "description": "TypeScript type declarations for Truepic Vision API v3",
5
5
  "license": "MIT",
6
6
  "types": "index.d.ts",