{
  "openapi": "3.1.0",
  "paths": {
    "/api/v1/auth/auth0": {
      "post": {
        "description": "Send the OIDC ID token Auth0 returned to the app (Google, Apple and other Auth0 connections all arrive this way). ROOL verifies it itself, finds or creates the ROOL user, and returns the same session as `login`, so refresh, logout and `getMe` work unchanged. The Auth0 token is not kept and is not used again. Roles never come from Auth0. An unverified email is refused, and an email that already has a ROOL account is `account_link_required`, never merged: sign in the usual way and call `linkAuth0Identity`.",
        "operationId": "signInWithAuth0",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Auth0SignInRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSession"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "The Auth0 token is invalid, expired, for another tenant or audience, or too old. Codes: `invalid_provider_token`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The provider has not verified the email in the token. Codes: `email_unverified`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Auth0 sign-in is not configured on this deployment. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "An account with this email exists and must be linked from a signed-in session. Codes: `account_link_required`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts; retry after the `Retry-After` seconds. Codes: `rate_limited`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "503": {
            "description": "Auth0 keys or the rate limiter cannot be reached right now. Try again. Codes: `service_unavailable`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Sign in or sign up with an Auth0 token",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_provider_token"
          ],
          "403": [
            "email_unverified"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "account_link_required"
          ],
          "429": [
            "rate_limited"
          ],
          "503": [
            "service_unavailable"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/auth/google": {
      "post": {
        "description": "Provisional: the account-linking outcomes (409) may still change.",
        "operationId": "signInWithGoogle",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GoogleSignInRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSession"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Google rejected the token. Codes: `invalid_provider_token`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "An account with this email exists and must be linked first. Codes: `account_link_required`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Sign in or sign up with a Google ID token",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_provider_token"
          ],
          "409": [
            "account_link_required"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": false
      }
    },
    "/api/v1/auth/login": {
      "post": {
        "operationId": "login",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSession"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Wrong email or password. Codes: `invalid_credentials`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts; retry later. Codes: `rate_limited`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Sign in with email and password",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "invalid_credentials"
          ],
          "429": [
            "rate_limited"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/auth/logout": {
      "post": {
        "operationId": "logout",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LogoutRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The session is ended."
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "End the current session",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/auth/refresh": {
      "post": {
        "description": "The refresh token is rotated: store the new one. Reusing an old one revokes every session of that sign-in (`session_revoked`), and the user must sign in again.",
        "operationId": "refreshSession",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSession"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "The refresh token is unknown, expired, or was already used. Codes: `refresh_token_invalid`, `session_revoked`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts; retry later. Codes: `rate_limited`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Exchange a refresh token for a new session",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "refresh_token_invalid",
            "session_revoked"
          ],
          "429": [
            "rate_limited"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/auth/register": {
      "post": {
        "operationId": "register",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuthSession"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "An account with this email already exists. Codes: `email_taken`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts; retry later. Codes: `rate_limited`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Create an account with email and password",
        "tags": [
          "auth"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "409": [
            "email_taken"
          ],
          "429": [
            "rate_limited"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/generations": {
      "get": {
        "operationId": "listGenerations",
        "parameters": [
          {
            "name": "modelId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GenerationListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Generations of one model",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/generations/{generationId}/variant-options": {
      "get": {
        "description": "The engines (as schedules name them), gearboxes, drivetrains and operating conditions an owner can choose from when adding or refining a car. Empty lists mean no schedule turns on that fact.",
        "operationId": "getVariantOptions",
        "parameters": [
          {
            "name": "generationId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VariantOptions"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Variant facts that published schedules distinguish for a generation",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "404": [
            "not_found"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/makes": {
      "get": {
        "operationId": "listMakes",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MakeListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Makes in the catalog",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/me": {
      "get": {
        "operationId": "getMe",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "The signed-in user",
        "tags": [
          "me"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      },
      "patch": {
        "operationId": "updateMe",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateMeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Me"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Change display name or language",
        "tags": [
          "me"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/me/identities/auth0": {
      "post": {
        "description": "For a signed-in user. The Auth0 token must be fresh: it proves the identity being linked. Afterwards signing in with Auth0 opens this same account. Repeating it for the same account is a no-op.",
        "operationId": "linkAuth0Identity",
        "parameters": [],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkAuth0Request"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "The identity is linked to this account."
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. The Auth0 token is invalid, expired, for another tenant or audience, or too old. Codes: `unauthenticated`, `invalid_provider_token`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Auth0 sign-in is not configured on this deployment. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "That Auth0 identity already belongs to another account. Codes: `identity_already_linked`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts; retry after the `Retry-After` seconds. Codes: `rate_limited`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "503": {
            "description": "Auth0 keys or the rate limiter cannot be reached right now. Try again. Codes: `service_unavailable`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Link an Auth0 sign-in method to this account",
        "tags": [
          "me"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated",
            "invalid_provider_token"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "identity_already_linked"
          ],
          "429": [
            "rate_limited"
          ],
          "503": [
            "service_unavailable"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles": {
      "post": {
        "operationId": "createVehicle",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A fresh UUID per user action. A retry with the same key returns the original result instead of creating a second record.",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateVehicleRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vehicle"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "The generation or vehicle profile does not exist. Codes: `catalog_entry_not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still being processed; retry shortly. Codes: `idempotency_in_progress`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "422": {
            "description": "The catalog entries do not fit together. The variant or service-history details do not fit the car. Codes: `model_year_not_covered`, `profile_not_in_generation`, `market_contradicts_profile`, `engine_not_in_generation`, `in_service_date_without_baseline`, `in_service_date_in_future`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Add a car to the garage",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ],
          "404": [
            "catalog_entry_not_found"
          ],
          "409": [
            "idempotency_in_progress"
          ],
          "422": [
            "model_year_not_covered",
            "profile_not_in_generation",
            "market_contradicts_profile",
            "engine_not_in_generation",
            "in_service_date_without_baseline",
            "in_service_date_in_future"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      },
      "get": {
        "operationId": "listVehicles",
        "parameters": [
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Cars in the garage",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles/{vehicleId}": {
      "get": {
        "operationId": "getVehicle",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vehicle"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "One car in the garage",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      },
      "patch": {
        "operationId": "updateVehicle",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateVehicleRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Vehicle"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "422": {
            "description": "The change does not fit the car’s generation. The variant or service-history details do not fit the car. Codes: `model_year_not_covered`, `profile_not_in_generation`, `market_contradicts_profile`, `engine_not_in_generation`, `in_service_date_without_baseline`, `in_service_date_in_future`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Change a car in the garage",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ],
          "422": [
            "model_year_not_covered",
            "profile_not_in_generation",
            "market_contradicts_profile",
            "engine_not_in_generation",
            "in_service_date_without_baseline",
            "in_service_date_in_future"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      },
      "delete": {
        "operationId": "deleteVehicle",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The car is removed."
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Remove a car from the garage",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles/{vehicleId}/intelligence": {
      "get": {
        "operationId": "getVehicleIntelligence",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleIntelligence"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Safety recalls, known issues and maintenance for one garage car",
        "tags": [
          "intelligence"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": false
      }
    },
    "/api/v1/me/vehicles/{vehicleId}/maintenance": {
      "get": {
        "description": "Verified manufacturer schedules for this car, each with a due state computed from the service history and the highest confirmed odometer. Deterministic; nothing is estimated or guessed. Items whose applicability turns on an unknown engine, gearbox, drivetrain or market are NEEDS_VEHICLE_INFO, and `questions` says what to ask.",
        "operationId": "getVehicleMaintenance",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleMaintenance"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Maintenance state of one car",
        "tags": [
          "intelligence"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles/{vehicleId}/odometer-readings": {
      "post": {
        "description": "Provisional: validation rules for implausible jumps may still change.",
        "operationId": "createOdometerReading",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A fresh UUID per user action. A retry with the same key returns the original result instead of creating a second record.",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateOdometerReadingRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OdometerReading"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still being processed; retry shortly. Codes: `idempotency_in_progress`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "422": {
            "description": "The reading is lower than an earlier one, or dated in the future. Codes: `odometer_decreased`, `recorded_on_in_future`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Record a confirmed odometer reading",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "idempotency_in_progress"
          ],
          "422": [
            "odometer_decreased",
            "recorded_on_in_future"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles/{vehicleId}/service-events": {
      "post": {
        "description": "Keyed by maintenance item and action. The odometer, when given, also counts as a confirmed reading for due calculations.",
        "operationId": "createServiceEvent",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "A fresh UUID per user action. A retry with the same key returns the original result instead of creating a second record.",
            "required": true,
            "schema": {
              "type": "string",
              "maxLength": 128
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateServiceEventRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceEvent"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "409": {
            "description": "A request with this Idempotency-Key is still being processed; retry shortly. Codes: `idempotency_in_progress`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "422": {
            "description": "The item code is not known, or the service is dated in the future. Codes: `unknown_item_code`, `performed_on_in_future`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Record a service done to the car",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ],
          "409": [
            "idempotency_in_progress"
          ],
          "422": [
            "unknown_item_code",
            "performed_on_in_future"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      },
      "get": {
        "operationId": "listServiceEvents",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceEventListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Service history of the car",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/me/vehicles/{vehicleId}/service-events/{serviceEventId}": {
      "delete": {
        "operationId": "deleteServiceEvent",
        "parameters": [
          {
            "name": "vehicleId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "serviceEventId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "The service event is removed."
          },
          "401": {
            "description": "Missing, expired or invalid access token. Codes: `unauthenticated`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "security": [
          {
            "userAccessToken": []
          }
        ],
        "summary": "Remove a recorded service",
        "tags": [
          "garage"
        ],
        "x-error-codes": {
          "401": [
            "unauthenticated"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": true
      }
    },
    "/api/v1/models": {
      "get": {
        "operationId": "listModels",
        "parameters": [
          {
            "name": "makeId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Models of one make",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/vehicle-profiles": {
      "get": {
        "description": "With `modelYear`, only profiles covering that year. Several results mean the owner must choose (usually the engine); none means that year is not covered yet.",
        "operationId": "listVehicleProfiles",
        "parameters": [
          {
            "name": "generationId",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "modelYear",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1950,
              "maximum": 2100
            }
          },
          {
            "name": "limit",
            "required": false,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "required": false,
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "The `page.nextCursor` of the previous response. Opaque."
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleProfileListResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Vehicle profiles of one generation",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/vehicle-profiles/{profileId}": {
      "get": {
        "operationId": "getVehicleProfile",
        "parameters": [
          {
            "name": "profileId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleProfile"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "One vehicle profile",
        "tags": [
          "catalog"
        ],
        "x-error-codes": {
          "404": [
            "not_found"
          ]
        },
        "x-stability": "stable",
        "x-implemented": true
      }
    },
    "/api/v1/vehicle-profiles/{profileId}/intelligence": {
      "get": {
        "description": "Provisional guest view. `vehicleId` is null in the response.",
        "operationId": "getProfileIntelligence",
        "parameters": [
          {
            "name": "profileId",
            "required": true,
            "in": "path",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "modelYear",
            "required": true,
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1950,
              "maximum": 2100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VehicleIntelligence"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed; `errors` lists each invalid field. Codes: `validation_failed`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          },
          "404": {
            "description": "No such resource, or it belongs to another user. Codes: `not_found`.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetailsResponse"
                }
              }
            }
          }
        },
        "summary": "Vehicle intelligence for a catalog profile, before sign-up",
        "tags": [
          "intelligence"
        ],
        "x-error-codes": {
          "400": [
            "validation_failed"
          ],
          "404": [
            "not_found"
          ]
        },
        "x-stability": "provisional",
        "x-implemented": false
      }
    },
    "/health/live": {
      "get": {
        "operationId": "getLiveness",
        "parameters": [],
        "responses": {
          "200": {
            "description": "",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LivenessResponse"
                }
              }
            }
          }
        },
        "summary": "The process is up",
        "tags": [
          "health"
        ],
        "x-stability": "stable",
        "x-implemented": true
      }
    }
  },
  "info": {
    "title": "ROOL API",
    "description": "> **Production** at `https://api.rool.am`, commit `0697919`, deployed 2026-10-05 (checked 2026-10-08 15:29 UTC). Other versions: https://docs.rool.am/versions.html\n\nROOL API. This document is the source of truth for every client.\n\n**ROOL Public API v1 — Pre-Beta Contract.** Public operations live under `/api/v1` and are\nconsumed by the Android, iOS and future Web clients. Read docs/public-api-contract.md first.\n\n- `x-stability: stable` — changes only additively. `provisional` — may still break before the\n  Beta freeze; every change is visible in the openapi.json diff.\n- `x-implemented: false` — part of the contract but not served yet: build against the\n  checked-in fixtures (test/contract/fixtures/public/).\n- Ignore unknown fields. Every enum and every reason code may gain values.\n- Ids are opaque UUID-format strings. Errors are `application/problem+json`\n  (ProblemDetailsResponse); branch on `code`, listed per operation in `x-error-codes`.",
    "version": "1.0.0-pre-beta",
    "contact": {},
    "x-rool-environment": {
      "id": "production",
      "commit": "06979195c25ec785fac32453195eff1eb48112e6",
      "deployedAt": "2026-10-05T09:50:15Z",
      "checkedAt": "2026-10-08T15:29:39Z"
    }
  },
  "tags": [
    {
      "name": "auth",
      "description": "Accounts and sessions."
    },
    {
      "name": "me",
      "description": "The signed-in user."
    },
    {
      "name": "catalog",
      "description": "The vehicle catalog. Shape stable, content not frozen until the Beta launch set."
    },
    {
      "name": "garage",
      "description": "The signed-in user’s cars."
    },
    {
      "name": "intelligence",
      "description": "Safety recalls, known issues and maintenance, for one car."
    },
    {
      "name": "health",
      "description": "Infrastructure probes. Not part of the public client contract."
    }
  ],
  "servers": [
    {
      "url": "https://api.rool.am",
      "description": "Production"
    }
  ],
  "components": {
    "securitySchemes": {
      "userAccessToken": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http",
        "description": "User access token."
      }
    },
    "schemas": {
      "Applicability": {
        "type": "string",
        "enum": [
          "APPLIES",
          "MAY_APPLY"
        ],
        "x-stability": "stable"
      },
      "Attention": {
        "type": "string",
        "enum": [
          "ACTION_REQUIRED",
          "SERVICE_SOON",
          "WATCH",
          "INFORMATIONAL"
        ],
        "description": "The most urgent attention level of any item. Null when no item reaches the car.",
        "x-stability": "stable"
      },
      "Auth0SignInRequest": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "The OIDC ID token Auth0 issued to the app after the user signed in (Auth0 Universal Login or SDK). A JWT, signed by Auth0; ROOL verifies it and trusts nothing the client adds.",
            "maxLength": 8192
          }
        },
        "required": [
          "token"
        ],
        "x-stability": "provisional"
      },
      "AuthSession": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "description": "JWT. Send as `Authorization: Bearer …`. Treat as opaque."
          },
          "accessTokenExpiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "refreshToken": {
            "type": "string",
            "description": "Opaque. Rotated on every refresh; the old one stops working."
          },
          "refreshTokenExpiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "tokenType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TokenType"
              }
            ]
          },
          "user": {
            "$ref": "#/components/schemas/Me"
          }
        },
        "required": [
          "accessToken",
          "accessTokenExpiresAt",
          "refreshToken",
          "refreshTokenExpiresAt",
          "tokenType",
          "user"
        ],
        "x-stability": "stable"
      },
      "CatalogRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "name": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "x-stability": "stable"
      },
      "ConditionOption": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "HIGH_DUST_COUNTRIES",
            "description": "Stable code. Extensible."
          },
          "label": {
            "type": "string",
            "example": "HIGH_DUST_COUNTRIES",
            "description": "As the document names it."
          }
        },
        "required": [
          "code",
          "label"
        ],
        "x-stability": "provisional"
      },
      "ConfirmWith": {
        "type": "string",
        "enum": [
          "DEALER_VIN_CHECK"
        ],
        "description": "How the owner settles a MAY_APPLY recall. Null when it APPLIES.",
        "x-stability": "stable"
      },
      "CreateOdometerReadingRequest": {
        "type": "object",
        "properties": {
          "odometerKm": {
            "type": "integer",
            "minimum": 0,
            "maximum": 2000000,
            "example": 82400
          },
          "recordedOn": {
            "type": "string",
            "format": "date",
            "example": "2026-09-20"
          }
        },
        "required": [
          "odometerKm",
          "recordedOn"
        ],
        "x-stability": "provisional"
      },
      "CreateServiceEventRequest": {
        "type": "object",
        "properties": {
          "itemCode": {
            "type": "string",
            "example": "ENGINE_OIL",
            "description": "A maintenance item code."
          },
          "action": {
            "description": "What was done. An inspection restarts a replacement interval only where the schedule says the inspection stands in for it.",
            "allOf": [
              {
                "$ref": "#/components/schemas/MaintenanceAction"
              }
            ]
          },
          "performedOn": {
            "type": "string",
            "format": "date",
            "example": "2026-07-01"
          },
          "odometerKm": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 2000000,
            "description": "The odometer at the service. Without it, only the time interval can count."
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 500
          }
        },
        "required": [
          "itemCode",
          "action",
          "performedOn"
        ],
        "x-stability": "provisional"
      },
      "CreateVehicleRequest": {
        "type": "object",
        "properties": {
          "generationId": {
            "type": "string",
            "format": "uuid",
            "description": "The generation of the car. Required."
          },
          "modelYear": {
            "type": "integer",
            "minimum": 1950,
            "maximum": 2100,
            "example": 2020
          },
          "vehicleProfileId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Omit or send null when the owner does not know the engine or variant."
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 40
          },
          "engineVariantId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "An engine from getVariantOptions for this generation. Null: not known.",
            "x-stability": "provisional"
          },
          "transmission": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Transmission"
              },
              {
                "type": "null"
              }
            ]
          },
          "drivetrain": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Drivetrain"
              },
              {
                "type": "null"
              }
            ]
          },
          "severeUse": {
            "type": "boolean",
            "x-stability": "provisional"
          },
          "conditions": {
            "maxItems": 10,
            "description": "Condition codes from getVariantOptions the owner declares for this car.",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "market": {
            "type": [
              "string",
              "null"
            ],
            "example": "US",
            "description": "The market the car was actually sold for: ISO 3166-1 alpha-2 or `EU`, never `GLOBAL`. Null: not known. Must match a market-specific vehicle profile.",
            "x-stability": "provisional"
          },
          "scheduleOptions": {
            "maxItems": 10,
            "description": "Schedule option codes from getVariantOptions the car follows (one of mutually exclusive schedules, e.g. a maintenance-monitor setting).",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "serviceBaseline": {
            "x-stability": "provisional",
            "allOf": [
              {
                "$ref": "#/components/schemas/ServiceBaseline"
              }
            ]
          },
          "inServiceOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Only with SINCE_NEW.",
            "x-stability": "provisional"
          },
          "odometerKm": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "maximum": 2000000,
            "description": "The current odometer, recorded as the first reading.",
            "x-stability": "provisional"
          }
        },
        "required": [
          "generationId",
          "modelYear"
        ],
        "x-stability": "stable"
      },
      "DatePrecision": {
        "type": "string",
        "enum": [
          "DAY",
          "MONTH",
          "YEAR"
        ],
        "description": "How precisely the source states the dates.",
        "x-stability": "stable"
      },
      "DistanceUnit": {
        "type": "string",
        "enum": [
          "KM",
          "MI"
        ],
        "x-stability": "provisional"
      },
      "Drivetrain": {
        "type": "string",
        "enum": [
          "FWD",
          "RWD",
          "AWD",
          "FOUR_WD"
        ],
        "x-stability": "stable"
      },
      "DueState": {
        "type": "string",
        "enum": [
          "OVERDUE",
          "DUE_SOON",
          "NEEDS_VEHICLE_INFO",
          "UNKNOWN_LAST_SERVICE",
          "NOT_DUE",
          "NO_FIXED_INTERVAL",
          "NOT_SCHEDULED"
        ],
        "x-stability": "provisional"
      },
      "EngineSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "code": {
            "type": "string",
            "example": "VR30DDTT",
            "description": "The manufacturer engine code."
          },
          "name": {
            "type": "string",
            "example": "3.0T",
            "description": "The marketing name an owner recognises."
          },
          "fuelType": {
            "allOf": [
              {
                "$ref": "#/components/schemas/FuelType"
              }
            ]
          },
          "displacementCc": {
            "type": [
              "integer",
              "null"
            ],
            "example": 2997
          }
        },
        "required": [
          "id",
          "code",
          "name",
          "fuelType",
          "displacementCc"
        ],
        "x-stability": "stable"
      },
      "EngineVariant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "label": {
            "type": "string",
            "example": "QR25DE",
            "description": "The engine exactly as the manufacturer schedule prints it. Display only."
          }
        },
        "required": [
          "id",
          "label"
        ],
        "x-stability": "provisional"
      },
      "FieldErrorResponse": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string",
            "example": "email"
          },
          "message": {
            "type": "string",
            "example": "email must be an email"
          }
        },
        "required": [
          "field",
          "message"
        ],
        "x-stability": "stable"
      },
      "FluidSpecification": {
        "type": "object",
        "properties": {
          "viscosity": {
            "type": [
              "string",
              "null"
            ],
            "example": "0W-20"
          },
          "specification": {
            "type": [
              "string",
              "null"
            ],
            "example": "API Certification Mark"
          },
          "text": {
            "type": [
              "string",
              "null"
            ],
            "description": "As the manufacturer printed it."
          },
          "serviceFillCapacityMl": {
            "type": [
              "integer",
              "null"
            ],
            "example": 4600
          },
          "capacityQualifier": {
            "type": [
              "string",
              "null"
            ],
            "example": "with oil filter change"
          }
        },
        "required": [
          "viscosity",
          "specification",
          "text",
          "serviceFillCapacityMl",
          "capacityQualifier"
        ],
        "x-stability": "provisional"
      },
      "FuelType": {
        "type": "string",
        "enum": [
          "PETROL",
          "DIESEL",
          "HYBRID",
          "PLUGIN_HYBRID",
          "ELECTRIC",
          "LPG",
          "CNG"
        ],
        "x-stability": "stable"
      },
      "Generation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "modelId": {
            "type": "string",
            "format": "uuid",
            "description": "The model this generation belongs to."
          },
          "code": {
            "type": "string",
            "example": "V37",
            "description": "The chassis or generation code as the manufacturer names it."
          },
          "name": {
            "type": "string",
            "example": "Q50 (V37)"
          },
          "modelYearFrom": {
            "type": "integer",
            "example": 2014,
            "description": "First model year."
          },
          "modelYearTo": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Last model year. Null while in production."
          }
        },
        "required": [
          "id",
          "modelId",
          "code",
          "name",
          "modelYearFrom",
          "modelYearTo"
        ],
        "x-stability": "stable"
      },
      "GenerationListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Generation"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "stable"
      },
      "GenerationRef": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "code": {
            "type": "string",
            "example": "V37"
          },
          "name": {
            "type": "string",
            "example": "Q50 (V37)"
          }
        },
        "required": [
          "id",
          "code",
          "name"
        ],
        "x-stability": "stable"
      },
      "GoogleSignInRequest": {
        "type": "object",
        "properties": {
          "idToken": {
            "type": "string",
            "description": "The Google ID token obtained on the device."
          }
        },
        "required": [
          "idToken"
        ],
        "x-stability": "provisional"
      },
      "IntervalBasis": {
        "type": "string",
        "enum": [
          "WHICHEVER_FIRST",
          "DISTANCE_ONLY",
          "TIME_ONLY",
          "CONDITION_BASED",
          "NO_SCHEDULED_REPLACEMENT"
        ],
        "x-stability": "provisional"
      },
      "KnownIssueEvidence": {
        "type": "object",
        "properties": {
          "ownerReports": {
            "type": "integer",
            "example": 18,
            "description": "Owner reports on file."
          },
          "manufacturerDocuments": {
            "type": "integer",
            "example": 6,
            "description": "Manufacturer documents on file."
          }
        },
        "required": [
          "ownerReports",
          "manufacturerDocuments"
        ],
        "x-stability": "stable"
      },
      "KnownIssueItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable for the same issue and car across responses."
          },
          "applies": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Applicability"
              }
            ]
          },
          "reasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          },
          "attention": {
            "description": "At most WATCH: a known issue is never ACTION_REQUIRED.",
            "allOf": [
              {
                "$ref": "#/components/schemas/Attention"
              }
            ]
          },
          "title": {
            "type": "string",
            "example": "Turbocharger failure"
          },
          "component": {
            "type": "string",
            "example": "turbocharger",
            "description": "What fails, in plain words."
          },
          "symptoms": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Symptom"
            }
          },
          "manufacturerResponse": {
            "description": "Provisional: manufacturer programs may become their own section, and this field may then narrow.",
            "x-stability": "provisional",
            "allOf": [
              {
                "$ref": "#/components/schemas/ManufacturerResponse"
              }
            ]
          },
          "evidence": {
            "x-stability": "provisional",
            "allOf": [
              {
                "$ref": "#/components/schemas/KnownIssueEvidence"
              }
            ]
          },
          "textLanguage": {
            "type": "string",
            "example": "en",
            "description": "BCP 47 language of the free-text fields (title, component, consequence, remedy, symptom descriptions). Source text is shown as published and is not yet translated."
          }
        },
        "required": [
          "id",
          "applies",
          "reasons",
          "attention",
          "title",
          "component",
          "symptoms",
          "manufacturerResponse",
          "evidence",
          "textLanguage"
        ],
        "x-stability": "stable"
      },
      "KnownIssueSection": {
        "type": "object",
        "properties": {
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SectionState"
              }
            ]
          },
          "items": {
            "description": "Empty unless AVAILABLE. Most urgent first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KnownIssueItem"
            }
          },
          "checkedCount": {
            "type": "integer",
            "minimum": 0
          }
        },
        "required": [
          "state",
          "items",
          "checkedCount"
        ],
        "x-stability": "stable"
      },
      "LastService": {
        "type": "object",
        "properties": {
          "serviceEventId": {
            "type": "string",
            "format": "uuid",
            "description": "The service event the countdown runs from."
          },
          "performedOn": {
            "type": "string",
            "format": "date"
          },
          "odometerKm": {
            "type": [
              "integer",
              "null"
            ]
          },
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MaintenanceAction"
              }
            ]
          }
        },
        "required": [
          "serviceEventId",
          "performedOn",
          "odometerKm",
          "action"
        ],
        "x-stability": "provisional"
      },
      "LinkAuth0Request": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string",
            "description": "A fresh Auth0 ID token for the identity to link (see `signInWithAuth0`).",
            "maxLength": 8192
          }
        },
        "required": [
          "token"
        ],
        "x-stability": "provisional"
      },
      "LivenessResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ok"
            ]
          }
        },
        "required": [
          "status"
        ],
        "x-stability": "stable"
      },
      "Locale": {
        "type": "string",
        "enum": [
          "hy",
          "ru",
          "en"
        ],
        "x-stability": "stable"
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "password": {
            "type": "string",
            "maxLength": 128,
            "format": "password"
          }
        },
        "required": [
          "email",
          "password"
        ],
        "x-stability": "stable"
      },
      "LogoutRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string",
            "description": "Ends this session only."
          }
        },
        "required": [
          "refreshToken"
        ],
        "x-stability": "stable"
      },
      "MaintenanceAction": {
        "type": "string",
        "enum": [
          "REPLACE",
          "INSPECT",
          "SERVICE"
        ],
        "description": "What was done. An inspection restarts a replacement interval only where the schedule says the inspection stands in for it.",
        "x-stability": "provisional"
      },
      "MaintenanceDue": {
        "type": "object",
        "properties": {
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DueState"
              }
            ]
          },
          "reasons": {
            "description": "Why. Known codes: MODEL_YEAR_COVERED, SEVERE_USE_SELECTED, CONDITION_DECLARED, MARKET_UNKNOWN, MARKET_DIFFERS, SCHEDULE_OPTION_SELECTED, SCHEDULE_OPTION_UNKNOWN, ENGINE_UNKNOWN, ENGINE_NAMED, TRANSMISSION_UNKNOWN, TRANSMISSION_NAMED, DRIVETRAIN_UNKNOWN, DRIVETRAIN_NAMED, IF_EQUIPPED, VEHICLE_INFO_NEEDED, NO_SERVICE_RECORD, COUNTING_FROM_NEW, FIRST_SERVICE_INTERVAL, FIRST_SERVICE_ONLY_DONE, INSPECTION_STANDS_IN, NOT_SCHEDULED_BY_MANUFACTURER, CONDITION_BASED, BACKSTOP, DISTANCE_REMAINING, DISTANCE_OVERDUE, MONTHS_REMAINING, MONTHS_OVERDUE, ODOMETER_UNKNOWN, SERVICE_ODOMETER_UNKNOWN, IN_SERVICE_DATE_UNKNOWN. Extensible.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          },
          "distanceRemainingKm": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Negative when past."
          },
          "monthsRemaining": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Negative when past."
          },
          "dueAtOdometerKm": {
            "type": [
              "integer",
              "null"
            ]
          },
          "dueOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          }
        },
        "required": [
          "state",
          "reasons",
          "distanceRemainingKm",
          "monthsRemaining",
          "dueAtOdometerKm",
          "dueOn"
        ],
        "x-stability": "provisional"
      },
      "MaintenanceInterval": {
        "type": "object",
        "properties": {
          "basis": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IntervalBasis"
              }
            ]
          },
          "distanceKm": {
            "type": [
              "integer",
              "null"
            ],
            "example": 8047
          },
          "distance": {
            "description": "The distance in the unit the manufacturer printed. Prefer it for display.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrintedDistance"
              },
              {
                "type": "null"
              }
            ]
          },
          "months": {
            "type": [
              "integer",
              "null"
            ],
            "example": 6
          },
          "firstServiceKm": {
            "type": [
              "integer",
              "null"
            ],
            "description": "A one-off first service."
          },
          "firstServiceDistance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PrintedDistance"
              },
              {
                "type": "null"
              }
            ]
          },
          "firstServiceMonths": {
            "type": [
              "integer",
              "null"
            ]
          },
          "firstServiceOnly": {
            "type": "boolean",
            "description": "The schedule gives only a first service and no repeat. ROOL never extrapolates one."
          },
          "backstopKm": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Hard limit of a condition-based item."
          },
          "backstopMonths": {
            "type": [
              "integer",
              "null"
            ]
          },
          "waivedByInspection": {
            "type": "boolean",
            "description": "An inspection of this item may stand in for the replacement."
          }
        },
        "required": [
          "basis",
          "distanceKm",
          "distance",
          "months",
          "firstServiceKm",
          "firstServiceDistance",
          "firstServiceMonths",
          "firstServiceOnly",
          "backstopKm",
          "backstopMonths",
          "waivedByInspection"
        ],
        "x-stability": "provisional"
      },
      "MaintenanceScheduleItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable across updates of the same instruction."
          },
          "itemCode": {
            "type": "string",
            "example": "ENGINE_OIL",
            "description": "Maintenance item code. Extensible."
          },
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MaintenanceAction"
              }
            ]
          },
          "usage": {
            "allOf": [
              {
                "$ref": "#/components/schemas/UsageCondition"
              }
            ]
          },
          "conditionCode": {
            "type": [
              "string",
              "null"
            ],
            "description": "Condition code, when limited to one."
          },
          "scheduleOption": {
            "description": "The schedule option this instruction belongs to: one of mutually exclusive schedules. Null: every car.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScheduleDimension"
              },
              {
                "type": "null"
              }
            ]
          },
          "servicePackage": {
            "description": "The named service this instruction is part of (e.g. Service A). Null: none.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ScheduleDimension"
              },
              {
                "type": "null"
              }
            ]
          },
          "applicability": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Applicability"
              }
            ]
          },
          "applicabilityReasons": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          },
          "due": {
            "$ref": "#/components/schemas/MaintenanceDue"
          },
          "interval": {
            "$ref": "#/components/schemas/MaintenanceInterval"
          },
          "lastService": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LastService"
              },
              {
                "type": "null"
              }
            ]
          },
          "specification": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FluidSpecification"
              },
              {
                "type": "null"
              }
            ]
          },
          "sources": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MaintenanceSource"
            }
          }
        },
        "required": [
          "id",
          "itemCode",
          "action",
          "usage",
          "conditionCode",
          "scheduleOption",
          "servicePackage",
          "applicability",
          "applicabilityReasons",
          "due",
          "interval",
          "lastService",
          "specification",
          "sources"
        ],
        "x-stability": "provisional"
      },
      "MaintenanceSection": {
        "type": "object",
        "properties": {
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MaintenanceSectionState"
              }
            ]
          },
          "unavailableItemCodes": {
            "example": [
              "ENGINE_OIL",
              "OIL_FILTER",
              "BRAKE_FLUID"
            ],
            "description": "Maintenance items ROOL tracks but has no verified information for yet, as stable item codes for localised labels (ENGINE_OIL, OIL_FILTER, ENGINE_AIR_FILTER, CABIN_AIR_FILTER, COOLANT, BRAKE_FLUID, SPARK_PLUGS, …). Extensible.",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "state",
          "unavailableItemCodes"
        ],
        "x-stability": "stable"
      },
      "MaintenanceSectionState": {
        "type": "string",
        "enum": [
          "NOT_YET_AVAILABLE"
        ],
        "x-stability": "stable"
      },
      "MaintenanceSource": {
        "type": "object",
        "properties": {
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "publisher": {
            "type": [
              "string",
              "null"
            ]
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "page": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "title",
          "publisher",
          "url",
          "page"
        ],
        "x-stability": "provisional"
      },
      "Make": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "name": {
            "type": "string",
            "example": "Infiniti"
          }
        },
        "required": [
          "id",
          "name"
        ],
        "x-stability": "stable"
      },
      "MakeListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Make"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "stable"
      },
      "ManufacturerResponse": {
        "type": "string",
        "enum": [
          "NONE",
          "REPAIR_PROCEDURE",
          "WARRANTY_EXTENSION",
          "SERVICE_CAMPAIGN"
        ],
        "description": "Provisional: manufacturer programs may become their own section, and this field may then narrow.",
        "x-stability": "provisional"
      },
      "Me": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "format": "email"
          },
          "emailVerified": {
            "type": "boolean",
            "description": "False until the owner confirms the address."
          },
          "displayName": {
            "type": [
              "string",
              "null"
            ]
          },
          "locale": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Locale"
              }
            ]
          }
        },
        "required": [
          "id",
          "email",
          "emailVerified",
          "displayName",
          "locale"
        ],
        "x-stability": "stable"
      },
      "Model": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "makeId": {
            "type": "string",
            "format": "uuid",
            "description": "The make this model belongs to."
          },
          "name": {
            "type": "string",
            "example": "Q50"
          }
        },
        "required": [
          "id",
          "makeId",
          "name"
        ],
        "x-stability": "stable"
      },
      "ModelListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Model"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "stable"
      },
      "OdometerReading": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "odometerKm": {
            "type": "integer",
            "minimum": 0,
            "example": 82400
          },
          "recordedOn": {
            "type": "string",
            "format": "date",
            "description": "The day the owner read the odometer."
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "odometerKm",
          "recordedOn",
          "createdAt"
        ],
        "x-stability": "provisional"
      },
      "PageInfo": {
        "type": "object",
        "properties": {
          "nextCursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Pass as `cursor` to get the next page. Null on the last page. Opaque."
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "required": [
          "nextCursor",
          "hasMore"
        ],
        "x-stability": "stable"
      },
      "PrintedDistance": {
        "type": "object",
        "properties": {
          "value": {
            "type": "integer",
            "example": 5000
          },
          "unit": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DistanceUnit"
              }
            ]
          }
        },
        "required": [
          "value",
          "unit"
        ],
        "x-stability": "provisional"
      },
      "ProblemDetailsResponse": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "example": "about:blank"
          },
          "title": {
            "type": "string",
            "example": "Bad Request"
          },
          "status": {
            "type": "number",
            "example": 400
          },
          "code": {
            "type": "string",
            "example": "validation_failed",
            "description": "Stable, machine-readable."
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string",
            "example": "/api/v1/example"
          },
          "requestId": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FieldErrorResponse"
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "code"
        ],
        "x-stability": "stable"
      },
      "ProductionWindow": {
        "type": "object",
        "properties": {
          "from": {
            "type": "string",
            "format": "date",
            "example": "1997-10-23"
          },
          "to": {
            "type": "string",
            "format": "date",
            "example": "2000-07-03"
          },
          "precision": {
            "description": "How precisely the source states the dates.",
            "allOf": [
              {
                "$ref": "#/components/schemas/DatePrecision"
              }
            ]
          }
        },
        "required": [
          "from",
          "to",
          "precision"
        ],
        "x-stability": "stable"
      },
      "Reason": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "MODEL_YEAR_LISTED",
            "description": "Extensible. Known codes and their params: MODEL_YEAR_LISTED {modelYear}; GENERATION_NAMED {generationCode}; ENGINE_NAMED {engineCode}; OWNER_REPORTS_FOR_MODEL_YEAR {modelYear}; BUILD_DATE_UNKNOWN {from, to} (dates); ENGINE_UNKNOWN {engineCodes}; ENGINE_NOT_STATED_BY_SOURCE {}; MARKET_DIFFERS {sourceMarket, vehicleMarket}. An unknown code must be shown with a generic, verdict-appropriate fallback.",
            "x-extensible-enum": [
              "MODEL_YEAR_LISTED",
              "GENERATION_NAMED",
              "ENGINE_NAMED",
              "OWNER_REPORTS_FOR_MODEL_YEAR",
              "BUILD_DATE_UNKNOWN",
              "ENGINE_UNKNOWN",
              "ENGINE_NOT_STATED_BY_SOURCE",
              "MARKET_DIFFERS"
            ]
          },
          "params": {
            "type": "object",
            "additionalProperties": true,
            "example": {
              "modelYear": 2016
            },
            "description": "Values the code refers to. Keys depend on the code; unknown keys are ignored."
          }
        },
        "required": [
          "code",
          "params"
        ],
        "x-stability": "provisional"
      },
      "RecallItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Stable for the same recall and car across responses."
          },
          "applies": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Applicability"
              }
            ]
          },
          "reasons": {
            "description": "Why the recall reaches this car, most important first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reason"
            }
          },
          "attention": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Attention"
              }
            ]
          },
          "confirmWith": {
            "description": "How the owner settles a MAY_APPLY recall. Null when it APPLIES.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ConfirmWith"
              },
              {
                "type": "null"
              }
            ]
          },
          "campaignNumber": {
            "type": "string",
            "example": "24V470000",
            "description": "The regulator campaign number, shown as is. What the owner gives a dealer."
          },
          "manufacturerCampaignCodes": {
            "example": [
              "R24A5",
              "R24A7"
            ],
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "title": {
            "type": "string",
            "example": "Power Train"
          },
          "component": {
            "type": [
              "string",
              "null"
            ],
            "example": "POWER TRAIN:DRIVELINE:DRIVESHAFT"
          },
          "consequence": {
            "type": [
              "string",
              "null"
            ],
            "description": "As the regulator words it."
          },
          "remedy": {
            "type": [
              "string",
              "null"
            ],
            "description": "The stated remedy."
          },
          "issuedOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "market": {
            "type": "string",
            "example": "US",
            "description": "The market the campaign was issued for: ISO 3166-1 alpha-2, `EU` or `GLOBAL`."
          },
          "modelYearsCovered": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              2016,
              2017,
              2018
            ]
          },
          "productionWindow": {
            "description": "Set when the campaign is limited by build date.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/ProductionWindow"
              },
              {
                "type": "null"
              }
            ]
          },
          "source": {
            "$ref": "#/components/schemas/SourceReference"
          },
          "textLanguage": {
            "type": "string",
            "example": "en",
            "description": "BCP 47 language of the free-text fields (title, component, consequence, remedy, symptom descriptions). Source text is shown as published and is not yet translated."
          }
        },
        "required": [
          "id",
          "applies",
          "reasons",
          "attention",
          "confirmWith",
          "campaignNumber",
          "manufacturerCampaignCodes",
          "title",
          "component",
          "consequence",
          "remedy",
          "issuedOn",
          "market",
          "modelYearsCovered",
          "productionWindow",
          "source",
          "textLanguage"
        ],
        "x-stability": "stable"
      },
      "RefreshRequest": {
        "type": "object",
        "properties": {
          "refreshToken": {
            "type": "string"
          }
        },
        "required": [
          "refreshToken"
        ],
        "x-stability": "stable"
      },
      "RegisterRequest": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "format": "email",
            "maxLength": 254
          },
          "password": {
            "type": "string",
            "minLength": 10,
            "maxLength": 128,
            "format": "password"
          },
          "locale": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Locale"
              }
            ]
          }
        },
        "required": [
          "email",
          "password"
        ],
        "x-stability": "stable"
      },
      "SafetySection": {
        "type": "object",
        "properties": {
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SectionState"
              }
            ]
          },
          "items": {
            "description": "Empty unless AVAILABLE. Most urgent first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RecallItem"
            }
          },
          "checkedCount": {
            "type": "integer",
            "minimum": 0,
            "description": "Published recalls ROOL checked for this car’s model. With NOTHING_APPLIES it lets the client say \"ROOL checked N\". Zero when NOT_YET_AVAILABLE."
          }
        },
        "required": [
          "state",
          "items",
          "checkedCount"
        ],
        "x-stability": "stable"
      },
      "ScheduleDimension": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "example": "MONITOR_FLEXIBLE",
            "description": "Stable code. Extensible."
          },
          "label": {
            "type": "string",
            "example": "Oil change monitor set to Flexible"
          }
        },
        "required": [
          "code",
          "label"
        ],
        "x-stability": "provisional"
      },
      "SectionState": {
        "type": "string",
        "enum": [
          "AVAILABLE",
          "NOTHING_APPLIES",
          "NOT_YET_AVAILABLE"
        ],
        "x-stability": "stable"
      },
      "ServiceBaseline": {
        "type": "string",
        "enum": [
          "UNKNOWN",
          "SINCE_NEW"
        ],
        "x-stability": "provisional"
      },
      "ServiceEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "itemCode": {
            "type": "string",
            "example": "ENGINE_OIL",
            "description": "Maintenance item code. Extensible."
          },
          "action": {
            "allOf": [
              {
                "$ref": "#/components/schemas/MaintenanceAction"
              }
            ]
          },
          "performedOn": {
            "type": "string",
            "format": "date",
            "example": "2026-07-01"
          },
          "odometerKm": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "example": 96000
          },
          "note": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 500
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "itemCode",
          "action",
          "performedOn",
          "odometerKm",
          "note",
          "createdAt"
        ],
        "x-stability": "provisional"
      },
      "ServiceEventListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServiceEvent"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "provisional"
      },
      "SourceReference": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "NHTSA",
            "description": "Who published the record, by name."
          },
          "url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          }
        },
        "required": [
          "name",
          "url"
        ],
        "x-stability": "stable"
      },
      "Symptom": {
        "type": "object",
        "properties": {
          "description": {
            "type": "string",
            "example": "loss of power / limp mode"
          },
          "reportCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Independent owner reports describing it. Null when not counted."
          }
        },
        "required": [
          "description",
          "reportCount"
        ],
        "x-stability": "stable"
      },
      "TokenType": {
        "type": "string",
        "enum": [
          "Bearer"
        ],
        "x-stability": "stable"
      },
      "Transmission": {
        "type": "string",
        "enum": [
          "MANUAL",
          "AUTOMATIC",
          "CVT",
          "DCT",
          "SINGLE_SPEED"
        ],
        "x-stability": "stable"
      },
      "UpdateMeRequest": {
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 60
          },
          "locale": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Locale"
              }
            ]
          }
        },
        "x-stability": "stable"
      },
      "UpdateVehicleRequest": {
        "type": "object",
        "properties": {
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 40
          },
          "vehicleProfileId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "Select or clear the vehicle profile. It must belong to the same generation."
          },
          "modelYear": {
            "type": "integer",
            "minimum": 1950,
            "maximum": 2100
          },
          "engineVariantId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "An engine from getVariantOptions for this generation. Null: not known.",
            "x-stability": "provisional"
          },
          "transmission": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Transmission"
              },
              {
                "type": "null"
              }
            ]
          },
          "drivetrain": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Drivetrain"
              },
              {
                "type": "null"
              }
            ]
          },
          "severeUse": {
            "type": "boolean",
            "x-stability": "provisional"
          },
          "conditions": {
            "maxItems": 10,
            "description": "Condition codes from getVariantOptions the owner declares for this car.",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "market": {
            "type": [
              "string",
              "null"
            ],
            "example": "US",
            "description": "The market the car was actually sold for: ISO 3166-1 alpha-2 or `EU`, never `GLOBAL`. Null: not known. Must match a market-specific vehicle profile.",
            "x-stability": "provisional"
          },
          "scheduleOptions": {
            "maxItems": 10,
            "description": "Schedule option codes from getVariantOptions the car follows (one of mutually exclusive schedules, e.g. a maintenance-monitor setting).",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "serviceBaseline": {
            "x-stability": "provisional",
            "allOf": [
              {
                "$ref": "#/components/schemas/ServiceBaseline"
              }
            ]
          },
          "inServiceOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Only with SINCE_NEW.",
            "x-stability": "provisional"
          }
        },
        "x-stability": "stable"
      },
      "UsageCondition": {
        "type": "string",
        "enum": [
          "NORMAL",
          "SEVERE"
        ],
        "x-stability": "provisional"
      },
      "VariantDimension": {
        "type": "string",
        "enum": [
          "ENGINE",
          "TRANSMISSION",
          "DRIVETRAIN",
          "MARKET",
          "SCHEDULE_OPTION"
        ],
        "x-stability": "provisional"
      },
      "VariantOption": {
        "type": "object",
        "properties": {
          "value": {
            "type": "string",
            "example": "CVT",
            "description": "For ENGINE an engine variant id, for MARKET a market code, for SCHEDULE_OPTION an option code; otherwise the enum value. Send it back as is."
          },
          "label": {
            "type": "string",
            "example": "CVT"
          }
        },
        "required": [
          "value",
          "label"
        ],
        "x-stability": "provisional"
      },
      "VariantOptions": {
        "type": "object",
        "properties": {
          "generationId": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "engines": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EngineVariant"
            }
          },
          "transmissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Transmission"
            }
          },
          "drivetrains": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Drivetrain"
            }
          },
          "conditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConditionOption"
            }
          },
          "markets": {
            "example": [
              "US"
            ],
            "description": "Market codes the schedules are limited to. Empty: none is market-specific.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scheduleOptions": {
            "description": "Mutually exclusive schedules a car follows (e.g. a maintenance-monitor setting). Choose one.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ConditionOption"
            }
          }
        },
        "required": [
          "generationId",
          "engines",
          "transmissions",
          "drivetrains",
          "conditions",
          "markets",
          "scheduleOptions"
        ],
        "x-stability": "provisional"
      },
      "VariantQuestion": {
        "type": "object",
        "properties": {
          "dimension": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VariantDimension"
              }
            ]
          },
          "options": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantOption"
            }
          },
          "itemsWaiting": {
            "type": "integer",
            "description": "How many items wait on the answer."
          }
        },
        "required": [
          "dimension",
          "options",
          "itemsWaiting"
        ],
        "x-stability": "provisional"
      },
      "Vehicle": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "nickname": {
            "type": [
              "string",
              "null"
            ],
            "example": "Work car"
          },
          "displayName": {
            "type": "string",
            "example": "Infiniti Q50 V37 3.0T",
            "description": "Display name. Not a key: do not parse or match on it."
          },
          "make": {
            "$ref": "#/components/schemas/CatalogRef"
          },
          "model": {
            "$ref": "#/components/schemas/CatalogRef"
          },
          "generation": {
            "$ref": "#/components/schemas/GenerationRef"
          },
          "modelYear": {
            "type": "integer",
            "example": 2020
          },
          "vehicleProfileId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The selected vehicle profile. Null when only the generation is known."
          },
          "identification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VehicleIdentification"
              }
            ]
          },
          "engine": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/EngineSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "latestOdometer": {
            "description": "The most recent confirmed reading. Estimated mileage is not part of v1 yet.",
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/OdometerReading"
              },
              {
                "type": "null"
              }
            ]
          },
          "engineVariant": {
            "description": "The engine as maintenance schedules name it. Null when the owner has not said.",
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EngineVariant"
              },
              {
                "type": "null"
              }
            ]
          },
          "transmission": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Transmission"
              },
              {
                "type": "null"
              }
            ]
          },
          "drivetrain": {
            "x-stability": "provisional",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Drivetrain"
              },
              {
                "type": "null"
              }
            ]
          },
          "market": {
            "type": [
              "string",
              "null"
            ],
            "example": "US",
            "description": "The market the car was actually sold for: as the owner stated it, else the market of a market-specific vehicle profile. Null when unknown; never `GLOBAL`.",
            "x-stability": "provisional"
          },
          "severeUse": {
            "type": "boolean",
            "description": "The owner chose the manufacturer severe-use schedule for this car.",
            "x-stability": "provisional"
          },
          "conditions": {
            "example": [],
            "description": "Operating-condition codes the owner declared (from getVariantOptions).",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "scheduleOptions": {
            "example": [],
            "description": "Schedule option codes the owner selected (from getVariantOptions).",
            "x-stability": "provisional",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "serviceBaseline": {
            "x-stability": "provisional",
            "allOf": [
              {
                "$ref": "#/components/schemas/ServiceBaseline"
              }
            ]
          },
          "inServiceOn": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "The day the car entered service. Only with SINCE_NEW.",
            "x-stability": "provisional"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "nickname",
          "displayName",
          "make",
          "model",
          "generation",
          "modelYear",
          "vehicleProfileId",
          "identification",
          "engine",
          "latestOdometer",
          "engineVariant",
          "transmission",
          "drivetrain",
          "market",
          "severeUse",
          "conditions",
          "scheduleOptions",
          "serviceBaseline",
          "inServiceOn",
          "createdAt",
          "updatedAt"
        ],
        "x-stability": "stable"
      },
      "VehicleIdentification": {
        "type": "string",
        "enum": [
          "EXACT",
          "GENERATION_ONLY"
        ],
        "x-stability": "stable"
      },
      "VehicleIntelligence": {
        "type": "object",
        "properties": {
          "vehicleId": {
            "type": [
              "string",
              "null"
            ],
            "format": "uuid",
            "description": "The garage car. Null for the guest variant on a catalog profile."
          },
          "asOf": {
            "type": "string",
            "format": "date-time",
            "description": "When this was computed."
          },
          "identification": {
            "allOf": [
              {
                "$ref": "#/components/schemas/VehicleIdentification"
              }
            ]
          },
          "topAttention": {
            "description": "The most urgent attention level of any item. Null when no item reaches the car.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/Attention"
              },
              {
                "type": "null"
              }
            ]
          },
          "safety": {
            "$ref": "#/components/schemas/SafetySection"
          },
          "knownIssues": {
            "$ref": "#/components/schemas/KnownIssueSection"
          },
          "maintenance": {
            "$ref": "#/components/schemas/MaintenanceSection"
          }
        },
        "required": [
          "vehicleId",
          "asOf",
          "identification",
          "topAttention",
          "safety",
          "knownIssues",
          "maintenance"
        ],
        "x-stability": "stable"
      },
      "VehicleListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Vehicle"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "stable"
      },
      "VehicleMaintenance": {
        "type": "object",
        "properties": {
          "vehicleId": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "asOf": {
            "type": "string",
            "format": "date",
            "description": "The day the state was computed for (UTC)."
          },
          "odometerKm": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Highest confirmed reading."
          },
          "state": {
            "allOf": [
              {
                "$ref": "#/components/schemas/SectionState"
              }
            ]
          },
          "items": {
            "description": "Most urgent first.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MaintenanceScheduleItem"
            }
          },
          "questions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VariantQuestion"
            }
          },
          "unavailableItemCodes": {
            "description": "Core items with no verified schedule for this car yet. Extensible codes.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fixtureData": {
            "type": "boolean",
            "description": "True only when test fixture data is being served (never in production). A client must show it as test data."
          }
        },
        "required": [
          "vehicleId",
          "asOf",
          "odometerKm",
          "state",
          "items",
          "questions",
          "unavailableItemCodes",
          "fixtureData"
        ],
        "x-stability": "provisional"
      },
      "VehicleProfile": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "Opaque identifier (UUID format). Do not parse it, derive meaning from it or sort by it."
          },
          "generationId": {
            "type": "string",
            "format": "uuid",
            "description": "The generation this profile belongs to."
          },
          "displayName": {
            "type": "string",
            "example": "Infiniti Q50 V37 3.0T (2016–2024)",
            "description": "Display name. Not a key: do not parse or match on it."
          },
          "engine": {
            "description": "Null when the profile does not name an engine.",
            "anyOf": [
              {
                "$ref": "#/components/schemas/EngineSummary"
              },
              {
                "type": "null"
              }
            ]
          },
          "transmission": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Transmission"
              },
              {
                "type": "null"
              }
            ]
          },
          "drivetrain": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/Drivetrain"
              },
              {
                "type": "null"
              }
            ]
          },
          "market": {
            "type": "string",
            "example": "US",
            "description": "The market the car was built for: an ISO 3166-1 alpha-2 code, `EU` or `GLOBAL`. Extensible; not where the car is registered now."
          },
          "modelYearFrom": {
            "type": "integer",
            "example": 2016
          },
          "modelYearTo": {
            "type": [
              "integer",
              "null"
            ]
          }
        },
        "required": [
          "id",
          "generationId",
          "displayName",
          "engine",
          "transmission",
          "drivetrain",
          "market",
          "modelYearFrom",
          "modelYearTo"
        ],
        "x-stability": "stable"
      },
      "VehicleProfileListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VehicleProfile"
            }
          },
          "page": {
            "$ref": "#/components/schemas/PageInfo"
          }
        },
        "required": [
          "data",
          "page"
        ],
        "x-stability": "stable"
      }
    }
  }
}