{
  "openapi": "3.1.0",
  "info": {
    "title": "MarinaPSC Readiness API",
    "description": "Source-backed PSC port-call readiness and risk-prior API.",
    "version": "0.1.0"
  },
  "paths": {
    "/health/ready": {
      "get": {
        "summary": "Health Ready",
        "operationId": "health_ready_health_ready_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "includeDetails",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "title": "Includedetails"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Reviewer token required when includeDetails=true.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token required when includeDetails=true."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentReadinessResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/artifacts": {
      "get": {
        "summary": "Artifacts",
        "operationId": "artifacts_v1_artifacts_get",
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ArtifactVersionsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/port-call-readiness": {
      "post": {
        "summary": "Port Call Readiness",
        "operationId": "port_call_readiness_v1_port_call_readiness_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PortCallRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessReportResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/leads/upgrade": {
      "post": {
        "summary": "Upgrade Lead",
        "operationId": "upgrade_lead_v1_leads_upgrade_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpgradeLeadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Upgrade Lead V1 Leads Upgrade Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/readiness-cases": {
      "post": {
        "summary": "Create Readiness Case",
        "operationId": "create_readiness_case_v1_readiness_cases_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReadinessCaseRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessCaseCreateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/readiness-cases/{case_id}": {
      "get": {
        "summary": "Get Readiness Case",
        "operationId": "get_readiness_case_v1_readiness_cases__case_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessCaseLookupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/workflow": {
      "patch": {
        "summary": "Update Readiness Case Workflow",
        "operationId": "update_readiness_case_workflow_v1_readiness_cases__case_id__workflow_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseWorkflowUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseWorkflowUpdateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/evidence": {
      "post": {
        "summary": "Upload Case Evidence",
        "operationId": "upload_case_evidence_v1_readiness_cases__case_id__evidence_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_upload_case_evidence_v1_readiness_cases__case_id__evidence_post"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseEvidenceUploadResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/psc-submissions": {
      "get": {
        "summary": "List Case Psc Submissions",
        "operationId": "list_case_psc_submissions_v1_readiness_cases__case_id__psc_submissions_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PSCSubmissionListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      },
      "post": {
        "summary": "Create Case Psc Submission",
        "operationId": "create_case_psc_submission_v1_readiness_cases__case_id__psc_submissions_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PSCSubmissionRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PSCSubmissionCreateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fleet-queue/{case_id}/psc-submissions/{submission_id}/review": {
      "patch": {
        "summary": "Review Fleet Queue Psc Submission",
        "operationId": "review_fleet_queue_psc_submission_v1_fleet_queue__case_id__psc_submissions__submission_id__review_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "submission_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Submission Id"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PSCSubmissionReviewRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PSCSubmissionReviewResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/readiness-pack": {
      "post": {
        "summary": "Generate Readiness Pack",
        "operationId": "generate_readiness_pack_v1_readiness_cases__case_id__readiness_pack_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReadinessPackRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessPackGenerateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/readiness-packs": {
      "get": {
        "summary": "List Readiness Packs",
        "operationId": "list_readiness_packs_v1_readiness_cases__case_id__readiness_packs_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 100,
              "minimum": 1,
              "default": 50,
              "title": "Limit"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessPackListResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/readiness-packs/{pack_id}": {
      "get": {
        "summary": "Get Readiness Pack",
        "operationId": "get_readiness_pack_v1_readiness_cases__case_id__readiness_packs__pack_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "pack_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Pack Id"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessPackDetailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/readiness-cases/{case_id}/reasoning": {
      "post": {
        "summary": "Generate Case Reasoning",
        "operationId": "generate_case_reasoning_v1_readiness_cases__case_id__reasoning_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReasoningRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseReasoningResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/demo-document-upload": {
      "post": {
        "summary": "Demo Document Upload",
        "operationId": "demo_document_upload_v1_demo_document_upload_post",
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/Body_demo_document_upload_v1_demo_document_upload_post"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "additionalProperties": true,
                  "type": "object",
                  "title": "Response Demo Document Upload V1 Demo Document Upload Post"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/fleet-readiness": {
      "post": {
        "summary": "Fleet Readiness",
        "operationId": "fleet_readiness_v1_fleet_readiness_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FleetRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FleetReadinessResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/fleet-queue": {
      "get": {
        "summary": "Fleet Queue",
        "operationId": "fleet_queue_v1_fleet_queue_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 500,
              "minimum": 1,
              "default": 100,
              "title": "Limit"
            }
          },
          {
            "name": "readinessState",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80,
              "default": "",
              "title": "Readinessstate"
            }
          },
          {
            "name": "assignedOwner",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 160,
              "default": "",
              "title": "Assignedowner"
            }
          },
          {
            "name": "confidenceTier",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 80,
              "default": "",
              "title": "Confidencetier"
            }
          },
          {
            "name": "needsEvidence",
            "in": "query",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Needsevidence"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FleetQueueResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fleet-queue/{case_id}": {
      "get": {
        "summary": "Fleet Queue Case Detail",
        "operationId": "fleet_queue_case_detail_v1_fleet_queue__case_id__get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReviewerCaseDetailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/fleet-queue/{case_id}/workflow": {
      "patch": {
        "summary": "Update Fleet Queue Case Workflow",
        "operationId": "update_fleet_queue_case_workflow_v1_fleet_queue__case_id__workflow_patch",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "case_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "title": "Case Id"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CaseWorkflowUpdateRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CaseWorkflowUpdateResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/internal/reviewer/telemetry/readiness": {
      "get": {
        "summary": "Readiness Telemetry",
        "operationId": "readiness_telemetry_internal_reviewer_telemetry_readiness_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 1,
              "default": 1000,
              "title": "Limit"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReadinessTelemetryRollupResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/internal/reviewer/logs/requests": {
      "get": {
        "summary": "Reviewer Request Logs",
        "operationId": "reviewer_request_logs_internal_reviewer_logs_requests_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 1000,
              "minimum": 1,
              "default": 200,
              "title": "Limit"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RequestLogTailResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/internal/reviewer/telemetry/openmetrics": {
      "get": {
        "summary": "Reviewer Telemetry Openmetrics",
        "operationId": "reviewer_telemetry_openmetrics_internal_reviewer_telemetry_openmetrics_get",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 10000,
              "minimum": 1,
              "default": 1000,
              "title": "Limit"
            }
          },
          {
            "name": "X-MarinaPSC-Reviewer-Token",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN.",
              "title": "X-Marinapsc-Reviewer-Token"
            },
            "description": "Reviewer token configured by MARINAPSC_REVIEWER_TOKEN."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/openmetrics-text": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    },
    "/v1/voyage-readiness": {
      "post": {
        "summary": "Voyage Readiness",
        "operationId": "voyage_readiness_v1_voyage_readiness_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VoyageReadinessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VoyageReadinessResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "security": [
          {
            "HTTPBearer": []
          }
        ]
      }
    },
    "/v1/marinaais-voyage-readiness": {
      "post": {
        "summary": "Marinaais Voyage Readiness",
        "operationId": "marinaais_voyage_readiness_v1_marinaais_voyage_readiness_post",
        "security": [
          {
            "HTTPBearer": []
          }
        ],
        "parameters": [
          {
            "name": "X-MarinaPSC-MarinaAIS-Adapter-Token",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "description": "Internal adapter token configured by MARINAPSC_MARINAAIS_ADAPTER_TOKEN.",
              "default": "",
              "title": "X-Marinapsc-Marinaais-Adapter-Token"
            },
            "description": "Internal adapter token configured by MARINAPSC_MARINAAIS_ADAPTER_TOKEN."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MarinaAISVoyageReadinessRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarinaAISVoyageReadinessResponse"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ArtifactVersionsResponse": {
        "properties": {
          "deficiencyModel": {
            "additionalProperties": true,
            "type": "object",
            "title": "Deficiencymodel"
          },
          "portCallRiskModel": {
            "additionalProperties": true,
            "type": "object",
            "title": "Portcallriskmodel"
          },
          "regulatoryCorpus": {
            "additionalProperties": true,
            "type": "object",
            "title": "Regulatorycorpus"
          },
          "regulatoryEnrichment": {
            "additionalProperties": true,
            "type": "object",
            "title": "Regulatoryenrichment"
          },
          "tokyoRecon": {
            "additionalProperties": true,
            "type": "object",
            "title": "Tokyorecon"
          },
          "vesselParticulars": {
            "additionalProperties": true,
            "type": "object",
            "title": "Vesselparticulars"
          },
          "portFeatures": {
            "additionalProperties": true,
            "type": "object",
            "title": "Portfeatures"
          },
          "peerBenchmarks": {
            "additionalProperties": true,
            "type": "object",
            "title": "Peerbenchmarks"
          },
          "checklistFrameworks": {
            "additionalProperties": true,
            "type": "object",
            "title": "Checklistframeworks"
          },
          "hybridAi": {
            "additionalProperties": true,
            "type": "object",
            "title": "Hybridai"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "ArtifactVersionsResponse"
      },
      "AuditEventResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "actor": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Actor"
          },
          "eventType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eventtype"
          },
          "payload": {
            "additionalProperties": true,
            "type": "object",
            "title": "Payload"
          }
        },
        "type": "object",
        "title": "AuditEventResponse"
      },
      "Body_demo_document_upload_v1_demo_document_upload_post": {
        "properties": {
          "email": {
            "type": "string",
            "title": "Email"
          },
          "imo": {
            "type": "string",
            "title": "Imo"
          },
          "destinationPort": {
            "type": "string",
            "title": "Destinationport",
            "default": ""
          },
          "destinationState": {
            "type": "string",
            "title": "Destinationstate",
            "default": ""
          },
          "eta": {
            "type": "string",
            "title": "Eta",
            "default": ""
          },
          "vesselName": {
            "type": "string",
            "title": "Vesselname",
            "default": ""
          },
          "companyName": {
            "type": "string",
            "title": "Companyname",
            "default": ""
          },
          "requestedAction": {
            "type": "string",
            "title": "Requestedaction",
            "default": "upload_vessel_documents"
          },
          "documentCategory": {
            "type": "string",
            "title": "Documentcategory",
            "default": "Other Evidence"
          },
          "consent": {
            "type": "boolean",
            "title": "Consent"
          },
          "files": {
            "items": {
              "type": "string",
              "format": "binary"
            },
            "type": "array",
            "title": "Files"
          }
        },
        "type": "object",
        "required": [
          "email",
          "imo",
          "consent",
          "files"
        ],
        "title": "Body_demo_document_upload_v1_demo_document_upload_post"
      },
      "Body_upload_case_evidence_v1_readiness_cases__case_id__evidence_post": {
        "properties": {
          "documentCategory": {
            "type": "string",
            "title": "Documentcategory",
            "default": "Other Evidence"
          },
          "files": {
            "items": {
              "type": "string",
              "format": "binary"
            },
            "type": "array",
            "title": "Files"
          }
        },
        "type": "object",
        "required": [
          "files"
        ],
        "title": "Body_upload_case_evidence_v1_readiness_cases__case_id__evidence_post"
      },
      "CaseEvidenceItemResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "category": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Category"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filename"
          },
          "contentType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contenttype"
          },
          "sizeBytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sizebytes"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "parseStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parsestatus"
          },
          "scanStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scanstatus"
          },
          "quarantineStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quarantinestatus"
          },
          "confidence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidence"
          },
          "evidenceCategories": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidencecategories"
          }
        },
        "type": "object",
        "title": "CaseEvidenceItemResponse"
      },
      "CaseEvidenceUploadFileResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filename"
          },
          "sizeBytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sizebytes"
          },
          "contentType": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contenttype"
          },
          "parseStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parsestatus"
          },
          "scanStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scanstatus"
          }
        },
        "type": "object",
        "title": "CaseEvidenceUploadFileResponse"
      },
      "CaseEvidenceUploadResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "fileCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filecount"
          },
          "files": {
            "items": {
              "$ref": "#/components/schemas/CaseEvidenceUploadFileResponse"
            },
            "type": "array",
            "title": "Files"
          }
        },
        "type": "object",
        "title": "CaseEvidenceUploadResponse"
      },
      "CaseReasoningResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "retrievalRunId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrievalrunid"
          },
          "recommendationId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recommendationid"
          },
          "hybridReasoning": {
            "additionalProperties": true,
            "type": "object",
            "title": "Hybridreasoning"
          }
        },
        "type": "object",
        "title": "CaseReasoningResponse"
      },
      "CaseWorkflowUpdateRequest": {
        "properties": {
          "readinessState": {
            "type": "string",
            "maxLength": 80,
            "title": "Readinessstate",
            "default": ""
          },
          "assignedOwner": {
            "type": "string",
            "maxLength": 160,
            "title": "Assignedowner",
            "default": ""
          },
          "dueBeforeEta": {
            "type": "string",
            "maxLength": 120,
            "title": "Duebeforeeta",
            "default": ""
          },
          "etaWindow": {
            "type": "string",
            "maxLength": 120,
            "title": "Etawindow",
            "default": ""
          }
        },
        "type": "object",
        "title": "CaseWorkflowUpdateRequest"
      },
      "CaseWorkflowUpdateResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "fleetWorkflow": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fleetworkflow"
          },
          "auditEvents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Auditevents"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "CaseWorkflowUpdateResponse"
      },
      "CreateReadinessCaseRequest": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email"
          },
          "companyName": {
            "type": "string",
            "maxLength": 160,
            "title": "Companyname",
            "default": ""
          },
          "imo": {
            "type": "string",
            "minLength": 1,
            "title": "Imo"
          },
          "vesselName": {
            "type": "string",
            "maxLength": 160,
            "title": "Vesselname",
            "default": ""
          },
          "destinationPort": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationport",
            "default": ""
          },
          "destinationState": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationstate",
            "default": ""
          },
          "eta": {
            "type": "string",
            "maxLength": 80,
            "title": "Eta",
            "default": ""
          },
          "consent": {
            "type": "boolean",
            "title": "Consent",
            "description": "User consent for MarinaChain to process case evidence"
          },
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          }
        },
        "type": "object",
        "required": [
          "email",
          "imo",
          "consent"
        ],
        "title": "CreateReadinessCaseRequest"
      },
      "DeploymentReadinessCheckResponse": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name"
          },
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "warn",
              "fail"
            ],
            "title": "Status"
          },
          "critical": {
            "type": "boolean",
            "title": "Critical",
            "default": true
          },
          "path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Path"
          },
          "mode": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Mode"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bytes"
          },
          "records": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Records"
          },
          "assets": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assets"
          },
          "metrics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metrics"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          }
        },
        "type": "object",
        "required": [
          "name",
          "status"
        ],
        "title": "DeploymentReadinessCheckResponse"
      },
      "DeploymentReadinessResponse": {
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok",
              "degraded",
              "unready"
            ],
            "title": "Status"
          },
          "checkedAt": {
            "type": "string",
            "title": "Checkedat"
          },
          "summary": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Summary"
          },
          "checks": {
            "items": {
              "$ref": "#/components/schemas/DeploymentReadinessCheckResponse"
            },
            "type": "array",
            "title": "Checks"
          }
        },
        "type": "object",
        "required": [
          "status",
          "checkedAt"
        ],
        "title": "DeploymentReadinessResponse"
      },
      "FleetQueueResponse": {
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "reviewer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer"
          },
          "queue": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FleetQueueRowResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "FleetQueueResponse"
      },
      "FleetQueueRowResponse": {
        "properties": {
          "rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Rank"
          },
          "imo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imo"
          },
          "vesselName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vesselname"
          },
          "destinationPort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationport"
          },
          "destinationState": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationstate"
          },
          "eta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eta"
          },
          "readinessState": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Readinessstate"
          },
          "assignedOwner": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Assignedowner"
          },
          "dueBeforeEta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Duebeforeeta"
          },
          "etaWindow": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Etawindow"
          },
          "confidenceTier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Confidencetier"
          },
          "needsEvidence": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Needsevidence"
          },
          "topRiskDrivers": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Topriskdrivers"
          },
          "nextAction": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Nextaction"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "caseStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Casestatus"
          },
          "queueRank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queuerank"
          },
          "queueSource": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queuesource"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "FleetQueueRowResponse"
      },
      "FleetReadinessResponse": {
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "persisted": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persisted"
          },
          "persistedCases": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persistedcases"
          },
          "queue": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FleetQueueRowResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue"
          },
          "reports": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ReadinessReportResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reports"
          },
          "disclaimer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclaimer"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "FleetReadinessResponse"
      },
      "FleetRequest": {
        "properties": {
          "portCalls": {
            "items": {
              "$ref": "#/components/schemas/PortCallRequest"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Portcalls"
          },
          "persistQueue": {
            "type": "boolean",
            "title": "Persistqueue",
            "description": "Create case-backed workflow rows for the ranked queue",
            "default": false
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email",
            "description": "Required when persistQueue is true",
            "default": ""
          },
          "companyName": {
            "type": "string",
            "maxLength": 160,
            "title": "Companyname",
            "default": ""
          },
          "consent": {
            "type": "boolean",
            "title": "Consent",
            "description": "Required when persistQueue is true",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "portCalls"
        ],
        "title": "FleetRequest"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "MarinaAISFetchFailureResponse": {
        "properties": {
          "identifier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Identifier"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "statusCode": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Statuscode"
          }
        },
        "type": "object",
        "title": "MarinaAISFetchFailureResponse"
      },
      "MarinaAISTelemetryResponse": {
        "properties": {
          "eventCount": {
            "type": "integer",
            "title": "Eventcount",
            "default": 0
          },
          "inputCount": {
            "type": "integer",
            "title": "Inputcount",
            "default": 0
          },
          "fetchedCount": {
            "type": "integer",
            "title": "Fetchedcount",
            "default": 0
          },
          "failedFetchCount": {
            "type": "integer",
            "title": "Failedfetchcount",
            "default": 0
          },
          "resolvedCount": {
            "type": "integer",
            "title": "Resolvedcount",
            "default": 0
          },
          "unresolvedCount": {
            "type": "integer",
            "title": "Unresolvedcount",
            "default": 0
          },
          "reportsReturned": {
            "type": "integer",
            "title": "Reportsreturned",
            "default": 0
          },
          "fetchErrorBuckets": {
            "additionalProperties": {
              "type": "integer"
            },
            "type": "object",
            "title": "Fetcherrorbuckets"
          }
        },
        "type": "object",
        "title": "MarinaAISTelemetryResponse"
      },
      "MarinaAISVoyageReadinessRequest": {
        "properties": {
          "identifiers": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "maxItems": 20,
            "minItems": 1,
            "title": "Identifiers"
          },
          "persistQueue": {
            "type": "boolean",
            "title": "Persistqueue",
            "description": "Create case-backed workflow rows for the ranked queue",
            "default": false
          },
          "email": {
            "type": "string",
            "maxLength": 254,
            "title": "Email",
            "description": "Required when persistQueue is true",
            "default": ""
          },
          "companyName": {
            "type": "string",
            "maxLength": 160,
            "title": "Companyname",
            "default": ""
          },
          "consent": {
            "type": "boolean",
            "title": "Consent",
            "description": "Required when persistQueue is true",
            "default": false
          }
        },
        "type": "object",
        "required": [
          "identifiers"
        ],
        "title": "MarinaAISVoyageReadinessRequest"
      },
      "MarinaAISVoyageReadinessResponse": {
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "inputCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inputcount"
          },
          "resolvedCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolvedcount"
          },
          "unresolvedCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unresolvedcount"
          },
          "resolvedEvents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolvedevents"
          },
          "unresolvedEvents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unresolvedevents"
          },
          "queue": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FleetQueueRowResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue"
          },
          "reports": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ReadinessReportResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reports"
          },
          "disclaimer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclaimer"
          },
          "source": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "fetchedCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fetchedcount"
          },
          "failedFetchCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failedfetchcount"
          },
          "aisFetchFailures": {
            "items": {
              "$ref": "#/components/schemas/MarinaAISFetchFailureResponse"
            },
            "type": "array",
            "title": "Aisfetchfailures"
          },
          "persisted": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persisted"
          },
          "persistedCases": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Persistedcases"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "MarinaAISVoyageReadinessResponse"
      },
      "PSCCorrectiveAction": {
        "properties": {
          "owner": {
            "type": "string",
            "maxLength": 160,
            "title": "Owner",
            "default": ""
          },
          "action": {
            "type": "string",
            "maxLength": 1000,
            "title": "Action",
            "default": ""
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "closed",
              "not_applicable"
            ],
            "title": "Status",
            "default": "open"
          },
          "dueDate": {
            "type": "string",
            "maxLength": 80,
            "title": "Duedate",
            "default": ""
          },
          "evidenceItemId": {
            "type": "string",
            "maxLength": 80,
            "title": "Evidenceitemid",
            "default": ""
          }
        },
        "type": "object",
        "title": "PSCCorrectiveAction"
      },
      "PSCDeficiency": {
        "properties": {
          "code": {
            "type": "string",
            "maxLength": 40,
            "title": "Code",
            "default": ""
          },
          "area": {
            "type": "string",
            "maxLength": 160,
            "title": "Area",
            "default": ""
          },
          "description": {
            "type": "string",
            "maxLength": 1000,
            "minLength": 1,
            "title": "Description"
          },
          "severity": {
            "type": "string",
            "maxLength": 80,
            "title": "Severity",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "description"
        ],
        "title": "PSCDeficiency"
      },
      "PSCSubmissionAttachment": {
        "properties": {
          "evidenceItemId": {
            "type": "string",
            "maxLength": 80,
            "minLength": 1,
            "title": "Evidenceitemid"
          },
          "category": {
            "type": "string",
            "enum": [
              "form_a",
              "form_b",
              "deficiency_evidence",
              "closeout_evidence",
              "other"
            ],
            "title": "Category",
            "default": "other"
          },
          "label": {
            "type": "string",
            "maxLength": 160,
            "title": "Label",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "evidenceItemId"
        ],
        "title": "PSCSubmissionAttachment"
      },
      "PSCSubmissionCreateResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "submission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PSCSubmissionResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "PSCSubmissionCreateResponse"
      },
      "PSCSubmissionListResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "submissions": {
            "items": {
              "$ref": "#/components/schemas/PSCSubmissionResponse"
            },
            "type": "array",
            "title": "Submissions"
          }
        },
        "type": "object",
        "title": "PSCSubmissionListResponse"
      },
      "PSCSubmissionRequest": {
        "properties": {
          "inspectionDate": {
            "type": "string",
            "maxLength": 80,
            "minLength": 4,
            "title": "Inspectiondate",
            "description": "PSC inspection date"
          },
          "port": {
            "type": "string",
            "maxLength": 160,
            "minLength": 1,
            "title": "Port",
            "description": "Inspection port"
          },
          "authority": {
            "type": "string",
            "maxLength": 160,
            "minLength": 1,
            "title": "Authority",
            "description": "PSC authority or MoU"
          },
          "result": {
            "type": "string",
            "enum": [
              "clear",
              "deficiencies_found",
              "detained",
              "not_inspected"
            ],
            "title": "Result",
            "description": "Inspection outcome"
          },
          "detained": {
            "type": "boolean",
            "title": "Detained",
            "description": "Whether the inspection resulted in detention",
            "default": false
          },
          "deficiencies": {
            "items": {
              "$ref": "#/components/schemas/PSCDeficiency"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Deficiencies"
          },
          "correctiveActions": {
            "items": {
              "$ref": "#/components/schemas/PSCCorrectiveAction"
            },
            "type": "array",
            "maxItems": 100,
            "title": "Correctiveactions"
          },
          "reviewerStatus": {
            "type": "string",
            "enum": [
              "draft",
              "submitted",
              "under_review",
              "accepted",
              "closed",
              "rejected"
            ],
            "title": "Reviewerstatus",
            "default": "submitted"
          },
          "notes": {
            "type": "string",
            "maxLength": 5000,
            "title": "Notes",
            "default": ""
          },
          "attachments": {
            "items": {
              "$ref": "#/components/schemas/PSCSubmissionAttachment"
            },
            "type": "array",
            "maxItems": 50,
            "title": "Attachments"
          },
          "metadata": {
            "additionalProperties": true,
            "type": "object",
            "title": "Metadata"
          }
        },
        "type": "object",
        "required": [
          "inspectionDate",
          "port",
          "authority",
          "result"
        ],
        "title": "PSCSubmissionRequest"
      },
      "PSCSubmissionResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "inspectionDate": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inspectiondate"
          },
          "port": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Port"
          },
          "authority": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Authority"
          },
          "result": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "detained": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Detained"
          },
          "deficiencies": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Deficiencies"
          },
          "correctiveActions": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "type": "array",
            "title": "Correctiveactions"
          },
          "reviewerStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewerstatus"
          },
          "caseStatus": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Casestatus"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes"
          },
          "reviewerNotes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewernotes"
          }
        },
        "type": "object",
        "title": "PSCSubmissionResponse"
      },
      "PSCSubmissionReviewRequest": {
        "properties": {
          "reviewerStatus": {
            "type": "string",
            "enum": [
              "under_review",
              "accepted",
              "closed",
              "rejected"
            ],
            "title": "Reviewerstatus",
            "default": "under_review"
          },
          "reviewerNotes": {
            "type": "string",
            "maxLength": 2000,
            "title": "Reviewernotes",
            "default": ""
          }
        },
        "type": "object",
        "title": "PSCSubmissionReviewRequest"
      },
      "PSCSubmissionReviewResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "submission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PSCSubmissionResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "reviewer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer"
          }
        },
        "type": "object",
        "title": "PSCSubmissionReviewResponse"
      },
      "PortCallRequest": {
        "properties": {
          "imo": {
            "type": "string",
            "minLength": 1,
            "title": "Imo",
            "description": "IMO number"
          },
          "destinationPort": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationport",
            "description": "Destination port",
            "default": ""
          },
          "destinationState": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationstate",
            "description": "Destination country/port state",
            "default": ""
          },
          "eta": {
            "type": "string",
            "maxLength": 80,
            "title": "Eta",
            "description": "Optional ETA for port-call context and paid-readiness lead qualification",
            "default": ""
          },
          "vesselName": {
            "type": "string",
            "maxLength": 160,
            "title": "Vesselname",
            "description": "Optional vessel name for no-history fallback",
            "default": ""
          },
          "shipType": {
            "type": "string",
            "maxLength": 120,
            "title": "Shiptype",
            "description": "Optional ship type for no-history fallback",
            "default": ""
          },
          "flag": {
            "type": "string",
            "maxLength": 120,
            "title": "Flag",
            "description": "Optional flag for no-history fallback",
            "default": ""
          },
          "yearBuilt": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Yearbuilt",
            "description": "Optional year built for no-history fallback"
          },
          "grossTonnage": {
            "type": "string",
            "maxLength": 80,
            "title": "Grosstonnage",
            "description": "Optional gross tonnage",
            "default": ""
          },
          "deadweight": {
            "type": "string",
            "maxLength": 80,
            "title": "Deadweight",
            "description": "Optional deadweight tonnage",
            "default": ""
          },
          "classSociety": {
            "type": "string",
            "maxLength": 120,
            "title": "Classsociety",
            "description": "Optional class society",
            "default": ""
          },
          "manager": {
            "type": "string",
            "maxLength": 160,
            "title": "Manager",
            "description": "Optional manager or DOC holder",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "imo"
        ],
        "title": "PortCallRequest"
      },
      "ReadinessCaseCreateRecordResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "organizationId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organizationid"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Companyname"
          },
          "imo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imo"
          },
          "vesselName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vesselname"
          },
          "destinationPort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationport"
          },
          "destinationState": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationstate"
          },
          "eta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eta"
          },
          "consent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consent"
          },
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          },
          "fleetWorkflow": {
            "additionalProperties": true,
            "type": "object",
            "title": "Fleetworkflow"
          },
          "evidenceItems": {
            "items": {
              "$ref": "#/components/schemas/CaseEvidenceItemResponse"
            },
            "type": "array",
            "title": "Evidenceitems"
          },
          "pscSubmissions": {
            "items": {
              "$ref": "#/components/schemas/PSCSubmissionResponse"
            },
            "type": "array",
            "title": "Pscsubmissions"
          },
          "auditEvents": {
            "items": {
              "$ref": "#/components/schemas/AuditEventResponse"
            },
            "type": "array",
            "title": "Auditevents"
          },
          "accessToken": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accesstoken"
          }
        },
        "type": "object",
        "title": "ReadinessCaseCreateRecordResponse"
      },
      "ReadinessCaseCreateResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Message"
          },
          "case": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ReadinessCaseCreateRecordResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "ReadinessCaseCreateResponse"
      },
      "ReadinessCaseLookupResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "organizationId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organizationid"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Companyname"
          },
          "imo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imo"
          },
          "vesselName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vesselname"
          },
          "destinationPort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationport"
          },
          "destinationState": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationstate"
          },
          "eta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eta"
          },
          "consent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consent"
          },
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          },
          "fleetWorkflow": {
            "additionalProperties": true,
            "type": "object",
            "title": "Fleetworkflow"
          },
          "evidenceItems": {
            "items": {
              "$ref": "#/components/schemas/CaseEvidenceItemResponse"
            },
            "type": "array",
            "title": "Evidenceitems"
          },
          "pscSubmissions": {
            "items": {
              "$ref": "#/components/schemas/PSCSubmissionResponse"
            },
            "type": "array",
            "title": "Pscsubmissions"
          },
          "auditEvents": {
            "items": {
              "$ref": "#/components/schemas/AuditEventResponse"
            },
            "type": "array",
            "title": "Auditevents"
          }
        },
        "type": "object",
        "title": "ReadinessCaseLookupResponse"
      },
      "ReadinessPackDetailResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "readinessPackId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Readinesspackid"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "readinessPack": {
            "additionalProperties": true,
            "type": "object",
            "title": "Readinesspack"
          }
        },
        "type": "object",
        "title": "ReadinessPackDetailResponse"
      },
      "ReadinessPackGenerateResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "readinessPackId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Readinesspackid"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "retrievalRunId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Retrievalrunid"
          },
          "readinessPack": {
            "additionalProperties": true,
            "type": "object",
            "title": "Readinesspack"
          }
        },
        "type": "object",
        "title": "ReadinessPackGenerateResponse"
      },
      "ReadinessPackListResponse": {
        "properties": {
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "packs": {
            "items": {
              "$ref": "#/components/schemas/ReadinessPackSummaryResponse"
            },
            "type": "array",
            "title": "Packs"
          }
        },
        "type": "object",
        "title": "ReadinessPackListResponse"
      },
      "ReadinessPackRequest": {
        "properties": {
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          }
        },
        "type": "object",
        "title": "ReadinessPackRequest"
      },
      "ReadinessPackSummaryResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "caseId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Caseid"
          },
          "version": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Version"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "destination": {
            "additionalProperties": true,
            "type": "object",
            "title": "Destination"
          },
          "scorePolicy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Scorepolicy"
          },
          "worklistCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Worklistcount"
          },
          "evidencePresentCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidencepresentcount"
          },
          "evidenceMissingCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidencemissingcount"
          },
          "evidenceConflictingCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidenceconflictingcount"
          }
        },
        "type": "object",
        "title": "ReadinessPackSummaryResponse"
      },
      "ReadinessReportResponse": {
        "properties": {
          "imo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imo"
          },
          "destination": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destination"
          },
          "vessel": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vessel"
          },
          "portCallRisk": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Portcallrisk"
          },
          "portTrend": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Porttrend"
          },
          "peerBenchmark": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Peerbenchmark"
          },
          "dataCoverage": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Datacoverage"
          },
          "coverageBreakdown": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Coveragebreakdown"
          },
          "targetedActionPlan": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Targetedactionplan"
          },
          "checklist": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checklist"
          },
          "evidenceDossier": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Evidencedossier"
          },
          "disclaimer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclaimer"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "ReadinessReportResponse"
      },
      "ReadinessTelemetryRollupResponse": {
        "properties": {
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Enabled"
          },
          "pathExists": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Pathexists"
          },
          "sampleLimit": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Samplelimit"
          },
          "eventCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eventcount"
          },
          "malformedLineCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Malformedlinecount"
          },
          "reportCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reportcount"
          },
          "latestAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latestat"
          },
          "fileSizeBytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filesizebytes"
          },
          "fileModifiedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Filemodifiedat"
          },
          "latestEventAgeSeconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Latesteventageseconds"
          },
          "isStale": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Isstale"
          },
          "staleAfterSeconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Staleafterseconds"
          },
          "latencyMs": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TelemetryLatencyResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "byEventType": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Byeventtype"
          },
          "byRiskTier": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Byrisktier"
          },
          "byDataCoverage": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Bydatacoverage"
          },
          "analysisMethodCounts": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Analysismethodcounts"
          },
          "marinaais": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/MarinaAISTelemetryResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "latestArtifacts": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TelemetryArtifactsResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "privacy": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Privacy"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "ReadinessTelemetryRollupResponse"
      },
      "ReasoningRequest": {
        "properties": {
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          }
        },
        "type": "object",
        "title": "ReasoningRequest"
      },
      "RequestLogRecordResponse": {
        "properties": {
          "eventType": {
            "type": "string",
            "title": "Eventtype",
            "default": "request"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Method"
          },
          "path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Path"
          },
          "status": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "elapsedMs": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Elapsedms"
          },
          "clientHash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Clienthash"
          },
          "requestId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Requestid"
          },
          "failureClass": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Failureclass"
          }
        },
        "type": "object",
        "title": "RequestLogRecordResponse"
      },
      "RequestLogTailResponse": {
        "properties": {
          "enabled": {
            "type": "boolean",
            "title": "Enabled",
            "default": false
          },
          "pathExists": {
            "type": "boolean",
            "title": "Pathexists",
            "default": false
          },
          "sampleLimit": {
            "type": "integer",
            "title": "Samplelimit",
            "default": 0
          },
          "eventCount": {
            "type": "integer",
            "title": "Eventcount",
            "default": 0
          },
          "malformedLineCount": {
            "type": "integer",
            "title": "Malformedlinecount",
            "default": 0
          },
          "fileSizeBytes": {
            "type": "integer",
            "title": "Filesizebytes",
            "default": 0
          },
          "fileModifiedAt": {
            "type": "string",
            "title": "Filemodifiedat",
            "default": ""
          },
          "records": {
            "items": {
              "$ref": "#/components/schemas/RequestLogRecordResponse"
            },
            "type": "array",
            "title": "Records"
          },
          "privacy": {
            "type": "string",
            "title": "Privacy",
            "default": ""
          }
        },
        "type": "object",
        "title": "RequestLogTailResponse"
      },
      "ReviewerCaseDetailResponse": {
        "properties": {
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "createdAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Createdat"
          },
          "updatedAt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Updatedat"
          },
          "status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Status"
          },
          "organizationId": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Organizationid"
          },
          "email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Email"
          },
          "companyName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Companyname"
          },
          "imo": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Imo"
          },
          "vesselName": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Vesselname"
          },
          "destinationPort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationport"
          },
          "destinationState": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Destinationstate"
          },
          "eta": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Eta"
          },
          "consent": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Consent"
          },
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          },
          "fleetWorkflow": {
            "additionalProperties": true,
            "type": "object",
            "title": "Fleetworkflow"
          },
          "evidenceItems": {
            "items": {
              "$ref": "#/components/schemas/CaseEvidenceItemResponse"
            },
            "type": "array",
            "title": "Evidenceitems"
          },
          "pscSubmissions": {
            "items": {
              "$ref": "#/components/schemas/PSCSubmissionResponse"
            },
            "type": "array",
            "title": "Pscsubmissions"
          },
          "auditEvents": {
            "items": {
              "$ref": "#/components/schemas/AuditEventResponse"
            },
            "type": "array",
            "title": "Auditevents"
          },
          "reviewer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reviewer"
          }
        },
        "type": "object",
        "title": "ReviewerCaseDetailResponse"
      },
      "TelemetryArtifactFingerprintResponse": {
        "properties": {
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          }
        },
        "type": "object",
        "title": "TelemetryArtifactFingerprintResponse"
      },
      "TelemetryArtifactsResponse": {
        "properties": {
          "portCallRiskModel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TelemetryArtifactFingerprintResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "deficiencyModel": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TelemetryArtifactFingerprintResponse"
              },
              {
                "type": "null"
              }
            ]
          },
          "portFeatures": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/TelemetryPortFeaturesArtifactResponse"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "type": "object",
        "title": "TelemetryArtifactsResponse"
      },
      "TelemetryLatencyResponse": {
        "properties": {
          "avg": {
            "type": "number",
            "title": "Avg",
            "default": 0.0
          },
          "p50": {
            "type": "number",
            "title": "P50",
            "default": 0.0
          },
          "p95": {
            "type": "number",
            "title": "P95",
            "default": 0.0
          },
          "max": {
            "type": "number",
            "title": "Max",
            "default": 0.0
          }
        },
        "type": "object",
        "title": "TelemetryLatencyResponse"
      },
      "TelemetryPortFeaturesArtifactResponse": {
        "properties": {
          "path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Path"
          },
          "sha256": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sha256"
          },
          "records": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Records"
          }
        },
        "type": "object",
        "title": "TelemetryPortFeaturesArtifactResponse"
      },
      "UpgradeLeadRequest": {
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "minLength": 3,
            "title": "Email"
          },
          "companyName": {
            "type": "string",
            "maxLength": 160,
            "title": "Companyname",
            "default": ""
          },
          "imo": {
            "type": "string",
            "minLength": 1,
            "title": "Imo"
          },
          "vesselName": {
            "type": "string",
            "maxLength": 160,
            "title": "Vesselname",
            "default": ""
          },
          "destinationPort": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationport",
            "default": ""
          },
          "destinationState": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationstate",
            "default": ""
          },
          "eta": {
            "type": "string",
            "maxLength": 80,
            "title": "Eta",
            "default": ""
          },
          "requestedAction": {
            "type": "string",
            "maxLength": 80,
            "title": "Requestedaction"
          },
          "consent": {
            "type": "boolean",
            "title": "Consent",
            "description": "User consent for MarinaChain to follow up"
          },
          "reportSnapshot": {
            "additionalProperties": true,
            "type": "object",
            "title": "Reportsnapshot"
          }
        },
        "type": "object",
        "required": [
          "email",
          "imo",
          "requestedAction",
          "consent"
        ],
        "title": "UpgradeLeadRequest"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "VoyageEvent": {
        "properties": {
          "imo": {
            "type": "string",
            "minLength": 1,
            "title": "Imo",
            "description": "IMO number"
          },
          "mmsi": {
            "type": "string",
            "maxLength": 32,
            "title": "Mmsi",
            "description": "Optional MMSI from AIS source",
            "default": ""
          },
          "aisDestination": {
            "type": "string",
            "maxLength": 160,
            "title": "Aisdestination",
            "description": "Raw AIS destination text",
            "default": ""
          },
          "destinationPort": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationport",
            "description": "Explicit destination port override",
            "default": ""
          },
          "destinationState": {
            "type": "string",
            "maxLength": 160,
            "title": "Destinationstate",
            "description": "Explicit destination country/port state override",
            "default": ""
          },
          "locode": {
            "type": "string",
            "maxLength": 16,
            "title": "Locode",
            "description": "UN/LOCODE when supplied by upstream voyage source",
            "default": ""
          },
          "eta": {
            "type": "string",
            "maxLength": 80,
            "title": "Eta",
            "description": "AIS/voyage ETA",
            "default": ""
          },
          "vesselName": {
            "type": "string",
            "maxLength": 160,
            "title": "Vesselname",
            "default": ""
          },
          "shipType": {
            "type": "string",
            "maxLength": 120,
            "title": "Shiptype",
            "default": ""
          },
          "flag": {
            "type": "string",
            "maxLength": 120,
            "title": "Flag",
            "default": ""
          },
          "yearBuilt": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Yearbuilt"
          },
          "grossTonnage": {
            "type": "string",
            "maxLength": 80,
            "title": "Grosstonnage",
            "default": ""
          },
          "deadweight": {
            "type": "string",
            "maxLength": 80,
            "title": "Deadweight",
            "default": ""
          },
          "classSociety": {
            "type": "string",
            "maxLength": 120,
            "title": "Classsociety",
            "default": ""
          },
          "manager": {
            "type": "string",
            "maxLength": 160,
            "title": "Manager",
            "default": ""
          }
        },
        "type": "object",
        "required": [
          "imo"
        ],
        "title": "VoyageEvent"
      },
      "VoyageReadinessRequest": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/VoyageEvent"
            },
            "type": "array",
            "maxItems": 100,
            "minItems": 1,
            "title": "Events"
          }
        },
        "type": "object",
        "required": [
          "events"
        ],
        "title": "VoyageReadinessRequest"
      },
      "VoyageReadinessResponse": {
        "properties": {
          "count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Count"
          },
          "inputCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inputcount"
          },
          "resolvedCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolvedcount"
          },
          "unresolvedCount": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unresolvedcount"
          },
          "resolvedEvents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Resolvedevents"
          },
          "unresolvedEvents": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Unresolvedevents"
          },
          "queue": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/FleetQueueRowResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue"
          },
          "reports": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/ReadinessReportResponse"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reports"
          },
          "disclaimer": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Disclaimer"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "title": "VoyageReadinessResponse"
      }
    },
    "securitySchemes": {
      "HTTPBearer": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}
