capture-runtime-client 0.5.1__tar.gz → 0.6.1__tar.gz

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 (76) hide show
  1. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/.gitignore +1 -0
  2. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/PKG-INFO +1 -1
  3. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/pyproject.toml +2 -2
  4. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/client.py +7 -0
  5. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/contracts.py +1 -1
  6. capture_runtime_client-0.6.1/src/capture_runtime_client/private/assets/contract-set.json +1 -0
  7. capture_runtime_client-0.6.1/src/capture_runtime_client/private/assets/contract-set.sha256 +1 -0
  8. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/generated_models.py +78 -4
  9. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-document.schema.json +94 -0
  10. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-event-v2.schema.json +18 -0
  11. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-ocr-projection-v3.schema.json +2 -1
  12. capture_runtime_client-0.6.1/src/capture_runtime_client/private/schemas/capture-speaker.schema.json +70 -0
  13. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-streaming-result.schema.json +129 -0
  14. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-compute-preflight-v2.schema.json +4 -3
  15. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/partial-capture-v2.schema.json +18 -0
  16. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/raw-capture-segment.schema.json +18 -0
  17. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/raw-capture.schema.json +94 -0
  18. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-installation-v2.schema.json +2 -0
  19. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-installations-v2.schema.json +2 -0
  20. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-ready.schema.json +8 -6
  21. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-requirement-v2.schema.json +7 -0
  22. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-requirements-v2.schema.json +7 -0
  23. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/start-capture-v2.schema.json +5 -0
  24. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/start-runtime-installation-v2.schema.json +2 -0
  25. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/tests/test_client_sdk.py +38 -0
  26. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/uv.lock +1 -1
  27. capture_runtime_client-0.5.1/src/capture_runtime_client/private/assets/contract-set.json +0 -1
  28. capture_runtime_client-0.5.1/src/capture_runtime_client/private/assets/contract-set.sha256 +0 -1
  29. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/README.md +0 -0
  30. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/project.json +0 -0
  31. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/__init__.py +0 -0
  32. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/_discovery.py +0 -0
  33. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/_error_mapping.py +0 -0
  34. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/_retry.py +0 -0
  35. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/_transport.py +0 -0
  36. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/codec.py +0 -0
  37. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/errors.py +0 -0
  38. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/__init__.py +0 -0
  39. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/assets/__init__.py +0 -0
  40. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/__init__.py +0 -0
  41. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-block.schema.json +0 -0
  42. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-engine.schema.json +0 -0
  43. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-failure-v2.schema.json +0 -0
  44. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-operation-v2.schema.json +0 -0
  45. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/capture-source.schema.json +0 -0
  46. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/error-body-v2.schema.json +0 -0
  47. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/error-envelope-v2.schema.json +0 -0
  48. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/finalize-ingestion-v2.schema.json +0 -0
  49. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ingestion-v2.schema.json +0 -0
  50. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-box-v3.schema.json +0 -0
  51. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-page-projection-v3.schema.json +0 -0
  52. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-page-scope-v2.schema.json +0 -0
  53. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-point-v3.schema.json +0 -0
  54. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-provenance-resolved-v3.schema.json +0 -0
  55. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-provenance-unavailable-v3.schema.json +0 -0
  56. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-provenance-v3.schema.json +0 -0
  57. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/ocr-raster-v3.schema.json +0 -0
  58. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/open-ingestion-v2.schema.json +0 -0
  59. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/open-structuring-session-v2.schema.json +0 -0
  60. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/page-locator.schema.json +0 -0
  61. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/report-structuring-failure-v2.schema.json +0 -0
  62. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-artifact-descriptor-v2.schema.json +0 -0
  63. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-model-installation-v2.schema.json +0 -0
  64. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-model-installations-v2.schema.json +0 -0
  65. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-model-option-v2.schema.json +0 -0
  66. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-model-options-v2.schema.json +0 -0
  67. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/runtime-streaming-capabilities-v2.schema.json +0 -0
  68. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/start-runtime-model-installation-v2.schema.json +0 -0
  69. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/structuring-batch-v2.schema.json +0 -0
  70. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/structuring-provider-capability-v2.schema.json +0 -0
  71. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/structuring-semantic-block-v2.schema.json +0 -0
  72. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/structuring-session-v2.schema.json +0 -0
  73. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/submit-structuring-batch-v2.schema.json +0 -0
  74. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/private/schemas/time-locator.schema.json +0 -0
  75. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/py.typed +0 -0
  76. {capture_runtime_client-0.5.1 → capture_runtime_client-0.6.1}/src/capture_runtime_client/transport.py +0 -0
@@ -67,3 +67,4 @@ apps/capture-workbench-desktop/src-tauri/gen/
67
67
  artifacts/
68
68
 
69
69
  .nx/migrate-runs
70
+ .venv-diarization/
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: capture-runtime-client
3
- Version: 0.5.1
3
+ Version: 0.6.1
4
4
  Summary: Capture Runtime HTTP, in-memory, discovery, and protocol client SDK.
5
5
  License: MIT
6
6
  Requires-Python: <3.15,>=3.12
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "capture-runtime-client"
7
- version = "0.5.1"
7
+ version = "0.6.1"
8
8
  description = "Capture Runtime HTTP, in-memory, discovery, and protocol client SDK."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.12,<3.15"
@@ -15,7 +15,7 @@ dependencies = [
15
15
  ]
16
16
 
17
17
  [tool.capture_runtime_client]
18
- contract_set_sha256 = "f72e22229bbc726f1feff4c8ea99ab7e68c64dfa893b038bb731a99255b6495c"
18
+ contract_set_sha256 = "fc8a994e5a2a822376821da277e949eb203df9223977da4db4cdc7ab29724523"
19
19
 
20
20
  [tool.hatch.build.targets.wheel]
21
21
  packages = ["src/capture_runtime_client"]
@@ -71,6 +71,9 @@ class CaptureUpload:
71
71
  structuring_mode: StructuringMode | str = StructuringMode.RUNTIME
72
72
  target_language: str | None = None
73
73
  pdf_page_numbers: Sequence[int] | None = None
74
+ # Audio only: label who speaks each segment. Needs the optional
75
+ # speaker-diarization unit; the capture then reports no partial transcript.
76
+ identify_speakers: bool = False
74
77
 
75
78
  def __post_init__(self) -> None:
76
79
  object.__setattr__(
@@ -229,6 +232,7 @@ class CaptureRuntimeClient:
229
232
  media_type: str = "application/octet-stream",
230
233
  target_language: str | None = None,
231
234
  pdf_page_numbers: Sequence[int] | None = None,
235
+ identify_speakers: bool = False,
232
236
  ) -> CaptureOperation:
233
237
  """Read a local file and start a capture for it (see :meth:`start_capture`)."""
234
238
  return self.start_capture(
@@ -239,6 +243,7 @@ class CaptureRuntimeClient:
239
243
  media_type,
240
244
  target_language=target_language,
241
245
  pdf_page_numbers=pdf_page_numbers,
246
+ identify_speakers=identify_speakers,
242
247
  ),
243
248
  client_request_id=client_request_id,
244
249
  )
@@ -473,6 +478,8 @@ class CaptureRuntimeClient:
473
478
  }
474
479
  if upload.pdf_page_numbers is not None:
475
480
  start_payload["pdfPageNumbers"] = list(upload.pdf_page_numbers)
481
+ if upload.identify_speakers:
482
+ start_payload["identifySpeakers"] = True
476
483
  return decode_model(
477
484
  self._request(
478
485
  "POST",
@@ -44,7 +44,7 @@ CAPTURE_RUNTIME_VERSION = _generated.RUNTIME_VERSION
44
44
  CAPTURE_DOCUMENT_SCHEMA_ID = (
45
45
  "https://github.com/gx-capture/capture-workbench/schema/capture-document-v2.schema.json"
46
46
  )
47
- CAPTURE_DOCUMENT_SCHEMA_SHA256 = "850afd212d049c25da41d3867ba5477451a6a2c6c7e41f116fe60f26b6a35335"
47
+ CAPTURE_DOCUMENT_SCHEMA_SHA256 = "5131125b6851bccb8da96150e12c2c50170ad45c2f4a31768404a5406ad8598f"
48
48
  _CONTRACT_SET_ASSETS = files("capture_runtime_client.private.assets")
49
49
  CAPTURE_CONTRACT_SET_SHA256 = (
50
50
  _CONTRACT_SET_ASSETS.joinpath("contract-set.sha256").read_text(encoding="ascii").strip()
@@ -0,0 +1 @@
1
+ {"contractSetVersion":"2","invariants":[{"description":"Every runtime API operation is protected by Bearer authentication.","id":"authenticated-v2","models":"all /v2 operations"}],"operations":[{"body":{"kind":"none"},"id":"v2.health.ready","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/health/ready","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeReady","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.streaming.health.ready","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/streaming/health/ready","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeStreamingCapabilitiesV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.ingestions.open","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/ingestions","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","idempotency_conflict"],"requestSchema":"OpenIngestionV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"IngestionV2","responseStatusCodes":[201],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.ingestions.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/ingestions/{ingestion_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","ingestion_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"IngestionV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"binary"},"id":"v2.ingestions.chunks.append","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"PUT","optionalHeaders":[],"path":"/v2/ingestions/{ingestion_id}/chunks/{chunk_index}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","ingestion_not_found","invalid_chunk_headers","chunk_too_large","chunk_total_conflict","chunk_length_mismatch","chunk_checksum_mismatch","chunk_conflict","chunk_out_of_order","chunk_rejected"],"requestSchema":null,"requiredHeaders":["Content-Range","Digest","X-Idempotency-Key"],"responseSchema":"IngestionV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.ingestions.finalize","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/ingestions/{ingestion_id}/finalize","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","ingestion_not_found","ingestion_finalize_rejected"],"requestSchema":"FinalizeIngestionV2","requiredHeaders":[],"responseSchema":"IngestionV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.ingestions.delete","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"DELETE","optionalHeaders":[],"path":"/v2/ingestions/{ingestion_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","ingestion_not_found","ingestion_delete_rejected"],"requestSchema":null,"requiredHeaders":[],"responseSchema":null,"responseStatusCodes":[204],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.captures.start","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","ingestion_not_found","idempotency_conflict"],"requestSchema":"StartCaptureV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"CaptureOperationV2","responseStatusCodes":[202],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"CaptureOperationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.events","idempotency":{"header":null,"mode":"none"},"mediaType":"text/event-stream","method":"GET","optionalHeaders":["Last-Event-ID"],"path":"/v2/captures/{capture_id}/events","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","invalid_event_cursor"],"requestSchema":null,"requiredHeaders":[],"responseSchema":null,"responseStatusCodes":[200],"streaming":{"kind":"sse","lastEventIdHeader":"Last-Event-ID"},"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.partial","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/partial","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","partial_unavailable"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"PartialCaptureV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.raw","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/raw","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","raw_unavailable"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RawCapture","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.ocr","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/ocr","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","ocr_unavailable"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"CaptureOcrProjectionV3","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.cancel","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures/{capture_id}/cancel","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"CaptureOperationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.structure","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","raw_unavailable","invalid_capture_state"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"CaptureStreamingResult","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.captures.structure.session.open","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/session","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","raw_unavailable","invalid_capture_state","idempotency_conflict","structuring_session_corrupt"],"requestSchema":"OpenStructuringSessionV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"StructuringSessionV2","responseStatusCodes":[201],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.structure.session.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/session","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","structuring_session_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"StructuringSessionV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.structure.session.batch.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/session/batches/{batch_index}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","structuring_session_not_found","structuring_batch_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"StructuringBatchV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.captures.structure.session.batch.submit","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"PUT","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/session/batches/{batch_index}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","structuring_session_not_found","structuring_batch_not_found","structuring_batch_digest_conflict","structuring_session_corrupt","structuring_invalid_output","raw_unavailable","invalid_capture_state","idempotency_conflict"],"requestSchema":"SubmitStructuringBatchV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"StructuringSessionV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.captures.structure.commit","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/commit","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","raw_unavailable","invalid_structure","idempotency_conflict","invalid_capture_state"],"requestSchema":"CaptureDocument","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"CaptureOperationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.captures.structure.failure","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/captures/{capture_id}/structure/failure","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","idempotency_conflict","invalid_capture_state"],"requestSchema":"ReportStructuringFailureV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"CaptureOperationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.result","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/captures/{capture_id}/result","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found","result_unavailable"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"CaptureDocument","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.captures.delete","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"DELETE","optionalHeaders":[],"path":"/v2/captures/{capture_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","capture_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":null,"responseStatusCodes":[204],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.requirements","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/runtime/requirements","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeRequirementsV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.model-options","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/runtime/model-options","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","requirement_disabled"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeModelOptionsV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.runtime.installations.create","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/runtime/installations","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","requirement_disabled","idempotency_conflict"],"requestSchema":"StartRuntimeInstallationV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"RuntimeInstallationV2","responseStatusCodes":[202],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.installations.list","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/runtime/installations","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeInstallationsV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.installations.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/runtime/installations/{installation_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","installation_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeInstallationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.installations.cancel","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/runtime/installations/{installation_id}/cancel","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","installation_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeInstallationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"json"},"id":"v2.runtime.model-installations.create","idempotency":{"header":"X-Idempotency-Key","mode":"required"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/runtime/model-installations","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","requirement_disabled","model_option_unknown","idempotency_conflict"],"requestSchema":"StartRuntimeModelInstallationV2","requiredHeaders":["X-Idempotency-Key"],"responseSchema":"RuntimeModelInstallationV2","responseStatusCodes":[202],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.model-installations.get","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"GET","optionalHeaders":[],"path":"/v2/runtime/model-installations/{installation_id}","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","installation_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeModelInstallationV2","responseStatusCodes":[200],"surface":"v2"},{"body":{"kind":"none"},"id":"v2.runtime.model-installations.cancel","idempotency":{"header":null,"mode":"none"},"mediaType":"application/json","method":"POST","optionalHeaders":[],"path":"/v2/runtime/model-installations/{installation_id}/cancel","problems":["unauthorized","invalid_host","origin_not_allowed","validation_error","installation_not_found"],"requestSchema":null,"requiredHeaders":[],"responseSchema":"RuntimeModelInstallationV2","responseStatusCodes":[200],"surface":"v2"}],"problems":[{"category":"request","code":"candidate_too_large","detailsSchema":"ErrorDetailsV2","message":"Structured candidate exceeds the size limit.","retryable":false,"status":413},{"category":"not_found","code":"capture_not_found","detailsSchema":"ErrorDetailsV2","message":"Capture operation was not found.","retryable":false,"status":404},{"category":"conflict","code":"chunk_checksum_mismatch","detailsSchema":"ErrorDetailsV2","message":"Chunk checksum does not match the body.","retryable":false,"status":409},{"category":"conflict","code":"chunk_conflict","detailsSchema":"ErrorDetailsV2","message":"Chunk conflicts with existing ingestion state.","retryable":false,"status":409},{"category":"validation","code":"chunk_length_mismatch","detailsSchema":"ErrorDetailsV2","message":"Chunk length does not match Content-Range.","retryable":false,"status":422},{"category":"conflict","code":"chunk_out_of_order","detailsSchema":"ErrorDetailsV2","message":"Chunk is out of order.","retryable":false,"status":409},{"category":"conflict","code":"chunk_rejected","detailsSchema":"ErrorDetailsV2","message":"Chunk was rejected.","retryable":false,"status":409},{"category":"request","code":"chunk_too_large","detailsSchema":"ErrorDetailsV2","message":"Chunk exceeds the configured size limit.","retryable":false,"status":413},{"category":"conflict","code":"chunk_total_conflict","detailsSchema":"ErrorDetailsV2","message":"Chunk total does not match ingestion size.","retryable":false,"status":409},{"category":"integrity","code":"contract_bundle_integrity","detailsSchema":"ErrorDetailsV2","message":"Contract bundle integrity failed.","retryable":false,"status":500},{"category":"not_found","code":"contract_bundle_not_found","detailsSchema":"ErrorDetailsV2","message":"Contract bundle was not found.","retryable":false,"status":404},{"category":"remote","code":"direct_model_checksum","detailsSchema":"ErrorDetailsV2","message":"Runtime model checksum verification failed.","retryable":false,"status":502},{"category":"remote","code":"direct_model_retries_exhausted","detailsSchema":"ErrorDetailsV2","message":"Runtime model download retries were exhausted.","retryable":true,"status":502},{"category":"remote","code":"engine_probe_failed","detailsSchema":"ErrorDetailsV2","message":"Runtime engine probe failed.","retryable":true,"status":502},{"category":"remote","code":"extraction_runtime_unavailable","detailsSchema":"ErrorDetailsV2","message":"Extraction runtime is unavailable.","retryable":true,"status":503},{"category":"request","code":"http_400","detailsSchema":"ErrorDetailsV2","message":"Request failed.","retryable":false,"status":400},{"category":"not_found","code":"http_404","detailsSchema":"ErrorDetailsV2","message":"Resource was not found.","retryable":false,"status":404},{"category":"conflict","code":"http_409","detailsSchema":"ErrorDetailsV2","message":"Request failed.","retryable":false,"status":409},{"category":"validation","code":"http_415","detailsSchema":"ErrorDetailsV2","message":"Request failed.","retryable":false,"status":415},{"category":"validation","code":"http_422","detailsSchema":"ErrorDetailsV2","message":"Request failed.","retryable":false,"status":422},{"category":"conflict","code":"idempotency_conflict","detailsSchema":"ErrorDetailsV2","message":"Idempotency key conflicts with an existing request.","retryable":false,"status":409},{"category":"conflict","code":"ingestion_delete_rejected","detailsSchema":"ErrorDetailsV2","message":"Ingestion deletion was rejected.","retryable":false,"status":409},{"category":"conflict","code":"ingestion_finalize_rejected","detailsSchema":"ErrorDetailsV2","message":"Ingestion finalization was rejected.","retryable":false,"status":409},{"category":"not_found","code":"ingestion_not_found","detailsSchema":"ErrorDetailsV2","message":"Ingestion was not found.","retryable":false,"status":404},{"category":"conflict","code":"installation_cancelled","detailsSchema":"ErrorDetailsV2","message":"Installation was cancelled.","retryable":false,"status":409},{"category":"remote","code":"installation_filesystem","detailsSchema":"ErrorDetailsV2","message":"Runtime installation filesystem operation failed.","retryable":false,"status":500},{"category":"not_found","code":"installation_not_found","detailsSchema":"ErrorDetailsV2","message":"Installation job was not found.","retryable":false,"status":404},{"category":"remote","code":"installation_unexpected","detailsSchema":"ErrorDetailsV2","message":"Runtime installation failed unexpectedly.","retryable":false,"status":500},{"category":"conflict","code":"invalid_capture_state","detailsSchema":"ErrorDetailsV2","message":"Capture is not in a state that accepts this operation.","retryable":false,"status":409},{"category":"validation","code":"invalid_chunk_headers","detailsSchema":"ErrorDetailsV2","message":"Chunk headers are invalid.","retryable":false,"status":422},{"category":"request","code":"invalid_content_length","detailsSchema":"ErrorDetailsV2","message":"Content-Length is invalid.","retryable":false,"status":400},{"category":"validation","code":"invalid_event_cursor","detailsSchema":"ErrorDetailsV2","message":"Last-Event-ID must be an integer cursor.","retryable":false,"status":422},{"category":"request","code":"invalid_host","detailsSchema":"ErrorDetailsV2","message":"Request Host is not allowed.","retryable":false,"status":400},{"category":"validation","code":"invalid_structure","detailsSchema":"ErrorDetailsV2","message":"Candidate failed strict schema or provenance validation.","retryable":false,"status":422},{"category":"validation","code":"manual_action_required","detailsSchema":"ErrorDetailsV2","message":"Runtime installation requires manual action.","retryable":false,"status":422},{"category":"validation","code":"model_option_unknown","detailsSchema":"ErrorDetailsV2","message":"The model option is not allowlisted.","retryable":false,"status":422},{"category":"not_found","code":"not_found","detailsSchema":"ErrorDetailsV2","message":"Resource was not found.","retryable":false,"status":404},{"category":"conflict","code":"ocr_unavailable","detailsSchema":"ErrorDetailsV2","message":"Canonical OCR projection is not available.","retryable":false,"status":409},{"category":"authorization","code":"origin_not_allowed","detailsSchema":"ErrorDetailsV2","message":"Request Origin is not allowed.","retryable":false,"status":403},{"category":"conflict","code":"partial_unavailable","detailsSchema":"ErrorDetailsV2","message":"Progressive partial capture is not available yet.","retryable":false,"status":409},{"category":"validation","code":"progressive_no_text_at_sample","detailsSchema":"ErrorDetailsV2","message":"Progressive audio produced no text at the sample.","retryable":false,"status":422},{"category":"conflict","code":"raw_unavailable","detailsSchema":"ErrorDetailsV2","message":"Raw extraction is not available.","retryable":false,"status":409},{"category":"validation","code":"requirement_disabled","detailsSchema":"ErrorDetailsV2","message":"The requested runtime requirement is disabled.","retryable":false,"status":422},{"category":"remote","code":"requirement_unavailable","detailsSchema":"ErrorDetailsV2","message":"The requested runtime requirement is unavailable.","retryable":true,"status":503},{"category":"conflict","code":"result_unavailable","detailsSchema":"ErrorDetailsV2","message":"Structured result is not available.","retryable":false,"status":409},{"category":"remote","code":"runtime_restarted","detailsSchema":"ErrorDetailsV2","message":"Runtime restarted while installation was active.","retryable":true,"status":503},{"category":"validation","code":"source_kind_mismatch","detailsSchema":"ErrorDetailsV2","message":"Declared source kind does not match content.","retryable":false,"status":422},{"category":"conflict","code":"streaming_source_unavailable","detailsSchema":"ErrorDetailsV2","message":"Streaming source is unavailable.","retryable":false,"status":409},{"category":"conflict","code":"structuring_batch_digest_conflict","detailsSchema":"ErrorDetailsV2","message":"Structuring batch digest does not match the advertised batch.","retryable":false,"status":409},{"category":"not_found","code":"structuring_batch_not_found","detailsSchema":"ErrorDetailsV2","message":"Structuring batch was not found.","retryable":false,"status":404},{"category":"validation","code":"structuring_invalid_output","detailsSchema":"ErrorDetailsV2","message":"Structuring provider returned invalid output.","retryable":false,"status":422},{"category":"integrity","code":"structuring_session_corrupt","detailsSchema":"ErrorDetailsV2","message":"Structuring session state is corrupt.","retryable":false,"status":500},{"category":"not_found","code":"structuring_session_not_found","detailsSchema":"ErrorDetailsV2","message":"Structuring session was not found.","retryable":false,"status":404},{"category":"authentication","code":"unauthorized","detailsSchema":"ErrorDetailsV2","message":"A valid Bearer token is required.","retryable":false,"status":401},{"category":"validation","code":"unsupported_media_type","detailsSchema":"ErrorDetailsV2","message":"Uploaded media type is unsupported.","retryable":false,"status":415},{"category":"validation","code":"validation_error","detailsSchema":"ErrorDetailsV2","message":"Request validation failed.","retryable":false,"status":422}],"schemaDialect":"https://json-schema.org/draft/2020-12/schema","schemas":[{"extraPolicy":"forbid","name":"CaptureBlock","schema":{"$defs":{"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"blockId":{"minLength":1,"title":"Blockid","type":"string"},"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"sourceSegmentId":{"minLength":1,"title":"Sourcesegmentid","type":"string"},"sourceText":{"maxLength":2000000,"minLength":1,"title":"Sourcetext","type":"string"},"targetText":{"maxLength":2000000,"minLength":1,"title":"Targettext","type":"string"},"type":{"enum":["heading","paragraph","list-item","table","quote","transcript"],"title":"Type","type":"string"}},"required":["blockId","order","type","sourceSegmentId","locator","sourceText","targetText"],"title":"CaptureBlock","type":"object"},"schemaFile":"capture-block.schema.json","schemaSha256":"6f2fd4f170f28fde81946f98d520a0116353982149441264b03965eb0e7ff144","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureDocument","schema":{"$defs":{"CaptureBlock":{"additionalProperties":false,"properties":{"blockId":{"minLength":1,"title":"Blockid","type":"string"},"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"sourceSegmentId":{"minLength":1,"title":"Sourcesegmentid","type":"string"},"sourceText":{"maxLength":2000000,"minLength":1,"title":"Sourcetext","type":"string"},"targetText":{"maxLength":2000000,"minLength":1,"title":"Targettext","type":"string"},"type":{"enum":["heading","paragraph","list-item","table","quote","transcript"],"title":"Type","type":"string"}},"required":["blockId","order","type","sourceSegmentId","locator","sourceText","targetText"],"title":"CaptureBlock","type":"object"},"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"CaptureSpeaker":{"additionalProperties":false,"description":"An anonymous speaker and a stretch of the source to listen to and name them.","properties":{"displayName":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Displayname"},"sample":{"anyOf":[{"$ref":"#/$defs/TimeLocator"},{"type":"null"}],"default":null},"speakerId":{"pattern":"^[A-Za-z0-9_]{1,32}$","title":"Speakerid","type":"string"}},"required":["speakerId"],"title":"CaptureSpeaker","type":"object"},"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"RawCaptureSegment":{"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"$id":"https://github.com/gx-capture/capture-workbench/schema/capture-document-v2.schema.json","$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":false,"properties":{"blocks":{"items":{"$ref":"#/$defs/CaptureBlock"},"maxItems":10000,"minItems":1,"title":"Blocks","type":"array"},"completedAt":{"format":"date-time","title":"Completedat","type":"string"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"diarizationEngine":{"anyOf":[{"$ref":"#/$defs/CaptureEngine"},{"type":"null"}],"default":null},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"rawSegments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":10000,"minItems":1,"title":"Rawsegments","type":"array"},"schemaVersion":{"const":"2","default":"2","title":"Schemaversion","type":"string"},"source":{"$ref":"#/$defs/CaptureSource"},"sourceText":{"maxLength":8000000,"minLength":1,"title":"Sourcetext","type":"string"},"speakers":{"items":{"$ref":"#/$defs/CaptureSpeaker"},"maxItems":64,"title":"Speakers","type":"array"},"structuringEngine":{"$ref":"#/$defs/CaptureEngine"},"suggestedUnits":{"items":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"type":"string"},"maxItems":8,"title":"Suggestedunits","type":"array"},"targetText":{"maxLength":8000000,"minLength":1,"title":"Targettext","type":"string"},"warnings":{"items":{"maxLength":500,"type":"string"},"maxItems":1000,"title":"Warnings","type":"array"}},"required":["source","rawSegments","blocks","sourceText","targetText","extractionEngine","structuringEngine","createdAt","completedAt"],"title":"CaptureDocument","type":"object"},"schemaFile":"capture-document.schema.json","schemaSha256":"5131125b6851bccb8da96150e12c2c50170ad45c2f4a31768404a5406ad8598f","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureEngine","schema":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"schemaFile":"capture-engine.schema.json","schemaSha256":"8fa69738d84a05f646416aef9a43e048684cd8b429925345aa4b1d9e738c6c0a","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureEventV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"},"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"RawCaptureSegment":{"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"StreamingEventType":{"enum":["accepted","input_checkpoint","heartbeat","segment","checkpoint","resync_required","completed","failed","cancelled"],"title":"StreamingEventType","type":"string"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"captureId":{"minLength":1,"title":"Captureid","type":"string"},"coveredUntilMs":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Covereduntilms"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"eventId":{"minLength":1,"title":"Eventid","type":"string"},"eventType":{"$ref":"#/$defs/StreamingEventType"},"kind":{"$ref":"#/$defs/CaptureSourceKind","default":"audio"},"partialRevision":{"anyOf":[{"minimum":0,"type":"integer"},{"type":"null"}],"default":null,"title":"Partialrevision"},"progress":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Progress"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"segments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":1000,"title":"Segments","type":"array"},"sequence":{"minimum":0,"title":"Sequence","type":"integer"},"stage":{"minLength":1,"title":"Stage","type":"string"}},"required":["eventId","sequence","captureId","eventType","stage","createdAt"],"title":"CaptureEventV2","type":"object"},"schemaFile":"capture-event-v2.schema.json","schemaSha256":"b097613f1659845ca85c86c7254fff5e999723bfbc47722cb8370b2d49662064","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureFailureV2","schema":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"schemaFile":"capture-failure-v2.schema.json","schemaSha256":"e6a06162dd2f340e310521d9b7964322117b3ffff95251a27a9757f31a50d18e","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureOcrProjectionV3","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"OcrBoxV3":{"additionalProperties":false,"description":"A text region retaining the predictor polygon without rectangle loss.","properties":{"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"title":"Confidence"},"polygon":{"items":{"$ref":"#/$defs/OcrPointV3"},"maxItems":256,"minItems":4,"title":"Polygon","type":"array"},"text":{"maxLength":8000000,"minLength":1,"title":"Text","type":"string"}},"required":["polygon","text","confidence"],"title":"OcrBoxV3","type":"object"},"OcrPageProjectionV3":{"additionalProperties":false,"properties":{"boxes":{"items":{"$ref":"#/$defs/OcrBoxV3"},"maxItems":100000,"title":"Boxes","type":"array"},"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Confidence"},"failure":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"page":{"minimum":1,"title":"Page","type":"integer"},"provenance":{"$ref":"#/$defs/OcrProvenanceV3"},"raster":{"$ref":"#/$defs/OcrRasterV3"},"status":{"$ref":"#/$defs/OcrPageStatus"},"text":{"default":"","maxLength":8000000,"title":"Text","type":"string"}},"required":["page","status","raster","provenance"],"title":"OcrPageProjectionV3","type":"object"},"OcrPageStatus":{"enum":["recognized","empty","failed"],"title":"OcrPageStatus","type":"string"},"OcrPointV3":{"additionalProperties":false,"description":"One predictor-input pixel coordinate in polygon order.","properties":{"x":{"minimum":0,"title":"X","type":"number"},"y":{"minimum":0,"title":"Y","type":"number"}},"required":["x","y"],"title":"OcrPointV3","type":"object"},"OcrProjectionStatus":{"enum":["completed","failed"],"title":"OcrProjectionStatus","type":"string"},"OcrProvenanceResolvedV3":{"additionalProperties":false,"description":"Concrete OCR identity available after model/provider resolution.","properties":{"device":{"minLength":1,"title":"Device","type":"string"},"engine":{"const":"windowsml-ocr","title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"},"modelDigest":{"not":{"const":"sha256:0000000000000000000000000000000000000000000000000000000000000000"},"pattern":"^sha256:[0-9a-f]{64}$","title":"Modeldigest","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"const":"resolved","title":"Status","type":"string"}},"required":["status","engine","model","modelDigest","device","profileId","profileSpecSha256"],"title":"OcrProvenanceResolvedV3","type":"object"},"OcrProvenanceUnavailableReason":{"enum":["model_unavailable","worker_crashed","worker_timeout","protocol_failure"],"title":"OcrProvenanceUnavailableReason","type":"string"},"OcrProvenanceUnavailableV3":{"additionalProperties":false,"description":"Profile identity retained when model identity is not yet available.","properties":{"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"reason":{"$ref":"#/$defs/OcrProvenanceUnavailableReason"},"status":{"const":"unavailable","title":"Status","type":"string"}},"required":["status","profileId","profileSpecSha256","reason"],"title":"OcrProvenanceUnavailableV3","type":"object"},"OcrProvenanceV3":{"description":"Discriminated OCR provenance without fake model/device placeholders.","discriminator":{"mapping":{"resolved":"#/$defs/OcrProvenanceResolvedV3","unavailable":"#/$defs/OcrProvenanceUnavailableV3"},"propertyName":"status"},"oneOf":[{"$ref":"#/$defs/OcrProvenanceResolvedV3"},{"$ref":"#/$defs/OcrProvenanceUnavailableV3"}],"title":"OcrProvenanceV3"},"OcrRasterV3":{"additionalProperties":false,"properties":{"coordinateSystem":{"const":"pixel","title":"Coordinatesystem","type":"string"},"height":{"exclusiveMinimum":0,"title":"Height","type":"integer"},"scale":{"exclusiveMinimum":0,"maximum":8,"title":"Scale","type":"number"},"width":{"exclusiveMinimum":0,"title":"Width","type":"integer"}},"required":["width","height","scale","coordinateSystem"],"title":"OcrRasterV3","type":"object"}},"additionalProperties":false,"properties":{"apiVersion":{"const":"2.0","title":"Apiversion","type":"string"},"captureId":{"minLength":1,"title":"Captureid","type":"string"},"contractSha256":{"pattern":"^[0-9a-f]{64}$","title":"Contractsha256","type":"string"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"failure":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"pageCount":{"maximum":500,"minimum":0,"title":"Pagecount","type":"integer"},"pages":{"items":{"$ref":"#/$defs/OcrPageProjectionV3"},"maxItems":500,"title":"Pages","type":"array"},"provenance":{"$ref":"#/$defs/OcrProvenanceV3"},"runtimeVersion":{"maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Runtimeversion","type":"string"},"schemaVersion":{"const":"3","title":"Schemaversion","type":"string"},"source":{"anyOf":[{"$ref":"#/$defs/CaptureSource"},{"type":"null"}],"default":null},"status":{"$ref":"#/$defs/OcrProjectionStatus"},"warnings":{"items":{"maxLength":500,"type":"string"},"maxItems":1000,"title":"Warnings","type":"array"}},"required":["apiVersion","schemaVersion","captureId","status","pages","pageCount","runtimeVersion","contractSha256","provenance","createdAt"],"title":"CaptureOcrProjectionV3","type":"object"},"schemaFile":"capture-ocr-projection-v3.schema.json","schemaSha256":"f7686a2c4470d673c4f6a266829783f4090e78b5e24f0ad73dc6f4e58b939386","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureOperationV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"},"StreamingCaptureStatus":{"enum":["created","waiting_input","extracting","awaiting_structuring","structuring","completed","failed","cancelled"],"title":"StreamingCaptureStatus","type":"string"}},"additionalProperties":false,"properties":{"captureId":{"minLength":1,"title":"Captureid","type":"string"},"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"ingestionId":{"minLength":1,"title":"Ingestionid","type":"string"},"kind":{"$ref":"#/$defs/CaptureSourceKind","default":"audio"},"lastEventSequence":{"minimum":0,"title":"Lasteventsequence","type":"integer"},"partialRevision":{"minimum":0,"title":"Partialrevision","type":"integer"},"progress":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Progress"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"source":{"anyOf":[{"$ref":"#/$defs/CaptureSource"},{"type":"null"}],"default":null},"status":{"$ref":"#/$defs/StreamingCaptureStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["captureId","ingestionId","status","partialRevision","lastEventSequence","createdAt","updatedAt"],"title":"CaptureOperationV2","type":"object"},"schemaFile":"capture-operation-v2.schema.json","schemaSha256":"f6e6138f9ac1e5f0617cb8bd594cb8775c2bf87f0d3b0603636247de0f727a9a","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureSource","schema":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"schemaFile":"capture-source.schema.json","schemaSha256":"d2a4e3dfe3cf565ad1e37c40cb3d8c13398ee51271100254b252230e8e014d55","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureSpeaker","schema":{"$defs":{"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"description":"An anonymous speaker and a stretch of the source to listen to and name them.","properties":{"displayName":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Displayname"},"sample":{"anyOf":[{"$ref":"#/$defs/TimeLocator"},{"type":"null"}],"default":null},"speakerId":{"pattern":"^[A-Za-z0-9_]{1,32}$","title":"Speakerid","type":"string"}},"required":["speakerId"],"title":"CaptureSpeaker","type":"object"},"schemaFile":"capture-speaker.schema.json","schemaSha256":"9706e489166e26d55e3b4a11fdb22cf2786858f31ee3072128dc289a91d45475","strStripWhitespace":true},{"extraPolicy":"forbid","name":"CaptureStreamingResult","schema":{"$defs":{"CaptureBlock":{"additionalProperties":false,"properties":{"blockId":{"minLength":1,"title":"Blockid","type":"string"},"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"sourceSegmentId":{"minLength":1,"title":"Sourcesegmentid","type":"string"},"sourceText":{"maxLength":2000000,"minLength":1,"title":"Sourcetext","type":"string"},"targetText":{"maxLength":2000000,"minLength":1,"title":"Targettext","type":"string"},"type":{"enum":["heading","paragraph","list-item","table","quote","transcript"],"title":"Type","type":"string"}},"required":["blockId","order","type","sourceSegmentId","locator","sourceText","targetText"],"title":"CaptureBlock","type":"object"},"CaptureDocument":{"additionalProperties":false,"properties":{"blocks":{"items":{"$ref":"#/$defs/CaptureBlock"},"maxItems":10000,"minItems":1,"title":"Blocks","type":"array"},"completedAt":{"format":"date-time","title":"Completedat","type":"string"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"diarizationEngine":{"anyOf":[{"$ref":"#/$defs/CaptureEngine"},{"type":"null"}],"default":null},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"rawSegments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":10000,"minItems":1,"title":"Rawsegments","type":"array"},"schemaVersion":{"const":"2","default":"2","title":"Schemaversion","type":"string"},"source":{"$ref":"#/$defs/CaptureSource"},"sourceText":{"maxLength":8000000,"minLength":1,"title":"Sourcetext","type":"string"},"speakers":{"items":{"$ref":"#/$defs/CaptureSpeaker"},"maxItems":64,"title":"Speakers","type":"array"},"structuringEngine":{"$ref":"#/$defs/CaptureEngine"},"suggestedUnits":{"items":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"type":"string"},"maxItems":8,"title":"Suggestedunits","type":"array"},"targetText":{"maxLength":8000000,"minLength":1,"title":"Targettext","type":"string"},"warnings":{"items":{"maxLength":500,"type":"string"},"maxItems":1000,"title":"Warnings","type":"array"}},"required":["source","rawSegments","blocks","sourceText","targetText","extractionEngine","structuringEngine","createdAt","completedAt"],"title":"CaptureDocument","type":"object"},"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"CaptureOperationV2":{"additionalProperties":false,"properties":{"captureId":{"minLength":1,"title":"Captureid","type":"string"},"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"ingestionId":{"minLength":1,"title":"Ingestionid","type":"string"},"kind":{"$ref":"#/$defs/CaptureSourceKind","default":"audio"},"lastEventSequence":{"minimum":0,"title":"Lasteventsequence","type":"integer"},"partialRevision":{"minimum":0,"title":"Partialrevision","type":"integer"},"progress":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Progress"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"source":{"anyOf":[{"$ref":"#/$defs/CaptureSource"},{"type":"null"}],"default":null},"status":{"$ref":"#/$defs/StreamingCaptureStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["captureId","ingestionId","status","partialRevision","lastEventSequence","createdAt","updatedAt"],"title":"CaptureOperationV2","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"},"CaptureSpeaker":{"additionalProperties":false,"description":"An anonymous speaker and a stretch of the source to listen to and name them.","properties":{"displayName":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Displayname"},"sample":{"anyOf":[{"$ref":"#/$defs/TimeLocator"},{"type":"null"}],"default":null},"speakerId":{"pattern":"^[A-Za-z0-9_]{1,32}$","title":"Speakerid","type":"string"}},"required":["speakerId"],"title":"CaptureSpeaker","type":"object"},"OcrPageScopeV2":{"additionalProperties":false,"description":"Public evidence describing which PDF pages entered OCR.","properties":{"processedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Processedpagenumbers","type":"array"},"requestedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Requestedpagenumbers","type":"array"},"sourcePageCount":{"maximum":500,"minimum":1,"title":"Sourcepagecount","type":"integer"}},"required":["sourcePageCount","requestedPageNumbers","processedPageNumbers"],"title":"OcrPageScopeV2","type":"object"},"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"RawCapture":{"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"diagnosticOnly":{"const":true,"default":true,"title":"Diagnosticonly","type":"boolean"},"diarizationEngine":{"anyOf":[{"$ref":"#/$defs/CaptureEngine"},{"type":"null"}],"default":null},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"ocrPageScope":{"anyOf":[{"$ref":"#/$defs/OcrPageScopeV2"},{"type":"null"}],"default":null},"schemaVersion":{"const":"2","default":"2","title":"Schemaversion","type":"string"},"segments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":10000,"minItems":1,"title":"Segments","type":"array"},"source":{"$ref":"#/$defs/CaptureSource"},"sourceText":{"maxLength":8000000,"minLength":1,"title":"Sourcetext","type":"string"},"speakers":{"items":{"$ref":"#/$defs/CaptureSpeaker"},"maxItems":64,"title":"Speakers","type":"array"},"suggestedUnits":{"items":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"type":"string"},"maxItems":8,"title":"Suggestedunits","type":"array"},"warnings":{"items":{"maxLength":500,"type":"string"},"maxItems":1000,"title":"Warnings","type":"array"}},"required":["source","segments","sourceText","extractionEngine","createdAt"],"title":"RawCapture","type":"object"},"RawCaptureSegment":{"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"StreamingCaptureStatus":{"enum":["created","waiting_input","extracting","awaiting_structuring","structuring","completed","failed","cancelled"],"title":"StreamingCaptureStatus","type":"string"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"operation":{"$ref":"#/$defs/CaptureOperationV2"},"raw":{"$ref":"#/$defs/RawCapture"},"result":{"$ref":"#/$defs/CaptureDocument"}},"required":["operation","raw","result"],"title":"CaptureStreamingResult","type":"object"},"schemaFile":"capture-streaming-result.schema.json","schemaSha256":"683010fee5d8cb00bc33932b1631489e74ba8b1daf0c13d59a0b01f62e6fdb3a","strStripWhitespace":true},{"extraPolicy":"forbid","name":"ErrorBodyV2","schema":{"additionalProperties":false,"properties":{"code":{"minLength":1,"title":"Code","type":"string"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Details"},"message":{"minLength":1,"title":"Message","type":"string"}},"required":["code","message"],"title":"ErrorBodyV2","type":"object"},"schemaFile":"error-body-v2.schema.json","schemaSha256":"0002155af0f1b315d36b607ea3e92ea7bc27989a6e3d00eba1fd6f2a6643f431","strStripWhitespace":true},{"extraPolicy":"forbid","name":"ErrorEnvelopeV2","schema":{"$defs":{"ErrorBodyV2":{"additionalProperties":false,"properties":{"code":{"minLength":1,"title":"Code","type":"string"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Details"},"message":{"minLength":1,"title":"Message","type":"string"}},"required":["code","message"],"title":"ErrorBodyV2","type":"object"}},"additionalProperties":false,"properties":{"error":{"$ref":"#/$defs/ErrorBodyV2"}},"required":["error"],"title":"ErrorEnvelopeV2","type":"object"},"schemaFile":"error-envelope-v2.schema.json","schemaSha256":"8c359892273b8294946480e9d37530131d767abf26e44923e99171535cfa6430","strStripWhitespace":true},{"extraPolicy":"forbid","name":"FinalizeIngestionV2","schema":{"additionalProperties":false,"properties":{"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"},"totalBytes":{"exclusiveMinimum":0,"title":"Totalbytes","type":"integer"}},"required":["totalBytes","sha256"],"title":"FinalizeIngestionV2","type":"object"},"schemaFile":"finalize-ingestion-v2.schema.json","schemaSha256":"b2fa7d1268c379428480bfa123b4ac5c3ee9d03f5a96125aa7a84daaea1a4338","strStripWhitespace":true},{"extraPolicy":"forbid","name":"IngestionV2","schema":{"$defs":{"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"},"StreamingIngestionStatus":{"enum":["open","finalizing","ready","cancelled","failed","expired"],"title":"StreamingIngestionStatus","type":"string"}},"additionalProperties":false,"properties":{"contiguousBytes":{"minimum":0,"title":"Contiguousbytes","type":"integer"},"expiresAt":{"format":"date-time","title":"Expiresat","type":"string"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"finalizedSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Finalizedsha256"},"ingestionId":{"minLength":1,"title":"Ingestionid","type":"string"},"kind":{"$ref":"#/$defs/CaptureSourceKind","default":"audio"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"nextChunkIndex":{"minimum":0,"title":"Nextchunkindex","type":"integer"},"nextOffset":{"minimum":0,"title":"Nextoffset","type":"integer"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"receivedBytes":{"minimum":0,"title":"Receivedbytes","type":"integer"},"sourceSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Sourcesha256"},"status":{"$ref":"#/$defs/StreamingIngestionStatus"},"totalBytes":{"exclusiveMinimum":0,"title":"Totalbytes","type":"integer"}},"required":["ingestionId","status","fileName","mediaType","totalBytes","receivedBytes","contiguousBytes","nextChunkIndex","nextOffset","expiresAt"],"title":"IngestionV2","type":"object"},"schemaFile":"ingestion-v2.schema.json","schemaSha256":"77dc6d4a6958608c94ef8a48b52e3df8c531c70622131d0753dbda5d8a5326db","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrBoxV3","schema":{"$defs":{"OcrPointV3":{"additionalProperties":false,"description":"One predictor-input pixel coordinate in polygon order.","properties":{"x":{"minimum":0,"title":"X","type":"number"},"y":{"minimum":0,"title":"Y","type":"number"}},"required":["x","y"],"title":"OcrPointV3","type":"object"}},"additionalProperties":false,"description":"A text region retaining the predictor polygon without rectangle loss.","properties":{"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"title":"Confidence"},"polygon":{"items":{"$ref":"#/$defs/OcrPointV3"},"maxItems":256,"minItems":4,"title":"Polygon","type":"array"},"text":{"maxLength":8000000,"minLength":1,"title":"Text","type":"string"}},"required":["polygon","text","confidence"],"title":"OcrBoxV3","type":"object"},"schemaFile":"ocr-box-v3.schema.json","schemaSha256":"911a21144aaa65fea0eb533152a696c1270060363db275b14f83bcabcbbbb346","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrComputePreflightV2","schema":{"$defs":{"OcrAdapterClass":{"enum":["dedicated","integrated","unknown"],"title":"OcrAdapterClass","type":"string"},"OcrComputeMode":{"enum":["gpu-dml","cpu-fallback"],"title":"OcrComputeMode","type":"string"},"OcrComputeNoticeCode":{"enum":["ocr_cpu_fallback"],"title":"OcrComputeNoticeCode","type":"string"},"OcrComputeReasonCode":{"enum":["no_compatible_gpu","dml_provider_unavailable"],"title":"OcrComputeReasonCode","type":"string"}},"additionalProperties":false,"description":"Runtime-owned pre-OCR compute selection and user-notice contract.","properties":{"adapterClass":{"$ref":"#/$defs/OcrAdapterClass"},"apiVersion":{"const":"2.0","default":"2.0","title":"Apiversion","type":"string"},"contractSetVersion":{"const":"2","default":"2","title":"Contractsetversion","type":"string"},"contractSha256":{"pattern":"^[0-9a-f]{64}$","title":"Contractsha256","type":"string"},"mode":{"$ref":"#/$defs/OcrComputeMode"},"noticeCode":{"anyOf":[{"$ref":"#/$defs/OcrComputeNoticeCode"},{"type":"null"}],"default":null},"reasonCode":{"anyOf":[{"$ref":"#/$defs/OcrComputeReasonCode"},{"type":"null"}],"default":null},"runtimeVersion":{"maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Runtimeversion","type":"string"},"schemaVersion":{"const":"1","default":"1","title":"Schemaversion","type":"string"},"service":{"const":"capture-runtime","default":"capture-runtime","title":"Service","type":"string"},"userNoticeRequired":{"title":"Usernoticerequired","type":"boolean"},"workerSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Workersha256"}},"required":["contractSha256","mode","adapterClass","userNoticeRequired","runtimeVersion"],"title":"OcrComputePreflightV2","type":"object"},"schemaFile":"ocr-compute-preflight-v2.schema.json","schemaSha256":"0b63980e95f78a9ea439cca2c4bf9a0f2645911c0a7097cb66c44ef46b8f7843","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrPageProjectionV3","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"OcrBoxV3":{"additionalProperties":false,"description":"A text region retaining the predictor polygon without rectangle loss.","properties":{"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"title":"Confidence"},"polygon":{"items":{"$ref":"#/$defs/OcrPointV3"},"maxItems":256,"minItems":4,"title":"Polygon","type":"array"},"text":{"maxLength":8000000,"minLength":1,"title":"Text","type":"string"}},"required":["polygon","text","confidence"],"title":"OcrBoxV3","type":"object"},"OcrPageStatus":{"enum":["recognized","empty","failed"],"title":"OcrPageStatus","type":"string"},"OcrPointV3":{"additionalProperties":false,"description":"One predictor-input pixel coordinate in polygon order.","properties":{"x":{"minimum":0,"title":"X","type":"number"},"y":{"minimum":0,"title":"Y","type":"number"}},"required":["x","y"],"title":"OcrPointV3","type":"object"},"OcrProvenanceResolvedV3":{"additionalProperties":false,"description":"Concrete OCR identity available after model/provider resolution.","properties":{"device":{"minLength":1,"title":"Device","type":"string"},"engine":{"const":"windowsml-ocr","title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"},"modelDigest":{"not":{"const":"sha256:0000000000000000000000000000000000000000000000000000000000000000"},"pattern":"^sha256:[0-9a-f]{64}$","title":"Modeldigest","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"const":"resolved","title":"Status","type":"string"}},"required":["status","engine","model","modelDigest","device","profileId","profileSpecSha256"],"title":"OcrProvenanceResolvedV3","type":"object"},"OcrProvenanceUnavailableReason":{"enum":["model_unavailable","worker_crashed","worker_timeout","protocol_failure"],"title":"OcrProvenanceUnavailableReason","type":"string"},"OcrProvenanceUnavailableV3":{"additionalProperties":false,"description":"Profile identity retained when model identity is not yet available.","properties":{"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"reason":{"$ref":"#/$defs/OcrProvenanceUnavailableReason"},"status":{"const":"unavailable","title":"Status","type":"string"}},"required":["status","profileId","profileSpecSha256","reason"],"title":"OcrProvenanceUnavailableV3","type":"object"},"OcrProvenanceV3":{"description":"Discriminated OCR provenance without fake model/device placeholders.","discriminator":{"mapping":{"resolved":"#/$defs/OcrProvenanceResolvedV3","unavailable":"#/$defs/OcrProvenanceUnavailableV3"},"propertyName":"status"},"oneOf":[{"$ref":"#/$defs/OcrProvenanceResolvedV3"},{"$ref":"#/$defs/OcrProvenanceUnavailableV3"}],"title":"OcrProvenanceV3"},"OcrRasterV3":{"additionalProperties":false,"properties":{"coordinateSystem":{"const":"pixel","title":"Coordinatesystem","type":"string"},"height":{"exclusiveMinimum":0,"title":"Height","type":"integer"},"scale":{"exclusiveMinimum":0,"maximum":8,"title":"Scale","type":"number"},"width":{"exclusiveMinimum":0,"title":"Width","type":"integer"}},"required":["width","height","scale","coordinateSystem"],"title":"OcrRasterV3","type":"object"}},"additionalProperties":false,"properties":{"boxes":{"items":{"$ref":"#/$defs/OcrBoxV3"},"maxItems":100000,"title":"Boxes","type":"array"},"confidence":{"anyOf":[{"maximum":1,"minimum":0,"type":"number"},{"type":"null"}],"default":null,"title":"Confidence"},"failure":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"page":{"minimum":1,"title":"Page","type":"integer"},"provenance":{"$ref":"#/$defs/OcrProvenanceV3"},"raster":{"$ref":"#/$defs/OcrRasterV3"},"status":{"$ref":"#/$defs/OcrPageStatus"},"text":{"default":"","maxLength":8000000,"title":"Text","type":"string"}},"required":["page","status","raster","provenance"],"title":"OcrPageProjectionV3","type":"object"},"schemaFile":"ocr-page-projection-v3.schema.json","schemaSha256":"224663b54e2cb50b88174a4c507005fc2ad35b02aa14cf51961f35b88c9870e0","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrPageScopeV2","schema":{"additionalProperties":false,"description":"Public evidence describing which PDF pages entered OCR.","properties":{"processedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Processedpagenumbers","type":"array"},"requestedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Requestedpagenumbers","type":"array"},"sourcePageCount":{"maximum":500,"minimum":1,"title":"Sourcepagecount","type":"integer"}},"required":["sourcePageCount","requestedPageNumbers","processedPageNumbers"],"title":"OcrPageScopeV2","type":"object"},"schemaFile":"ocr-page-scope-v2.schema.json","schemaSha256":"9569d79875b028db9a0074b207b4fc4228becc909d2ce7ed780b32da266d8e94","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrPointV3","schema":{"additionalProperties":false,"description":"One predictor-input pixel coordinate in polygon order.","properties":{"x":{"minimum":0,"title":"X","type":"number"},"y":{"minimum":0,"title":"Y","type":"number"}},"required":["x","y"],"title":"OcrPointV3","type":"object"},"schemaFile":"ocr-point-v3.schema.json","schemaSha256":"013bf53625e046089aa09cf46128bac6c2bbcf07b52497d1c7a44564f080373b","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrProvenanceResolvedV3","schema":{"additionalProperties":false,"description":"Concrete OCR identity available after model/provider resolution.","properties":{"device":{"minLength":1,"title":"Device","type":"string"},"engine":{"const":"windowsml-ocr","title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"},"modelDigest":{"not":{"const":"sha256:0000000000000000000000000000000000000000000000000000000000000000"},"pattern":"^sha256:[0-9a-f]{64}$","title":"Modeldigest","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"const":"resolved","title":"Status","type":"string"}},"required":["status","engine","model","modelDigest","device","profileId","profileSpecSha256"],"title":"OcrProvenanceResolvedV3","type":"object"},"schemaFile":"ocr-provenance-resolved-v3.schema.json","schemaSha256":"ffa01a0452a201645e1cdef9769638d25c3ec8c47c55c2e11a017c14c6d205c1","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrProvenanceUnavailableV3","schema":{"$defs":{"OcrProvenanceUnavailableReason":{"enum":["model_unavailable","worker_crashed","worker_timeout","protocol_failure"],"title":"OcrProvenanceUnavailableReason","type":"string"}},"additionalProperties":false,"description":"Profile identity retained when model identity is not yet available.","properties":{"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"reason":{"$ref":"#/$defs/OcrProvenanceUnavailableReason"},"status":{"const":"unavailable","title":"Status","type":"string"}},"required":["status","profileId","profileSpecSha256","reason"],"title":"OcrProvenanceUnavailableV3","type":"object"},"schemaFile":"ocr-provenance-unavailable-v3.schema.json","schemaSha256":"b3ec29d570a68d45882eb334980f2f8ba70658cafd2fc862f33351069ab4e101","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrProvenanceV3","schema":{"$defs":{"OcrProvenanceResolvedV3":{"additionalProperties":false,"description":"Concrete OCR identity available after model/provider resolution.","properties":{"device":{"minLength":1,"title":"Device","type":"string"},"engine":{"const":"windowsml-ocr","title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"},"modelDigest":{"not":{"const":"sha256:0000000000000000000000000000000000000000000000000000000000000000"},"pattern":"^sha256:[0-9a-f]{64}$","title":"Modeldigest","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"const":"resolved","title":"Status","type":"string"}},"required":["status","engine","model","modelDigest","device","profileId","profileSpecSha256"],"title":"OcrProvenanceResolvedV3","type":"object"},"OcrProvenanceUnavailableReason":{"enum":["model_unavailable","worker_crashed","worker_timeout","protocol_failure"],"title":"OcrProvenanceUnavailableReason","type":"string"},"OcrProvenanceUnavailableV3":{"additionalProperties":false,"description":"Profile identity retained when model identity is not yet available.","properties":{"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"reason":{"$ref":"#/$defs/OcrProvenanceUnavailableReason"},"status":{"const":"unavailable","title":"Status","type":"string"}},"required":["status","profileId","profileSpecSha256","reason"],"title":"OcrProvenanceUnavailableV3","type":"object"}},"description":"Discriminated OCR provenance without fake model/device placeholders.","discriminator":{"mapping":{"resolved":"#/$defs/OcrProvenanceResolvedV3","unavailable":"#/$defs/OcrProvenanceUnavailableV3"},"propertyName":"status"},"oneOf":[{"$ref":"#/$defs/OcrProvenanceResolvedV3"},{"$ref":"#/$defs/OcrProvenanceUnavailableV3"}],"title":"OcrProvenanceV3"},"schemaFile":"ocr-provenance-v3.schema.json","schemaSha256":"ed79f5d1d26f6e93ef2b89b0404a7e9b334a9b4a1c7e789c8c2c3a39018a9675","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OcrRasterV3","schema":{"additionalProperties":false,"properties":{"coordinateSystem":{"const":"pixel","title":"Coordinatesystem","type":"string"},"height":{"exclusiveMinimum":0,"title":"Height","type":"integer"},"scale":{"exclusiveMinimum":0,"maximum":8,"title":"Scale","type":"number"},"width":{"exclusiveMinimum":0,"title":"Width","type":"integer"}},"required":["width","height","scale","coordinateSystem"],"title":"OcrRasterV3","type":"object"},"schemaFile":"ocr-raster-v3.schema.json","schemaSha256":"4be057b8c97e98410d91e23ebe09ef48dc07c880e135036b186f0db82d516b9e","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OpenIngestionV2","schema":{"$defs":{"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"},"StreamingIngestionMode":{"enum":["file"],"title":"StreamingIngestionMode","type":"string"}},"additionalProperties":false,"properties":{"clientRequestId":{"minLength":1,"title":"Clientrequestid","type":"string"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"kind":{"$ref":"#/$defs/CaptureSourceKind","default":"audio"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"mode":{"$ref":"#/$defs/StreamingIngestionMode","default":"file"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"sourceSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Sourcesha256"},"totalBytes":{"exclusiveMinimum":0,"title":"Totalbytes","type":"integer"}},"required":["clientRequestId","fileName","mediaType","totalBytes"],"title":"OpenIngestionV2","type":"object"},"schemaFile":"open-ingestion-v2.schema.json","schemaSha256":"7430630ed8a17cd9f92e650049c3030cb6af8e299aef5777ccfcae44ee0e1022","strStripWhitespace":true},{"extraPolicy":"forbid","name":"OpenStructuringSessionV2","schema":{"$defs":{"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"StructuringProviderCapabilityV2":{"additionalProperties":false,"description":"Provider identity and schema dialect negotiated for one session.","properties":{"capability":{"minLength":1,"title":"Capability","type":"string"},"provider":{"$ref":"#/$defs/CaptureEngine"},"schemaDialect":{"minLength":1,"title":"Schemadialect","type":"string"}},"required":["provider","capability","schemaDialect"],"title":"StructuringProviderCapabilityV2","type":"object"}},"additionalProperties":false,"description":"Authenticated request to open or replay a pull structuring session.","properties":{"captureId":{"minLength":1,"title":"Captureid","type":"string"},"clientRequestId":{"minLength":1,"title":"Clientrequestid","type":"string"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"providerCapability":{"$ref":"#/$defs/StructuringProviderCapabilityV2"},"schemaDialect":{"minLength":1,"title":"Schemadialect","type":"string"},"targetLanguage":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Targetlanguage"}},"required":["captureId","providerCapability","schemaDialect","clientRequestId"],"title":"OpenStructuringSessionV2","type":"object"},"schemaFile":"open-structuring-session-v2.schema.json","schemaSha256":"10fdc786c8da18e61b64dac5077847ebbd2cc4b36c978cbb259994c266e04caf","strStripWhitespace":true},{"extraPolicy":"forbid","name":"PageLocator","schema":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"schemaFile":"page-locator.schema.json","schemaSha256":"8ceb4886a59e6a9973afb43fc0fbdf987cfa6a35863463c3df96f79895af0617","strStripWhitespace":true},{"extraPolicy":"forbid","name":"PartialCaptureV2","schema":{"$defs":{"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"RawCaptureSegment":{"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"captureId":{"minLength":1,"title":"Captureid","type":"string"},"coveredUntilMs":{"minimum":0,"title":"Covereduntilms","type":"integer"},"extractionEngine":{"anyOf":[{"$ref":"#/$defs/CaptureEngine"},{"type":"null"}],"default":null},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"revision":{"minimum":0,"title":"Revision","type":"integer"},"segments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":10000,"title":"Segments","type":"array"},"source":{"$ref":"#/$defs/CaptureSource"},"sourceText":{"default":"","maxLength":8000000,"title":"Sourcetext","type":"string"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["captureId","source","revision","coveredUntilMs","updatedAt"],"title":"PartialCaptureV2","type":"object"},"schemaFile":"partial-capture-v2.schema.json","schemaSha256":"4dc8f46da3cc280bacce99c9af44e2b0cd0ac5a7e3b4355c58b42013743c7275","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RawCapture","schema":{"$defs":{"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"CaptureSource":{"additionalProperties":false,"properties":{"bytes":{"minimum":1,"title":"Bytes","type":"integer"},"fileName":{"maxLength":255,"minLength":1,"title":"Filename","type":"string"},"mediaType":{"minLength":1,"title":"Mediatype","type":"string"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["sha256","fileName","mediaType","bytes"],"title":"CaptureSource","type":"object"},"CaptureSpeaker":{"additionalProperties":false,"description":"An anonymous speaker and a stretch of the source to listen to and name them.","properties":{"displayName":{"anyOf":[{"maxLength":100,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Displayname"},"sample":{"anyOf":[{"$ref":"#/$defs/TimeLocator"},{"type":"null"}],"default":null},"speakerId":{"pattern":"^[A-Za-z0-9_]{1,32}$","title":"Speakerid","type":"string"}},"required":["speakerId"],"title":"CaptureSpeaker","type":"object"},"OcrPageScopeV2":{"additionalProperties":false,"description":"Public evidence describing which PDF pages entered OCR.","properties":{"processedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Processedpagenumbers","type":"array"},"requestedPageNumbers":{"items":{"type":"integer"},"maxItems":500,"minItems":1,"title":"Requestedpagenumbers","type":"array"},"sourcePageCount":{"maximum":500,"minimum":1,"title":"Sourcepagecount","type":"integer"}},"required":["sourcePageCount","requestedPageNumbers","processedPageNumbers"],"title":"OcrPageScopeV2","type":"object"},"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"RawCaptureSegment":{"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"diagnosticOnly":{"const":true,"default":true,"title":"Diagnosticonly","type":"boolean"},"diarizationEngine":{"anyOf":[{"$ref":"#/$defs/CaptureEngine"},{"type":"null"}],"default":null},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"ocrPageScope":{"anyOf":[{"$ref":"#/$defs/OcrPageScopeV2"},{"type":"null"}],"default":null},"schemaVersion":{"const":"2","default":"2","title":"Schemaversion","type":"string"},"segments":{"items":{"$ref":"#/$defs/RawCaptureSegment"},"maxItems":10000,"minItems":1,"title":"Segments","type":"array"},"source":{"$ref":"#/$defs/CaptureSource"},"sourceText":{"maxLength":8000000,"minLength":1,"title":"Sourcetext","type":"string"},"speakers":{"items":{"$ref":"#/$defs/CaptureSpeaker"},"maxItems":64,"title":"Speakers","type":"array"},"suggestedUnits":{"items":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"type":"string"},"maxItems":8,"title":"Suggestedunits","type":"array"},"warnings":{"items":{"maxLength":500,"type":"string"},"maxItems":1000,"title":"Warnings","type":"array"}},"required":["source","segments","sourceText","extractionEngine","createdAt"],"title":"RawCapture","type":"object"},"schemaFile":"raw-capture.schema.json","schemaSha256":"571e8856de3154e24ad64ac9c58da18223f52ca2ece8aecb8ef5a082b73f12c9","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RawCaptureSegment","schema":{"$defs":{"PageLocator":{"additionalProperties":false,"properties":{"boundingBox":{"anyOf":[{"maxItems":4,"minItems":4,"prefixItems":[{"type":"number"},{"type":"number"},{"type":"number"},{"type":"number"}],"type":"array"},{"type":"null"}],"default":null,"title":"Boundingbox"},"kind":{"const":"page","default":"page","title":"Kind","type":"string"},"page":{"minimum":1,"title":"Page","type":"integer"}},"required":["page"],"title":"PageLocator","type":"object"},"TimeLocator":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"}},"additionalProperties":false,"properties":{"locator":{"discriminator":{"mapping":{"page":"#/$defs/PageLocator","time":"#/$defs/TimeLocator"},"propertyName":"kind"},"oneOf":[{"$ref":"#/$defs/PageLocator"},{"$ref":"#/$defs/TimeLocator"}],"title":"Locator"},"order":{"minimum":0,"title":"Order","type":"integer"},"segmentId":{"minLength":1,"title":"Segmentid","type":"string"},"speaker":{"anyOf":[{"pattern":"^[A-Za-z0-9_]{1,32}$","type":"string"},{"type":"null"}],"default":null,"title":"Speaker"},"speakerOverlap":{"default":false,"title":"Speakeroverlap","type":"boolean"},"text":{"maxLength":2000000,"minLength":1,"title":"Text","type":"string"}},"required":["segmentId","order","locator","text"],"title":"RawCaptureSegment","type":"object"},"schemaFile":"raw-capture-segment.schema.json","schemaSha256":"f7008b0934bfb9137a22fe03a46dc0dc8ee2c65ac5caf32f0c841b5bd9a27238","strStripWhitespace":true},{"extraPolicy":"forbid","name":"ReportStructuringFailureV2","schema":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"}},"required":["code","message"],"title":"ReportStructuringFailureV2","type":"object"},"schemaFile":"report-structuring-failure-v2.schema.json","schemaSha256":"92cac739dae953c9aaf8657cbbfb0097bee46f997f279b772cfdec658934002e","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RootModel","schema":{"description":"!!! abstract \"Usage Documentation\"\n [`RootModel` and Custom Root Types](../concepts/models.md#rootmodel-and-custom-root-types)\n\nA Pydantic `BaseModel` for the root object of the model.\n\nAttributes:\n root: The root object of the model.\n __pydantic_root_model__: Whether the model is a RootModel.\n __pydantic_private__: Private fields in the model.\n __pydantic_extra__: Extra fields in the model.","title":"RootModel"},"schemaFile":"root-model.schema.json","schemaSha256":"f1afb141527df422bac29cd66d75eb8e74e68da4a03457b76f693c4050ef185f","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeArtifactDescriptorV2","schema":{"additionalProperties":false,"properties":{"artifactFileName":{"minLength":1,"title":"Artifactfilename","type":"string"},"artifactUrl":{"minLength":1,"title":"Artifacturl","type":"string"},"bytes":{"maximum":536870912,"minimum":1,"title":"Bytes","type":"integer"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["artifactUrl","artifactFileName","bytes","sha256"],"title":"RuntimeArtifactDescriptorV2","type":"object"},"schemaFile":"runtime-artifact-descriptor-v2.schema.json","schemaSha256":"cec19dee9c6116aca093d9a82d6725a5a02602c6762fe0549436be5c07b097f6","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeInstallationV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"RuntimeInstallationStatus":{"enum":["queued","running","completed","failed","cancelled","manual_action_required"],"title":"RuntimeInstallationStatus","type":"string"}},"additionalProperties":false,"properties":{"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"installationId":{"title":"Installationid","type":"string"},"progress":{"maximum":1,"minimum":0,"title":"Progress","type":"number"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"},"status":{"$ref":"#/$defs/RuntimeInstallationStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["installationId","requirementId","status","progress","createdAt","updatedAt"],"title":"RuntimeInstallationV2","type":"object"},"schemaFile":"runtime-installation-v2.schema.json","schemaSha256":"be49656762d250a3aa74c59c9703be6d10985e531122083dcc09726b512985ff","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeInstallationsV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"RuntimeInstallationStatus":{"enum":["queued","running","completed","failed","cancelled","manual_action_required"],"title":"RuntimeInstallationStatus","type":"string"},"RuntimeInstallationV2":{"additionalProperties":false,"properties":{"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"installationId":{"title":"Installationid","type":"string"},"progress":{"maximum":1,"minimum":0,"title":"Progress","type":"number"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"},"status":{"$ref":"#/$defs/RuntimeInstallationStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["installationId","requirementId","status","progress","createdAt","updatedAt"],"title":"RuntimeInstallationV2","type":"object"}},"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/$defs/RuntimeInstallationV2"},"title":"Items","type":"array"}},"required":["items"],"title":"RuntimeInstallationsV2","type":"object"},"schemaFile":"runtime-installations-v2.schema.json","schemaSha256":"e95b4e38befdc68b30bc8a201bd935eef4cab0f00bffc6b8200676c75ffb31ad","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeModelInstallationV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"RuntimeInstallationStatus":{"enum":["queued","running","completed","failed","cancelled","manual_action_required"],"title":"RuntimeInstallationStatus","type":"string"}},"additionalProperties":false,"properties":{"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"installationId":{"title":"Installationid","type":"string"},"optionId":{"minLength":1,"title":"Optionid","type":"string"},"progress":{"maximum":1,"minimum":0,"title":"Progress","type":"number"},"status":{"$ref":"#/$defs/RuntimeInstallationStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["installationId","optionId","status","progress","createdAt","updatedAt"],"title":"RuntimeModelInstallationV2","type":"object"},"schemaFile":"runtime-model-installation-v2.schema.json","schemaSha256":"8191bd1d4c45cdcdf3e2cac3d53fbba2b0a4d496500035ec93a77e53ecaa8355","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeModelInstallationsV2","schema":{"$defs":{"CaptureFailureV2":{"additionalProperties":false,"properties":{"code":{"pattern":"^[a-z][a-z0-9_]{1,63}$","title":"Code","type":"string"},"message":{"maxLength":500,"minLength":1,"title":"Message","type":"string"},"retryable":{"default":false,"title":"Retryable","type":"boolean"},"stage":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Stage"}},"required":["code","message"],"title":"CaptureFailureV2","type":"object"},"RuntimeInstallationStatus":{"enum":["queued","running","completed","failed","cancelled","manual_action_required"],"title":"RuntimeInstallationStatus","type":"string"},"RuntimeModelInstallationV2":{"additionalProperties":false,"properties":{"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"error":{"anyOf":[{"$ref":"#/$defs/CaptureFailureV2"},{"type":"null"}],"default":null},"installationId":{"title":"Installationid","type":"string"},"optionId":{"minLength":1,"title":"Optionid","type":"string"},"progress":{"maximum":1,"minimum":0,"title":"Progress","type":"number"},"status":{"$ref":"#/$defs/RuntimeInstallationStatus"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["installationId","optionId","status","progress","createdAt","updatedAt"],"title":"RuntimeModelInstallationV2","type":"object"}},"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/$defs/RuntimeModelInstallationV2"},"title":"Items","type":"array"}},"required":["items"],"title":"RuntimeModelInstallationsV2","type":"object"},"schemaFile":"runtime-model-installations-v2.schema.json","schemaSha256":"346934dec1cc95f9c0bd617ad67ed7449978091f4970fe079b29df7f473a170c","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeModelOptionV2","schema":{"$defs":{"RuntimeModelOptionStatus":{"enum":["not-installed","installed","active"],"title":"RuntimeModelOptionStatus","type":"string"}},"additionalProperties":false,"properties":{"displayName":{"minLength":1,"title":"Displayname","type":"string"},"expectedBytes":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Expectedbytes"},"expectedDigest":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Expecteddigest"},"modelReference":{"minLength":1,"title":"Modelreference","type":"string"},"optionId":{"minLength":1,"title":"Optionid","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"$ref":"#/$defs/RuntimeModelOptionStatus"}},"required":["optionId","displayName","modelReference","profileId","profileSpecSha256","status"],"title":"RuntimeModelOptionV2","type":"object"},"schemaFile":"runtime-model-option-v2.schema.json","schemaSha256":"7d1f99a841983d838158d8370eaa0e17d155f75b72d3cc8f888bcac6eaa15d2b","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeModelOptionsV2","schema":{"$defs":{"RuntimeModelOptionStatus":{"enum":["not-installed","installed","active"],"title":"RuntimeModelOptionStatus","type":"string"},"RuntimeModelOptionV2":{"additionalProperties":false,"properties":{"displayName":{"minLength":1,"title":"Displayname","type":"string"},"expectedBytes":{"anyOf":[{"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"title":"Expectedbytes"},"expectedDigest":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Expecteddigest"},"modelReference":{"minLength":1,"title":"Modelreference","type":"string"},"optionId":{"minLength":1,"title":"Optionid","type":"string"},"profileId":{"minLength":1,"title":"Profileid","type":"string"},"profileSpecSha256":{"pattern":"^[0-9a-f]{64}$","title":"Profilespecsha256","type":"string"},"status":{"$ref":"#/$defs/RuntimeModelOptionStatus"}},"required":["optionId","displayName","modelReference","profileId","profileSpecSha256","status"],"title":"RuntimeModelOptionV2","type":"object"}},"additionalProperties":false,"properties":{"catalogSha256":{"pattern":"^[0-9a-f]{64}$","title":"Catalogsha256","type":"string"},"items":{"items":{"$ref":"#/$defs/RuntimeModelOptionV2"},"title":"Items","type":"array"}},"required":["catalogSha256","items"],"title":"RuntimeModelOptionsV2","type":"object"},"schemaFile":"runtime-model-options-v2.schema.json","schemaSha256":"2a7d7d82cb0bc3a7a22c72e45c9ad48440613f0ede568d255fca4fcd7693f1be","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeReady","schema":{"$defs":{"OcrAdapterClass":{"enum":["dedicated","integrated","unknown"],"title":"OcrAdapterClass","type":"string"},"OcrComputeMode":{"enum":["gpu-dml","cpu-fallback"],"title":"OcrComputeMode","type":"string"},"OcrComputeNoticeCode":{"enum":["ocr_cpu_fallback"],"title":"OcrComputeNoticeCode","type":"string"},"OcrComputePreflightV2":{"additionalProperties":false,"description":"Runtime-owned pre-OCR compute selection and user-notice contract.","properties":{"adapterClass":{"$ref":"#/$defs/OcrAdapterClass"},"apiVersion":{"const":"2.0","default":"2.0","title":"Apiversion","type":"string"},"contractSetVersion":{"const":"2","default":"2","title":"Contractsetversion","type":"string"},"contractSha256":{"pattern":"^[0-9a-f]{64}$","title":"Contractsha256","type":"string"},"mode":{"$ref":"#/$defs/OcrComputeMode"},"noticeCode":{"anyOf":[{"$ref":"#/$defs/OcrComputeNoticeCode"},{"type":"null"}],"default":null},"reasonCode":{"anyOf":[{"$ref":"#/$defs/OcrComputeReasonCode"},{"type":"null"}],"default":null},"runtimeVersion":{"maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Runtimeversion","type":"string"},"schemaVersion":{"const":"1","default":"1","title":"Schemaversion","type":"string"},"service":{"const":"capture-runtime","default":"capture-runtime","title":"Service","type":"string"},"userNoticeRequired":{"title":"Usernoticerequired","type":"boolean"},"workerSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Workersha256"}},"required":["contractSha256","mode","adapterClass","userNoticeRequired","runtimeVersion"],"title":"OcrComputePreflightV2","type":"object"},"OcrComputeReasonCode":{"enum":["no_compatible_gpu","dml_provider_unavailable"],"title":"OcrComputeReasonCode","type":"string"}},"additionalProperties":false,"description":"General v2 readiness payload shared by runtime clients.","properties":{"apiVersion":{"const":"2.0","default":"2.0","title":"Apiversion","type":"string"},"capabilities":{"additionalProperties":true,"title":"Capabilities","type":"object"},"captureDocumentSchemaSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Capturedocumentschemasha256"},"captureDocumentSchemaVersion":{"const":"2","default":"2","title":"Capturedocumentschemaversion","type":"string"},"contractSetVersion":{"const":"2","default":"2","title":"Contractsetversion","type":"string"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Message"},"ocrCompute":{"anyOf":[{"$ref":"#/$defs/OcrComputePreflightV2"},{"type":"null"}],"default":null},"ready":{"title":"Ready","type":"boolean"},"runtimeVersion":{"maxLength":32,"pattern":"^[0-9]+\\.[0-9]+\\.[0-9]+$","title":"Runtimeversion","type":"string"},"schemaSha256":{"anyOf":[{"pattern":"^[0-9a-f]{64}$","type":"string"},{"type":"null"}],"default":null,"title":"Schemasha256"},"service":{"const":"capture-runtime","default":"capture-runtime","title":"Service","type":"string"}},"required":["ready","runtimeVersion"],"title":"RuntimeReady","type":"object"},"schemaFile":"runtime-ready.schema.json","schemaSha256":"9f869811c3678ce7fe57bca186ce8ee8d8ec774c121914d7b6c2214b068ece2c","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeRequirementV2","schema":{"$defs":{"RuntimeArtifactDescriptorV2":{"additionalProperties":false,"properties":{"artifactFileName":{"minLength":1,"title":"Artifactfilename","type":"string"},"artifactUrl":{"minLength":1,"title":"Artifacturl","type":"string"},"bytes":{"maximum":536870912,"minimum":1,"title":"Bytes","type":"integer"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["artifactUrl","artifactFileName","bytes","sha256"],"title":"RuntimeArtifactDescriptorV2","type":"object"},"RuntimeRequirementStatus":{"enum":["ready","missing","installable","manual_action_required","unavailable"],"title":"RuntimeRequirementStatus","type":"string"}},"additionalProperties":false,"properties":{"artifact":{"anyOf":[{"$ref":"#/$defs/RuntimeArtifactDescriptorV2"},{"type":"null"}],"default":null},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Detail"},"displayName":{"minLength":1,"title":"Displayname","type":"string"},"installStrategy":{"minLength":1,"title":"Installstrategy","type":"string"},"kind":{"minLength":1,"title":"Kind","type":"string"},"optional":{"default":false,"title":"Optional","type":"boolean"},"requiredFor":{"items":{"type":"string"},"title":"Requiredfor","type":"array"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"},"status":{"$ref":"#/$defs/RuntimeRequirementStatus"}},"required":["requirementId","kind","displayName","status","requiredFor","installStrategy"],"title":"RuntimeRequirementV2","type":"object"},"schemaFile":"runtime-requirement-v2.schema.json","schemaSha256":"ea10c54d815878fa440ad68e821c727c44e72b0cc24a7b1e822ecb1bdd100206","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeRequirementsV2","schema":{"$defs":{"RuntimeArtifactDescriptorV2":{"additionalProperties":false,"properties":{"artifactFileName":{"minLength":1,"title":"Artifactfilename","type":"string"},"artifactUrl":{"minLength":1,"title":"Artifacturl","type":"string"},"bytes":{"maximum":536870912,"minimum":1,"title":"Bytes","type":"integer"},"sha256":{"pattern":"^[0-9a-f]{64}$","title":"Sha256","type":"string"}},"required":["artifactUrl","artifactFileName","bytes","sha256"],"title":"RuntimeArtifactDescriptorV2","type":"object"},"RuntimeRequirementStatus":{"enum":["ready","missing","installable","manual_action_required","unavailable"],"title":"RuntimeRequirementStatus","type":"string"},"RuntimeRequirementV2":{"additionalProperties":false,"properties":{"artifact":{"anyOf":[{"$ref":"#/$defs/RuntimeArtifactDescriptorV2"},{"type":"null"}],"default":null},"detail":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Detail"},"displayName":{"minLength":1,"title":"Displayname","type":"string"},"installStrategy":{"minLength":1,"title":"Installstrategy","type":"string"},"kind":{"minLength":1,"title":"Kind","type":"string"},"optional":{"default":false,"title":"Optional","type":"boolean"},"requiredFor":{"items":{"type":"string"},"title":"Requiredfor","type":"array"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"},"status":{"$ref":"#/$defs/RuntimeRequirementStatus"}},"required":["requirementId","kind","displayName","status","requiredFor","installStrategy"],"title":"RuntimeRequirementV2","type":"object"}},"additionalProperties":false,"properties":{"items":{"items":{"$ref":"#/$defs/RuntimeRequirementV2"},"title":"Items","type":"array"}},"required":["items"],"title":"RuntimeRequirementsV2","type":"object"},"schemaFile":"runtime-requirements-v2.schema.json","schemaSha256":"cc7664eb97ab6802fa6abc63370ad6743cfabe7c53997b9135adb3eebc080cec","strStripWhitespace":true},{"extraPolicy":"forbid","name":"RuntimeStreamingCapabilitiesV2","schema":{"$defs":{"CaptureSourceKind":{"enum":["pdf","image","audio"],"title":"CaptureSourceKind","type":"string"}},"additionalProperties":false,"properties":{"captureKinds":{"items":{"$ref":"#/$defs/CaptureSourceKind"},"minItems":1,"title":"Capturekinds","type":"array"},"checkpointIntervalMs":{"exclusiveMinimum":0,"title":"Checkpointintervalms","type":"integer"},"heartbeatIntervalMs":{"exclusiveMinimum":0,"title":"Heartbeatintervalms","type":"integer"},"maxChunkBytes":{"exclusiveMinimum":0,"maximum":4194304,"title":"Maxchunkbytes","type":"integer"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"stallTimeoutMs":{"exclusiveMinimum":0,"title":"Stalltimeoutms","type":"integer"},"supportsProgressiveAudio":{"default":true,"title":"Supportsprogressiveaudio","type":"boolean"}},"required":["maxChunkBytes","checkpointIntervalMs","heartbeatIntervalMs","stallTimeoutMs"],"title":"RuntimeStreamingCapabilitiesV2","type":"object"},"schemaFile":"runtime-streaming-capabilities-v2.schema.json","schemaSha256":"3416a5f948f3d3f7514c764bc18d11724b431d07971e099f46622a4c94a7eb13","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StartCaptureV2","schema":{"$defs":{"StructuringMode":{"enum":["runtime","host"],"title":"StructuringMode","type":"string"}},"additionalProperties":false,"properties":{"clientRequestId":{"minLength":1,"title":"Clientrequestid","type":"string"},"identifySpeakers":{"default":false,"title":"Identifyspeakers","type":"boolean"},"ingestionId":{"minLength":1,"title":"Ingestionid","type":"string"},"pdfPageNumbers":{"anyOf":[{"items":{"type":"integer"},"maxItems":500,"minItems":1,"type":"array"},{"type":"null"}],"default":null,"title":"Pdfpagenumbers"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"startPolicy":{"const":"eager","default":"eager","title":"Startpolicy","type":"string"},"structuringMode":{"$ref":"#/$defs/StructuringMode"},"targetLanguage":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Targetlanguage"}},"required":["clientRequestId","ingestionId","structuringMode"],"title":"StartCaptureV2","type":"object"},"schemaFile":"start-capture-v2.schema.json","schemaSha256":"289cb114fc73bcd9f905cb999622e32ace8ace6e01c7c853ae5f0cab580a6d2c","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StartRuntimeInstallationV2","schema":{"additionalProperties":false,"properties":{"consent":{"const":true,"title":"Consent","type":"boolean"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","speaker-diarization","vertical-japanese-reader","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"}},"required":["requirementId","consent"],"title":"StartRuntimeInstallationV2","type":"object"},"schemaFile":"start-runtime-installation-v2.schema.json","schemaSha256":"6e76c311e1416ddd4d90ce94ba457eb89a1ecb023f7fe37d6bb973e1e5f45ff3","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StartRuntimeModelInstallationV2","schema":{"additionalProperties":false,"properties":{"consent":{"const":true,"title":"Consent","type":"boolean"},"optionId":{"minLength":1,"title":"Optionid","type":"string"}},"required":["optionId","consent"],"title":"StartRuntimeModelInstallationV2","type":"object"},"schemaFile":"start-runtime-model-installation-v2.schema.json","schemaSha256":"5f101e25f731e80138464c03d52e4682f0b0c11b24c2e7d50dbdf56991de3c60","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StructuringBatchV2","schema":{"$defs":{"StructuringBatchStatus":{"description":"Durable lifecycle states for one provider-ready semantic batch.","enum":["ready","accepted","failed"],"title":"StructuringBatchStatus","type":"string"}},"additionalProperties":false,"description":"Provider-ready prompt/schema projection for one ordered batch.","properties":{"batchCount":{"minimum":1,"title":"Batchcount","type":"integer"},"batchDigest":{"pattern":"^[0-9a-f]{64}$","title":"Batchdigest","type":"string"},"batchIndex":{"minimum":0,"title":"Batchindex","type":"integer"},"captureId":{"minLength":1,"title":"Captureid","type":"string"},"numCtx":{"exclusiveMinimum":0,"title":"Numctx","type":"integer"},"numPredict":{"exclusiveMinimum":0,"title":"Numpredict","type":"integer"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"providerPrompt":{"additionalProperties":true,"title":"Providerprompt","type":"object"},"providerSchema":{"additionalProperties":true,"title":"Providerschema","type":"object"},"sessionId":{"minLength":1,"title":"Sessionid","type":"string"},"sourceSegmentIds":{"items":{"minLength":1,"type":"string"},"minItems":1,"title":"Sourcesegmentids","type":"array"},"status":{"$ref":"#/$defs/StructuringBatchStatus"}},"required":["sessionId","captureId","batchIndex","batchCount","sourceSegmentIds","providerPrompt","providerSchema","numCtx","numPredict","batchDigest","status"],"title":"StructuringBatchV2","type":"object"},"schemaFile":"structuring-batch-v2.schema.json","schemaSha256":"7071a40775f842323ae1273a294c98159a3ddce9380e52d4b418d81bc087de01","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StructuringProviderCapabilityV2","schema":{"$defs":{"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"}},"additionalProperties":false,"description":"Provider identity and schema dialect negotiated for one session.","properties":{"capability":{"minLength":1,"title":"Capability","type":"string"},"provider":{"$ref":"#/$defs/CaptureEngine"},"schemaDialect":{"minLength":1,"title":"Schemadialect","type":"string"}},"required":["provider","capability","schemaDialect"],"title":"StructuringProviderCapabilityV2","type":"object"},"schemaFile":"structuring-provider-capability-v2.schema.json","schemaSha256":"4978f87f42e6d3fbe95d34fea33b39f8502ada292105eda13a126097e189f473","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StructuringSemanticBlockV2","schema":{"additionalProperties":false,"description":"Minimal semantic block accepted from a pull-session provider.","properties":{"sourceSegmentId":{"minLength":1,"title":"Sourcesegmentid","type":"string"},"targetText":{"anyOf":[{"maxLength":2000000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Targettext"},"type":{"enum":["heading","paragraph","list-item","table","quote","transcript"],"title":"Type","type":"string"}},"required":["sourceSegmentId","type"],"title":"StructuringSemanticBlockV2","type":"object"},"schemaFile":"structuring-semantic-block-v2.schema.json","schemaSha256":"843d5cebc7e79b41bf01971443de91f8266e20dfc611f0fd09c671d9245141d0","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StructuringSessionV2","schema":{"$defs":{"CaptureEngine":{"additionalProperties":false,"properties":{"device":{"anyOf":[{"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Device"},"digest":{"pattern":"^sha256:[0-9a-f]{64}$","title":"Digest","type":"string"},"engine":{"minLength":1,"title":"Engine","type":"string"},"model":{"minLength":1,"title":"Model","type":"string"}},"required":["engine","model","digest"],"title":"CaptureEngine","type":"object"},"StructuringProviderCapabilityV2":{"additionalProperties":false,"description":"Provider identity and schema dialect negotiated for one session.","properties":{"capability":{"minLength":1,"title":"Capability","type":"string"},"provider":{"$ref":"#/$defs/CaptureEngine"},"schemaDialect":{"minLength":1,"title":"Schemadialect","type":"string"}},"required":["provider","capability","schemaDialect"],"title":"StructuringProviderCapabilityV2","type":"object"},"StructuringSessionStatus":{"description":"Durable lifecycle states for a pull-based structuring session.","enum":["open","completed","failed","cancelled"],"title":"StructuringSessionStatus","type":"string"}},"additionalProperties":false,"description":"Current durable pull-session snapshot.","properties":{"batchCount":{"minimum":1,"title":"Batchcount","type":"integer"},"captureId":{"minLength":1,"title":"Captureid","type":"string"},"completedAt":{"anyOf":[{"format":"date-time","type":"string"},{"type":"null"}],"default":null,"title":"Completedat"},"contractSetSha256":{"pattern":"^[0-9a-f]{64}$","title":"Contractsetsha256","type":"string"},"createdAt":{"format":"date-time","title":"Createdat","type":"string"},"nextBatchIndex":{"minimum":0,"title":"Nextbatchindex","type":"integer"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"},"providerCapability":{"$ref":"#/$defs/StructuringProviderCapabilityV2"},"rawSourceSha256":{"pattern":"^[0-9a-f]{64}$","title":"Rawsourcesha256","type":"string"},"schemaDialect":{"minLength":1,"title":"Schemadialect","type":"string"},"sessionDigest":{"pattern":"^[0-9a-f]{64}$","title":"Sessiondigest","type":"string"},"sessionId":{"minLength":1,"title":"Sessionid","type":"string"},"status":{"$ref":"#/$defs/StructuringSessionStatus"},"targetLanguage":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Targetlanguage"},"updatedAt":{"format":"date-time","title":"Updatedat","type":"string"}},"required":["sessionId","captureId","rawSourceSha256","contractSetSha256","providerCapability","schemaDialect","batchCount","nextBatchIndex","sessionDigest","status","createdAt","updatedAt"],"title":"StructuringSessionV2","type":"object"},"schemaFile":"structuring-session-v2.schema.json","schemaSha256":"aefcba427cc803c571260d3ac5ad4b778f1b65e9a0239f6ee6d27da933072191","strStripWhitespace":true},{"extraPolicy":"forbid","name":"SubmitStructuringBatchV2","schema":{"$defs":{"StructuringSemanticBlockV2":{"additionalProperties":false,"description":"Minimal semantic block accepted from a pull-session provider.","properties":{"sourceSegmentId":{"minLength":1,"title":"Sourcesegmentid","type":"string"},"targetText":{"anyOf":[{"maxLength":2000000,"minLength":1,"type":"string"},{"type":"null"}],"default":null,"title":"Targettext"},"type":{"enum":["heading","paragraph","list-item","table","quote","transcript"],"title":"Type","type":"string"}},"required":["sourceSegmentId","type"],"title":"StructuringSemanticBlockV2","type":"object"}},"additionalProperties":false,"description":"Strict minimal semantic batch submission body.","properties":{"batchDigest":{"pattern":"^[0-9a-f]{64}$","title":"Batchdigest","type":"string"},"blocks":{"items":{"$ref":"#/$defs/StructuringSemanticBlockV2"},"minItems":1,"title":"Blocks","type":"array"},"protocolVersion":{"const":"2","default":"2","title":"Protocolversion","type":"string"}},"required":["batchDigest","blocks"],"title":"SubmitStructuringBatchV2","type":"object"},"schemaFile":"submit-structuring-batch-v2.schema.json","schemaSha256":"a7a920c6256828cd38fec6c2dcaca75f424693e91f1596c5392f9c9a71d47b1c","strStripWhitespace":true},{"extraPolicy":"forbid","name":"TimeLocator","schema":{"additionalProperties":false,"properties":{"endMs":{"exclusiveMinimum":0,"title":"Endms","type":"integer"},"kind":{"const":"time","default":"time","title":"Kind","type":"string"},"startMs":{"minimum":0,"title":"Startms","type":"integer"}},"required":["startMs","endMs"],"title":"TimeLocator","type":"object"},"schemaFile":"time-locator.schema.json","schemaSha256":"c8f5a8a1f5536a0522b16c0f61fb61bc501ac8f2fddf309a8e850c62d8406084","strStripWhitespace":true}],"surfaces":[{"authentication":"bearer","basePath":"/v2","id":"v2","mediaType":"application/json","version":"2"}]}
@@ -0,0 +1 @@
1
+ fc8a994e5a2a822376821da277e949eb203df9223977da4db4cdc7ab29724523