{
	"openapi": "3.1.0",
	"info": {
		"title": "Bestie Check API",
		"version": "1.0.0",
		"license": {
			"name": "Proprietary — Bestie"
		},
		"description": "Public lifecycle API for Bestie Check: presets, packs, uploads, quotes, check runs, tasks, findings, artifacts, rulings, repairs, reruns, diffs, lineage, receipts, export and deletion. Schemas are generated from the Zod contracts in @repo/check-api-contracts."
	},
	"servers": [
		{
			"url": "/",
			"description": "Same origin as the deploying Marcou app. Set an explicit base URL in your client."
		}
	],
	"tags": [
		{
			"name": "check",
			"description": "Check lifecycle"
		}
	],
	"security": [
		{
			"bearerAuth": []
		}
	],
	"paths": {
		"/api/check/v1/capabilities": {
			"get": {
				"operationId": "getCapabilities",
				"summary": "Report the caller's production input and execution capabilities.",
				"tags": [
					"check"
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckCapabilitiesResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/presets": {
			"get": {
				"operationId": "listPresets",
				"summary": "List the check presets available to the caller's tenant.",
				"tags": [
					"check"
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ListPresetsResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/packs": {
			"get": {
				"operationId": "listPacks",
				"summary": "List principle packs admitted for the caller's tenant.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "query",
						"in": "query",
						"required": false,
						"description": "Free-text filter over pack ref, name and description.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ListPacksResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/uploads": {
			"post": {
				"operationId": "createUpload",
				"summary": "Create an upload handle for a file, URL or inline text.",
				"tags": [
					"check"
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateUploadRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateUploadResponse"
								}
							}
						}
					},
					"202": {
						"description": "Accepted. Ingestion is running; poll GET /uploads/{uploadHandleId}.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateUploadResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, unsupported_upload.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"413": {
						"description": "Error. Possible codes: oversized_upload.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/uploads/{uploadHandleId}": {
			"get": {
				"operationId": "getUpload",
				"summary": "Read back an upload handle, including ingestion progress.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "uploadHandleId",
						"in": "path",
						"required": true,
						"description": "Identifier of the uploadHandle resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetUploadResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, expired_upload_handle.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/uploads/{uploadHandleId}/confirm": {
			"post": {
				"operationId": "confirmUpload",
				"summary": "Confirm bytes have been PUT to a file-kind handle's uploadUrl; dispatches durable ingestion.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "uploadHandleId",
						"in": "path",
						"required": true,
						"description": "Identifier of the uploadHandle resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ConfirmUploadResponse"
								}
							}
						}
					},
					"202": {
						"description": "Accepted. Ingestion is running; poll GET /uploads/{uploadHandleId}.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ConfirmUploadResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, extraction_failed.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/uploads/{uploadHandleId}/graph": {
			"post": {
				"operationId": "extractArgumentGraph",
				"summary": "Extract ontology-constrained argument subgraphs from sealed LlamaParse pages.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "uploadHandleId",
						"in": "path",
						"required": true,
						"description": "Identifier of the uploadHandle resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/ExtractArgumentGraphRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ExtractArgumentGraphResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, expired_upload_handle, extraction_failed.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			},
			"get": {
				"operationId": "getArgumentGraph",
				"summary": "Read back the sealed argument graph for an ingested upload.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "uploadHandleId",
						"in": "path",
						"required": true,
						"description": "Identifier of the uploadHandle resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetArgumentGraphResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, expired_upload_handle.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/quotes": {
			"post": {
				"operationId": "createQuote",
				"summary": "Compile a plan and quote the credit ceiling for a check.",
				"tags": [
					"check"
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/QuoteCheckRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/QuoteCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks": {
			"post": {
				"operationId": "createCheck",
				"summary": "Reserve credits and start a check run.",
				"tags": [
					"check"
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateCheckRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error, extraction_failed, expired_upload_handle.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"402": {
						"description": "Error. Possible codes: budget_exceeded, insufficient_credits.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"409": {
						"description": "Error. Possible codes: conflict.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}": {
			"get": {
				"operationId": "getCheck",
				"summary": "Fetch the full projection of a check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/cancel": {
			"post": {
				"operationId": "cancelCheck",
				"summary": "Request cancellation of an in-flight check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CancelCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"409": {
						"description": "Error. Possible codes: receipt_pending, conflict.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/tasks": {
			"get": {
				"operationId": "getTasks",
				"summary": "List verifier task statuses for a check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetTasksResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/findings": {
			"get": {
				"operationId": "getFindings",
				"summary": "List findings and the not-engaged register for a check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetFindingsResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/live": {
			"get": {
				"operationId": "getCheckLive",
				"summary": "Fetch the check_live_v1 studio contract (argument subgraphs, tasks, findings).",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetCheckLiveResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/artifacts": {
			"get": {
				"operationId": "getArtifacts",
				"summary": "List artifacts produced by a check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetArtifactsResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/rulings": {
			"post": {
				"operationId": "createRuling",
				"summary": "Record an operator ruling against a finding.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateRulingRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateRulingResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/repairs": {
			"post": {
				"operationId": "createRepair",
				"summary": "Start a repair check from a revised document.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateRepairRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateRepairResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/reruns": {
			"post": {
				"operationId": "createRerun",
				"summary": "Re-run a check with pinned packs and a fresh credit reservation.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/CreateRerunRequest"
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CreateRerunResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"402": {
						"description": "Error. Possible codes: budget_exceeded, insufficient_credits.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/diff": {
			"get": {
				"operationId": "getDiff",
				"summary": "Diff a repair or rerun against its parent check.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetDiffResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/lineage": {
			"get": {
				"operationId": "getLineage",
				"summary": "Walk the parent/child lineage chain of a check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetLineageResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/receipt": {
			"get": {
				"operationId": "getReceipt",
				"summary": "Fetch the settlement receipt for a terminal check run.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/GetReceiptResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"409": {
						"description": "Error. Possible codes: receipt_pending.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/export": {
			"get": {
				"operationId": "exportCheck",
				"summary": "Export a check run as JSON, SARIF or a PDF summary.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					},
					{
						"name": "format",
						"in": "query",
						"required": false,
						"description": "Export format. Defaults to `json`.",
						"schema": {
							"type": "string",
							"enum": [
								"json",
								"sarif",
								"pdf_summary"
							],
							"default": "json"
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ExportCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		},
		"/api/check/v1/checks/{checkId}/delete": {
			"delete": {
				"operationId": "deleteCheck",
				"summary": "Erase a check run and its retained artifacts.",
				"tags": [
					"check"
				],
				"parameters": [
					{
						"name": "checkId",
						"in": "path",
						"required": true,
						"description": "Identifier of the check resource.",
						"schema": {
							"type": "string",
							"minLength": 1
						}
					}
				],
				"responses": {
					"200": {
						"description": "Success.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DeleteCheckResponse"
								}
							}
						}
					},
					"400": {
						"description": "Error. Possible codes: validation_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"401": {
						"description": "Error. Possible codes: unauthorized.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"403": {
						"description": "Error. Possible codes: cross_tenant_access.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"404": {
						"description": "Error. Possible codes: not_found.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"500": {
						"description": "Error. Possible codes: internal_error.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					},
					"501": {
						"description": "Error. Possible codes: capability_unavailable.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CheckApiError"
								}
							}
						}
					}
				}
			}
		}
	},
	"components": {
		"securitySchemes": {
			"bearerAuth": {
				"type": "http",
				"scheme": "bearer",
				"description": "WorkOS AuthKit session or tenant API token. Resolved by resolveCheckRouteAuth()."
			}
		},
		"schemas": {
			"CreateUploadRequest": {
				"oneOf": [
					{
						"type": "object",
						"properties": {
							"kind": {
								"type": "string",
								"const": "file"
							},
							"filename": {
								"type": "string",
								"minLength": 1
							},
							"mediaType": {
								"type": "string",
								"minLength": 1
							},
							"byteLength": {
								"type": "integer",
								"exclusiveMinimum": 0,
								"maximum": 9007199254740991
							}
						},
						"required": [
							"kind",
							"filename",
							"mediaType",
							"byteLength"
						]
					},
					{
						"type": "object",
						"properties": {
							"kind": {
								"type": "string",
								"const": "url"
							},
							"url": {
								"type": "string",
								"format": "uri"
							}
						},
						"required": [
							"kind",
							"url"
						]
					},
					{
						"type": "object",
						"properties": {
							"kind": {
								"type": "string",
								"const": "text"
							},
							"text": {
								"type": "string",
								"minLength": 1
							}
						},
						"required": [
							"kind",
							"text"
						]
					}
				]
			},
			"ConfirmUploadRequest": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"uploadHandleId"
				]
			},
			"QuoteCheckRequest": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"presetId": {
						"type": "string",
						"minLength": 1
					},
					"packRefs": {
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"parameters": {
						"default": {},
						"type": "object",
						"propertyNames": {
							"type": "string"
						},
						"additionalProperties": {}
					},
					"capabilityIds": {
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"graphRef": {
						"type": "string",
						"minLength": 1
					},
					"argumentCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"v02BatchSize": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 64
					},
					"v01BatchSize": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 64
					}
				}
			},
			"ExtractArgumentGraphRequest": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					}
				}
			},
			"CreateCheckRequest": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"presetId": {
						"type": "string",
						"minLength": 1
					},
					"packRefs": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"parameters": {
						"default": {},
						"type": "object",
						"propertyNames": {
							"type": "string"
						},
						"additionalProperties": {}
					},
					"quoteId": {
						"type": "string",
						"minLength": 1
					},
					"compiledPlanContentHash": {
						"type": "string",
						"minLength": 1
					},
					"budgetMaxCredits": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"creditReservationApproved": {
						"type": "boolean",
						"const": true
					},
					"lineage": {
						"type": "object",
						"properties": {
							"parentCheckId": {
								"type": "string",
								"minLength": 1
							},
							"pinnedPackRefs": {
								"default": [],
								"type": "array",
								"items": {
									"type": "string",
									"minLength": 1
								}
							}
						}
					}
				},
				"required": [
					"uploadHandleId",
					"packRefs",
					"quoteId",
					"compiledPlanContentHash",
					"budgetMaxCredits",
					"creditReservationApproved"
				]
			},
			"CreateRulingRequest": {
				"type": "object",
				"properties": {
					"findingId": {
						"type": "string",
						"minLength": 1
					},
					"outcome": {
						"type": "string",
						"enum": [
							"clear_with_evidence",
							"accept_concern",
							"not_applicable",
							"defer",
							"document_exception",
							"organisation_exception",
							"reject_principle"
						]
					},
					"scope": {
						"type": "string",
						"enum": [
							"passage",
							"finding",
							"document_version",
							"tenant",
							"principle_global"
						]
					},
					"evidenceLocators": {
						"default": [],
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"documentId": {
									"type": "string",
									"minLength": 1
								},
								"blockId": {
									"type": "string",
									"minLength": 1
								},
								"page": {
									"type": "integer",
									"minimum": 1,
									"maximum": 9007199254740991
								},
								"nodeId": {
									"type": "string",
									"minLength": 1
								}
							},
							"required": [
								"documentId",
								"blockId"
							]
						}
					},
					"rationale": {
						"type": "string",
						"maxLength": 2000
					}
				},
				"required": [
					"findingId",
					"outcome",
					"scope"
				]
			},
			"CreateRepairRequest": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"note": {
						"type": "string"
					}
				},
				"required": [
					"uploadHandleId"
				]
			},
			"CreateRerunRequest": {
				"type": "object",
				"properties": {
					"packRefs": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"pinnedPackRefs": {
						"default": [],
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"parameters": {
						"default": {},
						"type": "object",
						"propertyNames": {
							"type": "string"
						},
						"additionalProperties": {}
					},
					"quoteId": {
						"type": "string",
						"minLength": 1
					},
					"compiledPlanContentHash": {
						"type": "string",
						"minLength": 1
					},
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"budgetMaxCredits": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"creditReservationApproved": {
						"type": "boolean",
						"const": true
					}
				},
				"required": [
					"quoteId",
					"compiledPlanContentHash",
					"budgetMaxCredits",
					"creditReservationApproved"
				]
			},
			"DocumentLocator": {
				"type": "object",
				"properties": {
					"documentId": {
						"type": "string",
						"minLength": 1
					},
					"blockId": {
						"type": "string",
						"minLength": 1
					},
					"page": {
						"type": "integer",
						"minimum": 1,
						"maximum": 9007199254740991
					},
					"nodeId": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"documentId",
					"blockId"
				],
				"additionalProperties": false
			},
			"TaskProjection": {
				"type": "object",
				"properties": {
					"taskId": {
						"type": "string",
						"minLength": 1
					},
					"stepId": {
						"type": "string",
						"minLength": 1
					},
					"verifierId": {
						"type": "string",
						"minLength": 1
					},
					"verifierVersion": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"planned",
							"ready",
							"running",
							"artifact_pending",
							"receipt_pending",
							"completed",
							"rejected",
							"failed",
							"timed_out",
							"cancelled"
						]
					},
					"required": {
						"default": true,
						"type": "boolean"
					},
					"startedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"completedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"progressPercent": {
						"type": "number",
						"minimum": 0,
						"maximum": 100
					},
					"errorCode": {
						"type": "string",
						"minLength": 1
					},
					"errorMessage": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"taskId",
					"stepId",
					"verifierId",
					"verifierVersion",
					"status",
					"required"
				],
				"additionalProperties": false
			},
			"ScorecardProjection": {
				"type": "object",
				"properties": {
					"scorecardId": {
						"type": "string",
						"minLength": 1
					},
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"packRefs": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"principleCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"dispositionCounts": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"disposition": {
									"type": "string",
									"enum": [
										"look_here",
										"no_concern_surfaced",
										"not_engaged",
										"not_applicable",
										"undetermined",
										"excluded_by_conflict"
									]
								},
								"count": {
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								}
							},
							"required": [
								"disposition",
								"count"
							],
							"additionalProperties": false
						}
					},
					"lookHereCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"verifierSummaries": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"verifierId": {
									"type": "string",
									"minLength": 1
								},
								"verifierVersion": {
									"type": "string",
									"minLength": 1
								},
								"dispositionCounts": {
									"minItems": 1,
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"disposition": {
												"type": "string",
												"enum": [
													"look_here",
													"no_concern_surfaced",
													"not_engaged",
													"not_applicable",
													"undetermined",
													"excluded_by_conflict"
												]
											},
											"count": {
												"type": "integer",
												"minimum": 0,
												"maximum": 9007199254740991
											}
										},
										"required": [
											"disposition",
											"count"
										],
										"additionalProperties": false
									}
								},
								"lookHereCount": {
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								},
								"notEngagedCount": {
									"type": "integer",
									"minimum": 0,
									"maximum": 9007199254740991
								}
							},
							"required": [
								"verifierId",
								"verifierVersion",
								"dispositionCounts",
								"lookHereCount",
								"notEngagedCount"
							],
							"additionalProperties": false
						}
					},
					"notEngagedRegister": {
						"default": [],
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"verifierId": {
									"type": "string",
									"minLength": 1
								},
								"verifierVersion": {
									"type": "string",
									"minLength": 1
								},
								"criterionRef": {
									"type": "string",
									"minLength": 1
								},
								"reason": {
									"type": "string",
									"minLength": 1
								}
							},
							"required": [
								"verifierId",
								"verifierVersion",
								"criterionRef",
								"reason"
							],
							"additionalProperties": false
						}
					},
					"inferredParameters": {
						"default": [],
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"key": {
									"type": "string",
									"minLength": 1
								},
								"value": {
									"type": "string",
									"minLength": 1
								},
								"basis": {
									"type": "string",
									"enum": [
										"user",
										"host",
										"inferred"
									]
								},
								"correctable": {
									"default": true,
									"type": "boolean"
								}
							},
							"required": [
								"key",
								"value",
								"basis",
								"correctable"
							],
							"additionalProperties": false
						}
					},
					"generatedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					}
				},
				"required": [
					"scorecardId",
					"checkId",
					"packRefs",
					"principleCount",
					"dispositionCounts",
					"lookHereCount",
					"verifierSummaries",
					"notEngagedRegister",
					"inferredParameters",
					"generatedAt"
				],
				"additionalProperties": false
			},
			"FindingProjection": {
				"type": "object",
				"properties": {
					"findingId": {
						"type": "string",
						"minLength": 1
					},
					"verifierId": {
						"type": "string",
						"minLength": 1
					},
					"verifierVersion": {
						"type": "string",
						"minLength": 1
					},
					"disposition": {
						"type": "string",
						"enum": [
							"look_here",
							"no_concern_surfaced",
							"not_engaged",
							"not_applicable",
							"undetermined",
							"excluded_by_conflict"
						]
					},
					"severity": {
						"type": "string",
						"enum": [
							"blocking",
							"advisory",
							"informational"
						]
					},
					"statement": {
						"type": "string",
						"minLength": 1,
						"maxLength": 2000
					},
					"locators": {
						"minItems": 1,
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/DocumentLocator"
						}
					},
					"criterionRef": {
						"type": "string",
						"minLength": 1
					},
					"clearsIf": {
						"type": "string",
						"minLength": 1,
						"maxLength": 1000
					},
					"backingTraceRef": {
						"type": "string",
						"minLength": 1
					},
					"blocking": {
						"default": false,
						"type": "boolean"
					}
				},
				"required": [
					"findingId",
					"verifierId",
					"verifierVersion",
					"disposition",
					"severity",
					"statement",
					"locators",
					"criterionRef",
					"blocking"
				],
				"additionalProperties": false
			},
			"ReceiptProjection": {
				"type": "object",
				"properties": {
					"receiptId": {
						"type": "string",
						"minLength": 1
					},
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"pending",
							"available"
						]
					},
					"packRefs": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"principleCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"creditsSettled": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"completedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"receiptArtifactRef": {
						"type": "string",
						"minLength": 1
					},
					"compiledPlanId": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"receiptId",
					"checkId",
					"status",
					"packRefs",
					"principleCount"
				],
				"additionalProperties": false
			},
			"RulingProjection": {
				"type": "object",
				"properties": {
					"rulingId": {
						"type": "string",
						"minLength": 1
					},
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"findingId": {
						"type": "string",
						"minLength": 1
					},
					"outcome": {
						"type": "string",
						"enum": [
							"clear_with_evidence",
							"accept_concern",
							"not_applicable",
							"defer",
							"document_exception",
							"organisation_exception",
							"reject_principle"
						]
					},
					"scope": {
						"type": "string",
						"enum": [
							"passage",
							"finding",
							"document_version",
							"tenant",
							"principle_global"
						]
					},
					"evidenceLocators": {
						"default": [],
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/DocumentLocator"
						}
					},
					"rationale": {
						"type": "string",
						"maxLength": 2000
					},
					"ruledBy": {
						"type": "string",
						"minLength": 1
					},
					"ruledAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"supersedesRulingId": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"rulingId",
					"checkId",
					"findingId",
					"outcome",
					"scope",
					"evidenceLocators",
					"ruledBy",
					"ruledAt"
				],
				"additionalProperties": false
			},
			"CheckRunProjection": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"tenantId": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"created",
							"reserved",
							"running",
							"scorecard_pending",
							"settlement_pending",
							"receipt_pending",
							"completed",
							"failed",
							"incomplete",
							"configuration_error",
							"cancellation_pending",
							"cancelled"
						]
					},
					"outcome": {
						"type": "string",
						"enum": [
							"passed",
							"failed",
							"incomplete",
							"configuration_error",
							"cancelled"
						]
					},
					"presetId": {
						"type": "string",
						"minLength": 1
					},
					"packRefs": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"parsedDocumentRef": {
						"type": "string",
						"minLength": 1
					},
					"tasks": {
						"default": [],
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/TaskProjection"
						}
					},
					"scorecard": {
						"$ref": "#/components/schemas/ScorecardProjection"
					},
					"receipt": {
						"$ref": "#/components/schemas/ReceiptProjection"
					},
					"pricing": {
						"type": "object",
						"properties": {
							"quoteCreditsGuaranteed": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"quoteCreditsMaximum": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"creditsReserved": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"creditsSettled": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							}
						},
						"required": [
							"quoteCreditsGuaranteed",
							"quoteCreditsMaximum"
						],
						"additionalProperties": false
					},
					"lineage": {
						"type": "object",
						"properties": {
							"parentCheckId": {
								"type": "string",
								"minLength": 1
							},
							"documentLineageId": {
								"type": "string",
								"minLength": 1
							},
							"pinnedPackRefs": {
								"default": [],
								"type": "array",
								"items": {
									"type": "string",
									"minLength": 1
								}
							}
						},
						"required": [
							"documentLineageId",
							"pinnedPackRefs"
						],
						"additionalProperties": false
					},
					"inferredParameters": {
						"default": [],
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"key": {
									"type": "string",
									"minLength": 1
								},
								"value": {
									"type": "string",
									"minLength": 1
								},
								"basis": {
									"type": "string",
									"enum": [
										"user",
										"host",
										"inferred"
									]
								},
								"correctable": {
									"default": true,
									"type": "boolean"
								}
							},
							"required": [
								"key",
								"value",
								"basis",
								"correctable"
							],
							"additionalProperties": false
						}
					},
					"missingTaskIds": {
						"default": [],
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"incompleteTaskIds": {
						"default": [],
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"createdAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"completedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"errorCode": {
						"type": "string",
						"minLength": 1
					},
					"errorMessage": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"checkId",
					"tenantId",
					"status",
					"packRefs",
					"tasks",
					"pricing",
					"lineage",
					"inferredParameters",
					"missingTaskIds",
					"incompleteTaskIds",
					"createdAt",
					"updatedAt"
				],
				"additionalProperties": false
			},
			"PresetDefinition": {
				"type": "object",
				"properties": {
					"presetId": {
						"type": "string",
						"minLength": 1
					},
					"name": {
						"type": "string",
						"minLength": 1
					},
					"description": {
						"type": "string"
					},
					"defaultPackRefs": {
						"type": "array",
						"items": {
							"type": "string"
						}
					},
					"estimatedDurationMs": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"maxCredits": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					}
				},
				"required": [
					"presetId",
					"name",
					"description",
					"defaultPackRefs",
					"estimatedDurationMs",
					"maxCredits"
				],
				"additionalProperties": false
			},
			"PackSummary": {
				"type": "object",
				"properties": {
					"packRef": {
						"type": "string",
						"minLength": 1
					},
					"displayName": {
						"type": "string",
						"minLength": 1
					},
					"description": {
						"type": "string",
						"minLength": 1
					},
					"verifierIds": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"principleCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"admitted": {
						"type": "boolean"
					},
					"retentionClass": {
						"default": "standard",
						"type": "string",
						"enum": [
							"standard",
							"extended",
							"ephemeral"
						]
					}
				},
				"required": [
					"packRef",
					"displayName",
					"description",
					"verifierIds",
					"principleCount",
					"admitted",
					"retentionClass"
				],
				"additionalProperties": false
			},
			"UploadHandle": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"tenantId": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"pending",
							"ready",
							"expired",
							"consumed"
						]
					},
					"kind": {
						"type": "string",
						"enum": [
							"file",
							"url",
							"text"
						]
					},
					"expiresAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"maxBytes": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"acceptedMediaTypes": {
						"minItems": 1,
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"filename": {
						"type": "string",
						"minLength": 1
					},
					"mediaType": {
						"type": "string",
						"minLength": 1
					},
					"byteLength": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"artifactRef": {
						"type": "string",
						"minLength": 1
					},
					"parsedDocumentRef": {
						"type": "string",
						"minLength": 1
					},
					"sourceReceiptRef": {
						"type": "string",
						"minLength": 1
					},
					"sourceReceiptHash": {
						"type": "string",
						"pattern": "^[a-f0-9]{64}$"
					},
					"sourceArchiveRef": {
						"type": "string",
						"minLength": 1
					},
					"sourceArchiveHash": {
						"type": "string",
						"pattern": "^[a-f0-9]{64}$"
					},
					"uploadUrl": {
						"type": "string",
						"minLength": 1
					},
					"ingestion": {
						"$ref": "#/components/schemas/IngestionProjection"
					},
					"createdAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					}
				},
				"required": [
					"uploadHandleId",
					"tenantId",
					"status",
					"kind",
					"expiresAt",
					"maxBytes",
					"acceptedMediaTypes",
					"ingestion",
					"createdAt"
				],
				"additionalProperties": false
			},
			"IngestionProjection": {
				"type": "object",
				"properties": {
					"state": {
						"type": "string",
						"enum": [
							"awaiting_bytes",
							"queued",
							"fetching",
							"archived",
							"parsing",
							"ready",
							"failed"
						]
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"failureCode": {
						"type": "string",
						"minLength": 1
					},
					"parserPolicyRef": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"state",
					"updatedAt"
				],
				"additionalProperties": false
			},
			"TaskStatusItem": {
				"type": "object",
				"properties": {
					"taskId": {
						"type": "string"
					},
					"verifierRef": {
						"type": "string"
					},
					"verifierVersion": {
						"type": "string"
					},
					"status": {
						"type": "string",
						"enum": [
							"planned",
							"running",
							"completed",
							"failed",
							"cancelled"
						]
					},
					"attempt": {
						"type": "integer",
						"minimum": -9007199254740991,
						"maximum": 9007199254740991
					},
					"startedAt": {
						"type": "string"
					},
					"completedAt": {
						"type": "string"
					},
					"error": {
						"type": "string"
					}
				},
				"required": [
					"taskId",
					"verifierRef",
					"verifierVersion",
					"status",
					"attempt"
				],
				"additionalProperties": false
			},
			"ArtifactRef": {
				"type": "object",
				"properties": {
					"artifactId": {
						"type": "string"
					},
					"kind": {
						"type": "string"
					},
					"sha256": {
						"type": "string"
					},
					"url": {
						"type": "string"
					},
					"createdAt": {
						"type": "string"
					}
				},
				"required": [
					"artifactId",
					"kind",
					"sha256",
					"createdAt"
				],
				"additionalProperties": false
			},
			"CheckApiError": {
				"type": "object",
				"properties": {
					"error": {
						"type": "object",
						"properties": {
							"code": {
								"type": "string",
								"enum": [
									"unauthorized",
									"forbidden",
									"not_found",
									"validation_error",
									"expired_upload_handle",
									"oversized_upload",
									"unsupported_upload",
									"insufficient_credits",
									"budget_exceeded",
									"pack_denied",
									"pack_not_admitted",
									"extraction_failed",
									"applicability_undetermined",
									"cross_tenant_access",
									"check_not_terminal",
									"receipt_pending",
									"conflict",
									"rate_limited",
									"capability_unavailable",
									"internal_error"
								]
							},
							"message": {
								"type": "string",
								"minLength": 1
							},
							"details": {
								"type": "object",
								"propertyNames": {
									"type": "string"
								},
								"additionalProperties": {}
							}
						},
						"required": [
							"code",
							"message"
						],
						"additionalProperties": false
					}
				},
				"required": [
					"error"
				],
				"additionalProperties": false
			},
			"CheckCapabilitiesResponse": {
				"type": "object",
				"properties": {
					"profile": {
						"type": "object",
						"properties": {
							"verifierId": {
								"type": "string",
								"minLength": 1
							},
							"version": {
								"type": "string",
								"minLength": 1
							},
							"label": {
								"type": "string",
								"minLength": 1
							}
						},
						"required": [
							"verifierId",
							"version",
							"label"
						],
						"additionalProperties": false
					},
					"inputs": {
						"type": "object",
						"properties": {
							"text": {
								"type": "object",
								"properties": {
									"ready": {
										"type": "boolean"
									},
									"reason": {
										"type": "string",
										"minLength": 1
									}
								},
								"required": [
									"ready"
								],
								"additionalProperties": false
							},
							"file": {
								"type": "object",
								"properties": {
									"ready": {
										"type": "boolean"
									},
									"reason": {
										"type": "string",
										"minLength": 1
									}
								},
								"required": [
									"ready"
								],
								"additionalProperties": false
							},
							"url": {
								"type": "object",
								"properties": {
									"ready": {
										"type": "boolean"
									},
									"reason": {
										"type": "string",
										"minLength": 1
									}
								},
								"required": [
									"ready"
								],
								"additionalProperties": false
							}
						},
						"required": [
							"text",
							"file",
							"url"
						],
						"additionalProperties": false
					}
				},
				"required": [
					"profile",
					"inputs"
				],
				"additionalProperties": false
			},
			"ListPresetsResponse": {
				"type": "object",
				"properties": {
					"presets": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/PresetDefinition"
						}
					}
				},
				"required": [
					"presets"
				],
				"additionalProperties": false
			},
			"ListPacksResponse": {
				"type": "object",
				"properties": {
					"packs": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/PackSummary"
						}
					}
				},
				"required": [
					"packs"
				],
				"additionalProperties": false
			},
			"CreateUploadResponse": {
				"type": "object",
				"properties": {
					"upload": {
						"$ref": "#/components/schemas/UploadHandle"
					}
				},
				"required": [
					"upload"
				],
				"additionalProperties": false
			},
			"ConfirmUploadResponse": {
				"type": "object",
				"properties": {
					"upload": {
						"$ref": "#/components/schemas/UploadHandle"
					}
				},
				"required": [
					"upload"
				],
				"additionalProperties": false
			},
			"GetUploadResponse": {
				"type": "object",
				"properties": {
					"upload": {
						"$ref": "#/components/schemas/UploadHandle"
					}
				},
				"required": [
					"upload"
				],
				"additionalProperties": false
			},
			"QuoteCheckResponse": {
				"type": "object",
				"properties": {
					"compiledPlanId": {
						"type": "string",
						"minLength": 1
					},
					"compiledPlanContentHash": {
						"type": "string",
						"minLength": 1
					},
					"plannedStepCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"maxCreditsRequired": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"estimatedDurationMs": {
						"type": "integer",
						"exclusiveMinimum": 0,
						"maximum": 9007199254740991
					},
					"expiresAt": {
						"type": "string",
						"minLength": 1
					},
					"verifiers": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"capabilityId": {
									"type": "string"
								},
								"verifierRef": {
									"type": "string"
								},
								"authorityCeiling": {
									"type": "string"
								}
							},
							"required": [
								"capabilityId",
								"verifierRef",
								"authorityCeiling"
							],
							"additionalProperties": false
						}
					},
					"argumentCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"selectedCapabilityIds": {
						"type": "array",
						"items": {
							"type": "string",
							"minLength": 1
						}
					},
					"compiledPlanSteps": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"stepId": {
									"type": "string",
									"minLength": 1
								},
								"verifierRef": {
									"type": "string",
									"minLength": 1
								},
								"dependsOn": {
									"default": [],
									"type": "array",
									"items": {
										"type": "string"
									}
								}
							},
							"required": [
								"stepId",
								"verifierRef",
								"dependsOn"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"compiledPlanId",
					"compiledPlanContentHash",
					"plannedStepCount",
					"maxCreditsRequired",
					"estimatedDurationMs",
					"expiresAt",
					"verifiers"
				],
				"additionalProperties": false
			},
			"ExtractArgumentGraphResponse": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"graphRef": {
						"type": "string",
						"minLength": 1
					},
					"graphContentHash": {
						"type": "string",
						"pattern": "^[a-f0-9]{64}$"
					},
					"parsedDocumentRef": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"admitted",
							"soft_rejected"
						]
					},
					"density": {
						"type": "object",
						"properties": {
							"admitted": {
								"type": "boolean"
							},
							"completeArgumentCount": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"claimCount": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"rejectCode": {
								"type": "string",
								"const": "argument_density_insufficient"
							},
							"reason": {
								"type": "string",
								"minLength": 1
							}
						},
						"required": [
							"admitted",
							"completeArgumentCount",
							"claimCount"
						],
						"additionalProperties": false
					},
					"argumentCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"subgraphs": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"claimId": {
									"type": "string",
									"minLength": 1
								},
								"warrantId": {
									"type": "string",
									"minLength": 1
								},
								"evidenceId": {
									"type": "string",
									"minLength": 1
								},
								"rebuttalId": {
									"type": "string",
									"minLength": 1
								},
								"claim": {
									"type": "string",
									"minLength": 1
								},
								"warrant": {
									"type": "string",
									"minLength": 1
								},
								"evidence": {
									"type": "string",
									"minLength": 1
								},
								"rebuttal": {
									"type": "string",
									"minLength": 1
								},
								"argumentShape": {
									"type": "string",
									"enum": [
										"S0",
										"S1",
										"S2",
										"S3",
										"S4",
										"S5",
										"S6",
										"S7"
									]
								},
								"shapeCompleteness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"evidencePath": {
									"type": "string",
									"enum": [
										"none",
										"direct",
										"warranted",
										"both"
									]
								},
								"shapeShips": {
									"type": "string",
									"minLength": 1
								},
								"shapeCost": {
									"type": "string",
									"enum": [
										"free",
										"cheap",
										"medium",
										"high"
									]
								},
								"closureNote": {
									"type": "string",
									"minLength": 1
								},
								"completeness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"missingComponents": {
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									}
								},
								"groundings": {
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"nodeId": {
												"type": "string",
												"minLength": 1
											},
											"nodeType": {
												"type": "string",
												"minLength": 1
											},
											"blockId": {
												"type": "string",
												"minLength": 1
											},
											"page": {
												"type": "integer",
												"minimum": 1,
												"maximum": 9007199254740991
											},
											"excerpt": {
												"type": "string",
												"minLength": 1
											}
										},
										"required": [
											"nodeId",
											"nodeType",
											"blockId",
											"page",
											"excerpt"
										],
										"additionalProperties": false
									}
								}
							},
							"required": [
								"claimId",
								"claim",
								"groundings"
							],
							"additionalProperties": false
						}
					},
					"pageCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"nodeCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"edgeCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"argumentRows": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"rowId": {
									"type": "string",
									"minLength": 1
								},
								"claimNodeId": {
									"type": "string",
									"minLength": 1
								},
								"claim": {
									"type": "string",
									"minLength": 1
								},
								"argumentShape": {
									"type": "string",
									"enum": [
										"S0",
										"S1",
										"S2",
										"S3",
										"S4",
										"S5",
										"S6",
										"S7"
									]
								},
								"shapeCompleteness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"evidencePath": {
									"type": "string",
									"enum": [
										"none",
										"direct",
										"warranted",
										"both"
									]
								},
								"shapeShips": {
									"type": "string",
									"minLength": 1
								},
								"closureNote": {
									"type": "string",
									"minLength": 1
								},
								"completeness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"missingComponents": {
									"default": [],
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									}
								}
							},
							"required": [
								"rowId",
								"claimNodeId",
								"claim",
								"completeness",
								"missingComponents"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"uploadHandleId",
					"graphRef",
					"graphContentHash",
					"parsedDocumentRef",
					"status",
					"density",
					"argumentCount",
					"subgraphs",
					"pageCount",
					"nodeCount",
					"edgeCount"
				],
				"additionalProperties": false
			},
			"GetArgumentGraphResponse": {
				"type": "object",
				"properties": {
					"uploadHandleId": {
						"type": "string",
						"minLength": 1
					},
					"graphRef": {
						"type": "string",
						"minLength": 1
					},
					"graphContentHash": {
						"type": "string",
						"pattern": "^[a-f0-9]{64}$"
					},
					"parsedDocumentRef": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"enum": [
							"admitted",
							"soft_rejected"
						]
					},
					"density": {
						"type": "object",
						"properties": {
							"admitted": {
								"type": "boolean"
							},
							"completeArgumentCount": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"claimCount": {
								"type": "integer",
								"minimum": 0,
								"maximum": 9007199254740991
							},
							"rejectCode": {
								"type": "string",
								"const": "argument_density_insufficient"
							},
							"reason": {
								"type": "string",
								"minLength": 1
							}
						},
						"required": [
							"admitted",
							"completeArgumentCount",
							"claimCount"
						],
						"additionalProperties": false
					},
					"argumentCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"subgraphs": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"claimId": {
									"type": "string",
									"minLength": 1
								},
								"warrantId": {
									"type": "string",
									"minLength": 1
								},
								"evidenceId": {
									"type": "string",
									"minLength": 1
								},
								"rebuttalId": {
									"type": "string",
									"minLength": 1
								},
								"claim": {
									"type": "string",
									"minLength": 1
								},
								"warrant": {
									"type": "string",
									"minLength": 1
								},
								"evidence": {
									"type": "string",
									"minLength": 1
								},
								"rebuttal": {
									"type": "string",
									"minLength": 1
								},
								"argumentShape": {
									"type": "string",
									"enum": [
										"S0",
										"S1",
										"S2",
										"S3",
										"S4",
										"S5",
										"S6",
										"S7"
									]
								},
								"shapeCompleteness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"evidencePath": {
									"type": "string",
									"enum": [
										"none",
										"direct",
										"warranted",
										"both"
									]
								},
								"shapeShips": {
									"type": "string",
									"minLength": 1
								},
								"shapeCost": {
									"type": "string",
									"enum": [
										"free",
										"cheap",
										"medium",
										"high"
									]
								},
								"closureNote": {
									"type": "string",
									"minLength": 1
								},
								"completeness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"missingComponents": {
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									}
								},
								"groundings": {
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"nodeId": {
												"type": "string",
												"minLength": 1
											},
											"nodeType": {
												"type": "string",
												"minLength": 1
											},
											"blockId": {
												"type": "string",
												"minLength": 1
											},
											"page": {
												"type": "integer",
												"minimum": 1,
												"maximum": 9007199254740991
											},
											"excerpt": {
												"type": "string",
												"minLength": 1
											}
										},
										"required": [
											"nodeId",
											"nodeType",
											"blockId",
											"page",
											"excerpt"
										],
										"additionalProperties": false
									}
								}
							},
							"required": [
								"claimId",
								"claim",
								"groundings"
							],
							"additionalProperties": false
						}
					},
					"pageCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"nodeCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"edgeCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"argumentRows": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"rowId": {
									"type": "string",
									"minLength": 1
								},
								"claimNodeId": {
									"type": "string",
									"minLength": 1
								},
								"claim": {
									"type": "string",
									"minLength": 1
								},
								"argumentShape": {
									"type": "string",
									"enum": [
										"S0",
										"S1",
										"S2",
										"S3",
										"S4",
										"S5",
										"S6",
										"S7"
									]
								},
								"shapeCompleteness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"evidencePath": {
									"type": "string",
									"enum": [
										"none",
										"direct",
										"warranted",
										"both"
									]
								},
								"shapeShips": {
									"type": "string",
									"minLength": 1
								},
								"closureNote": {
									"type": "string",
									"minLength": 1
								},
								"completeness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"missingComponents": {
									"default": [],
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									}
								}
							},
							"required": [
								"rowId",
								"claimNodeId",
								"claim",
								"completeness",
								"missingComponents"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"uploadHandleId",
					"graphRef",
					"graphContentHash",
					"parsedDocumentRef",
					"status",
					"density",
					"argumentCount",
					"subgraphs",
					"pageCount",
					"nodeCount",
					"edgeCount"
				],
				"additionalProperties": false
			},
			"CheckLiveContractV1": {
				"type": "object",
				"properties": {
					"contractKey": {
						"type": "string",
						"const": "check_live_v1"
					},
					"runId": {
						"type": "string",
						"minLength": 1
					},
					"updatedAt": {
						"type": "string",
						"format": "date-time",
						"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
					},
					"status": {
						"type": "string",
						"enum": [
							"created",
							"reserved",
							"running",
							"scorecard_pending",
							"settlement_pending",
							"receipt_pending",
							"completed",
							"failed",
							"incomplete",
							"configuration_error",
							"cancellation_pending",
							"cancelled"
						]
					},
					"outcome": {
						"type": "string",
						"enum": [
							"passed",
							"failed",
							"incomplete",
							"configuration_error",
							"cancelled"
						]
					},
					"graphRef": {
						"type": "string",
						"minLength": 1
					},
					"graphContentHash": {
						"type": "string",
						"pattern": "^[a-f0-9]{64}$"
					},
					"argumentCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"subgraphs": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"claimId": {
									"type": "string",
									"minLength": 1
								},
								"warrantId": {
									"type": "string",
									"minLength": 1
								},
								"evidenceId": {
									"type": "string",
									"minLength": 1
								},
								"rebuttalId": {
									"type": "string",
									"minLength": 1
								},
								"claim": {
									"type": "string",
									"minLength": 1
								},
								"warrant": {
									"type": "string",
									"minLength": 1
								},
								"evidence": {
									"type": "string",
									"minLength": 1
								},
								"rebuttal": {
									"type": "string",
									"minLength": 1
								},
								"argumentShape": {
									"type": "string",
									"enum": [
										"S0",
										"S1",
										"S2",
										"S3",
										"S4",
										"S5",
										"S6",
										"S7"
									]
								},
								"shapeCompleteness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"evidencePath": {
									"type": "string",
									"enum": [
										"none",
										"direct",
										"warranted",
										"both"
									]
								},
								"shapeShips": {
									"type": "string",
									"minLength": 1
								},
								"shapeCost": {
									"type": "string",
									"enum": [
										"free",
										"cheap",
										"medium",
										"high"
									]
								},
								"closureNote": {
									"type": "string",
									"minLength": 1
								},
								"completeness": {
									"type": "string",
									"enum": [
										"complete",
										"incomplete"
									]
								},
								"missingComponents": {
									"type": "array",
									"items": {
										"type": "string",
										"minLength": 1
									}
								},
								"groundings": {
									"type": "array",
									"items": {
										"type": "object",
										"properties": {
											"nodeId": {
												"type": "string",
												"minLength": 1
											},
											"nodeType": {
												"type": "string",
												"minLength": 1
											},
											"blockId": {
												"type": "string",
												"minLength": 1
											},
											"page": {
												"type": "integer",
												"minimum": 1,
												"maximum": 9007199254740991
											},
											"excerpt": {
												"type": "string",
												"minLength": 1
											}
										},
										"required": [
											"nodeId",
											"nodeType",
											"blockId",
											"page",
											"excerpt"
										],
										"additionalProperties": false
									}
								}
							},
							"required": [
								"claimId",
								"claim",
								"groundings"
							],
							"additionalProperties": false
						}
					},
					"tasks": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/TaskProjection"
						}
					},
					"findings": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/FindingProjection"
						}
					},
					"notEngagedRegister": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"verifierId": {
									"type": "string",
									"minLength": 1
								},
								"verifierVersion": {
									"type": "string",
									"minLength": 1
								},
								"criterionRef": {
									"type": "string",
									"minLength": 1
								},
								"reason": {
									"type": "string",
									"minLength": 1
								}
							},
							"required": [
								"verifierId",
								"verifierVersion",
								"criterionRef",
								"reason"
							],
							"additionalProperties": false
						}
					},
					"compiledPlan": {
						"type": "object",
						"properties": {
							"compiledPlanId": {
								"type": "string",
								"minLength": 1
							},
							"compiledPlanContentHash": {
								"type": "string",
								"minLength": 1
							},
							"steps": {
								"type": "array",
								"items": {
									"type": "object",
									"properties": {
										"stepId": {
											"type": "string",
											"minLength": 1
										},
										"verifierRef": {
											"type": "string",
											"minLength": 1
										},
										"verifierVersion": {
											"type": "string",
											"minLength": 1
										},
										"dependsOn": {
											"default": [],
											"type": "array",
											"items": {
												"type": "string",
												"minLength": 1
											}
										}
									},
									"required": [
										"stepId",
										"verifierRef",
										"verifierVersion",
										"dependsOn"
									],
									"additionalProperties": false
								}
							}
						},
						"required": [
							"compiledPlanId",
							"compiledPlanContentHash",
							"steps"
						],
						"additionalProperties": false
					}
				},
				"required": [
					"contractKey",
					"runId",
					"updatedAt",
					"status",
					"argumentCount",
					"subgraphs",
					"tasks",
					"findings",
					"notEngagedRegister"
				],
				"additionalProperties": false
			},
			"GetCheckLiveResponse": {
				"type": "object",
				"properties": {
					"live": {
						"$ref": "#/components/schemas/CheckLiveContractV1"
					},
					"contractKey": {
						"type": "string",
						"const": "check_live_v1"
					}
				},
				"required": [
					"live",
					"contractKey"
				],
				"additionalProperties": false
			},
			"CreateCheckResponse": {
				"type": "object",
				"properties": {
					"check": {
						"$ref": "#/components/schemas/CheckRunProjection"
					}
				},
				"required": [
					"check"
				],
				"additionalProperties": false
			},
			"GetCheckResponse": {
				"type": "object",
				"properties": {
					"check": {
						"$ref": "#/components/schemas/CheckRunProjection"
					}
				},
				"required": [
					"check"
				],
				"additionalProperties": false
			},
			"CancelCheckResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"status": {
						"type": "string",
						"const": "cancelled"
					}
				},
				"required": [
					"checkId",
					"status"
				],
				"additionalProperties": false
			},
			"GetTasksResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string"
					},
					"tasks": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/TaskStatusItem"
						}
					}
				},
				"required": [
					"checkId",
					"tasks"
				],
				"additionalProperties": false
			},
			"GetFindingsResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string",
						"minLength": 1
					},
					"findings": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/FindingProjection"
						}
					},
					"notEngagedRegister": {
						"default": [],
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"verifierId": {
									"type": "string",
									"minLength": 1
								},
								"verifierVersion": {
									"type": "string",
									"minLength": 1
								},
								"criterionRef": {
									"type": "string",
									"minLength": 1
								},
								"reason": {
									"type": "string",
									"minLength": 1
								}
							},
							"required": [
								"verifierId",
								"verifierVersion",
								"criterionRef",
								"reason"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"checkId",
					"findings",
					"notEngagedRegister"
				],
				"additionalProperties": false
			},
			"GetArtifactsResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string"
					},
					"artifacts": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/ArtifactRef"
						}
					}
				},
				"required": [
					"checkId",
					"artifacts"
				],
				"additionalProperties": false
			},
			"CreateRulingResponse": {
				"type": "object",
				"properties": {
					"ruling": {
						"$ref": "#/components/schemas/RulingProjection"
					}
				},
				"required": [
					"ruling"
				],
				"additionalProperties": false
			},
			"CreateRepairResponse": {
				"type": "object",
				"properties": {
					"repairCheck": {
						"$ref": "#/components/schemas/CheckRunProjection"
					},
					"parentCheckId": {
						"type": "string"
					}
				},
				"required": [
					"repairCheck",
					"parentCheckId"
				],
				"additionalProperties": false
			},
			"CreateRerunResponse": {
				"type": "object",
				"properties": {
					"check": {
						"$ref": "#/components/schemas/CheckRunProjection"
					},
					"parentCheckId": {
						"type": "string",
						"minLength": 1
					},
					"comparisonRef": {
						"type": "string",
						"minLength": 1
					}
				},
				"required": [
					"check",
					"parentCheckId"
				],
				"additionalProperties": false
			},
			"GetDiffResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string"
					},
					"parentCheckId": {
						"type": "string"
					},
					"clearedCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"newFindingCount": {
						"type": "integer",
						"minimum": 0,
						"maximum": 9007199254740991
					},
					"diffs": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"findingId": {
									"type": "string"
								},
								"changeType": {
									"type": "string",
									"enum": [
										"cleared",
										"persisted",
										"new_finding"
									]
								},
								"summary": {
									"type": "string"
								}
							},
							"required": [
								"findingId",
								"changeType",
								"summary"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"checkId",
					"parentCheckId",
					"clearedCount",
					"newFindingCount",
					"diffs"
				],
				"additionalProperties": false
			},
			"GetLineageResponse": {
				"type": "object",
				"properties": {
					"rootCheckId": {
						"type": "string"
					},
					"lineage": {
						"type": "array",
						"items": {
							"type": "object",
							"properties": {
								"checkId": {
									"type": "string"
								},
								"parentCheckId": {
									"type": "string"
								},
								"createdAt": {
									"type": "string"
								},
								"status": {
									"type": "string"
								}
							},
							"required": [
								"checkId",
								"createdAt",
								"status"
							],
							"additionalProperties": false
						}
					}
				},
				"required": [
					"rootCheckId",
					"lineage"
				],
				"additionalProperties": false
			},
			"GetReceiptResponse": {
				"type": "object",
				"properties": {
					"receipt": {
						"$ref": "#/components/schemas/ReceiptProjection"
					}
				},
				"required": [
					"receipt"
				],
				"additionalProperties": false
			},
			"ExportCheckResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string"
					},
					"format": {
						"type": "string",
						"enum": [
							"json",
							"sarif",
							"pdf_summary"
						]
					},
					"content": {
						"type": "string"
					},
					"filename": {
						"type": "string"
					}
				},
				"required": [
					"checkId",
					"format",
					"content",
					"filename"
				],
				"additionalProperties": false
			},
			"DeleteCheckResponse": {
				"type": "object",
				"properties": {
					"checkId": {
						"type": "string"
					},
					"deleted": {
						"type": "boolean",
						"const": true
					},
					"deletedAt": {
						"type": "string"
					}
				},
				"required": [
					"checkId",
					"deleted",
					"deletedAt"
				],
				"additionalProperties": false
			}
		}
	}
}
