capture-runtime-client 0.4.0__py3-none-any.whl

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 (48) hide show
  1. capture_runtime_client/__init__.py +41 -0
  2. capture_runtime_client/client.py +852 -0
  3. capture_runtime_client/codec.py +124 -0
  4. capture_runtime_client/contracts.py +272 -0
  5. capture_runtime_client/errors.py +170 -0
  6. capture_runtime_client/private/__init__.py +1 -0
  7. capture_runtime_client/private/assets/__init__.py +1 -0
  8. capture_runtime_client/private/assets/contract-set.json +1 -0
  9. capture_runtime_client/private/assets/contract-set.sha256 +1 -0
  10. capture_runtime_client/private/generated_models.py +627 -0
  11. capture_runtime_client/private/schemas/__init__.py +1 -0
  12. capture_runtime_client/private/schemas/capture-block.schema.json +151 -0
  13. capture_runtime_client/private/schemas/capture-document.schema.json +356 -0
  14. capture_runtime_client/private/schemas/capture-engine.schema.json +40 -0
  15. capture_runtime_client/private/schemas/capture-event-v2.schema.json +301 -0
  16. capture_runtime_client/private/schemas/capture-failure-v2.schema.json +40 -0
  17. capture_runtime_client/private/schemas/capture-operation-v2.schema.json +207 -0
  18. capture_runtime_client/private/schemas/capture-source.schema.json +34 -0
  19. capture_runtime_client/private/schemas/error-body-v2.schema.json +34 -0
  20. capture_runtime_client/private/schemas/error-envelope-v2.schema.json +49 -0
  21. capture_runtime_client/private/schemas/finalize-ingestion-v2.schema.json +27 -0
  22. capture_runtime_client/private/schemas/ingestion-v2.schema.json +127 -0
  23. capture_runtime_client/private/schemas/open-ingestion-v2.schema.json +79 -0
  24. capture_runtime_client/private/schemas/page-locator.schema.json +49 -0
  25. capture_runtime_client/private/schemas/partial-capture-v2.schema.json +267 -0
  26. capture_runtime_client/private/schemas/raw-capture-segment.schema.json +125 -0
  27. capture_runtime_client/private/schemas/raw-capture.schema.json +260 -0
  28. capture_runtime_client/private/schemas/report-structuring-failure-v2.schema.json +28 -0
  29. capture_runtime_client/private/schemas/runtime-artifact-descriptor-v2.schema.json +34 -0
  30. capture_runtime_client/private/schemas/runtime-installation-v2.schema.json +126 -0
  31. capture_runtime_client/private/schemas/runtime-installations-v2.schema.json +143 -0
  32. capture_runtime_client/private/schemas/runtime-model-installation-v2.schema.json +121 -0
  33. capture_runtime_client/private/schemas/runtime-model-installations-v2.schema.json +138 -0
  34. capture_runtime_client/private/schemas/runtime-model-option-v2.schema.json +80 -0
  35. capture_runtime_client/private/schemas/runtime-model-options-v2.schema.json +103 -0
  36. capture_runtime_client/private/schemas/runtime-ready.schema.json +88 -0
  37. capture_runtime_client/private/schemas/runtime-requirement-v2.schema.json +120 -0
  38. capture_runtime_client/private/schemas/runtime-requirements-v2.schema.json +137 -0
  39. capture_runtime_client/private/schemas/runtime-streaming-capabilities-v2.schema.json +64 -0
  40. capture_runtime_client/private/schemas/start-capture-v2.schema.json +59 -0
  41. capture_runtime_client/private/schemas/start-runtime-installation-v2.schema.json +26 -0
  42. capture_runtime_client/private/schemas/start-runtime-model-installation-v2.schema.json +21 -0
  43. capture_runtime_client/private/schemas/time-locator.schema.json +27 -0
  44. capture_runtime_client/py.typed +1 -0
  45. capture_runtime_client/transport.py +158 -0
  46. capture_runtime_client-0.4.0.dist-info/METADATA +18 -0
  47. capture_runtime_client-0.4.0.dist-info/RECORD +48 -0
  48. capture_runtime_client-0.4.0.dist-info/WHEEL +4 -0
@@ -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.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.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":"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":"validation","code":"structuring_invalid_output","detailsSchema":"ErrorDetailsV2","message":"Structuring provider returned invalid output.","retryable":false,"status":422},{"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"},"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"},"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"},"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"},"structuringEngine":{"$ref":"#/$defs/CaptureEngine"},"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":"850afd212d049c25da41d3867ba5477451a6a2c6c7e41f116fe60f26b6a35335","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"},"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":"cb1f525559c96291c9a8a13687ba571cba7efbd70590ce4c8e637dd59d8ad1ba","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":"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":"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"},"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"},"structuringEngine":{"$ref":"#/$defs/CaptureEngine"},"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"},"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"},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"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"},"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"},"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":"431d68934858bcf9259434335cab50c78f8dd7fb04144edddf95cfe05dc09903","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":"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":"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"},"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":"78cf50570876e589b4fd03eaeaa2e1f4e2d53aca9b44bba9a50463bb69ac5ed0","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"},"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"},"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"},"extractionEngine":{"$ref":"#/$defs/CaptureEngine"},"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"},"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":"ed4f1df3e28ecee4376508c215dd8f42be4c6638cbe4d097df931fd9e1fb023b","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"},"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":"ac68aa761970952d786cb33080f721a749b661b90dc88d6ce052d9c319641455","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":"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","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":"74987c508bef10b6d38a9bf1f2470e1f841ec19940edd5d6db1a3dfa8d0a80b9","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","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":"482c4c87846998853824677b4bff0fabdf9e3f7029b0a79147543330f3710b0f","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":{"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"},"ready":{"title":"Ready","type":"boolean"},"runtimeVersion":{"const":"0.4.0","default":"0.4.0","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"],"title":"RuntimeReady","type":"object"},"schemaFile":"runtime-ready.schema.json","schemaSha256":"7f16bf8a211ba71b47f8ac4b53c3910b101379a993e7b94ad088b4a0ee4305d8","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"},"requiredFor":{"items":{"type":"string"},"title":"Requiredfor","type":"array"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","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":"f19882aa6d8255a0b2120d2d5f7cb0b2e48badcde3eb418cf62843b1dc93a0fb","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"},"requiredFor":{"items":{"type":"string"},"title":"Requiredfor","type":"array"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","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":"610778919d8d25f2c3d29d6e791817ac2a064f194e2e03c0ba3fe404041622cd","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"},"ingestionId":{"minLength":1,"title":"Ingestionid","type":"string"},"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":"f8d35260c261cfd88bd89d63676243300cb5a02c38776cc06de813f2070174b8","strStripWhitespace":true},{"extraPolicy":"forbid","name":"StartRuntimeInstallationV2","schema":{"additionalProperties":false,"properties":{"consent":{"const":true,"title":"Consent","type":"boolean"},"requirementId":{"enum":["windowsml-ocr","whisper-primary","ollama-runtime","capture-ollama-model"],"title":"Requirementid","type":"string"}},"required":["requirementId","consent"],"title":"StartRuntimeInstallationV2","type":"object"},"schemaFile":"start-runtime-installation-v2.schema.json","schemaSha256":"6e3229ced3d6ea40ba658061e1a9aa1c70dd3b8a029fc3f4e983fcc6ced45449","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":"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
+ 5b93bcb557acca034386b6e9e47502efec91210331ecebabd9c470196d35fec3